/* ============================================================================
   CareerNine marketing site — the ONE stylesheet.
   Every colour, font, radius and shadow below is copied from the app's design
   tokens (careerhive-hub/src/index.css + tailwind.config.ts). Do not invent new
   values here: if the app changes a token, change it in this block only.
   ========================================================================== */

/* ── Tokens (from the app's :root) ─────────────────────────────────────────── */
:root {
  /* Brand */
  --amber:        #F59E0B;              /* app token: hsl(38 92% 50%) */
  --amber-light:  #FFF6E5;              /* hsl(38 100% 95%) */
  --amber-glow:   #F7B23B;              /* hsl(38 92% 60%) */
  --amber-ink:    #C47F08;              /* hsl(38 92% 40%) — app's accent-foreground */
  /* The app's accent-foreground is 3.28:1 on white, which fails C5's 4.5:1
     floor for the small-caps eyebrow and the chips. Same hue and saturation,
     dropped to 32% lightness: 4.84:1 on white, 4.64:1 on --bg, 4.51:1 on
     --amber-light. Used for every amber-coloured TEXT on a light surface. */
  --amber-ink-aa: #9D6607;              /* hsl(38 92% 32%) */
  --navy:         #0F172A;              /* hsl(222 47% 11%) */
  --navy-light:   #222A3A;              /* hsl(220 26% 18%) */
  --navy-muted:   #333C4D;              /* hsl(220 20% 25%) */

  /* Surfaces */
  --bg:           #FBFAF9;              /* hsl(40 20% 98%) — app background */
  --card:         #FFFFFF;
  --muted:        #F2F0ED;              /* hsl(40 15% 94%) */
  --border:       #E9E7E2;              /* hsl(40 15% 90%) */

  /* Text */
  --ink:          #0F172A;              /* foreground */
  --ink-soft:     #6A7181;              /* hsl(220 10% 46%) — 4.69:1 on --bg */
  --on-navy:      #FBFAF9;              /* 17.15:1 on navy */
  --on-navy-soft: rgba(251, 250, 249, 0.72);

  /* Type */
  --font-heading: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Shape */
  --radius:       0.75rem;              /* app --radius */
  --radius-sm:    calc(var(--radius) - 4px);
  --radius-lg:    1rem;

  /* Elevation (app --shadow-*) */
  --shadow-card:     0 4px 20px -4px rgba(15, 23, 42, 0.08);
  --shadow-elevated: 0 12px 40px -8px rgba(15, 23, 42, 0.15);
  --shadow-honey:    0 8px 30px -6px rgba(245, 158, 11, 0.30);

  /* Gradients (app --gradient-*) */
  --gradient-honey: linear-gradient(135deg, #F59E0B, #F98C1F);
  --gradient-hero:  linear-gradient(135deg, #0F172A 0%, #222A3A 50%, #171F30 100%);

  /* Rhythm */
  --section-y: 96px;
  --gutter: 40px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* belt-and-braces: no sideways scroll */
}
img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: inherit;
}
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; }
p  { margin: 0 0 16px; }
/* A long unbreakable token must wrap, not widen the page. */
h1, h2, h3, h4, p, li, .qrow__q { overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }

/* Visible focus on everything interactive (C5) */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--on-navy);
  padding: 12px 20px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--white { background: var(--card); }
.section--bg    { background: var(--bg); }
.section--navy  { background: var(--navy); color: var(--on-navy); }
.section--navy h2 { color: var(--on-navy); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber-ink-aa);
  margin: 0 0 12px;
}
.section--navy .eyebrow { color: var(--amber); }

.lead { font-size: 20px; color: var(--ink-soft); max-width: 62ch; }
.section--navy .lead { color: var(--on-navy-soft); }
.section-head { max-width: 68ch; margin-bottom: 48px; }

/* ── Buttons (app's `hero` and `hero-outline` variants) ────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px;
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: opacity .18s ease, background-color .18s ease, color .18s ease;
}
.btn--primary {
  background: var(--gradient-honey);
  color: var(--navy);                      /* 8.38:1 on amber */
  box-shadow: var(--shadow-honey);
}
.btn--primary:hover { opacity: .9; }
/* Outline: NAVY ink, not the app's amber ink. Amber text on a light surface is
   2.13:1 and fails C5's 4.5:1 floor; the amber stays as the border. */
.btn--outline {
  background: transparent; color: var(--navy); border-color: var(--amber);
}
.btn--outline:hover { background: var(--amber); color: var(--navy); }
.section--navy .btn--outline { color: var(--on-navy); }
.section--navy .btn--outline:hover { background: var(--amber); color: var(--navy); }
.btn--lg { min-height: 56px; font-size: 18px; padding: 14px 34px; border-radius: var(--radius-lg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.textlink {
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}
.textlink:hover { border-bottom-color: var(--navy); }
.section--navy .textlink { color: var(--on-navy); }

/* ── Cards (app --radius + --shadow-card) ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.section--white .card { background: var(--bg); }
.section--navy .card {
  background: var(--navy-light); border-color: var(--navy-muted);
  color: var(--on-navy); box-shadow: none;
}
.card h3 { margin-bottom: 10px; }
.card p  { color: var(--ink-soft); font-size: 17px; }
.section--navy .card p { color: var(--on-navy-soft); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 28px;
}
.section--white .step { background: var(--bg); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  color: var(--navy); background: var(--amber-light);
  border: 2px solid var(--amber); border-radius: 50%;
}
.step h3 { font-size: 20px; }
.step p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* Icon + text feature rows */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature > div { min-width: 0; }
.feature-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--amber-light); border: 1px solid var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--amber-ink-aa); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section--navy .feature-icon { background: rgba(245,158,11,.14); border-color: var(--amber); }
.section--navy .feature-icon svg { stroke: var(--amber); }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.section--navy .feature p { color: var(--on-navy-soft); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { background: var(--bg); padding-block: 88px var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero--plain { padding-bottom: 72px; }
.hero--plain .lead { font-size: 20px; }

/* Hexagon field — the app's own hexagon-pattern data URI */
.hexfield {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='70' viewBox='0 0 60 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 20 L55 50 L30 65 L5 50 L5 20 Z' fill='none' stroke='%23F59E0B' stroke-width='0.5' opacity='0.07'/%3E%3C/svg%3E");
}
.section--navy.hexfield {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='70' viewBox='0 0 60 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 20 L55 50 L30 65 L5 50 L5 20 Z' fill='none' stroke='%23F59E0B' stroke-width='0.5' opacity='0.16'/%3E%3C/svg%3E");
  background-color: var(--navy);
}

/* ── Product illustrations (HTML/CSS only — no photos, no real people) ─────── */
.shot {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated);
  padding: 22px; max-width: 460px;
}
.shot__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}
.shot__label {
  font-family: var(--font-heading); font-size: 14px; font-weight: 600;
  color: var(--ink-soft); letter-spacing: .02em;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: var(--amber-light); color: var(--amber-ink-aa);
  border: 1px solid var(--amber);
}
.chip--navy { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.qrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.qrow__q { font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; }
.stars .on  { fill: var(--amber); }
.stars .off { fill: var(--border); }
.note {
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 15px; color: var(--ink); line-height: 1.55;
}
.shot__foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--ink-soft);
}
.shot__foot svg { width: 16px; height: 16px; stroke: var(--ink-soft); fill: none; stroke-width: 1.8; }
.shot__rows { display: grid; gap: 10px; }
.money {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.money:last-of-type { border-bottom: 0; }
.money b { font-family: var(--font-heading); font-size: 18px; }
.money--total { border-top: 2px solid var(--navy); border-bottom: 0; padding-top: 14px; margin-top: 4px; }
.money--total b { font-size: 24px; }
.muted-s { color: var(--ink-soft); font-size: 14px; }


/* ── The 1–10 scale (the navy "Aim for a nine" section) ───────────────────── */
.scale { margin: 32px 0 40px; max-width: 560px; }
.scale__row {
  display: flex; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0;
}
.scale__step {
  flex: 1 1 0; min-width: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: var(--radius-sm);
  background: var(--navy-light); border: 1px solid var(--navy-muted);
  font-family: var(--font-heading); font-size: 15px; font-weight: 600;
  color: var(--on-navy-soft);
}
.scale__step.is-nine {
  background: var(--gradient-honey); border-color: var(--amber);
  color: var(--navy); font-size: 19px; font-weight: 700;
  box-shadow: var(--shadow-honey);
}
/* Ten is drawn as the thing that isn't there: dashed, hollow, faded. */
.scale__step.is-ten {
  background: transparent; border: 1px dashed var(--navy-muted);
  color: rgba(251, 250, 249, 0.35);
}
.scale__key {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--on-navy-soft); margin: 0;
}
.scale__key span { display: inline-flex; align-items: center; gap: 8px; }
.scale__key i { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 14px; }
.scale__key .k-nine { background: var(--gradient-honey); }
.scale__key .k-ten { border: 1px dashed var(--navy-muted); }

/* ── Long-form prose helpers ──────────────────────────────────────────────── */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 20px; }
.section--navy .prose p { color: var(--on-navy-soft); }
.prose-lg { font-size: 20px; }
.display-para {
  font-family: var(--font-heading); font-size: 24px; font-weight: 600;
  line-height: 1.35; color: var(--ink);
}
.closing-line {
  font-family: var(--font-heading); font-style: italic; font-weight: 600;
  font-size: 30px; line-height: 1.25; color: var(--amber-ink-aa);
  margin: 40px 0 0;
}
/* `p.` not `.` — `.section--navy .prose p` above carries an element selector
   and would otherwise out-specify this and grey the line out. */
.section--navy p.closing-line { color: var(--amber); }   /* 8.38:1 on navy */
.sub-head { font-size: 26px; margin-top: 48px; }
.sub-head:first-of-type { margin-top: 0; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 64px;                                 /* app navbar: h-16 */
  background: rgba(251, 250, 249, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 32px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-size: 16px; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--amber); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.header-cta .login { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.header-cta .login:hover { text-decoration: underline; text-decoration-color: var(--amber); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;                    /* C1: 44x44 */
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--ink);
}
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .bars { display: none; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: 64px 40px; }
.site-footer img { height: 28px; width: auto; display: block; margin-bottom: 16px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.footer-tag { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--amber); margin: 0 0 12px; }
.footer-contact { color: var(--on-navy-soft); font-size: 16px; margin: 0; }
.footer-contact a { color: var(--on-navy); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin: 0; }
.footer-nav a { color: var(--on-navy); font-size: 16px; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--amber); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-muted);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  color: var(--on-navy-soft); font-size: 15px;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 28px; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item h2 { font-size: 24px; margin-bottom: 10px; }
.faq-item p { color: var(--ink-soft); margin: 0; }

/* Stacked prose lists used on How it works */
.phase { border-left: 3px solid var(--amber); padding-left: 24px; margin-bottom: 48px; }
.phase:last-child { margin-bottom: 0; }
.phase h2 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--amber-ink-aa); margin-bottom: 16px; }
.phase ul { list-style: none; padding: 0; margin: 0; }
.phase li { position: relative; padding-left: 28px; margin-bottom: 16px; font-size: 18px; }
.phase li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 10px; background: var(--amber);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.phase li:last-child { margin-bottom: 0; }

/* Final CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: 44px; }
.cta-band .lead { margin-inline: auto; margin-bottom: 32px; }
.cta-band .btn-row { justify-content: center; }

/* 404 */
.err { text-align: center; padding-block: 120px; }
.err .code { font-family: var(--font-heading); font-size: 96px; font-weight: 700; color: var(--amber-ink-aa); margin: 0 0 8px; line-height: 1; }

/* ── Phones (390x844 target) ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--4, .steps--3, .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  :root { --section-y: 64px; --gutter: 24px; }
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .lead, .hero--plain .lead { font-size: 17px; }
  .cta-band h2 { font-size: 30px; }
  .faq-item h2 { font-size: 21px; }
  .phase li { font-size: 16px; }
  .prose-lg { font-size: 17px; }
  .display-para { font-size: 20px; }
  .closing-line { font-size: 22px; }
  .sub-head { font-size: 22px; margin-top: 36px; }
  .scale__step { height: 38px; font-size: 12px; gap: 4px; }
  .scale__step.is-nine { font-size: 15px; }
  .scale__row { gap: 4px; }
  .card p, .step p, .feature p { font-size: 16px; }

  .grid--2, .grid--3, .grid--4, .steps--3, .steps--4 { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 48px 64px; }

  .menu-btn { display: inline-flex; }
  .nav, .header-cta { display: none; }
  /* Open state: the links drop below the bar as a panel */
  .site-header.is-open { height: auto; }
  .site-header.is-open .wrap { flex-wrap: wrap; height: auto; padding-block: 10px 20px; }
  .site-header.is-open .nav,
  .site-header.is-open .header-cta {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 4px; order: 3;
  }
  .site-header.is-open .nav a {
    padding: 14px 4px; border-bottom: 1px solid var(--border); min-height: 44px;
    display: flex; align-items: center;
  }
  .site-header.is-open .header-cta { gap: 14px; margin-top: 18px; }
  .site-header.is-open .header-cta .login {
    min-height: 44px; display: flex; align-items: center;
  }
  .site-header.is-open .header-cta .btn { width: 100%; }
  .shot { max-width: none; padding: 18px; }
  .btn { width: auto; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
