/* ==========================================================================
   Skybolabs — site stylesheet
   One file, no build step. Edit here and push; the change is live in ~1 min.

   Structure:
     1. Fonts            5. Layout          9. Cards & panels
     2. Tokens           6. Header/nav     10. FAQ
     3. Reset            7. Buttons        11. Footer
     4. Type             8. Hero/mockup    12. Motion & responsive
   ========================================================================== */

/* 1. Fonts — self-hosted, extracted from the approved design.
      Both families are VARIABLE: one file covers the whole weight range. */

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/familjen-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/familjen-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/familjen-grotesk-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/spline-sans-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/spline-sans-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Tokens — single light palette, matching the approved design exactly.
      This site is intentionally light-only: `color-scheme: light` below
      keeps scrollbars and form controls light even for visitors whose OS
      is set to dark, so everyone sees the same cream design.
   ========================================================================== */

:root {
  --bg:          #FBFAF7;
  --surface:     #FFFFFF;
  --surface-2:   #FAFBFE;

  --ink:         #0A1330;
  --ink-2:       #3F4A6E;
  --muted:       #565D74;
  --faint:       #9AA0B4;

  --line:        #E8E5DD;
  --line-2:      #EEF0F6;
  --line-3:      #DDE2EE;

  --brand:       #2E5CFF;
  --brand-2:     #2743A6;
  --brand-soft:  #E5EBFC;
  --brand-lift:  #8FA8FF;

  --ok:          #0F7A43;
  --ok-soft:     #E3F6EC;
  --dot:         #23B26D;

  /* Dark navy panels that appear inside the LIGHT theme too */
  --panel:       #0A1330;
  --panel-hover: #101B45;
  --panel-ink:   #FFFFFF;
  --panel-muted: #A9B3D6;

  /* Primary button gets its own tokens: in dark mode the navy panel colour
     is nearly invisible against a navy page, so the button inverts instead. */
  --btn-bg:       #0A1330;
  --btn-ink:      #FFFFFF;
  --btn-bg-hover: #2E5CFF;

  --hero:        linear-gradient(180deg, #EAF0FF 0%, #F6F7FA 42%, #FBFAF7 100%);
  --hero-soft:   linear-gradient(180deg, #EAF0FF 0%, #FBFAF7 70%);
  --cta-grad:    linear-gradient(180deg, #FFFFFF 0%, #F0F4FF 100%);
  --grid-line:   #0a133008;
  --shadow-sm:   0 1px 3px #0a13300a;
  --shadow-md:   0 2px 8px #0a133026;
  --shadow-lift: 0 -8px 40px #2e5cff14;

  --wrap: 1120px;
  --gutter: 32px;
  --radius: 16px;
  --radius-sm: 10px;

  color-scheme: light;
}

/* ==========================================================================
   3. Reset
   ========================================================================== */

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 20px;
  border-radius: 0 0 8px 0; font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   4. Type — fluid so the 64px hero scales instead of overflowing on phones
   ========================================================================== */

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }

.h-hero  { font-size: clamp(36px, 6.2vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.h-page  { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.03; letter-spacing: -0.035em; }
.h-sec   { font-size: clamp(27px, 4vw,   38px); }
.h-card  { font-size: clamp(19px, 2.2vw, 22px); letter-spacing: -0.02em; }

.lede    { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); }
.body    { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.small   { font-size: 15px; line-height: 1.6; color: var(--muted); }
.tiny    { font-size: 13.5px; color: var(--faint); }

.eyebrow {
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.eyebrow--muted { color: var(--faint); }
.eyebrow--ok    { color: var(--ok); }
.mono { font-family: 'Spline Sans Mono', ui-monospace, monospace; }

.prose h2 { font-size: clamp(22px, 3vw, 27px); margin: 44px 0 14px; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose > :first-child { margin-top: 0; }

/* ==========================================================================
   5. Layout
   ========================================================================== */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; }

.section    { padding-block: clamp(56px, 8vw, 88px); }
.section--tight { padding-block: clamp(40px, 5vw, 56px); }
.section--last  { padding-bottom: clamp(64px, 9vw, 100px); }

.grid { display: grid; gap: 18px; }
.grid--3    { grid-template-columns: repeat(3, 1fr); gap: 44px; }
.grid--2    { grid-template-columns: repeat(2, 1fr); }
.grid--split{ grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid--faq  { grid-template-columns: 300px 1fr; gap: 64px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 34px;
}

.stack-sm > * + * { margin-top: 10px; }
.center { text-align: center; }
.measure { max-width: 62ch; }

/* ==========================================================================
   6. Header / nav
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 64px; display: flex; align-items: center; gap: 30px;
}

.brand {
  display: flex; align-items: center; gap: 9px;
  margin-right: auto; text-decoration: none; flex-shrink: 0;
}
.brand svg { width: 24px; height: 24px; }
.brand-plane { fill: var(--brand); }
.brand-trail { stroke: var(--ink); }
.brand-name  { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }

.nav-toggle { display: none; }

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--btn-bg-hover); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-3); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--light { background: #FFFFFF; color: #0A1330; }
.btn--light:hover { background: var(--brand-lift); }

.btn--sm { font-size: 13.5px; padding: 8px 16px; border-radius: 8px; }
.btn--nav { background: var(--surface); color: var(--ink); border-color: var(--line-3); }
.btn--nav:hover { border-color: var(--brand); color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.btn-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

/* ==========================================================================
   8. Hero + product mockups
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--hero);
}
.hero--soft { background: var(--hero-soft); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero .wrap { position: relative; }
.hero-body { padding-top: clamp(64px, 9vw, 104px); }

.badge {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-3);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm); text-decoration: none;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex-shrink: 0;
}
.badge a, .badge .badge-cta { color: var(--brand); font-weight: 600; text-decoration: none; }

.hero h1 { margin: 34px auto 0; max-width: 780px; }
.hero .lede { margin: 24px auto 0; max-width: 560px; }
.hero .btn-row { margin-top: 34px; }

/* Browser-chrome mockup that bleeds off the bottom of the hero */
.mockup {
  max-width: 760px; margin: clamp(40px, 6vw, 64px) auto 0;
  background: var(--surface);
  border: 1px solid var(--line-3); border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-lift);
  padding: 20px 24px 0;
  text-align: left;
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-2);
}
.mockup-bar i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex-shrink: 0;
}
.mockup-url {
  margin-left: 14px; font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--faint); overflow: hidden; min-width: 0;
  text-overflow: ellipsis; white-space: nowrap;
}
.mockup-list { display: flex; flex-direction: column; gap: 10px; padding: 18px 4px 26px; }

.job {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 13px 16px;
}
.job-main { flex: 1; min-width: 0; }
.job-title { font-size: 14.5px; font-weight: 600; }
.job-meta  { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.job--dim  { opacity: .65; }

.pill {
  font-size: 11.5px; font-weight: 600; border-radius: 999px;
  padding: 4px 11px; white-space: nowrap; flex-shrink: 0;
}
.pill--applied  { color: var(--ok);     background: var(--ok-soft); }
.pill--referred { color: var(--brand-2); background: var(--brand-soft); }
.pill--seen     { color: var(--muted);  background: var(--line-2); }

/* Stat strip on the ApplyOnce page */
.stats { display: flex; gap: 10px; margin-top: 18px; }
.stat {
  flex: 1; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.stat b { display: block; font-size: 20px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--faint); }
.stat--ok b    { color: var(--ok); }
.stat--brand b { color: var(--brand-2); }

/* ==========================================================================
   9. Cards & panels
   ========================================================================== */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.card h3 { margin-top: 12px; }
.card p  { margin-top: 8px; }

.card--link { text-decoration: none; display: block; transition: border-color .15s ease, transform .15s ease; }
.card--link:hover { border-color: var(--brand); transform: translateY(-2px); }

/* Dark navy feature panel (used for the ApplyOnce spotlight) */
.panel {
  background: var(--panel); color: var(--panel-ink);
  border-radius: 20px; padding: clamp(34px, 5vw, 56px) clamp(28px, 4vw, 48px);
  position: relative; overflow: hidden; text-decoration: none; display: block;
}
.panel::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, #2E5CFF55, transparent 70%);
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }
.panel h2, .panel h3 { color: var(--panel-ink); }
.panel p { color: var(--panel-muted); }
a.panel:hover { background: var(--panel-hover); }

.panel-split {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 28px;
}

/* Pale gradient CTA box */
.cta {
  border: 1px solid var(--line); background: var(--cta-grad);
  border-radius: 20px; padding: clamp(40px, 6vw, 64px) var(--gutter); text-align: center;
}
.cta h2 { margin: 18px auto 0; max-width: 520px; }
.cta .btn { margin-top: 28px; }

/* Spotlight: the ApplyOnce card that replaced the 3-tool roadmap grid */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: center; }
.spotlight-icon { width: 56px; height: 56px; border-radius: 14px; }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; line-height: 1.55; color: var(--panel-muted); }
.feature-list svg { flex-shrink: 0; margin-top: 3px; }

.num { font-family: 'Spline Sans Mono', ui-monospace, monospace; font-size: 11px; color: var(--brand); }

/* Changelog */
.entry { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.entry:first-of-type { border-top: 0; padding-top: 0; }
.entry-meta { font-family: 'Spline Sans Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--faint); }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px;
  padding: 3px 10px; background: var(--brand-soft); color: var(--brand-2);
}

/* ==========================================================================
   10. FAQ — native <details name> gives exclusive-open with zero JS
   ========================================================================== */

.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 28px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: background .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary span { flex: 1; }
.faq summary::after {
  content: '+';
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 17px; color: var(--faint); line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 28px 24px; margin-top: -6px; max-width: 62ch; }
.faq .answer p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer .wrap {
  padding-block: 40px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.foot-brand svg { width: 20px; height: 20px; }
.foot-name { font-size: 14.5px; font-weight: 700; }
.foot-legal { font-size: 13.5px; color: var(--faint); margin-left: 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .15s ease;
}
.foot-nav a:hover { color: var(--ink); }

/* ==========================================================================
   12. Motion + responsive
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1);
}
/* No-JS / reduced-motion safety net: never leave content invisible */
.no-js .reveal { opacity: 1; transform: none; }

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

@media (max-width: 900px) {
  .grid--3, .grid--2, .grid--split, .grid--faq, .spotlight {
    grid-template-columns: 1fr; gap: 32px;
  }
  .entry { grid-template-columns: 1fr; gap: 12px; }
  .panel-split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }

  .site-header .wrap { gap: 16px; }

  /* Nav collapses into a disclosure panel */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    border: 1px solid var(--line-3); background: var(--surface); color: var(--ink);
  }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line-2); }
  .nav .btn { margin-top: 12px; justify-content: center; }

  .stats { flex-wrap: wrap; }
  .stat { min-width: calc(50% - 5px); }
  .btn { width: 100%; }
  .btn--sm, .btn--nav { width: auto; }
  .btn-row .btn { width: 100%; }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq .answer { padding: 0 20px 20px; }
  .card { padding: 24px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .btn, .hero::before { display: none !important; }
  body { background: #fff; color: #000; }
}
