@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@500&display=swap");

/* KareeraAI design tokens (see the KareeraAI Design Language doc) */
:root {
  --bg: #fbfaf7;
  --bg-2: #f4f2ec;
  --surface: #ffffff;
  --ink: #191917;
  --muted: #5f5b53;
  --line: #e7e3da;
  --accent: #1f3f37;          /* primary: forest */
  --accent-ink: #fbfaf7;
  --accent-soft: #e7efe9;     /* AI tint */
  --ai-ink: #2f5d50;
  --person: #f08a5d;          /* coral: people only */
  --person-ink: #b4532a;
  --person-soft: #fde8dc;
  --on-person: #1a1a18;
  --success: #2f7d57;
  --success-soft: #e2f0e7;
  --warning: #a16207;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 2px rgba(25, 25, 23, 0.04), 0 12px 32px rgba(25, 25, 23, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1412; --bg-2: #131917; --surface: #161c1a; --ink: #eceee9; --muted: #9aa49f; --line: #2a322e;
    --accent: #7fbfa8; --accent-ink: #0f1f1a; --accent-soft: #1f2e29; --ai-ink: #7fbfa8;
    --person: #f39a72; --person-ink: #f39a72; --person-soft: #3a2419; --on-person: #1a1a18;
    --success: #6fcf97; --success-soft: #1b2e24; --warning: #e3b341;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1412; --bg-2: #131917; --surface: #161c1a; --ink: #eceee9; --muted: #9aa49f; --line: #2a322e;
  --accent: #7fbfa8; --accent-ink: #0f1f1a; --accent-soft: #1f2e29; --ai-ink: #7fbfa8;
  --person: #f39a72; --person-ink: #f39a72; --person-soft: #3a2419; --on-person: #1a1a18;
  --success: #6fcf97; --success-soft: #1b2e24; --warning: #e3b341;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 0.8em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.visually-hidden:focus { width: auto; height: auto; clip: auto; z-index: 20; top: 8px; left: 8px; padding: 8px 14px; background: var(--surface); border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img, .brand svg { width: 28px; height: 28px; border-radius: 7px; }
.brand span { color: var(--person); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); font: 600 15px/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter 120ms ease-out, background 120ms ease-out; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-person { background: var(--person); color: var(--on-person); }
.nav .btn { min-height: 36px; padding: 8px 14px; font-size: 14px; color: var(--accent-ink); }

/* Hero */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ai-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--person); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--person-ink); }
.hero p.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .reassure { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Product mock in the hero */
.mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }
.mock-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.mock-bar .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mock-bar .go { padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; white-space: nowrap; }
.mock-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 8px; align-items: flex-start; }
.tick { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; border-radius: 999px; background: var(--success); color: var(--surface); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.tick.now { background: transparent; border: 2px solid var(--ai-ink); animation: pulse 1.6s ease-in-out infinite; }
.tick.next { background: transparent; border: 1px dashed var(--muted); }
@keyframes pulse { 50% { opacity: 0.35; } }
.steps .now-label { color: var(--ai-ink); font-weight: 500; }
.steps .next-label { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; background: var(--bg-2); color: var(--ink); white-space: nowrap; }
.chip.ok { background: var(--success-soft); color: var(--success); }
.chip.likely { color: var(--warning); }
.person { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: var(--person-soft); color: var(--person-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--person); }
.avatar.plain { width: 32px; height: 32px; font-size: 12px; background: var(--bg-2); color: var(--muted); box-shadow: none; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--person-ink); }
.draft { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.draft .label { font-size: 12px; color: var(--ai-ink); font-weight: 500; margin-bottom: 4px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .kicker { display: block; margin-bottom: 10px; color: var(--ai-ink); }
section h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 12px; }
section .sub { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
.section-head .sub { margin: 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--ai-ink); margin-bottom: 14px; }
.icon.person-icon { background: var(--person-soft); color: var(--person-ink); }
.step-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--ai-ink); font: 500 13px var(--mono); margin-bottom: 14px; }

/* How it works */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.flow li { position: relative; }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; }
.checks strong { display: block; }
.checks span.d { color: var(--muted); font-size: 15px; }
.dot { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; border-radius: 999px; background: var(--person-soft); color: var(--person-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.contact-stack { display: grid; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row .who { flex: 1; min-width: 0; }
.contact-row .who small { display: block; color: var(--muted); font-size: 13px; }
.why { margin: 12px 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; }

/* Callout and pricing teaser */
.callout { background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.callout h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); color: inherit; }
.callout p { margin: 0; opacity: 0.85; }
.callout .btn-primary { background: var(--accent-ink); color: var(--accent); }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
table.packs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.packs th, table.packs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.packs tr:last-child td { border-bottom: 0; }
.fineprint { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal .doc { max-width: 760px; }
.legal h1 { font-size: 40px; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 6px; }
.legal .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .hero-grid, .spotlight { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-body .steps-card { display: none; }
  .callout { padding: 32px 24px; }
}
