/* ============================================================================
   DeskOwl — design tokens + components.
   Tokens follow WEBSITE_BOILERPLATE.md (OKLCH, 4px grid, semantic layer).
   Identity: warm coral + warm ink on cream. Deliberately NOT purple/white
   (the SaaS reflex the boilerplate's AI-slop test calls out).
   ============================================================================ */
:root {
  /* ── Brand: coral ── */
  --coral-700: oklch(52% 0.17 32);
  --coral-600: oklch(60% 0.18 34);
  --coral-500: oklch(67% 0.18 36);   /* primary */
  --coral-400: oklch(75% 0.15 40);
  --coral-200: oklch(88% 0.08 42);
  --coral-100: oklch(93% 0.05 46);
  --coral-50:  oklch(96% 0.025 52);

  /* ── Accent: teal (used sparingly) ── */
  --teal-600: oklch(58% 0.10 205);
  --teal-500: oklch(66% 0.11 200);
  --teal-100: oklch(93% 0.04 200);

  /* ── Neutrals, tinted warm (hue ~40) ── */
  --ink-900: oklch(21% 0.02 40);
  --ink-800: oklch(29% 0.02 40);
  --ink-700: oklch(39% 0.018 40);
  --ink-600: oklch(49% 0.016 40);
  --ink-500: oklch(59% 0.014 42);
  --ink-400: oklch(71% 0.012 44);
  --ink-300: oklch(83% 0.01 48);
  --ink-200: oklch(90% 0.009 52);
  --ink-100: oklch(94% 0.008 56);
  --ink-50:  oklch(97% 0.008 62);
  --white:   oklch(99% 0.005 70);
  --paper:   oklch(97.6% 0.014 72);

  /* ── Semantic ── */
  --fg:            var(--ink-900);
  --fg-default:    var(--ink-700);
  --fg-muted:      var(--ink-500);
  --fg-inverse:    var(--white);
  --fg-brand:      var(--coral-700);
  --border:        var(--ink-200);
  --border-strong: var(--ink-300);
  --success:       oklch(55% 0.13 155);
  --success-soft:  oklch(95% 0.04 155);
  --error:         oklch(55% 0.20 28);
  --error-soft:    oklch(96% 0.03 28);

  /* ── Type ── */
  --font-display: 'Gabarito', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Geist Variable', 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --fs-display: clamp(40px, 5.5vw, 76px);
  --fs-h1:      clamp(34px, 4.4vw, 56px);
  --fs-h2:      clamp(26px, 3.2vw, 40px);
  --fs-h3:      clamp(19px, 2vw, 24px);
  --fs-body-lg: 18px;
  --fs-body:    16px;
  --fs-body-sm: 14px;
  --fs-eyebrow: 12px;

  --lh-tight: 1.08;
  --lh-snug:  1.2;
  --lh-base:  1.5;
  --lh-relaxed: 1.65;
  --tracking-tight:   -0.02em;
  --tracking-eyebrow: 0.12em;

  /* ── Spacing (4px grid) ── */
  --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;

  /* ── Radii ── */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 26px; --radius-pill: 999px;

  /* ── Shadows (tinted coral, not black) ── */
  --shadow-sm: 0 2px 6px oklch(52% 0.17 32 / 0.08), 0 1px 2px oklch(21% 0.02 40 / 0.05);
  --shadow-md: 0 12px 30px -12px oklch(52% 0.17 32 / 0.20), 0 3px 8px oklch(21% 0.02 40 / 0.06);
  --shadow-lg: 0 30px 60px -20px oklch(52% 0.17 32 / 0.26), 0 8px 16px oklch(21% 0.02 40 / 0.08);

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms; --dur-base: 240ms;

  /* ── Layout ── */
  --container: 1140px;
  --container-narrow: 760px;
  --gutter: 24px;

  /* ── Z ── */
  --z-sticky: 200; --z-toast: 500;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-default);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: 800; }
p { max-width: 64ch; }
.no-transition, .no-transition * { transition: none !important; }

::selection { background: var(--coral-200); }
:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 3px; border-radius: 6px; }

/* ── Layout helpers ── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--fg-brand);
  padding: 5px 12px; border: 1.5px solid var(--coral-200); border-radius: var(--radius-pill); background: var(--coral-50);
}
.skip-link { position: absolute; top: -100%; left: var(--space-4); padding: var(--space-2) var(--space-4); background: var(--coral-600); color: var(--fg-inverse); border-radius: var(--radius-sm); font-weight: 700; z-index: var(--z-toast); }
.skip-link:focus { top: var(--space-2); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 700; border-radius: var(--radius-pill); white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); padding: 14px 26px; font-size: var(--fs-body); min-height: 48px; }
.btn--sm { padding: 9px 18px; font-size: var(--fs-body-sm); min-height: 40px; }
.btn--lg { padding: 17px 34px; font-size: var(--fs-body-lg); min-height: 56px; }
.btn--primary { background: var(--coral-500); color: oklch(99% 0.01 40); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--coral-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; border: 1.5px solid var(--border-strong); color: var(--fg); }
.btn--secondary:hover { border-color: var(--coral-400); color: var(--fg-brand); transform: translateY(-2px); }
.btn--ink { background: var(--ink-900); color: var(--fg-inverse); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

/* ── Scroll progress + nav ── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--coral-500); z-index: calc(var(--z-sticky) + 1); }
.site-nav { position: sticky; top: 0; z-index: var(--z-sticky); background: oklch(97.6% 0.014 72 / 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.site-nav.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink-900); letter-spacing: -0.03em; }
.site-nav__logo span { color: var(--coral-600); }
.site-nav__links { display: flex; gap: var(--space-6); }
.site-nav__links a { font-size: var(--fs-body-sm); font-weight: 600; color: var(--fg-default); }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--fg-brand); }
.site-nav__cta { display: flex; align-items: center; gap: var(--space-4); }
.site-nav__contact { font-size: var(--fs-body-sm); font-weight: 600; color: var(--fg-default); }
.nav-toggle { display: none; color: var(--ink-900); }
@media (max-width: 860px) {
  .site-nav__links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: var(--space-2) var(--gutter); max-height: 0; overflow: hidden; }
  .site-nav__links.is-open { max-height: 60vh; padding-block: var(--space-4); }
  .site-nav__links li { padding-block: var(--space-2); }
  .site-nav__contact { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ── Hero ── */
.hero { padding-block: var(--space-9) var(--space-8); background: linear-gradient(180deg, var(--coral-50), var(--paper)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
.hero__h1 { font-size: var(--fs-display); margin-block: var(--space-4) var(--space-5); }
.hero__h1 em { font-style: normal; color: var(--coral-600); }
.hero__sub { font-size: var(--fs-body-lg); color: var(--fg-muted); margin-bottom: var(--space-6); max-width: 46ch; }
.hero__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } .hero__visual { order: -1; } }

/* Phone mockup (pure CSS — the "bio page" preview) */
.phone { width: 270px; margin-inline: auto; background: var(--ink-900); border-radius: 38px; padding: 12px; box-shadow: var(--shadow-lg); }
.phone__screen { background: var(--white); border-radius: 28px; padding: var(--space-5) var(--space-4); }
.phone__avatar { width: 64px; height: 64px; border-radius: var(--radius-pill); margin: 0 auto var(--space-3); background: linear-gradient(135deg, var(--coral-400), var(--teal-500)); }
.phone__name { text-align: center; font-family: var(--font-display); font-weight: 800; color: var(--ink-900); }
.phone__handle { text-align: center; font-size: var(--fs-body-sm); color: var(--fg-muted); margin-bottom: var(--space-4); }
.phone__link { display: block; text-align: center; padding: 13px; border-radius: var(--radius-pill); background: var(--coral-50); border: 1.5px solid var(--coral-200); font-weight: 700; color: var(--ink-800); margin-bottom: var(--space-3); font-size: var(--fs-body-sm); transition: transform var(--dur-fast) var(--ease-out); }
.phone__link:hover { transform: scale(1.03); }
.phone__link--solid { background: var(--coral-500); color: var(--white); border-color: var(--coral-500); }

/* ── Stat strip ── */
.proof { border-block: 1px solid var(--border); background: var(--white); }
.proof__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding-block: var(--space-6); }
.proof__stat { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); color: var(--ink-900); }
.proof__stat span { color: var(--coral-600); }
.proof__logos { display: flex; gap: var(--space-6); flex-wrap: wrap; color: var(--fg-muted); font-weight: 600; }

/* ── Steps (how it works) ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-7); }
.step__num { font-family: var(--font-mono); font-size: var(--fs-body-sm); color: var(--coral-600); }
.step h3 { font-size: var(--fs-h3); margin-block: var(--space-2); }
.step p { color: var(--fg-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ── Features (varied, not identical cards) ── */
.features { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5); margin-top: var(--space-7); }
.feature { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.feature--hero { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink-900); color: var(--ink-100); }
.feature--hero h3, .feature--hero p { color: inherit; }
.feature--hero h3 { color: var(--white); }
.feature h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.feature p { color: var(--fg-muted); font-size: var(--fs-body-sm); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } .feature--hero { grid-row: auto; } }

/* ── Templates grid ── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.tpl { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); cursor: pointer; }
.tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tpl__art { aspect-ratio: 4 / 3; }
.tpl__label { padding: var(--space-3) var(--space-4); font-weight: 700; font-size: var(--fs-body-sm); color: var(--ink-800); }

/* ── Quote ── */
.quote { max-width: var(--container-narrow); margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); color: var(--ink-900); line-height: var(--lh-snug); }
.quote cite { display: block; margin-top: var(--space-4); font-style: normal; color: var(--fg-muted); font-size: var(--fs-body-sm); }

/* ── CTA band ── */
.cta-band { background: linear-gradient(135deg, var(--coral-500), var(--coral-700)); color: var(--white); border-radius: var(--radius-xl); padding: var(--space-8); text-align: center; }
.cta-band h2 { color: var(--white); font-size: var(--fs-h2); }
.cta-band p { color: oklch(98% 0.02 40 / 0.9); margin: var(--space-3) auto var(--space-6); }
.cta-band .btn--primary { background: var(--white); color: var(--coral-700); }
.cta-band .btn--primary:hover { background: var(--coral-50); }

/* ── Generic page header ── */
.page-head { padding-block: var(--space-8) var(--space-6); }
.page-head h1 { font-size: var(--fs-h1); margin-top: var(--space-3); }
.page-head p { font-size: var(--fs-body-lg); color: var(--fg-muted); margin-top: var(--space-3); }
.prose { max-width: var(--container-narrow); }
.prose p { margin-bottom: var(--space-4); color: var(--fg-default); }
.prose h2 { font-size: var(--fs-h2); margin-block: var(--space-6) var(--space-3); }

/* ── Pricing ── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
.price { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.price--featured { border-color: var(--coral-400); box-shadow: var(--shadow-md); position: relative; }
.price--featured::before { content: "Most popular"; position: absolute; top: -12px; left: var(--space-6); background: var(--coral-500); color: var(--white); font-size: var(--fs-eyebrow); font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); }
.price__amount { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--ink-900); margin-block: var(--space-2); }
.price__amount span { font-size: var(--fs-body); color: var(--fg-muted); font-weight: 600; }
.price ul { margin-block: var(--space-4); display: grid; gap: var(--space-2); }
.price li { font-size: var(--fs-body-sm); color: var(--fg-default); }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* ── Blog ── */
.post-list { max-width: var(--container-narrow); }
.post-item { padding-block: var(--space-6); border-bottom: 1px solid var(--border); }
.post-item h2 { font-size: var(--fs-h3); }
.post-item:hover h2 { color: var(--fg-brand); }
.post-item p { color: var(--fg-muted); margin-top: var(--space-2); }
.post-item time { font-family: var(--font-mono); font-size: var(--fs-body-sm); color: var(--ink-400); }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label { font-size: var(--fs-body-sm); font-weight: 600; color: var(--fg); }
.field input, .field textarea, .field select { padding: 12px 14px; font-size: var(--fs-body); font-family: var(--font-sans); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); background: var(--white); color: var(--fg); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--coral-500); box-shadow: 0 0 0 3px var(--coral-100); }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); max-width: 520px; }
.form-note { background: var(--success-soft); border: 1px solid var(--success); border-radius: var(--radius-md); padding: var(--space-4); color: oklch(35% 0.10 155); }

/* ── Footer ── */
.site-footer { background: var(--ink-900); color: var(--ink-300); margin-top: var(--space-9); padding-block: var(--space-8) var(--space-6); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); }
.site-footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--white); }
.site-footer__logo span { color: var(--coral-400); }
.site-footer__brand p { margin-top: var(--space-3); font-size: var(--fs-body-sm); color: var(--ink-400); max-width: 36ch; }
.site-footer__col h4 { color: var(--white); font-size: var(--fs-body-sm); margin-bottom: var(--space-3); font-family: var(--font-sans); font-weight: 700; }
.site-footer__col a { font-size: var(--fs-body-sm); color: var(--ink-300); display: block; padding-block: 5px; }
.site-footer__col a:hover { color: var(--coral-400); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid oklch(40% 0.02 40); font-size: var(--fs-body-sm); color: var(--ink-400); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ── Back to top ── */
.back-to-top { position: fixed; right: var(--space-5); bottom: var(--space-5); width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--ink-900); color: var(--white); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--dur-base), transform var(--dur-base); z-index: var(--z-sticky); box-shadow: var(--shadow-md); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── Reveal (GSAP sets initial state only when JS present) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
