/* The app's own look (design/my-recorder-visual-audit.md in the app): a charcoal studio with a cool blue accent;
   red only means recording, amber means overlays. */
:root {
  --canvas: #101217;
  --panel: #181c24;
  --raised: #222834;
  --line: #343d4d;
  --well: #10151d;
  --ink: #f2f5fa;
  --ink-2: #adb8c9;
  --ink-3: #7d889b;
  --blue: #94acff;
  --blue-ink: #101729;
  --red: #ff667a;
  --red-deep: #e8354f;
  --amber: #edc17a;
  --green: #77d8b3;
  --violet: #b9a3ff;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  font: 600 0.78em/1.5 var(--mono);
  text-align: center;
  color: #d2d9e4;
  background: #2a3341;
  border: 1px solid #465266;
  border-bottom-width: 2px;
  border-radius: 6px;
  margin: 0 1px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgb(255 102 122 / 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink);
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 16px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; background: #30394a; }
.btn-small { font-size: 14px; padding: 6px 14px; border-radius: 8px; }
.btn-primary {
  font-size: 18px; padding: 15px 26px; border-radius: 14px;
  color: #fff; border: 0;
  background: linear-gradient(180deg, #ff7486, var(--red-deep));
  box-shadow: 0 10px 30px -8px rgb(232 53 79 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff8796, #f04560); transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgb(232 53 79 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn-primary svg { width: 20px; height: 20px; fill: currentColor; margin-top: -3px; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(16 18 23 / 0.75);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgb(52 61 77 / 0.5);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--ink-2); font-size: 15px; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 78% 40%, rgb(148 172 255 / 0.16), transparent 70%),
    radial-gradient(30% 40% at 15% 20%, rgb(255 102 122 / 0.12), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); font-weight: 750; letter-spacing: -0.035em; margin: 18px 0 22px; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--red), #ff9a7a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.cta { margin-top: 34px; }

/* The animated recording: camera, screen + bubble, screen, on a 15 s loop */
.stage-wrap { margin: 0; position: relative; }
.layout-pills {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  width: max-content; margin: 0 auto 16px; padding: 3px;
  background: #10151e; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; color: var(--ink-2);
}
.layout-pills span:not(.pill-glow) { position: relative; padding: 5px 14px; text-align: center; }
.pill-glow {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3);
  background: #334568; border-radius: 7px;
  animation: pill 15s infinite;
}
@keyframes pill {
  0%, 30% { transform: translateX(0); }
  33%, 63% { transform: translateX(100%); }
  66%, 96% { transform: translateX(200%); }
  100% { transform: translateX(0); }
}

.stage {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: #0b0d12;
  border: 1px solid #3a4456;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8), 0 0 0 8px rgb(255 255 255 / 0.03), 0 0 80px -20px rgb(148 172 255 / 0.25);
  container-type: inline-size;
}

.screen { position: absolute; inset: 0; background: linear-gradient(160deg, #1d2333, #12161f); display: flex; flex-direction: column; }
.win-bar { display: flex; align-items: center; gap: 1.1cqi; height: 6.5cqi; padding: 0 2cqi; background: #232a3a; border-bottom: 1px solid #2f384b; }
.win-bar i { width: 1.4cqi; height: 1.4cqi; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 2cqi; font: 1.8cqi/1 var(--mono); color: #8d98ad; }
.win-body { flex: 1; display: flex; }
.side { width: 21%; padding: 2.4cqi 1.8cqi; background: #181d29; border-right: 1px solid #262e3f; display: flex; flex-direction: column; gap: 1.6cqi; }
.side b { height: 1.1cqi; border-radius: 1cqi; background: #333d52; }
.side b.on { background: #4c5f8f; }
.code { flex: 1; padding: 2.6cqi 3cqi; display: flex; flex-direction: column; gap: 1.55cqi; }
.code p { display: flex; gap: 1cqi; height: 1.3cqi; }
.code p.in { padding-left: 3.5cqi; }
.code p.in2 { padding-left: 7cqi; }
.code s { display: block; border-radius: 1cqi; background: #5b6680; text-decoration: none; }
.code s.k { background: #c792ea; }
.code s.t { background: #82aaff; }
.code s.f { background: #7fdbca; }
.code s.s { background: #edc17a; }
.code s.c { background: #3d475c; }

.cam {
  position: absolute; overflow: hidden;
  animation: cam 15s infinite cubic-bezier(0.65, 0, 0.35, 1);
  /* bubble: 26% of the height, square, 4% in from the bottom-right corner */
  --bw: calc(26% * 9 / 16);
}
.cam svg { width: 100%; height: 100%; transform-origin: 50% 62%; animation: zoom 15s infinite cubic-bezier(0.65, 0, 0.35, 1); }
/* a round bubble shows the middle of the camera picture, so the person is zoomed in a little, as in the app */
@keyframes zoom { 0%, 30% { transform: none; } 33%, 96% { transform: scale(1.7); } 100% { transform: none; } }
@keyframes cam {
  0%, 30% { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; opacity: 1; }
  33%, 63% { left: calc(100% - 26% * 9 / 16 - 3%); top: calc(100% - 26% - 5.3%); width: calc(26% * 9 / 16); height: 26%; border-radius: 50%; box-shadow: 0 0 0 0.5cqi rgb(255 255 255 / 0.9), 0 1cqi 3cqi rgb(0 0 0 / 0.5); opacity: 1; }
  66%, 96% { left: calc(100% - 26% * 9 / 16 - 3%); top: calc(100% - 26% - 5.3%); width: calc(26% * 9 / 16); height: 26%; border-radius: 50%; box-shadow: 0 0 0 0.5cqi rgb(255 255 255 / 0.9); opacity: 0; transform: scale(0.6); }
  100% { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; opacity: 1; transform: none; }
}

/* overlays, timed to the layout they belong to */
.lower-third {
  position: absolute; left: 5%; bottom: 9%;
  display: flex; flex-direction: column;
  padding: 1.4cqi 2.4cqi 1.4cqi 2cqi;
  background: rgb(16 18 23 / 0.82); border-left: 0.6cqi solid var(--violet); border-radius: 0.6cqi;
  animation: lt 15s infinite;
}
.lower-third b { font-size: 2.8cqi; line-height: 1.2; }
.lower-third span { font-size: 1.9cqi; color: var(--ink-2); }
@keyframes lt {
  0%, 5% { opacity: 0; transform: translateX(-4cqi); }
  9%, 25% { opacity: 1; transform: none; }
  29%, 100% { opacity: 0; transform: translateX(-4cqi); }
}
.flash {
  position: absolute; left: 34%; top: 26%;
  padding: 1.3cqi 2.4cqi; border-radius: 3cqi;
  font-size: 2.3cqi; font-weight: 650; color: #241a06;
  background: var(--amber); box-shadow: 0 1cqi 3cqi rgb(0 0 0 / 0.45);
  animation: flash 15s infinite;
}
@keyframes flash {
  0%, 39% { opacity: 0; transform: scale(0.6); }
  42% { opacity: 1; transform: scale(1.08); }
  44%, 58% { opacity: 1; transform: scale(1); }
  61%, 100% { opacity: 0; transform: scale(0.9); }
}
.title-card {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  padding: 2.2cqi 4cqi; border-radius: 1.4cqi; text-align: center;
  font-size: 4.2cqi; font-weight: 750; letter-spacing: -0.02em;
  background: rgb(16 18 23 / 0.88); border: 1px solid rgb(148 172 255 / 0.4);
  animation: card 15s infinite;
}
.title-card small { display: block; font-size: 1.8cqi; font-weight: 600; color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase; }
@keyframes card {
  0%, 70% { opacity: 0; transform: translateY(2cqi); }
  74%, 90% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; }
}

/* the floating control bar */
.hud {
  display: flex; align-items: center; gap: 12px;
  width: min(92%, 460px); margin: 18px auto 0; position: relative;
  padding: 8px 10px 8px 16px;
  font-size: 13px; color: var(--ink);
  background: rgb(24 28 36 / 0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.7);
}
.hud-rec { display: inline-flex; align-items: center; gap: 9px; font: 600 14px var(--mono); }
.meter { width: 54px; height: 6px; border-radius: 3px; background: var(--well); border: 1px solid var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green); animation: talk 2.2s steps(11) infinite; }
@keyframes talk {
  0% { width: 30%; } 10% { width: 62%; } 20% { width: 45%; } 30% { width: 78%; } 40% { width: 36%; } 50% { width: 66%; }
  60% { width: 22%; } 70% { width: 58%; } 80% { width: 74%; } 90% { width: 40%; } 100% { width: 30%; }
}
.hud-sp { flex: 1; }
.hud-btn { padding: 5px 10px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); white-space: nowrap; }
.hud-btn.stop { background: #4a2631; border-color: #83424f; color: #ff9aa8; }

/* Sections */
.band { padding: 104px 0; border-top: 1px solid rgb(52 61 77 / 0.45); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head h2, .split-copy h2, .dl h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 720; letter-spacing: -0.03em; margin: 14px 0 18px; text-wrap: balance; }
.sec-head p:not(.eyebrow), .split-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
.split-copy p + p { margin-top: 16px; }
.muted { color: var(--ink-3) !important; font-size: 16px !important; }
.aside-line { margin-top: 32px; color: var(--ink-3); font-size: 15px; }

/* Layout cards */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { position: relative; padding: 16px 16px 22px; background: var(--panel); border: 1px solid #262d3a; border-radius: 18px; }
.shot h3 { font-size: 20px; margin: 18px 4px 6px; }
.shot p { color: var(--ink-2); font-size: 15px; margin: 0 4px; padding-right: 90px; }
.shot .keys { position: absolute; right: 18px; bottom: 22px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #222a3c, #141924); border: 1px solid #2c3445; }
.thumb .lines {
  position: absolute; inset: 14% 12%;
  background: repeating-linear-gradient(180deg, #3d4862 0 6px, transparent 6px 16px);
  mask: linear-gradient(90deg, #000 60%, transparent);
  border-radius: 3px;
}
.thumb .bubble, .thumb .person { position: absolute; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #f2c8a8 0 18%, transparent 19%), radial-gradient(ellipse 60% 40% at 50% 100%, #4a5f94 0 99%, transparent 100%), linear-gradient(160deg, #3a4867, #1d2333); }
.thumb .bubble { width: 24%; aspect-ratio: 1; right: 4%; bottom: 7%; box-shadow: 0 0 0 2px #fff; }
.thumb .person { inset: 0; border-radius: 0; background: radial-gradient(circle at 50% 42%, #f2c8a8 0 11%, transparent 11.5%), radial-gradient(ellipse 30% 34% at 50% 100%, #4a5f94 0 99%, transparent 100%), radial-gradient(60% 80% at 80% 20%, rgb(255 201 131 / 0.3), transparent), linear-gradient(160deg, #3a4867, #1d2333); }

/* Go back */
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tapes { padding: 32px 28px; background: var(--panel); border: 1px solid #262d3a; border-radius: 20px; }
.tape-label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.tape { display: flex; gap: 4px; height: 56px; }
.clip {
  display: flex; align-items: center; padding: 0 12px; min-width: 0;
  font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #d5e2ff; background: #283c65; border-radius: 8px;
}
.clip.bad { color: #ffd0d6; background: repeating-linear-gradient(135deg, #5a2532 0 8px, #4a1f2a 8px 16px); box-shadow: inset 0 0 0 1px #a04a5a; font-style: italic; font-weight: 500; }
.clip.good { color: #d6fbe9; background: #1f4d3d; box-shadow: inset 0 0 0 1px #3d8a6c; }
.back-key { display: flex; align-items: center; gap: 4px; margin: 22px 0; color: var(--ink-2); font-size: 14px; }
.back-key span { margin-left: 10px; }
.back-key::before { content: "↶"; font-size: 22px; color: var(--red); margin-right: 8px; line-height: 1; }

/* AI */
.ai-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.card { padding: 28px; background: var(--panel); border: 1px solid #262d3a; border-radius: 20px; }
.card h3 { font-size: 20px; margin-bottom: 18px; }
.ask {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  background: var(--well); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px;
}
.ask-icon { color: var(--amber); }
.ask-out {
  position: relative; margin-top: 12px; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #f2c8a8 0 9%, transparent 9.5%), radial-gradient(ellipse 22% 36% at 50% 100%, #4a5f94 0 99%, transparent 100%), radial-gradient(60% 80% at 85% 15%, rgb(255 201 131 / 0.28), transparent), linear-gradient(160deg, #3a4867, #1d2333);
}
.mini-lt { position: absolute; left: 6%; bottom: 12%; display: flex; flex-direction: column; padding: 8px 14px 8px 12px; background: rgb(16 18 23 / 0.85); border-left: 4px solid var(--violet); border-radius: 4px; }
.mini-lt b { font-size: 15px; }
.mini-lt span { font-size: 12px; color: var(--ink-2); }
.kinds { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.chip { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; margin-right: 6px; }
.chip.amber { color: #241a06; background: var(--amber); }
.chip.blue { color: var(--blue-ink); background: var(--blue); }
.chip.violet { color: #1d1433; background: var(--violet); }
.yt-field { padding: 14px 0; border-top: 1px solid #262d3a; }
.yt-field:first-of-type { border-top: 0; padding-top: 0; }
.yt-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.yt-title { font-size: 17px; font-weight: 600; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.chapters time { display: inline-block; width: 3.2em; font: 500 14px var(--mono); color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--raised); border: 1px solid var(--line); color: var(--ink-2); }
.copy-row { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.copy { display: inline-block; padding: 2px 10px; margin-right: 6px; font-size: 13px; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #262d3a; border: 1px solid #262d3a; border-radius: 20px; overflow: hidden; }
.feat { padding: 30px 28px 32px; background: var(--panel); }
.feat svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--ink-2); }

/* Download */
.dl {
  position: relative; text-align: center; padding: 72px 24px 64px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 0%, rgb(255 102 122 / 0.16), transparent 70%), var(--panel);
  border: 1px solid #2a3140;
}
.dl-icon { margin: 0 auto 8px; border-radius: 22.5%; box-shadow: 0 24px 50px -16px rgb(0 0 0 / 0.8); }
.dl h2 { margin-bottom: 30px; }
.steps { list-style: none; padding: 0; margin: 44px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps li { display: flex; gap: 12px; padding: 18px; font-size: 15px; color: var(--ink-2); background: rgb(16 18 23 / 0.5); border: 1px solid #2a3140; border-radius: 14px; }
.steps li span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--blue-ink); background: var(--blue); }

/* FAQ */
details { border-top: 1px solid #262d3a; }
details:last-of-type { border-bottom: 1px solid #262d3a; }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 18px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--ink-3); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }

/* Footer */
.foot { padding: 36px 0 48px; border-top: 1px solid rgb(52 61 77 / 0.45); }
.foot-in { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--ink-3); }
.foot-in p { flex: 1; }

/* Narrower screens */
@media (max-width: 980px) {
  .hero-in, .split-in, .ai-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-copy { text-align: center; }
  .lede { margin: 0 auto; }
  .shots, .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .band { padding: 72px 0; }
  .shots, .features, .steps { grid-template-columns: 1fr; }
  .hud { gap: 8px; font-size: 12px; padding-left: 12px; }
  .meter { display: none; }
  .tapes { padding: 22px 16px; }
  .foot-in { flex-direction: column; text-align: center; }
  .btn-primary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  /* the still picture: screen + me with a flash bubble */
  .cam { left: calc(100% - 26% * 9 / 16 - 3%); top: calc(100% - 26% - 5.3%); width: calc(26% * 9 / 16); height: 26%; border-radius: 50%; box-shadow: 0 0 0 0.5cqi #fff; }
  .pill-glow { transform: translateX(100%); }
  .cam svg { transform: scale(1.7); }
  .lower-third, .title-card { opacity: 0; }
}
