/* HintBuddy website — feature-first, built around real app screenshots.
   Layout: nav / centered hero + product shot / spotlights (alternating) / feature grid /
   shortcuts strip / steps / pricing / FAQ / final CTA / footer. Light + dark themes via tokens. */
/* Theme: follows the system by default; the nav toggle pins light/dark (html[data-theme]). */
:root {
  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  /* dark */
  --bg: #090c12; --bg-2: #0f131b; --card: #131924; --card-2: #1a2130;
  --line: #242c3b; --line-2: #323c50;
  --text: #eef2f7; --soft: #cdd5e1; --muted: #95a1b5; --dim: #66728a;
  --accent: #7aa2ff; --accent-2: #a98bff; --accent-end: #8f9dff; --accent-ink: #0a1230;
  --amber: #ffb547; --rec: #ff5c63; --ok: #5fd39a; --danger: #ff8a8a;
  --nav-bg: rgba(9,12,18,.72); --grid: rgba(255,255,255,.035);
  --q-bg: #2a2112; --q-line: #5a4520; --q-text: #ffe2b0;
  --eyebrow: #ffd6d8;
  --shadow-lg: 0 40px 100px rgba(0,0,0,.55); --shadow-md: 0 12px 30px rgba(0,0,0,.4);
  --panel: var(--card); --panel-2: var(--card-2);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb; --bg-2: #ffffff; --card: #ffffff; --card-2: #eef1f7;
    --line: #e2e6ee; --line-2: #cfd6e2;
    --text: #0d1321; --soft: #2e384a; --muted: #5a6579; --dim: #7a8599;
    --accent: #3b66f5; --accent-2: #7a55f0; --accent-end: #5b6cf7; --accent-ink: #ffffff;
    --amber: #b86e00; --rec: #e0353c; --ok: #148a55; --danger: #c62828;
    --nav-bg: rgba(246,247,251,.8); --grid: rgba(13,19,33,.05);
    --q-bg: #fff4dd; --q-line: #f1d39a; --q-text: #6b4300;
    --eyebrow: #a1232a;
    --shadow-lg: 0 30px 80px rgba(30,45,90,.16); --shadow-md: 0 10px 26px rgba(30,45,90,.12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f7fb; --bg-2: #ffffff; --card: #ffffff; --card-2: #eef1f7;
  --line: #e2e6ee; --line-2: #cfd6e2;
  --text: #0d1321; --soft: #2e384a; --muted: #5a6579; --dim: #7a8599;
  --accent: #3b66f5; --accent-2: #7a55f0; --accent-end: #5b6cf7; --accent-ink: #ffffff;
  --amber: #b86e00; --rec: #e0353c; --ok: #148a55; --danger: #c62828;
  --nav-bg: rgba(246,247,251,.8); --grid: rgba(13,19,33,.05);
  --q-bg: #fff4dd; --q-line: #f1d39a; --q-text: #6b4300;
  --eyebrow: #a1232a;
  --shadow-lg: 0 30px 80px rgba(30,45,90,.16); --shadow-md: 0 10px 26px rgba(30,45,90,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 30; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 20px var(--f-display); color: var(--text); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #0b1020; font-size: 16px; box-shadow: 0 6px 18px rgba(122,162,255,.35); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px; font: 650 15.5px var(--f-body); border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--dim); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-end)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 30px rgba(122,162,255,.28); }
.btn-primary:hover { filter: brightness(1.06); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; box-shadow: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* ── hero ── */
.hero { position: relative; text-align: center; padding-block: 34px 24px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(520px 320px at 50% 30%, rgba(122,162,255,.22), transparent 70%),
    radial-gradient(420px 260px at 78% 18%, rgba(169,139,255,.16), transparent 70%),
    radial-gradient(380px 240px at 20% 40%, rgba(255,181,71,.08), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 650 13px var(--f-body); color: var(--eyebrow); background: rgba(255,92,99,.10); border: 1px solid rgba(255,92,99,.35); padding: 5px 14px; border-radius: 999px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,92,99,.6); } 100% { box-shadow: 0 0 0 8px rgba(255,92,99,0); } }
.hero h1 { font: 800 clamp(32px, 4.4vw, 54px)/1.04 var(--f-display); letter-spacing: -.035em; margin: 0 auto 12px; max-width: 18ch; text-wrap: balance; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--soft); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 38em; margin: 0 auto 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.works-with { margin-top: 16px; color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center; }
.works-with b { color: var(--muted); font-weight: 600; }
.shot-frame { position: relative; margin: 52px auto 0; max-width: 980px; border-radius: 20px; padding: 10px; background: linear-gradient(180deg, rgba(122,162,255,.35), rgba(122,162,255,.05) 60%); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(122,162,255,.15); }
.shot-frame img { border-radius: 14px; width: 100%; }
.callout { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 13px; font: 600 13.5px var(--f-body); color: var(--soft); box-shadow: var(--shadow-md); white-space: nowrap; }
.callout b { color: var(--text); }
.callout .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.callout.c1 { left: -18px; top: 22%; } .callout.c1 .dot { background: var(--amber); }
.callout.c2 { right: -18px; top: 46%; } .callout.c2 .dot { background: var(--ok); }
.callout.c3 { left: 6%; bottom: -18px; } .callout.c3 .dot { background: var(--accent); }

/* ── sections ── */
section.block { padding-block: 80px; }
.kicker { font: 700 13px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.block h2 { font: 800 clamp(30px, 3.6vw, 46px)/1.08 var(--f-display); letter-spacing: -.025em; margin: 10px 0 12px; text-wrap: balance; }
.block .sub { color: var(--muted); font-size: 17.5px; max-width: 42em; margin: 0 0 40px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* spotlights */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-block: 34px; }
.spot.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.spot.flip .spot-text { order: 2; }
.spot-text h3 { font: 800 clamp(26px, 2.8vw, 34px)/1.12 var(--f-display); letter-spacing: -.02em; margin: 8px 0 12px; }
.spot-text p { color: var(--soft); margin: 0 0 18px; font-size: 17px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: rgba(95,211,154,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd39a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.spot-shot { border-radius: 18px; padding: 8px; background: linear-gradient(160deg, rgba(122,162,255,.28), rgba(169,139,255,.06)); box-shadow: var(--shadow-lg); min-width: 0; }
.spot-shot img { border-radius: 12px; width: 100%; }
.live-demo { border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); }
.demo-line { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--muted); }
.demo-line b { color: var(--amber); }
.demo-line .count { color: var(--amber); font-family: var(--f-mono); font-size: 13.5px; margin-left: auto; white-space: nowrap; }
.wave { display: flex; gap: 3px; align-items: center; height: 18px; flex: none; }
.wave span { width: 3px; border-radius: 2px; background: var(--amber); animation: wv 1s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: .15s; } .wave span:nth-child(3) { animation-delay: .3s; } .wave span:nth-child(4) { animation-delay: .45s; }
@keyframes wv { 0%, 100% { height: 4px; } 50% { height: 17px; } }
.demo-q { background: var(--q-bg); border: 1px solid var(--q-line); color: var(--q-text); border-radius: 12px; padding: 11px 14px; font-weight: 700; }
.demo-a { color: var(--text); padding: 0 4px 0 14px; }
.demo-a b { color: var(--text); }
.caret { display: inline-block; width: 8px; height: 1em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.steps-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps-mini div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: var(--muted); }
.steps-mini b { display: block; color: var(--text); font-size: 14px; }

/* feature grid */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.f { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; transition: border-color .2s, transform .2s; }
.f:hover { border-color: var(--line-2); transform: translateY(-2px); }
.f h3 { margin: 14px 0 6px; font: 700 17px var(--f-display); }
.f p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(122,162,255,.12); color: var(--accent); }
.ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.amber { background: rgba(255,181,71,.12); color: var(--amber); }
.ic.green { background: rgba(95,211,154,.12); color: var(--ok); }
.ic.violet { background: rgba(169,139,255,.14); color: var(--accent-2); }
.ic.red { background: rgba(255,92,99,.12); color: var(--rec); }

/* shortcuts */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--soft); font-size: 15px; }
kbd { font: 600 12.5px var(--f-mono); color: var(--text); background: var(--card-2); border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; padding: 3px 8px; white-space: nowrap; }
.key-row span:last-child { display: flex; gap: 4px; align-items: center; color: var(--dim); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.step::before { counter-increment: step; content: counter(step); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 800 17px var(--f-display); margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font: 700 19px var(--f-display); }
.step p { margin: 0; color: var(--muted); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; min-width: 0; }
.price.featured { border-color: rgba(122,162,255,.65); background: linear-gradient(180deg, rgba(122,162,255,.14), var(--card) 60%); box-shadow: 0 24px 60px rgba(122,162,255,.12); }
.price h3 { margin: 0; font: 700 19px var(--f-display); }
.price .amount { font: 800 46px/1.05 var(--f-display); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 14.5px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 9px; color: var(--soft); font-size: 15px; }
.price li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 9px; }
.price .btn { margin-top: auto; }
.badge { position: absolute; top: -13px; left: 26px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 750 12px var(--f-body); padding: 4px 12px; border-radius: 999px; }
.price-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; color: var(--muted); font-size: 15px; }
.price-note b { color: var(--text); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.faq summary { cursor: pointer; font: 650 17.5px var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* final cta */
.final { text-align: center; padding: 60px 24px; border-radius: 28px; background: radial-gradient(500px 240px at 50% 0%, rgba(122,162,255,.25), transparent 70%), var(--bg-2); border: 1px solid rgba(122,162,255,.3); }
.final h2 { margin-top: 0; }
.final .sub { margin: 0 auto 28px; }

footer { border-top: 1px solid var(--line); margin-top: 60px; padding-block: 30px 44px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); }

/* legal pages */
.legal { max-width: 720px; padding-block: 56px 24px; }
.legal h1 { font: 800 40px/1.1 var(--f-display); letter-spacing: -.02em; margin: 0 0 6px; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font: 700 21px var(--f-display); margin: 34px 0 8px; }
.legal p, .legal li { color: var(--soft); }
.legal li { margin-bottom: 6px; }

@media (max-width: 1000px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout { display: none; }
}
@media (max-width: 860px) {
  .spot, .spot.flip { grid-template-columns: 1fr; gap: 28px; }
  .spot.flip .spot-text { order: 0; }
  .steps, .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .fgrid, .keys, .steps-mini { grid-template-columns: 1fr; }
  section.block { padding-block: 56px; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .eyebrow i, .caret, .wave span { animation: none; } html { scroll-behavior: auto; } .f:hover { transform: none; } }

/* AI buddy greeting — one compact row above the headline */
.logo-buddy { width: 32px; height: 32px; }
.buddy-hello { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.buddy { width: 54px; height: 54px; flex: none; filter: drop-shadow(0 8px 18px rgba(122,162,255,.35)); animation: float 4s ease-in-out infinite; }
.bubble { position: relative; text-align: left; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px 14px 14px 4px; padding: 8px 14px; color: var(--soft); font-size: 14.5px; line-height: 1.45; box-shadow: var(--shadow-md); max-width: 440px; }
.bubble b { color: var(--text); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* theme toggle + nav sign-in */
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--soft); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.theme-btn:hover { color: var(--text); border-color: var(--dim); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; } :root[data-theme="light"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-btn .sun { display: block; } :root:not([data-theme="dark"]) .theme-btn .moon { display: none; } }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* demo player: a real video when one is configured, otherwise an animated walkthrough of every button */
.demo { margin: 26px auto 0; max-width: 980px; text-align: left; }
.player { position: relative; border-radius: 18px; padding: 8px; background: linear-gradient(180deg, rgba(122,162,255,.35), rgba(122,162,255,.05) 60%); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(122,162,255,.15); }
.player video, .player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.tour { position: relative; border-radius: 12px; overflow: hidden; background: #0b0f17; aspect-ratio: 16 / 9; color: #eef2f7; font-size: clamp(11px, 1.35vw, 15px); container-type: inline-size; }
.tour-app { position: absolute; inset: 13% 9% 5%; display: flex; flex-direction: column; border-radius: 14px; background: rgba(17,22,32,.96); border: 1px solid #2a3344; box-shadow: 0 30px 70px rgba(0,0,0,.55); overflow: hidden; transition: opacity .4s; }
.tour-bg { position: absolute; inset: 0; background: radial-gradient(60% 70% at 30% 30%, #1b2740, transparent 70%), radial-gradient(50% 60% at 80% 80%, #24193a, transparent 70%), #0b0f17; }
.tour-bg::after { content: "Your interview call"; position: absolute; left: 2%; bottom: 3%; font: 600 .8em var(--f-body); color: #5d6a82; }
.t-top { display: flex; align-items: center; gap: .6em; padding: .55em .9em; border-bottom: 1px solid #222b3a; font-size: .85em; color: #95a1b5; }
.t-top .t-brand { font: 800 1.05em var(--f-display); color: #eef2f7; display: flex; align-items: center; gap: .4em; }
.t-top .t-brand img { width: 1.4em; height: 1.4em; }
.t-pill { margin-left: auto; display: inline-flex; align-items: center; gap: .4em; padding: .15em .7em; border-radius: 99px; border: 1px solid #323c50; font-weight: 700; font-size: .85em; }
.t-pill i { width: .55em; height: .55em; border-radius: 50%; background: #66728a; }
.tour[data-live="1"] .t-pill { color: #ffd6d8; border-color: rgba(255,92,99,.5); }
.tour[data-live="1"] .t-pill i { background: #ff5c63; animation: ring 1.4s ease-out infinite; }
.t-ic { padding: .1em .45em; border: 1px solid #323c50; border-radius: .4em; color: #cdd5e1; }
.t-body { flex: 1; padding: .9em 1.1em; display: flex; flex-direction: column; gap: .6em; overflow: hidden; }
.t-q { background: #2a2112; border: 1px solid #5a4520; color: #ffe2b0; border-radius: .7em; padding: .5em .8em; font-weight: 700; opacity: 0; transform: translateY(6px); transition: .35s; }
.t-a { color: #eef2f7; line-height: 1.5; min-height: 3em; transition: font-size .3s; }
.t-a:empty::before { content: "Answers appear here, right below the question."; color: #5d6a82; }
.t-a b { color: #fff; }
.t-q.show { opacity: 1; transform: none; }
.t-live { display: flex; align-items: center; gap: .6em; padding: .45em .9em; border-top: 1px solid #222b3a; color: #95a1b5; font-size: .9em; min-height: 2.3em; }
.t-live b { color: #ffb547; }
.t-dock { display: flex; align-items: center; gap: .45em; padding: .55em .9em; border-top: 1px solid #222b3a; flex-wrap: nowrap; }
.t-btn { position: relative; display: inline-flex; align-items: center; gap: .35em; padding: .35em .7em; border-radius: .6em; border: 1px solid #323c50; background: #1a2130; color: #cdd5e1; font-weight: 650; font-size: .85em; white-space: nowrap; transition: box-shadow .25s, border-color .25s, background .25s; }
.t-btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-seg { display: inline-flex; border: 1px solid #323c50; border-radius: .6em; overflow: hidden; }
.t-seg .t-btn { border: 0; border-radius: 0; }
.t-btn.on { background: rgba(255,92,99,.16); color: #ffd6d8; border-color: rgba(255,92,99,.55); }
.t-btn.sel { background: #2b3550; color: #fff; }
.t-btn.hl, .t-ic.hl { border-color: #7aa2ff; box-shadow: 0 0 0 .25em rgba(122,162,255,.35), 0 0 1.6em rgba(122,162,255,.45); color: #fff; }
.t-spacer { margin-left: auto; }
.t-cap { position: absolute; left: 50%; top: 3%; transform: translate(-50%, 0); display: flex; align-items: center; gap: .6em; padding: .55em 1em; border-radius: 99px; background: rgba(10,14,22,.92); border: 1px solid #3a4560; color: #eef2f7; font-weight: 650; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 3; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.t-cap kbd { font-size: .8em; color: #eef2f7; background: #1a2130; border-color: #323c50; }
.t-cap .n { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: linear-gradient(135deg, #7aa2ff, #a98bff); color: #0a1230; font-weight: 800; font-size: .85em; flex: none; }
.t-shot { position: absolute; inset: 0; border: .25em solid #7aa2ff; border-radius: 12px; opacity: 0; pointer-events: none; z-index: 2; }
.t-shot.flash { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.t-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); z-index: 3; }
.t-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7aa2ff, #a98bff); }
.tour-play { position: absolute; right: 1.6%; bottom: 3%; z-index: 4; border: 1px solid #3a4560; background: rgba(10,14,22,.85); color: #eef2f7; border-radius: 99px; padding: .3em .8em; font: 650 .8em var(--f-body); cursor: pointer; }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.chapters button { border: 1px solid var(--line-2); background: var(--card); color: var(--muted); border-radius: 99px; padding: 6px 13px; font: 600 13.5px var(--f-body); cursor: pointer; }
.chapters button:hover { color: var(--text); }
.chapters button[aria-current="true"] { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
@container (max-width: 520px) { .t-btn .lbl { display: none; } .tour-app { inset: 15% 3% 4%; } .tour-bg::after, .tour-play { display: none; } .t-cap kbd { display: none; } }

/* minimal tutorial: one line per step, numbered */
.tut { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tut-step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.tut-step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 800 15px var(--f-display); }
.tut-step h3 { font: 700 17px var(--f-display); margin: 12px 0 4px; }
.tut-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tut-step kbd { font-size: 11.5px; }
@media (max-width: 1000px) { .tut { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .tut { grid-template-columns: 1fr; }
  .buddy-hello { gap: 8px; } .buddy { width: 44px; height: 44px; } .bubble { font-size: 13.5px; }
  .nav .wrap { gap: 10px; }
  .nav-links { gap: 10px; }
  .hero { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .buddy, .tour[data-live="1"] .t-pill i { animation: none; } }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }
@media (max-width: 480px) { .nav-dl { display: none; } }

/* ── My HintBuddy (account page) ── */
.signin-card { max-width: 440px; margin: 64px auto 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px 28px; box-shadow: var(--shadow-md); }
.signin-card h1 { font: 800 28px var(--f-display); margin: 4px 0 0; }
.signin-card p { margin: 0; }
.signin-card .fine { font-size: 13.5px; color: var(--dim); }
.signin-card #gsi-button { min-height: 44px; }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me-email { color: var(--muted); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; padding-top: 28px; margin-bottom: 16px; }
.acct-head h1 { font: 800 32px var(--f-display); margin: 0; letter-spacing: -.02em; }
.acct-head p { margin: 2px 0 0; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; margin-bottom: 14px; }
.kpis.acct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.credit-card { background: linear-gradient(160deg, rgba(122,162,255,.18), rgba(169,139,255,.06) 60%), var(--bg-2); border: 1px solid rgba(122,162,255,.4); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-label { font-size: 13px; font-weight: 650; color: var(--muted); }
.cc-value { font: 800 40px/1.1 var(--f-display); letter-spacing: -.02em; }
.cc-value.low { color: var(--amber); } .cc-value.out { color: var(--danger); }
.cc-sub { color: var(--soft); font-size: 14.5px; }
.cc-bar { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; margin: 10px 0 4px; }
.cc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.cc-exp { font-size: 13px; color: var(--dim); }
.credit-card .btn { align-self: flex-start; margin-top: 10px; }
.empty-row { color: var(--muted); padding: 18px 10px !important; }
.mini-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-plan { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); min-width: 0; }
.mini-plan:hover { text-decoration: none; border-color: var(--accent); }
.mini-plan.featured { border-color: rgba(122,162,255,.6); }
.mini-plan .amount { font: 800 26px var(--f-display); }
.mini-plan .muted { font-size: 13.5px; }
@media (max-width: 860px) { .acct-grid, .mini-plans { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .me-email { display: none; } }
@media (max-width: 620px) { .tour { aspect-ratio: 4 / 5; font-size: 12px; } .player video, .player iframe { aspect-ratio: 16 / 9; } }
.mini-plan.picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(122,162,255,.3); }

/* downloads */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; text-align: left; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-card.mine { border-color: rgba(122,162,255,.6); box-shadow: 0 0 0 3px rgba(122,162,255,.15); }
.dl-card > svg { width: 30px; height: 30px; color: var(--text); }
.dl-card h3 { margin: 6px 0 0; font: 700 20px var(--f-display); }
.dl-card p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.dl-card .btn { margin-top: auto; }
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.dl-row .btn { flex: 1 1 auto; }
.install-help { max-width: 760px; margin: 18px auto 0; text-align: left; color: var(--soft); }
.install-help summary { cursor: pointer; font-weight: 650; color: var(--accent); text-align: center; }
.install-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 12px; font-size: 14.5px; }
.install-cols ol { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.install-help code { font: 500 13px var(--f-mono); background: var(--card-2); padding: 1px 5px; border-radius: 5px; }
@media (max-width: 700px) { .dl-grid, .install-cols { grid-template-columns: 1fr; } }

/* "Your download has started" panel */
.dl-started { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid rgba(122,162,255,.5); border-radius: 18px; padding: 18px 18px 16px; box-shadow: var(--shadow-lg); color: var(--soft); font-size: 14.5px; text-align: left; animation: dl-in .3s ease-out; }
@keyframes dl-in { from { opacity: 0; transform: translateY(12px); } }
.dl-head { display: flex; align-items: center; gap: 12px; padding-right: 22px; }
.dl-head b { display: block; color: var(--text); font: 700 17px var(--f-display); }
.dl-head span { color: var(--muted); font-size: 13.5px; }
.dl-started ol { margin: 12px 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.dl-started b { color: var(--text); }
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-x { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.dl-x:hover { color: var(--text); background: var(--card-2); }
@media (max-width: 620px) { .dl-started { right: 16px; left: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .dl-started { animation: none; } }
.t-cap:empty { display: none; }

/* skeleton loaders (shown while account / admin data loads) */
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--card-2) 25%, var(--line) 45%, var(--card-2) 65%); background-size: 300% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-title { height: 30px; width: 220px; margin: 0 0 10px; }
.sk-big { height: 40px; width: 60%; margin: 8px 0; }
.sk-btn { height: 34px; width: 120px; border-radius: 10px; }
.sk-row { display: flex; gap: 16px; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.sk-row .sk { height: 12px; flex: 1; }
.sk-row .sk:first-child { flex: 2; }
.sk-chart { height: 220px; border-radius: 12px; }
.sk-pill { width: 260px; height: 44px; border-radius: 999px; margin: 0 auto; }
#gsi-button:empty::before { content: ""; display: block; width: 260px; height: 44px; border-radius: 999px; background: linear-gradient(90deg, var(--card-2) 25%, var(--line) 45%, var(--card-2) 65%); background-size: 300% 100%; animation: sk 1.3s ease-in-out infinite; }
.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .sk, #gsi-button:empty::before { animation: none; } }
