/* Hemmakoll landing page. Colours follow the app's tokens. */
:root {
  --bg: #f5f4f2;
  --surface: #ffffff;
  --label: #1c1b1a;
  --secondary: #6f6c68;
  --stroke: rgba(60, 55, 50, 0.1);
  --accent: #b0532f;
  --on-accent: #ffffff;
  --ai: #7f6236;
  --available: #2f7a5c;
  --sky: #3f7cac;
  --hero-start: #f7d8c5;
  --hero-mid: #f6e6da;
  --device: #1c1b1a;
  --shadow: 0 30px 60px -20px rgba(80, 40, 20, 0.35);
  --tint: 0.14;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0c0b;
    --surface: #1b1a18;
    --label: #f5f5f7;
    --secondary: #98989f;
    --stroke: rgba(255, 244, 230, 0.09);
    --accent: #e08a62;
    --on-accent: #1a0f0a;
    --ai: #d2b88e;
    --available: #6cc3a0;
    --sky: #8dbde3;
    --hero-start: #40271a;
    --hero-mid: #21160f;
    --device: #000000;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --tint: 0.24;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 24px 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(45% 40% at 5% 30%, color-mix(in srgb, var(--ai) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--hero-start) 0%, var(--hero-mid) 55%, var(--bg) 100%);
}

/* An optional photo behind the warm wash. See the comment in index.html. */
.has-photo .hero-bg {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hero-start) 82%, transparent) 0%, var(--bg) 100%),
    url('assets/bakgrund.jpg') center / cover no-repeat;
}

.top,
.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand .tld {
  color: var(--accent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-top: 56px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  font-weight: 700;
  text-wrap: balance;
}

.lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: 19px;
  color: var(--secondary);
  text-wrap: pretty;
}

/* ---------- Store buttons ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stores.center {
  justify-content: center;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: var(--label);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.store:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store:focus-visible,
.dots button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.store svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store span {
  display: flex;
  flex-direction: column;
}

.store small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
  opacity: 0.75;
}

.soon {
  margin-top: 14px;
  font-size: 13px;
  color: var(--secondary);
}

/* ---------- Phone ---------- */

.device-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device {
  width: min(300px, 72vw);
  padding: 10px;
  border-radius: 52px;
  background: var(--device);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.screen {
  position: relative;
  aspect-ratio: 690 / 1500;
  border-radius: 42px;
  overflow: hidden;
  background: var(--hero-start);
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.7s ease,
    transform 0.9s ease;
}

.screen img.is-on {
  opacity: 1;
  transform: none;
}

.dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--label) 22%, transparent);
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.dots button[aria-selected='true'] {
  width: 24px;
  background: var(--accent);
}

.caption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Sections ---------- */

main {
  padding: 0 24px;
}

section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

.section-lead {
  margin: 12px auto 0;
  max-width: 34em;
  color: var(--secondary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  text-align: left;
}

.card {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.card h3 {
  margin-top: 16px;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.card p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--secondary);
  text-wrap: pretty;
}

.bubble {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) calc(var(--tint) * 100%), transparent);
}

.bubble svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-accent {
  --tone: var(--accent);
}
.tone-ai {
  --tone: var(--ai);
}
.tone-available {
  --tone: var(--available);
}
.tone-sky {
  --tone: var(--sky);
}

.closing {
  margin-bottom: 24px;
  padding: 56px 24px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--hero-start), var(--hero-mid));
}

footer {
  padding: 28px 24px 44px;
  text-align: center;
  font-size: 15px;
  color: var(--secondary);
}

footer .fine {
  margin-top: 6px;
  font-size: 13px;
}

/* ---------- Subpages ---------- */

.hero-small {
  padding-bottom: 40px;
}

.hero-inner.single {
  display: block;
  max-width: 720px;
  padding-top: 44px;
}

.hero-inner.single h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.prose {
  max-width: 768px;
  margin: 0 auto;
  padding: 8px 24px 40px;
}

.prose section {
  padding: 28px 0 0;
  text-align: left;
}

.prose h2 {
  font-size: 24px;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.prose h3 {
  margin: 20px 0 4px;
  font-size: 17px;
}

.prose p,
.prose li {
  color: var(--secondary);
  text-wrap: pretty;
}

.prose p + p {
  margin-top: 10px;
}

.prose ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--label);
  font-weight: 600;
}

.prose a,
.lead a,
footer a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.faq details {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
  padding: 0 18px;
}

.faq details + details {
  margin-top: 8px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--label);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  padding-bottom: 16px;
}

.contact-card {
  margin-top: 36px;
  padding: 24px !important;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--hero-start), var(--hero-mid));
}

.contact-card p {
  color: var(--label);
}

footer .links {
  margin-bottom: 6px;
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero {
    padding-bottom: 48px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 36px;
    text-align: center;
  }
  .lead {
    margin-inline: auto;
  }
  .stores {
    justify-content: center;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  section {
    padding: 56px 0;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-inline: 16px;
  }
  main {
    padding: 0 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .store {
    flex: 1 1 100%;
    justify-content: center;
  }
  .store span {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device {
    animation: none;
  }
  .screen img {
    transition: opacity 0.2s linear;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
