/* FlyDesk — tokens from DESIGN.md */

:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --surface-sunken: #F3F1EC;
  --border: #E2DED5;
  --text: #1A1C17;
  --text-muted: #5E6157;
  --primary: #14304A;
  --primary-deep: #0E2437;
  --accent: #B4541E;
  --accent-hover: #953F12;
  --on-accent: #FFFFFF;
  --success: #2F6A43;
  --warning: #8A6212;
  --error: #9A2B22;
  --on-deep: #EAF1F7;
  --on-deep-muted: #A9BDCE;

  --text-xs: .8125rem;
  --text-sm: .875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.9375rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20,22,18,.06), 0 8px 24px -12px rgba(20,22,18,.18);

  --measure: 68ch;
  --content: 1120px;
  --callbar-h: 96px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12140F;
    --surface: #1B1E18;
    --surface-sunken: #171A14;
    --border: #2E3328;
    --text: #F1EFE9;
    --text-muted: #A3A698;
    --primary: #9FC4E4;
    --primary-deep: #0B1C2B;
    --accent: #E08A4F;
    --accent-hover: #EC9A62;
    --on-accent: #2A1507;
    --success: #7FBF95;
    --warning: #D9AE55;
    --error: #E58A80;
    --on-deep: #EAF1F7;
    --on-deep-muted: #9BB0C2;
  }
}

:root[data-theme="dark"] {
  --bg: #12140F;
  --surface: #1B1E18;
  --surface-sunken: #171A14;
  --border: #2E3328;
  --text: #F1EFE9;
  --text-muted: #A3A698;
  --primary: #9FC4E4;
  --primary-deep: #0B1C2B;
  --accent: #E08A4F;
  --accent-hover: #EC9A62;
  --on-accent: #2A1507;
  --success: #7FBF95;
  --warning: #D9AE55;
  --error: #E58A80;
  --on-deep: #EAF1F7;
  --on-deep-muted: #9BB0C2;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

h1, h2, h3, h4, .num {
  font-family: "Schibsted Grotesk", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--primary); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--space-5); }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

.prose { max-width: var(--measure); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: var(--space-3) var(--space-4); z-index: 100; border-radius: var(--radius);
}
.skip:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- header ---------- */

.site-header { background: var(--primary-deep); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--on-deep); text-decoration: none;
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 700;
  font-size: 1.25rem; letter-spacing: -.02em;
}
.brand svg { flex: none; }
.brand span i { font-style: normal; color: var(--on-deep-muted); font-weight: 600; }

.nav-links { display: flex; gap: var(--space-5); margin-left: auto; margin-right: var(--space-5); }
.nav-links a { color: var(--on-deep-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.nav-links a:hover { color: var(--on-deep); text-decoration: underline; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- disclosure strip ---------- */

.disclosure-strip {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.55;
}
.disclosure-strip .wrap { padding-block: 10px; }
.disclosure-strip strong { color: var(--text); font-weight: 600; }
.disclosure-strip a { color: var(--text-muted); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0 var(--space-6); min-height: 56px; font-size: 1.125rem;
  transition: background-color .15s ease, transform .1s ease;
}
.btn-call { background: var(--accent); color: var(--on-accent); }
.btn-call:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-call:active { transform: translateY(1px); }
.btn-call svg { flex: none; }

.btn-sm { min-height: 44px; padding: 0 var(--space-5); font-size: 1rem; }

.btn-secondary {
  background: var(--surface); color: var(--primary);
  border-color: var(--border); border-radius: var(--radius);
}
.btn-secondary:hover { background: var(--surface-sunken); }

.btn-quiet {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none;
}
.btn-quiet:hover { text-decoration: underline; }

/* ---------- sections ---------- */

section { padding-block: var(--space-9); }
@media (max-width: 760px) { section { padding-block: 44px; } h2 { font-size: 1.6875rem; } }

.sunken { background: var(--surface-sunken); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-3);
}

h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

.lede { font-size: var(--text-lg); color: var(--text-muted); margin-top: var(--space-4); }

.section-head { max-width: var(--measure); margin-bottom: var(--space-7); }

/* ---------- hero ---------- */

.hero { padding-block: var(--space-8) var(--space-8); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: var(--space-8); align-items: start;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

.hero h1 { font-size: var(--text-4xl); }
@media (max-width: 760px) {
  /* Mobile: headline + phone number must land in the first screen. */
  .hero { padding-block: var(--space-5) var(--space-6); }
  .hero h1 { font-size: 2.125rem; line-height: 1.12; }
  .hero .lede { font-size: 1.0625rem; margin-top: var(--space-3); }
  .hero-cta { margin-top: var(--space-5); gap: var(--space-3); }
  .hero-note { font-size: var(--text-xs); }
  .availability { margin-top: var(--space-4); }
  .eyebrow { margin-bottom: var(--space-2); }
  .hero .btn-call { width: 100%; min-height: 60px; font-size: 1.25rem; }
}
@media (max-width: 380px) { .hero h1 { font-size: 1.9375rem; } }

.hero .lede { max-width: 54ch; }

.hero-cta { margin-top: var(--space-7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.hero-note { font-size: var(--text-sm); color: var(--text-muted); max-width: 42ch; }

.availability {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted);
  margin-top: var(--space-5);
}
.dot {
  width: 9px; height: 9px; border-radius: 999px; background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
  flex: none;
}

.queue {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow);
}
.queue h2 { font-size: 1.0625rem; letter-spacing: 0; }
.queue ul { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.queue li { display: flex; gap: var(--space-4); align-items: flex-start; }
.queue li svg { flex: none; margin-top: 3px; color: var(--primary); }
.queue b { display: block; font-weight: 600; font-size: 1rem; }
.queue small { color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: var(--space-6); } }
.step { border-top: 2px solid var(--primary); padding-top: var(--space-4); }
.step .num {
  font-size: var(--text-sm); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: var(--space-3);
}
.step h3 { margin-bottom: var(--space-3); }
.step p { color: var(--text-muted); font-size: 1rem; }

/* ---------- services (asymmetric) ---------- */

.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.service {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6);
  grid-column: span 2;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.service:nth-child(1) { grid-column: span 3; }
.service:nth-child(2) { grid-column: span 3; }
.service:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.service svg { color: var(--primary); margin-bottom: var(--space-4); }
.service h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.service p { color: var(--text-muted); font-size: 1rem; }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service:nth-child(1), .service:nth-child(2) { grid-column: span 1; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- why ---------- */

.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.why-list li { display: flex; gap: var(--space-4); }
.why-list svg { flex: none; color: var(--success); margin-top: 4px; }
.why-list b { display: block; font-weight: 600; margin-bottom: 2px; }
.why-list span { color: var(--text-muted); font-size: 1rem; }

/* ---------- faq ---------- */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--space-5) var(--space-6) var(--space-5) 0;
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 600;
  font-size: var(--text-lg); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 var(--space-7) var(--space-5) 0; color: var(--text-muted); }
.faq .answer p + p { margin-top: var(--space-4); }

/* ---------- final cta ---------- */

.final { background: var(--primary-deep); color: var(--on-deep); text-align: left; }
.final h2 { color: var(--on-deep); font-size: var(--text-3xl); }
.final p { color: var(--on-deep-muted); margin-top: var(--space-4); max-width: 56ch; }
.final .btn-call { margin-top: var(--space-7); }
.final .fine { font-size: var(--text-xs); margin-top: var(--space-5); max-width: 62ch; }

/* ---------- footer ---------- */

.site-footer { background: var(--primary-deep); color: var(--on-deep-muted); padding-block: var(--space-8) var(--space-7); border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--on-deep); font-size: var(--text-sm); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: var(--space-4); font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.site-footer a { color: var(--on-deep-muted); text-decoration: none; font-size: var(--text-sm); display: inline-block; padding-block: 6px; }
.site-footer a:hover { color: var(--on-deep); text-decoration: underline; }
.site-footer address { font-style: normal; font-size: var(--text-sm); line-height: 1.7; }
.footer-legal {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: var(--text-xs); line-height: 1.6; display: grid; gap: var(--space-3);
}
.footer-legal strong { color: var(--on-deep); font-weight: 600; }

.placeholder {
  background: color-mix(in srgb, var(--warning) 20%, transparent);
  border-bottom: 1px dashed var(--warning);
  padding: 0 4px; border-radius: 3px; font-weight: 600;
}

/* ---------- sticky mobile call bar ---------- */

.callbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: var(--callbar-h); }
  .callbar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px -8px rgba(20,22,18,.25);
  }
  .callbar .btn { width: 100%; min-height: 58px; font-size: 1.1875rem; }
  .callbar .callbar-note {
    display: block; text-align: center; font-size: var(--text-xs);
    color: var(--text-muted); margin-top: 6px; line-height: 1.3;
  }
}
.callbar-note { display: none; }

/* ---------- legal pages ---------- */

.legal { padding-block: var(--space-8) var(--space-9); }
.legal h1 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.legal .updated { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-7); }
.legal h2 { font-size: var(--text-xl); margin-top: var(--space-7); margin-bottom: var(--space-4); }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: var(--space-4); }
.legal ul { margin: var(--space-4) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-3); }
.legal .callout {
  background: var(--surface-sunken); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: var(--space-5); margin-top: var(--space-6);
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.contact-card dl { margin: 0; display: grid; gap: var(--space-5); }
.contact-card dt {
  font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; margin-bottom: var(--space-1);
}
.contact-card dd { margin: 0; font-size: 1.0625rem; }


/* ---------- responsive disclosure + header label ---------- */

.disc-short, .hdr-short { display: none; }

@media (max-width: 640px) {
  .disc-full { display: none; }
  .disc-short { display: inline; }
  .disclosure-strip .wrap { padding-block: 8px; }
}

@media (max-width: 560px) {
  .hdr-num { display: none; }
  .hdr-short { display: inline; }
  .site-header .wrap { min-height: 64px; }
  .site-header .btn-sm { padding-inline: var(--space-5); white-space: nowrap; }
}

/* ---------- hero assurances ---------- */

.assurances {
  list-style: none; margin: var(--space-5) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
}
.assurances li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--text-sm); font-weight: 600; color: var(--text);
}
.assurances svg { color: var(--success); flex: none; }
@media (max-width: 760px) {
  .assurances { flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
}

.queue-foot {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--text-muted);
}

/* ---------- mid-page CTA under the steps ---------- */

.step-cta {
  margin-top: var(--space-7);
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
}
.step-cta span { font-size: var(--text-sm); color: var(--text-muted); }
@media (max-width: 760px) {
  .step-cta { flex-direction: column; align-items: stretch; gap: var(--space-3); text-align: center; }
  .step-cta .btn { width: 100%; }
}
