/* ==========================================================================
   SerpHaus Recorder Network — Archetype C: Split-Hero Bento Studio Grid
   Site 5: TikTok LIVE Recording & Replay Studio Guide (tiktoklivestreamrecorder.com)
   Distinct Shell, Bento Cards, Floating Pill Header, Deep Cyan-Teal (#0e7490) + Coral (#be123c)
   ========================================================================== */

:root {
  --bento-canvas: #f4f7fb;
  --bento-surface: #ffffff;
  --bento-midnight: #0b1120;
  --bento-midnight-card: #131c31;
  --bento-midnight-border: #233252;

  --ink-heading: #0f172a;
  --ink-body: #1e293b;
  --ink-muted: #475569;

  --accent-primary: #0e7490;
  --accent-hover: #155e75;
  --accent-soft: #ecfeff;
  --accent-border: #67e8f9;

  --accent-live: #be123c;
  --accent-live-soft: #fff1f2;

  --line-subtle: #dbe3ef;
  --line-strong: #bfd0e6;

  --ok-bg: #ecfdf5;
  --ok-border: #6ee7b7;
  --ok-ink: #065f46;

  --warn-bg: #fffbeb;
  --warn-border: #fcd34d;
  --warn-ink: #78350f;

  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;
  --danger-ink: #991b1b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-bento: 0 4px 18px rgba(15, 23, 42, 0.05);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background: var(--bento-canvas);
  color: var(--ink-body);
  font-family: var(--font-sans);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: #eaf0f8;
  border: 1px solid #d2ddec;
  padding: 0.1rem 0.36rem;
  border-radius: 5px;
  color: #0f172a;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0.85rem; }

/* Top Independence Strip */
.studio-ribbon {
  background: var(--bento-midnight);
  color: #cbd5e1;
  font-size: 0.79rem;
  padding: 0.45rem 1.25rem;
  border-bottom: 1px solid var(--bento-midnight-border);
}
.studio-ribbon__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.studio-ribbon code {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}
.studio-ribbon a { color: #67e8f9; font-weight: 600; }

/* Floating Pill Header */
.bento-header-wrap {
  padding: 0.9rem 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.96) 72%, rgba(244, 247, 251, 0));
}
.bento-header {
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-subtle);
  border-radius: 16px;
  padding: 0.65rem 1.1rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.bento-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  text-decoration: none;
  color: var(--ink-heading);
}
.bento-brand__title { display: block; font-weight: 800; font-size: 0.98rem; letter-spacing: -0.02em; line-height: 1.15; }
.bento-brand__sub { display: block; font-size: 0.72rem; color: var(--ink-muted); font-weight: 600; }

.nav-toggle {
  display: none;
  background: var(--bento-midnight);
  color: #fff;
  border: 0;
  padding: 0.46rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.bento-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.bento-nav a {
  text-decoration: none;
  color: var(--ink-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.bento-nav a:hover {
  background: #edf2f9;
  color: var(--ink-heading);
}
.bento-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.bento-nav .nav-cta {
  background: var(--accent-primary);
  color: #fff !important;
  margin-left: 0.25rem;
}
.bento-nav .nav-cta:hover {
  background: var(--accent-hover);
}

/* Main Shell */
.bento-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

/* Split Hero (2-Column Asymmetric) */
.split-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.35rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.split-hero__lead {
  background: var(--bento-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.15rem;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  background: var(--accent-live-soft);
  color: var(--accent-live);
  border: 1px solid #fecdd3;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 0.95rem;
}
.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-live);
}
.split-hero__lead h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.78rem, 2.9vw, 2.42rem);
  line-height: 1.17;
  letter-spacing: -0.025em;
  color: var(--ink-heading);
}
.split-hero__lead p {
  margin: 0 0 1.35rem;
  color: var(--ink-body);
  font-size: 1.01rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}
.btn-studio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.66rem 1.15rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-studio--primary {
  background: var(--accent-primary);
  color: #fff !important;
}
.btn-studio--primary:hover { background: var(--accent-hover); }
.btn-studio--ghost {
  background: #f8fafc;
  color: var(--ink-heading) !important;
  border-color: var(--line-strong);
}
.btn-studio--ghost:hover { background: #edf2f9; }

.hero-micro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line-subtle);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Right Column Midnight Spec Bento Card */
.hero-spec-card {
  background: var(--bento-midnight);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.75rem;
  border: 1px solid var(--bento-midnight-border);
  box-shadow: 0 12px 28px rgba(11, 17, 32, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-spec-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--bento-midnight-border);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}
.hero-spec-card__title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #67e8f9;
  font-weight: 800;
  margin: 0;
}
.hero-spec-card__badge {
  font-size: 0.72rem;
  background: rgba(103, 232, 249, 0.14);
  color: #a5f3fc;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
}
.spec-kv-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}
.spec-kv {
  background: var(--bento-midnight-card);
  border: 1px solid var(--bento-midnight-border);
  border-radius: 11px;
  padding: 0.72rem 0.9rem;
}
.spec-kv dt {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.18rem;
}
.spec-kv dd {
  margin: 0;
  font-size: 0.91rem;
  font-weight: 700;
  color: #f8fafc;
}
.spec-kv dd span {
  color: #67e8f9;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.hero-spec-card__foot {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--bento-midnight-border);
  font-size: 0.78rem;
  color: #94a3b8;
}
.hero-spec-card__foot a { color: #67e8f9; }

/* Modular Bento Grid */
.bento-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.1rem 0 1rem;
}
.bento-section-head h2 {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
  color: var(--ink-heading);
}
.bento-section-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}
.bento-tile {
  grid-column: span 4;
  background: var(--bento-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-tile--6 { grid-column: span 6; }
.bento-tile--8 { grid-column: span 8; }
.bento-tile--12 { grid-column: span 12; }
.bento-tile--dark {
  background: var(--bento-midnight);
  color: #f1f5f9;
  border-color: var(--bento-midnight-border);
}
.bento-tile--dark h3 { color: #fff !important; }
.bento-tile--dark p { color: #cbd5e1 !important; }
.bento-tile--dark a { color: #67e8f9; }

.tile-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
}
.tile-tag--warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-border); }
.tile-tag--ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-border); }
.tile-tag--live { background: var(--accent-live-soft); color: var(--accent-live); border-color: #fecdd3; }

.bento-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink-heading);
}
.bento-tile p {
  margin: 0 0 0.95rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.tile-link {
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

/* Subpage 2-Column Studio Article Grid */
.crumb-bar {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.crumb-bar ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.crumb-bar li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: #94a3b8;
}

.studio-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}
.studio-doc-card {
  background: var(--bento-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2.3rem;
  box-shadow: var(--shadow-bento);
}
.doc-head {
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}
.doc-head h1 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.62rem, 2.5vw, 2.12rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-heading);
}
.doc-head__meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.studio-aside {
  position: sticky;
  top: 5.4rem;
  display: grid;
  gap: 1rem;
}
.aside-box {
  background: var(--bento-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-bento);
}
.aside-box--dark {
  background: var(--bento-midnight);
  color: #f8fafc;
  border-color: var(--bento-midnight-border);
}
.aside-box__title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.aside-box--dark .aside-box__title { color: #67e8f9; }
.aside-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}
.aside-toc a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-body);
  display: block;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
}
.aside-toc a:hover {
  background: #edf2f9;
  color: var(--accent-primary);
}
.aside-kv {
  margin: 0;
  font-size: 0.83rem;
  display: grid;
  gap: 0.5rem;
}
.aside-kv div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.38rem;
}
.aside-kv span:last-child {
  font-family: var(--font-mono);
  color: #67e8f9;
  font-weight: 700;
}

/* Prose Typography & Callouts */
.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.32rem;
  color: var(--ink-heading);
  letter-spacing: -0.015em;
  scroll-margin-top: 6rem;
}
.prose h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.06rem;
  color: var(--ink-heading);
}
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 0.42rem; }

.callout-bento {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  font-size: 0.93rem;
}
.callout-bento--warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-ink); }
.callout-bento--danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-ink); }
.callout-bento--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-ink); }

.diagram-figure {
  margin: 1.4rem 0;
  background: #fff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}
.diagram-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Responsive Comparison Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}
th, td {
  padding: 0.75rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}
th {
  background: #f1f5f9;
  color: var(--ink-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tr:last-child td { border-bottom: 0; }

/* Interactive Workflow Configurator (#setup-assistant) */
.studio-workbench {
  background: var(--bento-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.9rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-bento);
}
.workbench-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.15rem 0;
}
.wb-group {
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.wb-group__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}
.wb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.wb-pill {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink-body);
  border-radius: 9px;
  padding: 0.46rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.wb-pill:hover { border-color: var(--accent-primary); }
.wb-pill[aria-pressed="true"] {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}
.wb-output {
  background: var(--bento-midnight);
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--bento-midnight-border);
}
.wb-output h3 { margin: 0 0 0.55rem; color: #67e8f9; font-size: 1.08rem; }
.wb-output p { margin: 0 0 0.75rem; color: #e2e8f0; font-size: 0.93rem; }
.wb-output ul, .wb-output ol { margin: 0 0 0.75rem; padding-left: 1.25rem; color: #e2e8f0; font-size: 0.91rem; }
.wb-output a { color: #67e8f9; font-weight: 700; }
.wb-output code { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); color: #fff; }

/* Storage Estimator */
.calc-card {
  background: #f8fafc;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin: 1.5rem 0;
}
.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1.2rem;
}
.preset-btn {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0.48rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-body);
  cursor: pointer;
}
.preset-btn.is-selected, .preset-btn[aria-pressed="true"] {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.95rem;
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-heading);
  margin-bottom: 0.3rem;
}
.field input, .field select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink-heading);
}
.field-hint { display: block; font-size: 0.75rem; color: var(--ink-muted); margin-top: 0.25rem; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  margin: 0.85rem 0 1.2rem;
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.result-tile {
  background: var(--bento-midnight);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.result-tile__label { font-size: 0.74rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.result-tile__val { font-size: 1.42rem; font-weight: 800; color: #67e8f9; font-family: var(--font-mono); margin: 0.2rem 0; }
.result-tile__sub { font-size: 0.78rem; color: #cbd5e1; }

/* FAQ Items */
.faq-stack { display: grid; gap: 0.95rem; }
.faq-card {
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
}
.faq-card h2 { margin: 0 0 0.45rem; font-size: 1.06rem; }
.faq-card p { margin: 0; }

/* Footer */
.bento-footer {
  border-top: 1px solid var(--line-subtle);
  background: #fff;
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}
.bento-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.bento-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.bento-footer__links a { text-decoration: none; font-weight: 600; color: var(--ink-body); }

/* Locked StreamRecorder.io Referral Card (100% Preserved Across All Sites) */
.referral-wrap {
  margin-top: 2.35rem;
}

.prose .referral-wrap {
  margin: 2.2rem 0 2.4rem;
}

.referral-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(112deg, #100622 0%, #190b36 52%, #291158 100%);
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(14, 7, 32, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(310px, 40.2%, 454px);
  column-gap: 0.75rem;
  row-gap: 0;
  align-items: start;
}

.referral-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/streamrecorder-starfield.jpg");
  background-image: image-set(
    url("../img/streamrecorder-starfield.webp") type("image/webp"),
    url("../img/streamrecorder-starfield.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center right;
  opacity: 0.42;
  pointer-events: none;
}

.referral-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 83% 52%, rgba(139, 92, 246, 0.34) 0%, rgba(91, 33, 182, 0.16) 36%, transparent 66%),
    linear-gradient(
      94deg,
      rgba(13, 6, 28, 0.93) 0%,
      rgba(19, 9, 41, 0.84) 56%,
      rgba(32, 14, 68, 0.38) 100%
    );
  pointer-events: none;
}

.prose .referral-card {
  grid-template-columns: minmax(0, 1fr) 250px;
  column-gap: 0.85rem;
}

.referral-card__header {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 2.2rem 2.55rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  z-index: 1;
}

.prose .referral-card__header {
  padding: 1.85rem 1.9rem 0;
}

.referral-card__body {
  grid-column: 1;
  grid-row: 2;
  padding: 0.75rem 0 2.2rem 2.55rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.prose .referral-card__body {
  padding: 0.72rem 0 1.85rem 1.9rem;
}

.referral-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.92rem;
  margin: 0 0 0.78rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.24);
  border: 1px solid rgba(196, 181, 253, 0.52);
  font-size: 0.90625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #f5f3ff;
}

.prose .referral-card__eyebrow {
  font-size: 0.875rem;
}

.referral-card .referral-card__title,
.prose .referral-card .referral-card__title {
  margin: 0;
  padding: 0;
  font-size: clamp(1.45rem, 2.25vw, 1.78125rem);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.018em;
  max-width: none;
}

.prose .referral-card .referral-card__title {
  font-size: clamp(1.35rem, 1.95vw, 1.5625rem);
  line-height: 1.3;
}

.referral-card .referral-card__desc,
.prose .referral-card .referral-card__desc {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.56;
  color: #f5f3ff;
  max-width: 632px;
}

.prose .referral-card .referral-card__desc {
  font-size: 1.03125rem;
  line-height: 1.64;
  max-width: none;
}

.referral-card .referral-card__desc strong {
  color: #ffffff;
  font-weight: 700;
}

.referral-card .referral-card__rec,
.prose .referral-card .referral-card__rec {
  margin: 0 0 1.32rem;
  padding: 0.78rem 1.15rem 0.78rem 1.2rem;
  border-radius: 8px;
  background: rgba(91, 45, 168, 0.26);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-left: 5px solid #8b5cf6;
  font-size: 1.03125rem;
  line-height: 1.52;
  font-style: italic;
  font-weight: 500;
  color: #f5f3ff;
  max-width: 618px;
}

html[lang="ko"] .referral-card .referral-card__rec {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.62;
  max-width: none;
}

.referral-card__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.referral-card .referral-card__cta,
.prose .referral-card .referral-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 54px;
  min-width: 306px;
  padding: 0.92rem 2.05rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  border: 1.5px solid rgba(196, 181, 253, 0.72);
  box-shadow: 0 8px 22px rgba(8, 3, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 1.09375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.prose .referral-card .referral-card__cta {
  min-width: 292px;
  font-size: 1.0625rem;
}

.referral-card .referral-card__cta:hover,
.prose .referral-card .referral-card__cta:hover {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(8, 3, 22, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.referral-card .referral-card__cta:focus-visible,
.prose .referral-card .referral-card__cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.referral-card__cta-icon {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.referral-card .referral-card__cta:hover .referral-card__cta-icon {
  transform: translateX(2px);
}

.referral-card__apps {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.referral-card__apps-label {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: #f3e8ff;
}

.prose .referral-card__apps-label {
  font-size: 0.90625rem;
}

.referral-card__badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.referral-card__badge-link {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.referral-card__badge-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(7, 3, 18, 0.44), 0 0 0 1px rgba(221, 214, 254, 0.55);
}

.referral-card__badge-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.referral-card__badge-img {
  display: block;
  height: 39px;
  width: auto;
  max-width: none;
}

.prose .referral-card__badge-img {
  height: 36px;
}

.referral-card .referral-card__note,
.prose .referral-card .referral-card__note {
  margin: 0.95rem 0 0;
  font-size: 0.90625rem;
  line-height: 1.5;
  color: rgba(243, 232, 255, 0.88);
  max-width: none;
  width: 100%;
}

.prose .referral-card .referral-card__note {
  font-size: 0.875rem;
  line-height: 1.54;
}

.referral-card__visual {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem 0.65rem 0 0;
  pointer-events: none;
}

.prose .referral-card__visual {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  padding: 0.65rem 0.55rem 0 0;
}

.referral-card__visual picture {
  display: block;
  width: 100%;
  max-width: 446px;
}

.prose .referral-card__visual picture {
  max-width: 244px;
}

.referral-card__mascot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 10px 24px rgba(8, 3, 22, 0.52));
}

@media (max-width: 1120px) {
  .referral-card__visual {
    grid-row: 2;
  }
}

@media (max-width: 860px) {
  .referral-card,
  .prose .referral-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .referral-card::after {
    background:
      radial-gradient(circle at 80% 88%, rgba(139, 92, 246, 0.28) 0%, transparent 55%),
      linear-gradient(
        175deg,
        rgba(13, 6, 28, 0.94) 0%,
        rgba(19, 9, 41, 0.88) 72%,
        rgba(32, 14, 68, 0.52) 100%
      );
  }

  .referral-card__header {
    grid-column: 1;
    grid-row: auto;
    padding: 1.55rem 1.3rem 0;
  }

  .prose .referral-card__header {
    padding: 1.45rem 1.15rem 0;
  }

  .referral-card__body {
    grid-column: 1;
    grid-row: auto;
    padding: 0.7rem 1.3rem 0.45rem;
  }

  .prose .referral-card__body {
    padding: 0.68rem 1.15rem 0.45rem;
  }

  .referral-card__eyebrow,
  .prose .referral-card__eyebrow {
    font-size: 0.84375rem;
    padding: 0.26rem 0.8rem;
  }

  .referral-card .referral-card__desc,
  .prose .referral-card .referral-card__desc {
    font-size: 1rem;
    max-width: none;
  }

  .referral-card .referral-card__rec,
  .prose .referral-card .referral-card__rec {
    font-size: 0.96875rem;
    padding: 0.7rem 0.95rem 0.7rem 1rem;
    margin-bottom: 1.2rem;
    max-width: none;
  }

  .referral-card__action {
    width: 100%;
  }

  .referral-card .referral-card__cta,
  .prose .referral-card .referral-card__cta {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0.85rem 0.85rem;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }

  .referral-card__apps {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.52rem;
    margin-top: 1rem;
  }

  .referral-card__badge-img,
  .prose .referral-card__badge-img {
    height: 35px;
  }

  .referral-card .referral-card__note,
  .prose .referral-card .referral-card__note {
    margin-top: 0.9rem;
    font-size: 0.875rem;
  }

  .referral-card__visual,
  .prose .referral-card__visual {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0.35rem 1.05rem 0;
    width: 100%;
  }

  .referral-card__visual picture,
  .prose .referral-card__visual picture {
    width: 152px;
    max-width: 46%;
  }

  .referral-card__mascot,
  .prose .referral-card__mascot {
    width: 100%;
    height: auto;
  }
}


/* Responsive Breakpoints */
@media (max-width: 980px) {
  .split-hero { grid-template-columns: 1fr; }
  .studio-article-grid { grid-template-columns: 1fr; }
  .studio-aside { position: static; }
  .bento-tile, .bento-tile--6, .bento-tile--8 { grid-column: span 12; }
  .workbench-steps { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; align-items: center; }
  .bento-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line-subtle);
  }
  .bento-nav.is-open { display: flex; }
  .bento-nav a { border-radius: 10px; padding: 0.55rem 0.75rem; }
}

@media (max-width: 600px) {
  .split-hero__lead, .studio-doc-card, .studio-workbench { padding: 1.35rem 1.15rem; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bento-nav .nav-cta[aria-current="page"] {
  background: var(--bento-midnight);
  color: #67e8f9 !important;
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.referral-card .referral-card__note a {
  color: #c4b5fd;
}
.referral-card .referral-card__note a:hover {
  color: #ffffff;
}
