/* cvinfo.me marketing + docs components. Tokens come from theme.css. */

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding-block: var(--space-section); position: relative; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 auto clamp(2.25rem, 5vw, 3.5rem); text-align: center; }
.section-head .lead { margin-inline: auto; max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.prose { max-width: var(--measure); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); isolation: isolate; }
.hero::before {                                     /* one restrained glow, no animation */
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 22% 30%, var(--glow-1) 0%, transparent 70%),
    radial-gradient(35% 45% at 80% 20%, var(--glow-2) 0%, transparent 70%);
}
.hero::after {                                      /* faint grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 36rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0;
  color: var(--muted); font-size: .9rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-meta .bi { color: var(--accent); }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .35rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--card); font-size: .85rem; color: var(--muted);
  text-decoration: none; margin-bottom: 1.5rem;
}
.pill b { background: rgba(var(--brand-rgb), .16); color: var(--brand); padding: .1rem .55rem; border-radius: 999px; font-weight: 700; }
.pill:hover { color: var(--heading); border-color: rgba(var(--brand-rgb), .6); }
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-hero .lead { max-width: 44rem; }

/* ── video facade (lazy: nothing third-party loads before a click) ───────── */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--card); box-shadow: var(--shadow-lg);
}
.video-frame iframe, .video-frame video, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-facade { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video-facade:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.play-badge {
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-strong); color: #fff; box-shadow: 0 10px 40px rgba(70, 97, 240, .55);
  transition: transform .2s var(--ease);
}
.play-badge svg { width: 30px; height: 30px; margin-left: 4px; }
.video-facade:hover .play-badge { transform: scale(1.06); }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background:
    radial-gradient(60% 70% at 30% 20%, var(--glow-1), transparent 70%),
    radial-gradient(50% 60% at 80% 90%, var(--glow-2), transparent 70%),
    var(--card);
}
.video-placeholder .play-badge { background: var(--card-2); color: var(--muted); box-shadow: none; border: 1px solid var(--border-strong); margin: 0 auto 1rem; }
.video-placeholder p { margin: 0; color: var(--muted); font-size: .95rem; }
.video-placeholder strong { color: var(--heading); display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.video-caption { font-size: .85rem; color: var(--muted); margin-top: .75rem; text-align: center; }

/* ── trust strip ─────────────────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.trust-item { display: flex; gap: .85rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card); }
.trust-item .bi { font-size: 1.35rem; color: var(--brand); line-height: 1; margin-top: .15rem; }
.trust-item strong { display: block; color: var(--heading); font-size: .975rem; }
.trust-item span { color: var(--muted); font-size: .875rem; }

/* ── steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; font-weight: 800; margin-bottom: 1rem; color: var(--brand);
  background: rgba(var(--brand-rgb), .12); border: 1px solid rgba(var(--brand-rgb), .35);
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ── bento ───────────────────────────────────────────────────────────────── */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); }
  .bento .tile-xl { grid-column: span 4; grid-row: span 2; }
  .bento .tile-l  { grid-column: span 2; grid-row: span 2; }
  .bento .tile-m  { grid-column: span 3; }
  .bento .tile-s  { grid-column: span 2; }
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: .5rem; overflow: hidden;
  padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card);
  color: var(--text); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
a.tile:hover { border-color: rgba(var(--brand-rgb), .55); color: var(--text); transform: translateY(-2px); }
.tile h3 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; max-width: 46ch; }
.tile .tile-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem;
  color: var(--brand); background: rgba(var(--brand-rgb), .12); border: 1px solid rgba(var(--brand-rgb), .3); margin-bottom: .35rem; }
.tile .tile-link { margin-top: auto; padding-top: .75rem; font-weight: 600; color: var(--brand); font-size: .925rem; }
.tile .price-tag { position: absolute; top: 1.1rem; right: 1.1rem; font-size: .75rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: .15rem .6rem; background: var(--card-2); }
.tile .tile-media { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.tile .tile-media img { display: block; width: 100%; height: auto; }

/* browser-frame screenshot */
.shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong);
  background: var(--card); box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .85rem; border-bottom: 1px solid var(--border); background: var(--card-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.shot-bar span { margin-left: .6rem; font-size: .75rem; color: var(--muted); font-family: var(--font-mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; height: auto; }

/* feature split */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1.1fr; } .split.reverse > :first-child { order: 2; } }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .2rem; border-radius: 6px;
  background: rgba(var(--brand-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237c93ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5'/%3E%3C/svg%3E") center/16px no-repeat; }
[data-bs-theme="light"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233350d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5'/%3E%3C/svg%3E"); }

/* feature cards grid */
.cards-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-card { padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); }
.feature-card .bi { font-size: 1.4rem; color: var(--brand); }
.feature-card h3 { font-size: 1.05rem; margin: .75rem 0 .35rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ── code card with copy button ──────────────────────────────────────────── */
.code-card { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: var(--code-bg); overflow: hidden; box-shadow: var(--shadow-lg); }
.code-card .code-head { display: flex; align-items: center; justify-content: space-between; padding: .55rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08); color: #a4aec0; font-size: .78rem; font-family: var(--font-mono); }
.code-card pre { margin: 0; border: 0; border-radius: 0; background: transparent; }
.copy-btn { all: unset; cursor: pointer; font: 600 .75rem var(--font-sans); color: #c7cfdd; padding: .3rem .6rem;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.14); }
.copy-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.copy-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pre-wrap { position: relative; }
.pre-wrap > .copy-btn { position: absolute; top: .45rem; right: .55rem; background: rgba(12,14,19,.8); }
.pre-wrap > pre { padding-top: 2.5rem; }             /* room for the copy button on narrow screens */
.tok-k { color: #8fa2ff; } .tok-s { color: #6ee7c8; } .tok-c { color: #7d879a; } .tok-f { color: #f5c451; }

/* ── pricing ─────────────────────────────────────────────────────────────── */
.pricing { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.4rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--card); }
.price-card.featured { border-color: rgba(var(--brand-rgb), .7); box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .35), var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: -12px; left: 1.4rem; background: var(--brand-strong); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; }
.price-card .credits { font-size: .85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.price-card .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--heading); line-height: 1; margin: .6rem 0 .25rem; }
.price-card .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .per { color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; font-size: .9rem; }
.price-card ul li::before { content: "→ "; color: var(--brand); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.cost-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.cost-table th, .cost-table td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--card-2); }
.cost-table td:last-child { white-space: nowrap; font-weight: 700; color: var(--heading); }
.cost-table td small { display: block; color: var(--muted); font-weight: 400; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.25rem; font-weight: 650; color: var(--heading); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.faq .answer { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border-radius: var(--radius-xl); border: 1px solid var(--border-strong); background: var(--card); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 0%, var(--glow-1), transparent 70%), radial-gradient(40% 60% at 90% 100%, var(--glow-2), transparent 70%); }
.cta-band h2 { margin-bottom: .75rem; }
.cta-band .lead { max-width: 40rem; margin: 0 auto 1.75rem; }

/* ── docs ────────────────────────────────────────────────────────────────── */
.docs-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-block: 2rem 4rem; }
@media (min-width: 992px) { .docs-layout { grid-template-columns: 230px minmax(0, 1fr); } }
@media (min-width: 1280px) { .docs-layout { grid-template-columns: 230px minmax(0, 1fr) 200px; } }
.docs-sidebar { font-size: .925rem; }
@media (min-width: 992px) { .docs-sidebar, .docs-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start;
  max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; } }
.docs-sidebar h2, .docs-toc h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }
.docs-sidebar ul, .docs-toc ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .1rem; }
.docs-sidebar a { display: block; padding: .4rem .7rem; border-radius: 8px; color: var(--muted); text-decoration: none; }
.docs-sidebar a:hover { color: var(--heading); background: var(--hover); }
.docs-sidebar a[aria-current="page"] { color: var(--brand); background: rgba(var(--brand-rgb), .1); font-weight: 600; }
.docs-toc { display: none; font-size: .85rem; }
@media (min-width: 1280px) { .docs-toc { display: block; } }
.docs-toc a { color: var(--muted); text-decoration: none; display: block; padding: .2rem 0; }
.docs-toc a:hover { color: var(--heading); }
.docs-toc .lvl-3 { padding-left: .8rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.docs-content { min-width: 0; max-width: 780px; }
.docs-content h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: .75rem; }
.docs-content > .lead { margin-bottom: 2rem; }
.docs-content h2 { font-size: 1.55rem; margin: 2.5rem 0 .9rem; padding-top: .5rem; }
.docs-content h3 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.docs-content p, .docs-content li { line-height: 1.75; }
.docs-content ul, .docs-content ol { padding-left: 1.3rem; }
.docs-content li + li { margin-top: .3rem; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .925rem; display: block; overflow-x: auto; }
.docs-content th, .docs-content td { border-bottom: 1px solid var(--border); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.docs-content th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.docs-content :not(pre) > code { background: var(--card-2); border: 1px solid var(--border); color: var(--heading); padding: .1em .38em; border-radius: 6px; }
.docs-content blockquote { border-left: 3px solid var(--brand); padding: .25rem 0 .25rem 1rem; color: var(--muted); margin: 1.25rem 0; }
.docs-content .anchor { opacity: 0; margin-left: .4rem; text-decoration: none; color: var(--muted); font-weight: 400; }
.docs-content h2:hover .anchor, .docs-content h3:hover .anchor, .docs-content .anchor:focus { opacity: 1; }
.docs-content img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.callout { border: 1px solid rgba(var(--brand-rgb), .35); background: rgba(var(--brand-rgb), .08); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.25rem 0; }
.callout p:last-child { margin: 0; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.prevnext a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--heading); font-weight: 600; background: var(--card); }
.prevnext a:hover { border-color: rgba(var(--brand-rgb), .6); }
.prevnext small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; margin-bottom: .15rem; }
.prevnext .next { text-align: right; grid-column: 2; }

/* ── gentle reveal on scroll (only when motion is welcome) ───────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-up { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal-up.is-in { opacity: 1; transform: none; }
}

/* dashboard (logged-in home) */
.dash-greeting { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.balance { display: inline-flex; align-items: baseline; gap: .4rem; padding: .55rem 1rem; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--card); }
.balance strong { font-size: 1.5rem; color: var(--heading); letter-spacing: -.02em; }
.balance span { color: var(--muted); font-size: .9rem; }
@media (max-width: 575.98px) {
  .video-placeholder p { display: none; }
  .play-badge { width: 60px; height: 60px; }
}

/* ── status pills + the application tracker ─────────────────────────────────
   One vocabulary for "what happened to this application", used by the real
   tracker on /dashboard/ and by the mock-up on the marketing page.          */
.pill-status {
  display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem;
  border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.5;
  border: 1px solid var(--border-strong); background: var(--card-2); color: var(--muted);
  white-space: nowrap;
}
.pill-status::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.pill-on { color: var(--ink-success); border-color: color-mix(in srgb, var(--success) 40%, transparent);
  background: color-mix(in srgb, var(--success) 12%, transparent); }
.pill-gold { color: var(--ink-warning); border-color: color-mix(in srgb, var(--warning) 42%, transparent);
  background: color-mix(in srgb, var(--warning) 12%, transparent); }
.pill-off { color: var(--muted); }
.pill-muted { color: var(--muted); border-style: dashed; }
.pill-muted::before { display: none; }

.tracker { width: 100%; border-collapse: separate; border-spacing: 0; }
.tracker th, .tracker td { padding: .7rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tracker th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tracker tbody tr:hover { background: var(--hover); }
.tracker .app-name { font-weight: 600; color: var(--heading); }
.tracker .app-meta { color: var(--muted); font-size: .84rem; }
.tracker .statuses { display: flex; flex-wrap: wrap; gap: .35rem; }
.tracker .when { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.tracker td.actions { text-align: right; white-space: nowrap; }
.tracker .share { position: relative; }
.tracker .share > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: .8rem; color: var(--text); background: var(--card-2);
}
.tracker .share > summary::-webkit-details-marker { display: none; }
.tracker .share[open] > summary { border-color: var(--brand); color: var(--brand); }
.tracker .share-body {
  position: absolute; right: 0; z-index: 20; margin-top: .4rem; width: 17rem; text-align: left;
  padding: .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-lg);
}
.tracker .share-body .link-box {
  display: flex; gap: .35rem; margin-bottom: .6rem;
}
.tracker .share-body input {
  flex: 1; min-width: 0; font-size: .78rem; font-family: var(--font-mono);
  padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.tracker .share-body img { display: block; margin: 0 auto .5rem; border-radius: 6px; }
@media (max-width: 767px) {
  .tracker thead { display: none; }
  .tracker, .tracker tbody, .tracker tr, .tracker td { display: block; width: 100%; }
  .tracker tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; padding: .35rem; }
  .tracker td { border-bottom: 0; padding: .35rem .5rem; }
  .tracker td.actions { text-align: left; }
  .tracker .share-body { right: auto; left: 0; }
}

/* ── product stage ──────────────────────────────────────────────────────────
   A browser frame crossfading four real screenshots, the real published page in
   a phone frame, and the notifications the product actually sends. No canvas, no
   library; prefers-reduced-motion freezes it on frame one.                   */
.stage { position: relative; aspect-ratio: 6 / 5; }
.stage-browser {
  position: absolute; left: 0; top: 5%; width: 88%; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-strong); background: var(--card);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.stage-slides { position: relative; aspect-ratio: 16 / 10; background: var(--bg); }
.stage-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: stage-slide 16s infinite;
}
.stage-slides img:nth-child(2) { animation-delay: 4s; }
.stage-slides img:nth-child(3) { animation-delay: 8s; }
.stage-slides img:nth-child(4) { animation-delay: 12s; }
@keyframes stage-slide { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }

.stage-phone {
  position: absolute; right: 0; bottom: 0; width: 33%; aspect-ratio: 9 / 18.5; overflow: hidden;
  border: 7px solid #0b0d11; border-radius: 28px; background: var(--card);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .75), 0 0 0 1px var(--border-strong);
}
.stage-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.stage-toasts { position: absolute; left: -3%; bottom: 5%; width: 63%; height: 66px; }
.stage-toast {
  position: absolute; inset: 0; display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px); border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(12px); animation: stage-toast 12s infinite;
}
.stage-toast b {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}
.stage-toast strong { display: block; font-size: .875rem; line-height: 1.3; color: var(--heading); font-weight: 600; }
.stage-toast small { color: var(--muted); font-size: .75rem; }
.stage-toast:nth-child(2) { animation-delay: 4s; }
.stage-toast:nth-child(3) { animation-delay: 8s; }
@keyframes stage-toast {
  0% { opacity: 0; transform: translateY(12px); }
  4%, 28% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 767px) {
  .stage { aspect-ratio: auto; height: 460px; max-width: 360px; margin-inline: auto; }
  .stage-browser { width: 92%; top: 0; opacity: .6; }
  .stage-phone { width: 56%; right: 50%; transform: translateX(50%); bottom: 34px; }
  .stage-toasts { left: 0; right: 0; width: auto; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-slides img, .stage-toast { animation: none; }
  .stage-slides img:first-child, .stage-toast:first-child { opacity: 1; transform: none; }
}

/* ── the fineupp devices, on cvinfo's tokens ────────────────────────────── */
.hero h1.gradient-head {
  background: linear-gradient(135deg, var(--heading) 28%, #8fa2ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* The brand gradient is light in the dark theme and dark in the light theme, so the
   ink on it flips too — otherwise one of the two ends up unreadable. */
.step::before { color: #0c0e13; background: var(--grad-cta); border-color: transparent; }
[data-bs-theme="light"] .step::before { color: #fff; }
.btn-primary {
  background-image: var(--grad-cta); background-size: 160% 100%; background-position: 0 0;
  transition: background-position .28s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  color: #0c0e13; --bs-btn-color: #0c0e13; --bs-btn-hover-color: #0c0e13; --bs-btn-active-color: #0c0e13;
}
[data-bs-theme="light"] .btn-primary {
  color: #fff; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible { background-position: 100% 0; }
.price-card .amount { font-size: clamp(2.6rem, 5vw, 3.5rem); }
.price-card.featured::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-brand);
}

/* ── credibility ────────────────────────────────────────────────────────── */
.builder {
  display: grid; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; grid-template-columns: 1fr;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
  border: 1px solid var(--border); background:
    linear-gradient(120deg, rgba(var(--brand-rgb), .10), rgba(61, 220, 176, .06)), var(--card);
}
@media (min-width: 768px) { .builder { grid-template-columns: auto 1fr; } }
.builder img {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: 60% 30%;
  border: 3px solid var(--brand); display: block; margin-inline: auto;
}
.builder h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 .5rem; }
.builder p { color: var(--muted); margin: 0 0 1rem; max-width: 46rem; }
.builder .builder-links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-weight: 600; }

/* ── video-link flow: Details → Video → Share, and the Manage page ───────────────────── */
.flow { max-width: 680px; margin: 0 auto 2rem; }
.flow h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 750; letter-spacing: -.03em; margin-bottom: .35rem; }
.flow .lead-muted { color: var(--muted); margin-bottom: 1.5rem; }
.flow-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.flow-card > h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; color: var(--heading); }
.flow-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.25rem; }
.flow-actions .spacer { flex: 1; }

.stepper { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: stepper; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted);
  counter-increment: stepper; white-space: nowrap; }
.stepper li::before { content: counter(stepper); flex: none; display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1.5px solid var(--border-strong);
  font-weight: 700; font-size: .8rem; }
.stepper li::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--border); }
.stepper li:last-child::after { display: none; }
.stepper li.is-done { color: var(--text); }
.stepper li.is-done::before { content: "✓"; background: var(--success); border-color: var(--success); color: #0c0e13; }
.stepper li.is-done::after { background: var(--success); }
.stepper li.is-current { color: var(--heading); font-weight: 600; }
.stepper li.is-current::before { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }

.choice-cards { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card { position: relative; display: block; cursor: pointer; padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border-strong); background: var(--bg-soft); transition: border-color .15s, box-shadow .15s; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card .title { font-weight: 700; color: var(--heading); display: block; }
.choice-card .meta { color: var(--muted); font-size: .85rem; }
.choice-card .price { position: absolute; top: .9rem; right: 1rem; font-weight: 700; font-size: .85rem; color: var(--brand); }
.choice-card:has(input:checked) { border-color: var(--brand-strong); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .25); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }
.choice-card.is-disabled { opacity: .5; cursor: not-allowed; }

.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: .4rem;
  min-height: 220px; padding: 2rem 1rem; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg-soft); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: rgba(var(--brand-rgb), .06); }
.dropzone .bi { font-size: 2.4rem; color: var(--brand); }
.dropzone strong { color: var(--heading); font-size: 1.05rem; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .limits { font-size: .82rem; }

.upload-progress { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft); }
.upload-progress .name { font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress .bar { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; margin: .75rem 0 .5rem; }
.upload-progress .bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand-strong); transition: width .2s; }
.upload-progress .meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.upload-progress.is-processing .bar > span { width: 100% !important; animation: flow-pulse 1.2s ease-in-out infinite; }
@keyframes flow-pulse { 50% { opacity: .45; } }
.flow-error { margin-top: .75rem; padding: .7rem .9rem; border-radius: var(--radius); font-size: .9rem;
  color: var(--danger); background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .35); }

.share-box .url-row { display: flex; gap: .5rem; }
.share-box .url-row input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .9rem;
  padding: .7rem .85rem; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); }
.share-box .grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; align-items: start; }
@media (min-width: 576px) { .share-box .grid { grid-template-columns: 1fr 150px; } }
.share-box .actions { display: grid; gap: .5rem; }
.share-box .qr { background: #fff; padding: 8px; border-radius: var(--radius); width: 150px; height: 150px; }
.share-box .qr img { width: 134px; height: 134px; display: block; }

.status-lines { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.status-line { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.status-line .dot { flex: none; width: .65rem; height: .65rem; margin-top: .38rem; border-radius: 50%; background: var(--muted); }
.status-line[data-state=checking] .dot { background: var(--warning); animation: flow-pulse 1.2s ease-in-out infinite; }
.status-line[data-state=live] .dot, .status-line[data-state=approved] .dot { background: var(--success); }
.status-line[data-state=manual] .dot, .status-line[data-state=held] .dot { background: var(--warning); }
.status-line[data-state=rejected] .dot { background: var(--danger); }
.status-line small { display: block; color: var(--muted); }

.manage-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.manage-head .who { color: var(--muted); }
.option-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.option-row:last-child { border-bottom: 0; }
.option-row .label { font-weight: 600; color: var(--heading); }
.option-row .desc { color: var(--muted); font-size: .85rem; }
.option-row .sub { display: flex; gap: .5rem; align-items: center; margin-top: .45rem; font-size: .85rem; color: var(--muted); }
.option-row .sub input { width: 5.5rem; min-height: 36px; padding: .3rem .5rem; }
.option-row .form-switch { padding-left: 0; margin: 0; }
.option-row .form-switch .form-check-input { width: 2.9rem; height: 1.6rem; margin: 0; cursor: pointer; float: none; }
details.more-options > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: var(--heading); }
details.more-options > summary::-webkit-details-marker { display: none; }
details.more-options > summary::after { content: "▸"; color: var(--muted); transition: transform .15s; }
details.more-options[open] > summary::after { transform: rotate(90deg); }
details.more-options > summary + * { margin-top: .75rem; }
.saved-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); z-index: 1080; opacity: 0;
  padding: .5rem 1rem; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border-strong);
  color: var(--heading); font-size: .88rem; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; pointer-events: none; }
.saved-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.saved-toast.is-error { border-color: var(--danger); color: var(--danger); }
.video-frame { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; display: block; }

/* ── video library ──────────────────────────────────────────────────────── */
.video-card-frame {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--card-2); border: 1px solid var(--border);
}
.video-card-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

.video-picker { display: grid; gap: .5rem; }
.video-option {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-2);
}
.video-option:hover { border-color: rgba(var(--brand-rgb), .55); }
.video-option.chosen, .video-option:has(input:checked) {
  border-color: var(--brand); background: rgba(var(--brand-rgb), .08);
}
.video-option .video-thumb {
  flex: none; width: 96px; height: 54px; border-radius: 8px; overflow: hidden;
  background: var(--bg); display: grid; place-items: center;
}
.video-option .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-option .video-meta { display: grid; }

/* ── AI assistant chat (assistant/templates/assistant/chat.html) ─────────────────────── */
.chat-log { max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; }
.chat-log:empty::before { content: "Say what you want to build — or attach your CV and ask for a first draft."; color: var(--muted); }
.chat-msg { max-width: 88%; padding: .65rem .9rem; border-radius: var(--radius); line-height: 1.5; font-size: .95rem; }
.chat-msg .chat-body > :last-child { margin-bottom: 0; }
.chat-msg .chat-body pre { white-space: pre-wrap; font-size: .8rem; background: var(--bg); padding: .5rem; border-radius: 8px; }
.chat-user { align-self: flex-end; background: var(--brand-strong); color: #fff; }
.chat-assistant { align-self: flex-start; background: var(--card-2); border: 1px solid var(--border); }
.chat-tool, .chat-note { align-self: center; max-width: 95%; font-size: .8rem; color: var(--muted); padding: .2rem .6rem; }
.chat-tool::before { content: "⚙ "; }
.chat-thinking { animation: flow-pulse 1.2s ease-in-out infinite; }
.chat-foot { margin-top: .35rem; font-size: .72rem; color: var(--muted); }
.chat-warn { border-color: var(--warning); font-size: .9rem; }
