:root {
  --ink: #0b1b33;
  --ink-2: #36445c;
  --ink-3: #56637b;
  --line: #e2e7ef;
  --line-strong: #cfd7e3;
  --ground: #ffffff;
  --surface: #f5f7fb;
  --accent: #1f4fd8;
  --accent-hover: #1941b6;
  --accent-soft: #e9efff;
  --missed: #a44b06;
  --missed-soft: #fff3e4;
  --booked: #0e6b45;
  --booked-soft: #e6f5ee;
  --band: #0b1b33;
  --band-text: #e8edf6;
  --band-muted: #b5c1d6;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06), 0 1px 1px rgba(11, 27, 51, 0.04);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, 0.04), 0 12px 24px -6px rgba(11, 27, 51, 0.10), 0 32px 64px -24px rgba(11, 27, 51, 0.18);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);

  color-scheme: light;
  accent-color: var(--accent);
  scrollbar-color: var(--line-strong) var(--ground);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection { background: #cddbff; color: var(--ink); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 48rem; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.4rem;
  background: var(--accent); color: #fff;
  font: 600 1.0625rem/1 var(--font); letter-spacing: -0.01em;
  border-radius: 10px; text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 27, 51, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(31, 79, 216, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9375rem; border-radius: 8px; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.btn-light:hover { background: #eef2fa; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); }
.btn-light:focus-visible { outline-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; text-decoration: none; color: var(--accent);
}
.link-arrow::after {
  content: ""; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px) rotate(-45deg); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 27, 51, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.0625rem; }
.wordmark:hover { color: var(--ink); }
.wordmark-mark { width: 1.75rem; height: 1.75rem; }
.wordmark-mark rect { fill: var(--ink); }
.wordmark-mark path { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; }
.header-right { display: flex; align-items: center; gap: 1.25rem; }
.header-place { color: var(--ink-3); font-size: 0.9375rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5.5rem); background: linear-gradient(180deg, var(--ground) 0%, var(--ground) 55%, var(--surface) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
h1 { font-size: clamp(2.5rem, 1.5rem + 3.9vw, 4.35rem); line-height: 1.03; letter-spacing: -0.038em; max-width: 13ch; }
.lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-place { margin-top: 1.75rem; display: flex; gap: 0.55rem; align-items: flex-start; color: var(--ink-3); font-size: 0.9375rem; line-height: 1.5; max-width: 30rem; }
.hero-place svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linejoin: round; }

/* Demo phone log */
.demo { margin: 0; }
.phone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.1rem 1.25rem;
  max-width: 27rem; margin-left: auto;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 0.2rem 0.35rem 0.9rem; border-bottom: 1px solid var(--line); }
.phone-title { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.phone-tag { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.6rem; }
.log { list-style: none; margin: 0; padding: 0.4rem 0 0; position: relative; }
.log::before { content: ""; position: absolute; left: 1.35rem; top: 1.6rem; bottom: 1.6rem; width: 1px; background: var(--line); }
.log-item { position: relative; display: grid; grid-template-columns: 2.7rem 1fr; gap: 0.75rem; padding: 0.7rem 0.3rem; }
.log-icon { position: relative; z-index: 1; width: 2.1rem; height: 2.1rem; margin-left: 0.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.log-icon svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.log-missed .log-icon { background: var(--missed-soft); border-color: #f7d9b5; }
.log-missed .log-icon svg { stroke: var(--missed); }
.log-booked .log-icon { background: var(--booked-soft); border-color: #bfe5d2; }
.log-booked .log-icon svg { stroke: var(--booked); }
.log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 0.9375rem; }
.log-head time { color: var(--ink-3); font-size: 0.8125rem; white-space: nowrap; }
.log-missed strong { color: var(--missed); }
.log-booked strong { color: var(--booked); }
.log-text { margin-top: 0.15rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.log-bubble { margin-top: 0.4rem; background: var(--accent); color: #fff; font-size: 0.9375rem; line-height: 1.45; padding: 0.6rem 0.8rem; border-radius: 14px 14px 14px 4px; max-width: 19rem; }
.log-bubble-in { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; }
.demo figcaption { margin: 1rem 0 0 auto; max-width: 27rem; color: var(--ink-3); font-size: 0.875rem; line-height: 1.5; padding: 0 0.35rem; }

/* The one authored motion: the log plays through once, from an already-visible state */
.demo.will-play .log-item { opacity: 0.4; transform: translateY(6px); filter: blur(1.5px); }
.demo.is-playing .log-item { opacity: 1; transform: none; filter: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.demo.is-playing .log-item:nth-child(2) { transition-delay: 0.45s; }
.demo.is-playing .log-item:nth-child(3) { transition-delay: 0.9s; }
.demo.is-playing .log-item:nth-child(4) { transition-delay: 1.35s; }
.demo.is-playing .log-booked .log-icon { animation: settle 0.9s var(--ease) 1.5s both; }
@keyframes settle { 0% { box-shadow: 0 0 0 0 rgba(14, 107, 69, 0.35); } 100% { box-shadow: 0 0 0 10px rgba(14, 107, 69, 0); } }

/* Sections */
.familiar, .how, .fixes, .app, .about, .faq { padding: var(--section) 0; }
.familiar { background: var(--surface); padding-top: calc(var(--section) * 0.5); }
.familiar h2 { margin-bottom: 1.75rem; }
.big { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.5; letter-spacing: -0.012em; color: var(--ink); }
.familiar p:not(.big), .app p:not(.big), .about p:not(.big) { color: var(--ink-2); max-width: 40rem; }

.how h2 { max-width: 20ch; }
.steps { list-style: none; margin: 3.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); position: relative; }
.steps::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 1.2rem; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--line-strong) 70%, transparent); }
.step { position: relative; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 6px var(--ground); }
.step h3 { margin-top: 1.5rem; }
.step p { margin-top: 0.6rem; color: var(--ink-2); }

.fixes { border-top: 1px solid var(--line); }
.fixes-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.fixes-intro { position: sticky; top: 6.5rem; }
.fixes-intro p { margin-top: 1.25rem; color: var(--ink-2); max-width: 22rem; }
.fixes-intro .link-arrow { margin-top: 1.25rem; }
.fix-list { margin: 0; }
.fix { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.5rem 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.fix:last-child { border-bottom: 1px solid var(--line); }
.fix dt { font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.35; }
.fix dd { margin: 0; color: var(--ink-2); }

.app { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.split .big { margin-bottom: 1rem; }

.about-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 18px;
  background: linear-gradient(160deg, #eef2f9, #e1e7f1);
  border: 1px solid var(--line);
  display: grid; place-content: center; justify-items: center; gap: 0.75rem;
  color: var(--ink-3); font-size: 0.9375rem; font-weight: 500;
}
.portrait svg { width: 4.5rem; height: 4.5rem; fill: none; stroke: #9aa6ba; stroke-width: 1.3; }
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy .big { margin-bottom: 1rem; }

.offer { padding: var(--section) 0; border-top: 1px solid var(--line); }
.offer-grid { margin-top: 2.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.promise { padding: 1.75rem 2rem 0 0; }
.promise + .promise { padding-left: 2rem; border-left: 1px solid var(--line); }
.promise p { margin-top: 0.65rem; color: var(--ink-2); }

.faq { background: var(--surface); }
.faq-list { margin-top: 2.25rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-weight: 600; font-size: 1.125rem; letter-spacing: -0.012em; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 14px; height: 2px; margin-top: -1px; background: var(--ink-2); border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--accent); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 40rem; }

.close { background: var(--band); color: var(--band-text); padding: var(--section) 0; }
.close-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.close h2 { color: #fff; max-width: 18ch; }
.close p { margin-top: 1.25rem; color: var(--band-muted); max-width: 36rem; font-size: 1.125rem; }
.close .btn { margin-top: 2.25rem; }
.close .close-note { font-size: 0.9375rem; margin-top: 1.5rem; }
.close a:not(.btn) { color: #fff; }
.close ::selection { background: #3552a3; color: #fff; }

.site-footer { background: var(--band); color: var(--band-muted); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.site-footer strong { color: #fff; font-weight: 600; }
.site-footer a { color: var(--band-text); }
.site-footer p + p { margin-top: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .fixes-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .phone, .demo figcaption { margin-left: 0; }
  .fixes-intro { position: static; }
  .about-grid .portrait { max-width: 18rem; }
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .steps::before { left: 1.2rem; right: auto; top: 1.2rem; bottom: 1.2rem; width: 1px; height: auto; background: var(--line-strong); }
  .step { padding-left: 3.75rem; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 0.3rem; }
  .offer-grid { grid-template-columns: 1fr; }
  .promise, .promise + .promise { padding: 1.5rem 0; border-left: 0; }
  .promise + .promise { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .header-place { display: none; }
  .hero { padding-top: 1.75rem; }
  .lede { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-actions .btn { width: 100%; }
  .fix { grid-template-columns: 1fr; }
  .faq summary { padding-right: 2.5rem; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
