/* =====================================================================
   Zerva AI — one stylesheet for the landing page, studio and policy pages
   Direction: a private screening room. Pure black, the work in the
   spotlight, one line of metal type, everything else quiet.
   ===================================================================== */

:root {
  --stage: #000000;
  --graphite: #131211;
  --graphite-2: #1c1a18;
  --line: rgba(232, 224, 209, 0.12);
  --line-strong: rgba(232, 224, 209, 0.26);
  --champagne: #d8cfbe;
  --ivory: #f4efe4;
  --bronze: #8c8272;
  --text: #ebe5d9;
  --muted: #9d9486;
  --error: #e26d5a;

  --metal: linear-gradient(176deg, #fdfbf6 0%, #e6dfd1 28%, #b9ae9a 52%, #8f8574 63%, #dcd4c5 82%, #f6f2e9 100%);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.4rem, 3.6vw + 1rem, 3.9rem);
  --step-5: clamp(3rem, 7.2vw + 0.8rem, 7.4rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fine grain, like the brushed metal of the logo */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.55; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--ivory); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(216, 207, 190, 0.3); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ivory); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.01em; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.nav a:hover { color: var(--ivory); }
.header-actions { display: flex; align-items: center; gap: 1.1rem; margin-left: 1rem; }
.header-actions .text-link { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.header-actions .text-link:hover { color: var(--ivory); }

/* ---------- Buttons: flat ivory, hairline ghost ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 46px; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--ivory); color: #0b0a09; }
.btn-primary:hover { background: #ffffff; color: #000; }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--champagne); color: #fff; }
.btn-small { min-height: 38px; padding: 0 1.05rem; font-size: 0.88rem; }
.btn-large { min-height: 56px; padding: 0 2rem; font-size: 1.02rem; }
.btn .g-icon { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 120%; height: 115%; transform: translateX(-50%);
  background: radial-gradient(38% 48% at 50% 40%, rgba(244, 239, 228, 0.13), rgba(244, 239, 228, 0.035) 50%, transparent 72%);
  pointer-events: none;
}
.hero-copy { position: relative; text-align: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--step-5); line-height: 0.94; letter-spacing: -0.02em;
  margin: 0 auto 1.6rem;
  font-variation-settings: "opsz" 96;
  animation: rise 1.2s var(--ease) both;
}
.hero h1 span { display: block; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 35rem; margin: 0 auto 2.4rem; animation: rise 1.2s 0.12s var(--ease) both; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; animation: rise 1.2s 0.22s var(--ease) both; }
.hero-note { color: var(--muted); font-size: var(--step--1); }

/* The rail of real ads */
.rail {
  position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(3.5rem, 6vw, 5.5rem); padding: 0 1.25rem;
  animation: rise 1.4s 0.35s var(--ease) both;
}
.reel { position: relative; margin: 0; flex: 0 0 auto; width: 300px; transition: width 0.5s var(--ease), opacity 0.5s; }
.reel[data-d="1"] { width: 238px; opacity: 0.72; }
.reel[data-d="2"] { width: 196px; opacity: 0.42; }
.reel[data-d="3"] { width: 170px; opacity: 0.2; }
.reel .frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: #0c0b0a; border: 1px solid var(--line);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
}
.reel[data-d="0"] .frame { border-color: var(--line-strong); box-shadow: 0 60px 140px -50px rgba(244, 239, 228, 0.22); }
.reel .frame video, .reel .frame img { width: 100%; height: 100%; object-fit: cover; }
.reel.landscape .frame video { object-fit: contain; background: #000; }
.reel figcaption { margin-top: 0.85rem; text-align: center; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.reel figcaption strong { display: block; color: var(--text); font-weight: 500; font-size: 0.88rem; }
.reel[data-d="2"] figcaption, .reel[data-d="3"] figcaption { visibility: hidden; }
.reel button.pick { position: absolute; inset: 0; z-index: 2; background: none; border: 0; cursor: pointer; border-radius: 22px; }
.sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--ivory); cursor: pointer;
}
.sound svg { width: 17px; height: 17px; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--serif); font-weight: 400; font-size: var(--step-4);
  line-height: 1.02; letter-spacing: -0.012em; margin: 0 0 1.1rem; max-width: 17ch; color: var(--ivory);
}
.section .intro { color: var(--muted); font-size: var(--step-1); max-width: 36rem; margin: 0 0 3.2rem; }

/* Proof: the real photo next to the ad it became */
.proof-grid { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.proof-copy { align-self: center; }
.proof-copy .intro { margin-bottom: 0; }
.proof figure { margin: 0; }
.proof figcaption { margin-top: 0.85rem; font-size: 0.85rem; color: var(--muted); }
.proof figcaption strong { color: var(--text); font-weight: 500; }
.proof figcaption span { display: block; }
.tile .sound { top: 14px; bottom: auto; right: 14px; }
.proof-photo .pic { width: clamp(180px, 20vw, 260px); aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #f6f4ef; border: 1px solid var(--line); }
.proof-photo img { width: 100%; height: 100%; object-fit: contain; }
.proof-video .frame { width: clamp(220px, 24vw, 320px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; position: relative; }
.proof-video video { width: 100%; height: 100%; object-fit: cover; }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 1.1rem;
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--bronze);
}
.steps h3 { font-size: var(--step-1); margin: 0 0 0.45rem; font-weight: 600; color: var(--ivory); }
.steps p { margin: 0; color: var(--muted); max-width: 30ch; }

/* Two styles as full-bleed video tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.tile {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 22%, rgba(244, 239, 228, 0.10), transparent 70%), var(--graphite);
  border: 1px solid var(--line);
}
.tile-media { position: absolute; inset: 0; z-index: -2; }
.tile-media video { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88) 100%); }
.tile-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 3vw, 2.4rem); }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.05; margin: 0 0 0.6rem; color: var(--ivory); }
.tile p { margin: 0; color: #cfc8bb; max-width: 34ch; }

/* Languages */
.languages { text-align: center; }
.languages h2, .languages .intro { margin-inline: auto; }
.lang-cloud {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.7rem;
  max-width: 62rem; margin: 0 auto; padding: 0; list-style: none;
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.25;
}
.lang-cloud li { color: rgba(235, 229, 217, 0.3); transition: color 0.4s; }
.lang-cloud li.lit { color: var(--ivory); }
.lang-note { margin-top: 2.2rem; color: var(--muted); font-size: var(--step--1); }

/* Pricing — written, not carded */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.price-block { padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.price-block .amount { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 6vw, 5.2rem); line-height: 1; margin: 0 0 0.6rem; color: var(--ivory); }
.price-block h3 { font-size: var(--step-2); font-weight: 600; margin: 0 0 0.6rem; }
.price-block p { margin: 0 0 0.4rem; color: var(--muted); }
.price-block .btn { margin-top: 1.5rem; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-size: var(--step-1); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--bronze); border-bottom: 1.5px solid var(--bronze);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.4rem; color: var(--muted); max-width: 44rem; }

/* Closing */
.closing { text-align: center; padding: clamp(5.5rem, 11vw, 10rem) 0; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(36% 70% at 50% 0%, rgba(244, 239, 228, 0.1), transparent 70%); pointer-events: none; }
.closing img { width: 76px; margin: 0 auto 1.8rem; position: relative; }
.closing h2 { font-family: var(--serif); font-weight: 500; font-size: var(--step-4); margin: 0 auto 1rem; max-width: 15ch; line-height: 1.02; position: relative; }
.closing p { color: var(--muted); margin: 0 0 2.2rem; position: relative; }
.closing .btn { position: relative; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }

/* ---------- Policy pages ---------- */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 5rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: var(--step-4); line-height: 1.04; margin: 0 0 0.5rem; color: var(--ivory); background: none; -webkit-text-fill-color: currentColor; }
.legal .updated { color: var(--muted); margin: 0 0 2.5rem; }
.legal h2 { font-size: var(--step-1); font-weight: 600; margin: 2.2rem 0 0.6rem; }
.legal p, .legal li { color: #cfc8bb; }
.legal ul { padding-left: 1.2rem; }

/* =====================================================================
   Studio
   ===================================================================== */
.app-main { padding: 1.5rem 0 5rem; }
.account-bar { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.balance {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.88rem; color: var(--ivory); white-space: nowrap;
}
.balance .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; background: var(--graphite-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ivory); }

.signin-card {
  max-width: 440px; margin: clamp(3rem, 10vh, 7rem) auto; text-align: center;
  padding: 2.75rem 2rem; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(90% 60% at 50% 0%, rgba(244, 239, 228, 0.08), transparent 70%), var(--graphite);
}
.signin-card img { width: 64px; margin: 0 auto 1.3rem; }
.signin-card h1 { font-family: var(--serif); font-weight: 400; font-size: 2.3rem; line-height: 1.05; margin: 0 0 0.75rem; color: var(--ivory); }
.signin-card p { color: var(--muted); margin: 0 0 1.8rem; }
.signin-card .fine { font-size: 0.8rem; margin: 1.4rem 0 0; }

.studio { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.panel { border-radius: 20px; border: 1px solid var(--line); background: var(--graphite); padding: clamp(1.25rem, 2.2vw, 1.75rem); }
.panel h2, .library-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 0 0 1.25rem; line-height: 1.1; color: var(--ivory); }
.composer { position: sticky; top: 88px; }
.notice { margin: -0.4rem 0 1.2rem; padding: 0.8rem 0.95rem; border-radius: 12px; border: 1px solid rgba(226, 109, 90, 0.45); background: rgba(226, 109, 90, 0.08); color: #f0c9c1; font-size: 0.88rem; }
.notice strong { color: #fff; }

.field { margin-bottom: 1.15rem; }
.field > label:not(.dropzone), .field > .label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--ivory); }
.field .hint { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 0.7rem 0.9rem;
  border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  background: #0b0a09; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--champagne) 50%), linear-gradient(135deg, var(--champagne) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.select option { background: #131211; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(216, 207, 190, 0.12); }
.input::placeholder, .textarea::placeholder { color: #6c6458; }

.dropzone {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 170px; padding: 1rem; border-radius: 14px;
  border: 1px dashed var(--line-strong); background: #0b0a09; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--champagne); background: #12110f; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-text strong { display: block; color: var(--ivory); margin-bottom: 0.2rem; }
.dropzone .dz-text span { color: var(--muted); font-size: 0.85rem; }
.dropzone.has-image { padding: 0.6rem; }
.dropzone .preview { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; }
.dropzone .preview img { width: 120px; height: 120px; object-fit: contain; border-radius: 10px; background: #fff; }
.dropzone .preview span { color: var(--muted); font-size: 0.85rem; }
.or-link { display: block; margin: 0.8rem 0 0.4rem; font-size: 0.82rem; color: var(--muted); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.segmented label {
  position: relative; display: block; padding: 0.8rem 0.9rem; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #0b0a09; transition: border-color 0.2s, background 0.2s;
}
.segmented input { position: absolute; opacity: 0; }
.segmented strong { display: block; font-size: 0.95rem; color: var(--ivory); }
.segmented small { color: var(--muted); font-size: 0.8rem; line-height: 1.3; display: block; margin-top: 0.15rem; }
.segmented label:has(input:checked) { border-color: var(--champagne); background: rgba(244, 239, 228, 0.06); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--champagne); outline-offset: 2px; }
.segmented.compact label { padding: 0.6rem 0.8rem; text-align: center; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
details.more { margin: 0.25rem 0 1.25rem; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
details.more[open] summary { margin-bottom: 0.9rem; }

.submit-row { margin-top: 1.25rem; }
.submit-row .btn { width: 100%; }
.submit-row .cost { margin: 0.7rem 0 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
.form-error { margin: 0.9rem 0 0; color: var(--error); font-size: 0.9rem; }
.form-error:empty { display: none; }

.library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.25rem; }
.library-head h2 { margin: 0; }
.library-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.vcard { border-radius: 16px; border: 1px solid var(--line); background: #0b0a09; overflow: hidden; display: flex; flex-direction: column; }
.vcard .frame { position: relative; aspect-ratio: 9 / 16; background: radial-gradient(120% 70% at 50% 0%, #24211e, #090808 70%); display: grid; place-items: center; }
.vcard.landscape .frame { aspect-ratio: 16 / 9; }
.vcard .frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.vcard .meta { padding: 0.85rem 0.95rem 1rem; display: grid; gap: 0.35rem; justify-items: start; }
.vcard .meta h3 { margin: 0; font-size: 0.98rem; font-weight: 600; overflow-wrap: anywhere; }
.vcard .meta .sub { color: var(--muted); font-size: 0.8rem; }
.vcard .actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; flex-wrap: wrap; }
.vcard .actions .btn { min-height: 36px; padding: 0 0.9rem; font-size: 0.84rem; }
.vcard details summary { cursor: pointer; color: var(--muted); font-size: 0.82rem; }
.vcard details p { margin: 0.4rem 0 0; font-size: 0.85rem; color: #cfc8bb; }
.vcard .link-btn { font-size: 0.8rem; margin-top: 0.2rem; }

.progress { display: grid; justify-items: center; gap: 0.9rem; padding: 1rem; text-align: center; }
.progress .ring { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(216, 207, 190, 0.15); border-top-color: var(--ivory); animation: spin 1.1s linear infinite; }
.progress strong { color: var(--ivory); font-weight: 600; font-size: 0.95rem; }
.progress span { color: var(--muted); font-size: 0.8rem; }
.failed-msg { padding: 1rem; color: var(--error); font-size: 0.88rem; text-align: center; overflow-wrap: anywhere; }
.failed-msg small { display: block; margin-top: 0.6rem; color: var(--muted); font-size: 0.72rem; max-height: 9em; overflow: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 16px; }
.empty strong { display: block; color: var(--ivory); font-size: 1.05rem; margin-bottom: 0.35rem; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(440px, 92vw); width: 100%; }
.modal::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }
.modal .panel { padding: 1.75rem; border-color: var(--line-strong); }
.modal h2 { margin-bottom: 0.5rem; }
.modal p { color: var(--muted); margin: 0 0 1.4rem; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin: 0.5rem 0 1rem; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: #0b0a09; color: var(--ivory); font-size: 1.4rem; cursor: pointer; }
.stepper button:hover { border-color: var(--champagne); }
.stepper output { font-family: var(--serif); font-size: 3rem; min-width: 2.5ch; text-align: center; line-height: 1; }
.total { text-align: center; color: var(--muted); margin-bottom: 1.4rem; }
.total strong { color: var(--ivory); font-size: 1.15rem; }
.modal .btn { width: 100%; }
.modal .close-row { text-align: center; margin-top: 0.9rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  padding: 0.8rem 1.2rem; border-radius: 12px; background: var(--ivory); color: #0b0a09; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8); transition: opacity 0.25s, transform 0.25s; z-index: 95; max-width: 92vw; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--error); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .reel[data-d="3"] { display: none; }
}
@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; }
  .composer { position: static; }
  .proof-grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .proof-copy { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav, .header-actions .text-link { display: none; }
  .header-actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 5; }
  /* the rail becomes a swipeable row */
  .rail { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 19vw 0.5rem; scrollbar-width: none; gap: 14px; }
  .rail::-webkit-scrollbar { display: none; }
  .reel, .reel[data-d] { width: 62vw; opacity: 1; scroll-snap-align: center; display: block; }
  .reel[data-d] figcaption { visibility: visible; }
  .proof-photo .pic { width: 100%; }
  .proof-video .frame { width: 100%; }
}
@media (max-width: 520px) {
  .app-header .brand span, .app-header .avatar { display: none; }
  .app-header .wrap { gap: 0.75rem; }
  .account-bar { gap: 0.5rem; }
  .balance { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .account-bar .btn-small { padding: 0 0.8rem; font-size: 0.84rem; }
  .video-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .vcard .meta { padding: 0.7rem; }
  .vcard .progress span:first-of-type { display: none; }
  .row-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
