/* TakeCast website. Same palette and tokens as the app (podcastsorter/ui/index.html, "graphite and REC red"):
   graphite and soft grey like an editing app, red only for what is active (the open page, switches, checks, the
   record dot); main buttons are --primary; selected tiles get a --primary border. Colours ONLY through the
   tokens below. Night / day: the site follows the system until the sun/moon button is pressed (remembered).
   Graphite gradient (--carbon) only on inactive surfaces: hero fade, footer, the demo's library. */
:root {
  color-scheme: dark;
  /* night = Resolve-like graphite, as in the app (2026-11-24) */
  --bg: #1c1c1f; --panel: #26262a; --tile: #303035; --head: #202024; --text: #ececec; --muted: #9a9aa0;
  --line: #3a3a40; --line2: #4a4a51; --edge: #141416;
  --accent: #ff3b30; --accent-text: #ffffff; --accent-soft: #49292b;
  --primary: #ececec; --primary-text: #1c1c1f;
  --ok: #4cc27a; --ok-soft: #2c3f37; --warn: #ffbf4a; --warn-soft: #493e2f;
  --bad: #ff645a; --bad-soft: #493032;
  --sel: #3c3c43; --wash: rgba(255,255,255,.045); --tab-on: #161619;
  --pic-bg: #36363c; --pic-line: #74747b; --pic-ink: #e8e8e8;
  --vid: #3b82f6; --aud: #34c46a;
  --cg: #f06ba8; --ch: #e8a33d; --cw: #9a88ff;
  --nav: rgba(32,32,36,.86); --shadow: rgba(0,0,0,.6); --film-text: #fff; --wave-on-aud: #d9ffe5;
  /* the drawn camera frames in the demo: a studio with a warm light */
  --wall-top: #3b342e; --wall: #1d1a18; --lamp: #ffe2b4; --rim: #ffd59a; --skin: #c99f86; --skin-lit: #e3b994; --skin-shade: #6e4d3d;
  --hair: #231914; --mic: #0f0f0f; --foam: #262626; --wood: #2a1f18; --wood-lit: #5a4434; --paper: #e9e6df; --window: #8ea2b4;
  --leaf: #3f5a3a; --book-a: #6b4a3a; --book-b: #3e4a5a; --book-c: #7a6a4a; --shade: #000; --vig: .7;
  --carbon: linear-gradient(rgba(255,255,255,.045), rgba(0,0,0,.25));   /* graphite, lighter at the top, like the icon */
  --carbon-size: auto;
  --mono: ui-monospace, Menlo, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  /* day = soft cool grey, no pure white, as in the app (the user's pick "B", 2026-11-24) */
  --bg: #d3d3d6; --panel: #e1e1e4; --tile: #ebebee; --head: #d8d8db; --text: #161616; --muted: #5b5b60;
  --line: #c3c3c8; --line2: #aeaeb4; --edge: #b6b6bb;
  --accent: #e0281d; --accent-text: #ffffff; --accent-soft: #f3d6d4;
  --primary: #161616; --primary-text: #ffffff;
  --ok: #177a44; --ok-soft: #d3e8db; --warn: #8f5c0e; --warn-soft: #ede0c6;
  --bad: #d22a1e; --bad-soft: #f1d5d2;
  --sel: #c7c7cc; --wash: rgba(0,0,0,.035); --tab-on: #ebebee;
  --pic-bg: #cdcdd1; --pic-line: #8e8e89; --pic-ink: #262626;
  --vid: #2563eb; --aud: #1f9d55;
  --cg: #d23f86; --ch: #b9790f; --cw: #6d5ad6;
  --nav: rgba(216,216,219,.88); --shadow: rgba(0,0,0,.18); --wave-on-aud: #e6fff0;
  --wall-top: #f1ebe3; --wall: #cfc5b8; --lamp: #fff3dc; --rim: #fff0d2; --mic: #1e1e1e; --foam: #3a3a3a; --wood: #8a6a4e; --wood-lit: #c09d79;
  --paper: #ffffff; --window: #e4eef6; --leaf: #6f8f5f; --book-a: #a57a62; --book-b: #6f8099; --book-c: #b9a476; --shade: #2e261f; --vig: .4;
  --carbon: linear-gradient(rgba(255,255,255,.45), rgba(0,0,0,.04));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* top bar: like the app's header */
.top { position: sticky; top: 0; z-index: 30; background: var(--nav); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.top .links { display: flex; gap: 4px; margin-left: auto; height: 100%; }
.top .links a { display: flex; align-items: center; padding: 0 11px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.top .links a:hover { color: var(--text); }
.top .links a.on { color: var(--text); border-bottom-color: var(--accent); }
.iconbtn { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted); }
.iconbtn:hover { color: var(--text); background: var(--tile); border-color: var(--line); }
.iconbtn svg { width: 18px; height: 18px; }
.theme .moon, :root[data-theme="light"] .theme .sun { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
.theme:hover svg { color: var(--accent); }

/* buttons: like the app's */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--line2); background: var(--tile); color: var(--text); padding: 10px 18px;
  cursor: pointer; text-decoration: none; transition: border-color .12s, filter .12s; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); font-weight: 700; }
.btn.primary:hover { filter: brightness(.9); }
.btn.small { padding: 6px 13px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }

/* hero */
.hero { position: relative; isolation: isolate; padding: 80px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--carbon);
  background-size: var(--carbon-size); -webkit-mask-image: linear-gradient(#000, transparent 90%); mask-image: linear-gradient(#000, transparent 90%); }
.rec { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px;
  background: var(--panel); margin-bottom: 22px; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -.025em; }
.hero h1 .dim { color: var(--muted); }
.hero p { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero small { display: block; margin-top: 14px; color: var(--muted); font-size: 13.5px; }

/* section heads: like the app's page header — red number, uppercase name */
section.s { padding: 80px 0; border-top: 1px solid var(--line); }
.kick { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.num { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 4px;
  background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 800; letter-spacing: 0; }
section h2 { font-size: clamp(27px, 4vw, 40px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.015em; }
.lead { color: var(--muted); max-width: 700px; margin: 0 0 36px; }

/* ---------- the tour: step text on the left, the app window held on the right ---------- */
.tour { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 40px; align-items: start; }
.steps { padding: 6vh 0 30vh; }
.step { min-height: 62vh; padding: 18px 0; opacity: .32; transition: opacity .3s; cursor: pointer; }
.step.on { opacity: 1; }
.step .kick { margin-bottom: 8px; }
.step h3 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.step p { color: var(--muted); margin: 0 0 10px; font-size: 16px; }
.step ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.step li { position: relative; padding-left: 18px; margin: 4px 0; }
.step li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.step.on li::before { background: var(--accent); }
.stage { position: sticky; top: 76px; }
.stagebar { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.stagebar .btn { padding: 5px 12px; font-size: 13px; }
.stagebar .prog { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.stagebar .prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.mcap { display: none; }

/* ---------- features, report, editors, compare, price, testers ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--tile); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.tile h3 { margin: 0 0 6px; font-size: 17px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.tile .ic svg { width: 22px; height: 22px; }
.tile .tag { display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line2); border-radius: 4px; padding: 1px 6px; }

.report { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.paper { background: var(--tile); color: var(--text); border-radius: 10px; padding: 22px; font-size: 13.5px;
  border: 1px solid var(--line); box-shadow: 0 24px 60px var(--shadow); }
.paper h4 { margin: 0 0 12px; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line2); display: flex; gap: 8px; align-items: center; }
.paper h4 small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12px; }
.paper ul { padding: 0; margin: 0; }
.paper li { list-style: none; padding: 6px 10px 6px 30px; border-radius: 6px; margin: 5px 0; position: relative; }
.paper li::before { position: absolute; left: 11px; font-weight: 800; }
.paper .ok { background: var(--ok-soft); } .paper .ok::before { content: "✓"; color: var(--ok); }
.paper .w { background: var(--warn-soft); } .paper .w::before { content: "!"; color: var(--warn); }
.paper .b { background: var(--bad-soft); } .paper .b::before { content: "✕"; color: var(--bad); }
.paper .who { margin-top: 12px; font-size: 13px; }
.paper .who b { color: var(--pc, var(--text)); }
.bar { position: relative; height: 12px; border-radius: 2px; margin: 4px 0 10px; overflow: hidden;
  background: color-mix(in srgb, var(--aud) 35%, var(--tile)); box-shadow: inset 0 1.5px 0 var(--pc, transparent); }
.bar i { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--warn) 55%, var(--tile)); border-top: 2px solid var(--warn); }

.editors { display: flex; gap: 10px; flex-wrap: wrap; }
.editors div { background: var(--tile); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; font-weight: 650; font-size: 15px; }
.editors span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--head); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare th.us { color: var(--text); }
.y { color: var(--ok); font-weight: 800; } .n { color: var(--muted); opacity: .6; }

.price { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 760px; }
.price .tile.sel { border: 2px solid var(--primary); }
.price .amt { font-size: 34px; font-weight: 800; margin: 6px 0; letter-spacing: -.02em; }
.price .btn { margin-top: 16px; }

.tester { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; max-width: 640px; }
.tester h2 { font-size: 26px; }
.tester form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tester input { flex: 1; min-width: 200px; font: inherit; background: var(--tile); border: 1px solid var(--line2); color: var(--text);
  border-radius: 8px; padding: 10px 14px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--mono); }
.tester input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.tester .msg { margin-top: 10px; color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px;
  background-image: var(--carbon); background-size: var(--carbon-size); }
footer .wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
footer .privacy { flex-basis: 100%; margin: 0 0 4px; max-width: 70ch; } footer .privacy b { color: var(--text); }

@media (max-width: 980px) {
  .tour { grid-template-columns: 1fr; gap: 0; }
  .steps { display: none; }
  .stage { position: static; }
  .mcap { display: block; min-height: 190px; margin-top: 16px; padding: 18px 20px; background: var(--panel);
    border: 1px solid var(--line); border-radius: 10px; }
  .mcap h3 { margin: 0 0 6px; font-size: 20px; }
  .mcap p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
  .mcap ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--muted); }
  .grid { grid-template-columns: 1fr 1fr; }
  .report { grid-template-columns: 1fr; }
  .top .links { display: none; }
  .top .get { margin-left: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid, .price { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero { padding-top: 56px; }
  section.s { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rec i { animation: none; } }

/* a page clicked in the demo window: its text slides in beside the window */
.step.arrive { animation: stepArrive .7s cubic-bezier(.25,.8,.3,1); }
@keyframes stepArrive { from { transform: translateX(-10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.arrive { animation: none; } }

/* PRE-LAUNCH: price, testers and Get TakeCast are hidden with the hidden attribute (2026-11-30) */
[hidden] { display: none !important; }
@media (max-width: 980px) { .top .theme { margin-left: auto; } .top .get { margin-left: 0; } }

/* "More" under a step: the details a curious reader opens, the rest stays short (2026-11-30) */
.step details.more, .mcap details.more { margin-top: 6px; }
.step details.more summary, .mcap details.more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.step details.more summary::-webkit-details-marker, .mcap details.more summary::-webkit-details-marker { display: none; }
.step details.more summary::before, .mcap details.more summary::before { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: 2px; }
.step details.more[open] summary::before, .mcap details.more[open] summary::before { transform: rotate(45deg); }
.step details.more summary:hover, .mcap details.more summary:hover { color: var(--text); }
.step details.more summary:focus-visible, .mcap details.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.step details.more ul { margin-top: 4px; font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .step details.more summary::before { transition: none; } }

/* ---------- launch: price badges, "coming soon" buttons, the notify form, legal pages, footer links (2026-12-02) ---------- */
.price.three { grid-template-columns: repeat(3, 1fr); max-width: none; }
.price .tile { display: flex; flex-direction: column; align-items: flex-start; }
.price .tile p { flex: 1; }
.price .amt s { font-size: 20px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.pbadge { display: inline-block; margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 6px; }
.btn.soon { cursor: default; opacity: .55; }
.btn.soon:hover { border-color: var(--line2); filter: none; }
.btn.primary.soon:hover { border-color: var(--primary); }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.notifybox { margin-top: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; max-width: 760px; }
.notifybox h2 { font-size: 26px; margin-bottom: 6px; }
.notifybox > p { color: var(--muted); margin: 0; }
form.notify { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
form.notify input[type=email] { flex: 1; min-width: 220px; font: inherit; font-size: 16px; background: var(--tile); border: 1px solid var(--line2);
  color: var(--text); border-radius: 8px; padding: 10px 14px; }
form.notify input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
form.notify .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.notify button:disabled { opacity: .6; cursor: default; }
form.notify .nmsg { flex-basis: 100%; color: var(--muted); font-size: 14px; }
form.notify .nmsg.ok { color: var(--ok); font-weight: 600; } form.notify .nmsg.bad { color: var(--bad); }

.dochero { position: relative; isolation: isolate; padding: 60px 0 10px; }
.dochero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--carbon);
  -webkit-mask-image: linear-gradient(#000, transparent 90%); mask-image: linear-gradient(#000, transparent 90%); }
.dochero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -.02em; }
.dochero .lead { margin-bottom: 20px; }
.doc > * { max-width: 760px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -.005em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 22px 0 4px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc p b, .doc li b { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a, .fine a, .nmsg a, .flinks a { text-decoration-color: var(--line2); text-underline-offset: 3px; }
.doc a:hover, .fine a:hover, .nmsg a:hover { text-decoration-color: var(--accent); }

footer .flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; flex-basis: 100%; }
footer .flinks a { color: var(--text); text-decoration: none; }
footer .flinks a:hover { color: var(--accent); }
.docpage .top .links a.on { color: var(--text); border-bottom-color: var(--accent); }

@media (max-width: 980px) { .price.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price.three { grid-template-columns: 1fr; } .notifybox { padding: 20px; } form.notify button { width: 100%; justify-content: center; } }
