@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@600;700&family=IBM+Plex+Mono:wght@500&family=Public+Sans:wght@400;600&display=swap');

@font-face {
  font-family: "Patua One";
  src: url("/assets/fonts/PatuaOne-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --paper: #f8fafc;
  --ink: #111827;
  --teal: #13b8a7;
  --teal-dark: color-mix(in srgb, #13b8a7 78%, #111827);
  --mist: #f0fdfa;
  --coral: #ef4444;
  --white: #fafbfc;
  --line: #e5e7eb;
  --muted: #6b7280;
  --display: "Familjen Grotesk", sans-serif;
  --body: "Public Sans", sans-serif;
  --data: "IBM Plex Mono", monospace;
  --radius-sm: 8px;
  --radius-lg: 12px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101715;
  --ink: #e8efec;
  --teal: #13b8a7;
  --teal-dark: color-mix(in srgb, #13b8a7 78%, #e8efec);
  --mist: #1b2b27;
  --coral: #ff6b6b;
  --white: #16201d;
  --line: #31413c;
  --muted: #a7b5b0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(229 231 235 / .85);
  background: rgb(248 250 252 / .9);
  backdrop-filter: blur(8px);
}
:root[data-theme="dark"] .site-header { border-bottom-color: rgb(49 65 60 / .85); background: rgb(16 23 21 / .9); }
.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: "Patua One", var(--display); font-weight: 400; font-size: 1.2rem; letter-spacing: .01em; }
.nav-links { display: flex; gap: 2rem; font-size: .9rem; }
.nav-links a, .footer-links a { color: var(--muted); }
.nav-links a:hover, .footer-links a:hover { color: var(--teal-dark); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: .8rem; }
.language { font-size: .8rem; color: var(--muted); }
.language[aria-current="page"] { color: var(--ink); font-weight: 600; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.theme-toggle:hover { background: var(--mist); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { display: none; border: 0; background: transparent; padding: .5rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: .75rem 1.1rem;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  transition: background-color .2s ease, transform .2s ease;
}
.button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.button-small { min-height: 40px; padding: .55rem .9rem; font-size: .86rem; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #1e293c; }
:root[data-theme="dark"] .button-dark { background: var(--teal); color: #09110f; }
:root[data-theme="dark"] .button-dark:hover { background: var(--teal-dark); }
.button svg { width: 20px; height: 20px; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 7.5rem 0 5rem;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}
.hero-copy { max-width: 570px; }
.availability { margin: 0 0 1.1rem; color: var(--teal-dark); font-size: .86rem; font-weight: 600; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); line-height: 1.04; }
h1 { margin-bottom: 1.6rem; font-size: clamp(3.2rem, 6.4vw, 6.4rem); letter-spacing: -.055em; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.2rem, 4.5vw, 4.4rem); letter-spacing: -.04em; }
h3 { margin-bottom: .65rem; font-size: 1.45rem; letter-spacing: -.02em; }
.hero-copy > p:not(.availability) { max-width: 520px; margin: 0 0 2rem; color: var(--muted); font-size: 1.08rem; }
.hero-note { display: block; margin-top: .85rem; color: var(--muted); font-size: .78rem; }

.planning-desk {
  position: relative;
  height: 650px;
  margin: 0;
  padding: 32px 32px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 42%),
    color-mix(in srgb, var(--paper) 68%, var(--white));
}
.planning-desk::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paper) 94%, transparent) 72%, var(--paper));
  pointer-events: none;
}
.hero-screen {
  width: min(420px, 88%);
  margin: 0 auto;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--ink));
  border-radius: 12px;
  background: var(--white);
}
.hero-screen img { width: 100%; height: auto; border-radius: 8px; }
.planning-desk figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-preview-in {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.has-motion .hero-copy { animation: hero-copy-in .7s cubic-bezier(.2,.7,.2,1) both; }
.has-motion .planning-desk { animation: hero-preview-in .85s .12s cubic-bezier(.2,.7,.2,1) both; }
.has-motion .motion-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.has-motion .motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

.problem-section {
  --problem: #dc2626;
  --problem-soft: #fef2f2;
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid color-mix(in srgb, var(--problem) 18%, var(--line));
  border-bottom: 1px solid color-mix(in srgb, var(--problem) 18%, var(--line));
  background: linear-gradient(115deg, color-mix(in srgb, var(--problem-soft) 74%, var(--paper)), var(--paper) 62%);
}
:root[data-theme="dark"] .problem-section {
  --problem: #ff6b6b;
  --problem-soft: #291b1b;
}
.problem-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(4rem, 9vw, 8rem);
  align-items: start;
}
.problem-intro { position: sticky; top: 120px; }
.problem-context {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.2rem;
  color: var(--problem);
  font-family: var(--data);
  font-size: .76rem;
  font-weight: 500;
}
.problem-context svg { width: 17px; height: 17px; }
.problem-intro h2 { max-width: 590px; margin-bottom: 1.5rem; font-size: clamp(2.7rem, 4.5vw, 4.7rem); }
.problem-intro h2 em { color: var(--problem); font-style: normal; }
.problem-intro > p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.problem-list { border-top: 1px solid color-mix(in srgb, var(--problem) 32%, var(--line)); }
.problem-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--problem) 22%, var(--line));
}
.problem-item > svg {
  width: 26px;
  height: 26px;
  margin-top: .2rem;
  color: var(--problem);
  stroke-width: 1.8;
}
.problem-item h3 { margin-bottom: .45rem; font-size: 1.6rem; }
.problem-item p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.65; }
.problem-bridge {
  margin: 0;
  padding: 1.5rem 0 0 4.5rem;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.confidence-strip {
  width: min(1180px, calc(100% - 40px));
  margin: -1rem auto 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.confidence-strip > div { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; padding: .2rem 1.4rem; border-right: 1px solid var(--line); }
.confidence-strip > div:first-child { padding-left: 0; }
.confidence-strip > div:last-child { padding-right: 0; border-right: 0; }
.confidence-strip svg { width: 20px; height: 20px; margin-top: .15rem; color: var(--teal); }
.confidence-strip span { color: var(--muted); font-size: .75rem; line-height: 1.45; }
.confidence-strip strong { display: block; color: var(--ink); font-family: var(--display); font-size: .88rem; }

.planning-line { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 6rem; }
.line-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.line-track::before { content: ""; position: absolute; top: 8px; left: 8px; right: 8px; height: 1px; background: var(--line); }
.line-step { position: relative; padding: 1.6rem 1rem 0 0; color: var(--muted); font-size: .78rem; }
.line-step::before { content: ""; position: absolute; top: 3px; left: 0; width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.line-step:last-child::before { background: var(--paper); }
.line-step strong { display: block; color: var(--ink); font-family: var(--data); font-size: .72rem; }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-heading { max-width: 690px; margin-bottom: 4rem; }
.section-heading p, .chapter-copy > p, .process-intro p, .privacy-copy p, .faq-answer { color: var(--muted); }
.kicker { margin: 0 0 .8rem; color: var(--teal-dark); font-family: var(--data); font-size: .75rem; }

.chapters { border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; min-height: 680px; padding: 6rem 0; border-bottom: 1px solid var(--line); }
.chapter:nth-child(even) { grid-template-columns: 1.08fr .92fr; }
.chapter:nth-child(even) .chapter-copy { order: 2; }
.chapter-copy { max-width: 480px; }
.chapter-copy h3 { font-size: clamp(1.9rem, 2.5vw, 2.55rem); line-height: 1.08; }
.chapter-copy > p { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.65; }
.chapter-meta { margin-bottom: 1.4rem; font-family: var(--data); font-size: .78rem !important; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 1.7rem 0 0; }
.feature-list li { display: flex; gap: .7rem; margin: .85rem 0; font-size: 1rem; }
.feature-list svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--teal); margin-top: .2rem; }
.app-screenshot {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.app-screenshot img { width: 100%; height: auto; border-radius: var(--radius-sm); }

@media (min-width: 1000px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: clamp(4rem, 6vw, 5.5rem); }
  .chapter:nth-child(even) { grid-template-columns: 1fr 1fr; }
  .chapter-copy { max-width: 530px; }
  .chapter-copy h3 { font-size: clamp(2.45rem, 3vw, 3rem); line-height: 1.06; }
  .chapter-copy > p { font-size: 1.18rem; line-height: 1.7; }
  .chapter-meta { font-size: .84rem !important; }
  .feature-list li { margin: 1rem 0; font-size: 1.08rem; }
  .feature-list svg { width: 20px; height: 20px; }
}

.data-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel-head strong { font-family: var(--display); }
.panel-head span { color: var(--muted); font-family: var(--data); font-size: .68rem; }
.guest-row, .budget-row, .task-row { display: grid; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .guest-row, :root[data-theme="dark"] .budget-row, :root[data-theme="dark"] .task-row { border-bottom-color: var(--line); }
.guest-row { grid-template-columns: 36px 1fr auto; }
.guest-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--teal-dark); font-family: var(--data); font-size: .68rem; }
.row-title { font-weight: 600; font-size: .88rem; }
.row-meta { color: var(--muted); font-size: .75rem; }
.tag { width: fit-content; padding: .25rem .48rem; border-radius: var(--radius-sm); background: var(--mist); color: var(--teal-dark); font-family: var(--data); font-size: .64rem; }
.tag.pending { background: #fef2f2; color: #b91c1c; }
:root[data-theme="dark"] .tag.pending { background: #442a25; color: #ff8f8f; }
.budget-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.budget-stat { padding: 1.3rem; border-right: 1px solid var(--line); }
.budget-stat:last-child { border-right: 0; }
.budget-stat small { display: block; color: var(--muted); font-size: .7rem; }
.budget-stat strong { font-family: var(--data); font-size: clamp(.9rem, 2vw, 1.2rem); }
.budget-row { grid-template-columns: 1fr auto; }
.task-row { grid-template-columns: 22px 1fr auto; }
.task-row svg { width: 18px; height: 18px; color: var(--teal); }

.process { background: var(--ink); color: var(--white); }
:root[data-theme="dark"] .process { background: #09100e; color: var(--ink); }
.process-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 8rem); }
.process-intro { position: sticky; top: 120px; height: fit-content; }
.process-intro p { color: #bac6c2; }
.steps { border-top: 1px solid #3c4b47; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 2.4rem 0; border-bottom: 1px solid #3c4b47; }
.step-number { font-family: var(--data); color: #79c8bd; }
.step p { margin: 0; color: #bac6c2; }

.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 8rem); align-items: center; }
.privacy-list { border-top: 1px solid var(--line); }
.privacy-item { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.privacy-item svg { width: 21px; color: var(--teal); }
.privacy-item strong { display: block; font-family: var(--display); }
.privacy-item span { color: var(--muted); font-size: .82rem; }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 9vw, 8rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; border: 0; background: transparent; text-align: left; font-family: var(--display); font-weight: 600; cursor: pointer; }
.faq-question svg { width: 18px; flex: 0 0 auto; transition: transform .2s ease; }
.faq-question[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer { display: none; margin: 0; padding: 0 2.5rem 1.4rem 0; }
.faq-question[aria-expanded="true"] + .faq-answer { display: block; }

.final-cta { padding: 7rem 0; background: var(--mist); }
.cta-inner { width: min(900px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.cta-inner p { max-width: 580px; margin: 0 auto 2rem; color: var(--muted); }
.cta-reassurance { display: block; margin-top: .8rem; color: var(--muted); font-size: .75rem; }
.cta-line { display: flex; align-items: center; gap: .8rem; margin: 3rem auto 0; color: var(--muted); font-family: var(--data); font-size: .7rem; }
.cta-line::before, .cta-line::after { content: ""; height: 1px; flex: 1; background: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.cta-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-copy { margin: .8rem 0 0; color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .8rem; }

:focus-visible { outline: 3px solid rgb(19 184 167 / .35); outline-offset: 3px; }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-actions .language, .nav-actions .button { display: none; }
  .menu-button { display: block; }
  .nav-links.open { position: absolute; top: 72px; left: 0; right: 0; display: grid; gap: 0; padding: 1rem 20px 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .nav-links.open a { padding: .75rem 0; }
  .hero { min-height: auto; padding-top: 5rem; grid-template-columns: 1fr; }
  h1 { font-size: clamp(3.4rem, 15vw, 5.5rem); }
  .planning-desk { width: min(100%, 560px); height: 610px; margin-inline: auto; }
  .problem-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .problem-intro { position: static; }
  .problem-intro h2 { max-width: 680px; }
  .chapter, .chapter:nth-child(even), .process-inner, .privacy-grid, .faq-grid { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter-copy { order: initial; }
  .process-intro { position: static; }
  .confidence-strip { grid-template-columns: 1fr; }
  .confidence-strip > div, .confidence-strip > div:first-child, .confidence-strip > div:last-child { padding: .9rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .confidence-strip > div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .nav, .hero, .problem-inner, .confidence-strip, .planning-line, .section-inner, .footer-inner { width: min(100% - 28px, 1180px); }
  .hero { gap: 2.5rem; padding-bottom: 3.5rem; }
  h1 { font-size: clamp(3.1rem, 16vw, 4.5rem); }
  h2 { font-size: 2.45rem; }
  .planning-desk { height: 500px; padding: 18px 18px 0; }
  .hero-screen { width: min(390px, 94%); padding: 5px; }
  .planning-desk figcaption { right: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: .64rem; }
  .problem-section { padding: 4.5rem 0; }
  .problem-inner { gap: 2.75rem; }
  .problem-intro h2 { font-size: 2.55rem; }
  .problem-intro > p:last-child { font-size: 1rem; }
  .problem-item { grid-template-columns: 36px 1fr; gap: .9rem; padding: 1.6rem 0; }
  .problem-item > svg { width: 23px; height: 23px; }
  .problem-item h3 { font-size: 1.4rem; }
  .problem-bridge { padding-left: 0; font-size: 1rem; }
  .line-track { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .line-track::before { display: none; }
  .chapter { min-height: auto; padding: 4rem 0; }
  .budget-summary { grid-template-columns: 1fr; }
  .budget-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .budget-stat:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .has-motion .motion-reveal { opacity: 1; transform: none; }
}
