/* Yellowhum — site styles. Tokens and rules: Website/DESIGN.md. */

:root {
  /* colour */
  --canvas: #05060f;
  --surface-1: rgba(186, 214, 247, 0.03);
  --surface-2: rgba(186, 214, 247, 0.06);
  --surface-deep: rgba(8, 10, 22, 0.92);
  --edge: rgba(186, 215, 247, 0.12);
  --edge-strong: rgba(186, 215, 247, 0.24);
  --text-1: #eef4fc;
  --text-2: #d1e4fa;
  --text-3: #b4c2da;
  --text-4: #8e99ad;
  --yellow: #ffd23f;
  --yellow-deep: #f5b700;
  --yellow-ink: #141006;
  --yellow-glow: rgba(255, 210, 63, 0.18);
  --grid: rgba(186, 215, 247, 0.05);

  /* type */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* shape & depth */
  --r-pill: 999px;
  --r-card: 16px;
  --r-small: 8px;
  --depth-card: inset 0 1px 0 rgba(216, 236, 248, 0.10), inset 0 0 0 1px var(--edge), 0 24px 48px rgba(0, 0, 0, 0.35);
  --depth-float: inset 0 1px 0 rgba(216, 236, 248, 0.16), inset 0 0 0 1px var(--edge), inset 0 24px 48px rgba(168, 216, 245, 0.05), 0 30px 80px rgba(0, 0, 0, 0.55);

  /* layout */
  --max: 1200px;
  --text-max: 640px;
  --section-gap: 120px;
  --gutter: 24px;
}

@media (max-width: 720px) {
  :root { --section-gap: 72px; --gutter: 16px; }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-2);
  font: 400 16px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--text-1); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--yellow-ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--yellow); color: var(--yellow-ink); border-radius: var(--r-pill); }
.skip:focus { left: 12px; }

/* blueprint grid + yellow spotlight behind the top of the page */
.backdrop { position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: 0; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.backdrop::after {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 210, 63, 0.16), rgba(255, 210, 63, 0.05) 45%, transparent 75%);
  filter: blur(10px);
}

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main { position: relative; z-index: 1; }
section { padding-top: var(--section-gap); }

/* ---------- type ---------- */

h1, h2, h3 { color: var(--text-1); margin: 0; font-family: var(--font-display); }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-family: var(--font-text); font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.55; color: var(--text-3); }
.muted { color: var(--text-3); }
.small { font-size: 14px; color: var(--text-4); }

.glow-text {
  background: linear-gradient(180deg, #fff8dc 0%, var(--yellow) 60%, var(--yellow-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font: 500 13px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow::before, .eyebrow::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--edge-strong)); }
.eyebrow::after { transform: scaleX(-1); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; display: grid; gap: 18px; justify-items: center; }
.section-head .lead { max-width: var(--text-max); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border-radius: var(--r-pill);
  font: 600 15px/1 var(--font-text); letter-spacing: -0.005em; white-space: nowrap;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease, color .15s ease;
}
.btn-primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.4), 0 8px 32px var(--yellow-glow); }
.btn-primary:hover { background: #ffdc5c; color: var(--yellow-ink); box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.6), 0 10px 40px rgba(255, 210, 63, 0.3); transform: translateY(-1px); }
.btn-primary:active { background: var(--yellow-deep); transform: none; }
.btn-ghost { background: var(--surface-2); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--edge); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--edge-strong); background: rgba(186, 214, 247, 0.10); }
.btn-small { min-height: 36px; padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: rgba(5, 6, 15, 0.6); box-shadow: inset 0 -1px 0 var(--edge); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font-display); color: var(--text-1); letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-3); }
.nav-links a:hover { color: var(--text-1); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--edge); }
.lang a { padding: 5px 10px; border-radius: var(--r-pill); font: 600 12px/1 var(--font-text); color: var(--text-4); }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--edge); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-end .btn { display: none; } }

/* ---------- hero ---------- */

.hero { padding-top: 88px; text-align: center; }
.hero-copy { display: grid; justify-items: center; gap: 22px; max-width: 860px; margin: 0 auto; }
.hero .lead { max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 13px; color: var(--text-4); }
.hero-note b { color: var(--text-3); font-weight: 500; }
@media (max-width: 720px) { .hero { padding-top: 56px; } }

/* product mockup: the notes window, with floating glass chips around it */
.stage { position: relative; max-width: 900px; margin: 64px auto 0; }
.stage::before { content: ""; position: absolute; inset: 10% 8% -6%; background: radial-gradient(closest-side, rgba(255, 210, 63, 0.12), transparent 70%); filter: blur(30px); z-index: -1; }

.window { border-radius: var(--r-card); background: var(--surface-deep); box-shadow: var(--depth-float); text-align: left; overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; box-shadow: inset 0 -1px 0 var(--edge); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(186, 215, 247, 0.18); }
.window-bar .title { margin: 0 auto; font: 500 12px/1 var(--font-mono); color: var(--text-4); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.window-body { padding: 26px 30px 30px; font-size: 15px; line-height: 1.65; }
.window-body .md-h1 { font: 600 21px/1.3 var(--font-display); color: var(--text-1); margin-bottom: 10px; }
.window-body .meta { color: var(--text-4); font-size: 13.5px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.window-body .md-h2 { font: 600 14px/1.3 var(--font-mono); color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin: 4px 0 12px; }
.line { margin: 0 0 12px; color: var(--text-2); }
.line b { color: var(--text-1); font-weight: 600; }
.line time { font: 500 12.5px/1 var(--font-mono); color: var(--text-4); margin: 0 6px 0 4px; }
.line .me { color: var(--yellow); }
.shot { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 10px 12px; border-radius: var(--r-small); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13.5px; color: var(--text-3); }
.shot .thumb { width: 64px; height: 40px; border-radius: 6px; background: linear-gradient(135deg, rgba(186, 214, 247, 0.18), rgba(186, 214, 247, 0.04)); box-shadow: inset 0 0 0 1px var(--edge); position: relative; flex: none; }
.shot .thumb::after { content: ""; position: absolute; right: 9px; bottom: 7px; width: 18px; height: 10px; border: 1.5px solid var(--yellow); border-radius: 3px; }
.cursor { display: inline-block; width: 8px; height: 16px; margin-left: 2px; vertical-align: -2px; background: var(--yellow); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 14px; background: rgba(12, 15, 30, 0.88); box-shadow: var(--depth-float);
  font-size: 13.5px; color: var(--text-2); text-align: left; white-space: nowrap;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chip b { color: var(--text-1); font-weight: 600; display: block; font-size: 13.5px; }
.chip span { color: var(--text-4); font-size: 12px; }
.chip .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--edge); flex: none; }
.chip .ico svg { width: 16px; height: 16px; }
.chip.rec .ico { background: rgba(255, 95, 87, 0.14); }
/* chips sit on the window's edges, never over the transcript */
.chip-1 { left: -48px; top: -28px; }
.chip-2 { right: -48px; bottom: -30px; }
.chip-3 { left: -36px; bottom: -30px; }
.stage { margin-bottom: 30px; }
.levels { display: flex; gap: 3px; align-items: end; height: 16px; }
.levels i { width: 3px; border-radius: 2px; background: var(--yellow); animation: lvl 1s ease-in-out infinite; }
.levels i:nth-child(2) { animation-delay: .15s; } .levels i:nth-child(3) { animation-delay: .3s; } .levels i:nth-child(4) { animation-delay: .45s; }
@keyframes lvl { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@media (max-width: 1060px) { .chip-1 { left: 12px; } .chip-2 { right: 12px; } .chip-3 { left: 12px; } }
@media (max-width: 900px) { .chip-3 { display: none; } }
@media (max-width: 760px) {
  .stage { margin-top: 44px; }
  .chip { position: static; margin: 0 auto 10px; width: fit-content; }
  .chip-2, .chip-3 { display: none; }
  .window-body { padding: 20px 18px 22px; font-size: 14.5px; }
}

/* ---------- works with ---------- */

.services { padding-top: 64px; text-align: center; }
.services ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.services li { padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--edge); font-size: 14px; font-weight: 500; color: var(--text-2); }

/* ---------- features ---------- */

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card { border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--depth-card); padding: 26px; display: grid; gap: 12px; align-content: start; }
.card p { color: var(--text-3); font-size: 15.5px; line-height: 1.6; }
.tile { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(216, 236, 248, 0.1); margin-bottom: 4px; }
.tile svg { width: 22px; height: 22px; color: var(--text-2); }
.tile svg .accent { color: var(--yellow); }
.card.wide { grid-column: span 2; }
@media (max-width: 620px) { .card.wide { grid-column: auto; } }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.steps li { counter-increment: step; }
.steps .card::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px/1 var(--font-mono); color: var(--yellow-ink); background: var(--yellow); box-shadow: 0 0 18px var(--yellow-glow);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- privacy band ---------- */

.band { border-radius: 24px; padding: clamp(28px, 5vw, 56px); background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(255, 210, 63, 0.07), transparent 60%), var(--surface-1); box-shadow: var(--depth-card); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.band .copy { display: grid; gap: 16px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.checks li svg { width: 22px; height: 22px; color: var(--yellow); margin-top: 1px; }
.checks li span { color: var(--text-4); display: block; font-size: 14px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- languages ---------- */

.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-small); background: rgba(199, 211, 234, 0.08); box-shadow: inset 0 0 0 1px var(--edge); font-size: 14px; font-weight: 500; color: var(--text-2); }
.badge .code { font: 600 11px/1 var(--font-mono); color: var(--text-4); letter-spacing: .06em; }
.badge.first { box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.45); }
.badge.first .code { color: var(--yellow); }

/* ---------- pricing ---------- */

.price { max-width: 560px; margin: 0 auto; text-align: center; padding: 36px 32px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--depth-float); display: grid; gap: 18px; justify-items: center; }
.price .tag { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); padding: 7px 12px; border-radius: var(--r-pill); background: rgba(255, 210, 63, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.3); }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-align: left; }
.price li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; }
.price li svg { width: 20px; height: 20px; color: var(--yellow); margin-top: 2px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--edge); }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--edge-strong); background: rgba(186, 214, 247, 0.045); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--text-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-3); }

/* ---------- final CTA & footer ---------- */

.cta { text-align: center; display: grid; gap: 22px; justify-items: center; padding: 72px 24px; border-radius: 24px; background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 210, 63, 0.12), transparent 70%), var(--surface-1); box-shadow: var(--depth-card); }

.site-footer { margin-top: var(--section-gap); padding: 40px 0 48px; box-shadow: inset 0 1px 0 var(--edge); position: relative; z-index: 1; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot a, .foot p { font-size: 14px; color: var(--text-4); }
.foot a:hover { color: var(--text-1); }

/* ---------- legal pages ---------- */

.doc { max-width: 720px; margin: 0 auto; padding-top: 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text-3); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--yellow); }
.doc .updated { color: var(--text-4); font-size: 14px; }

/* reveal on scroll (only when JS is on; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.eyebrow-left { justify-content: flex-start; }
.eyebrow-left::before { display: none; }
.lead.narrow { max-width: 560px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: 72px; }
.notfound > div { display: grid; gap: 18px; justify-items: center; }

/* ---------- voice notes split section ---------- */

.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.split .copy { display: grid; gap: 18px; }
.split .eyebrow { justify-content: flex-start; }
.split .eyebrow::before { display: none; }
.agents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.raw { font: 400 13.5px/1.7 var(--font-mono); color: var(--text-3); white-space: pre-wrap; word-break: break-word; margin: 0; }
.raw .h { color: var(--text-1); font-weight: 600; }
.raw .k { color: var(--yellow); }
.raw .d { color: var(--text-4); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } }
