/* videotoolstack.com — components v3 "Bright Studio". Every value is a token. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-display); margin: 0 0 var(--s4); letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); margin-top: var(--s7); }
h3 { font-size: var(--fs-md); margin-top: var(--s5); }
p { margin: 0 0 var(--s4); }
@media (min-width: 700px) { h1 { font-size: var(--fs-2xl); } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--s5); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--s5); }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s3); font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--ink); font-size: var(--fs-md); letter-spacing: -0.01em; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; }
.site-nav { margin-left: auto; display: flex; gap: var(--s5); }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 600; padding: var(--s3) 0; min-height: 44px; display: inline-flex; align-items: center; letter-spacing: 0.01em; transition: color var(--t-ui) var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 var(--s4); }
  .brand { padding-top: var(--s3); }
  .site-nav { margin-left: 0; width: 100%; gap: var(--s5); }
  .site-nav a { padding: var(--s2) 0 var(--s3); min-height: 40px; }
}

/* ---------- HERO: dark-to-light keynote reveal (the signature moment) ---------- */
.hero {
  position: relative;
  padding: var(--s10) 0 var(--s9);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
/* dark top → bright paper bottom, one soft accent glow behind the "product" — matches the reference keynote hero */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(46% 60% at 50% 38%, var(--hero-glow), transparent 72%),
    linear-gradient(180deg, var(--hero-dark) 0%, var(--hero-mid) 46%, var(--paper) 92%);
  animation: drift 28s var(--ease) infinite alternate;
}
@keyframes drift { from { transform: scale(1) translateY(0); } to { transform: scale(1.05) translateY(-1%); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero .kicker {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: 0.14em;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  padding: var(--s2) var(--s4); margin-bottom: var(--s6);
  background: rgba(255,255,255,0.06);
}
.hero .kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--hero-glow); animation: rec 2.2s var(--ease) infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .hero .kicker .dot { animation: none; } }

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  max-width: 13em;
  margin-bottom: var(--s5);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: var(--fs-md); color: rgba(255,255,255,0.78); max-width: 33em; margin-bottom: var(--s6); }
.hero .cta-row { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }
.hero .proof-strip {
  display: flex; gap: var(--s6); flex-wrap: wrap;
  margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55); font-size: var(--fs-sm); font-weight: 600;
}
.hero .proof-strip b { color: #fff; font-family: var(--font-display); font-size: var(--fs-md); display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s6);
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base);
  cursor: pointer; text-decoration: none; letter-spacing: 0.01em;
  transition: transform var(--t-ui) var(--ease), background var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(229,53,43,0.35); }
.btn-primary:hover { background: var(--accent-hot); color: #fff; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
/* ghost/primary used on light body sections need dark ink, not white */
.wrap:not(.hero *) .btn-ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }

/* ---------- premium tool cards: literal credit cards, pick-me-up hover ---------- */
.card-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tool-tile {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s2);
  aspect-ratio: 1.586 / 1;              /* true credit-card ratio (ISO/IEC 7810) */
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), transparent 40%),
    linear-gradient(150deg, #201c17, #0f0d0b 70%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: var(--s5);
  text-decoration: none;
  box-shadow: var(--shadow-card-rest);
  transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
  overflow: hidden;
  color: #fff;
}
.tool-tile::before { /* chip */
  content: ""; position: absolute; top: var(--s5); left: var(--s5);
  width: 34px; height: 24px; border-radius: 5px;
  background: linear-gradient(135deg, #e8c25a, #b4892b);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.tool-tile::after { /* sheen sweep on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.14) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease);
}
.tool-tile:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-card-hover); }
.tool-tile:hover::after { transform: translateX(120%); }
.tool-tile .tag {
  position: absolute; top: var(--s5); right: var(--s5);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-family: var(--font-display);
}
.tool-tile b { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: #fff; letter-spacing: -0.01em; margin-top: auto; }
.tool-tile .hook { color: rgba(255,255,255,0.68); font-size: var(--fs-sm); margin: 0; }
.tool-tile .go {
  color: var(--accent-hot); font-weight: 700; font-size: var(--fs-sm); font-family: var(--font-display);
  display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s2);
  transition: color var(--t-ui) var(--ease), gap var(--t-ui) var(--ease);
}
.tool-tile:hover .go { color: #fff; gap: var(--s3); }

/* ---------- sections ---------- */
.hub-section { margin: var(--s9) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head a { font-size: var(--fs-sm); font-weight: 700; font-family: var(--font-display); text-decoration: none; color: var(--accent-ink); }

.edge-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-top: var(--s5); }
@media (min-width: 900px) { .edge-grid { grid-template-columns: 1fr 1fr 1fr; } }
.edge-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s6); background: var(--paper-raised); box-shadow: var(--shadow-1);
}
.edge-card h3 { margin-top: 0; }
.edge-card p { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }
.edge-card .who { color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-display); display: block; margin-bottom: var(--s3); }

/* ---------- tool page ---------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--ink-faint); margin: var(--s6) 0 0; }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink-soft); }
.tool-hero { padding: var(--s6) 0 0; }
.tool-hero h1 { margin-bottom: var(--s3); }
.tool-hero .lede { color: var(--ink-soft); font-size: var(--fs-md); max-width: 36em; }

.tool-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: var(--s6); margin: var(--s6) 0;
  position: relative;
}
.tool-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 65%); border-radius: var(--radius) var(--radius) 0 0; }
.tool-card .field { margin-bottom: var(--s4); }
.tool-card label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s2); color: var(--ink-soft); }
.tool-card input[type="text"], .tool-card input[type="number"], .tool-card select, .tool-card textarea {
  width: 100%; padding: var(--s3) var(--s4); min-height: 48px;
  font: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-sunken);
  transition: border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.tool-card input::placeholder, .tool-card textarea::placeholder { color: var(--ink-faint); }
.tool-card input:hover, .tool-card select:hover, .tool-card textarea:hover { border-color: var(--ink-faint); }
.tool-card input:focus, .tool-card select:focus, .tool-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); outline: none; background: var(--paper-raised); }
.tool-card select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355524c' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.tool-grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .tool-grid.cols-2 { grid-template-columns: 1fr 1fr; } .tool-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- result ---------- */
.result { margin-top: var(--s5); display: none; }
.result.show { display: block; animation: rise 400ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result.show { animation: none; } }
.result .headline-num { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: var(--s2); }
.result .headline-num .unit { font-size: var(--fs-base); color: var(--ink-soft); font-weight: 600; font-family: var(--font); }
.result-box { background: var(--paper-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s4) var(--s5); margin-top: var(--s3); }
.result-box.accent { border-color: #f4c4c0; background: var(--accent-wash); }
.result-box.ok { border-color: #b9e3cb; background: var(--ok-wash); }
.result ul.gen-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.result ul.gen-list li {
  background: var(--paper-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--s3) var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  transition: border-color var(--t-ui) var(--ease);
}
.result ul.gen-list li:hover { border-color: var(--line-strong); }
.copy-btn {
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: var(--s1) var(--s3); min-height: 34px; cursor: pointer; flex: none;
  transition: color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.copy-btn.copied { color: var(--ok); border-color: var(--ok); }
.error-msg { color: #a3261c; background: var(--accent-wash); border: 1px solid #f4c4c0; border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin-top: var(--s3); display: none; }
.error-msg.show { display: block; }

.action-plan { margin-top: var(--s4); }
.action-plan h3 { margin-top: 0; font-size: var(--fs-base); }
.action-plan ol { margin: 0; padding-left: 1.2em; }
.action-plan li { margin-bottom: var(--s2); }

/* ---------- content wing ---------- */
.wing { padding: var(--s7) 0; }
.wing p, .wing li { color: var(--ink-soft); }
.wing b, .wing strong { color: var(--ink); }
.wing .methodology { background: var(--paper-sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); margin: var(--s5) 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.faq summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink); font-family: var(--font-display); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { margin: var(--s3) 0 var(--s2); color: var(--ink-soft); }

/* ---------- related / email / ads / footer ---------- */
.related { background: var(--paper-sunken); border-top: 1px solid var(--line); padding: var(--s8) 0; }
.email-hook {
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: var(--s6); margin: var(--s7) 0;
  background: var(--paper-raised); box-shadow: var(--shadow-1);
}
.email-hook b { font-family: var(--font-display); font-size: var(--fs-md); }
.email-hook form { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }
.email-hook input[type="email"] { flex: 1 1 220px; min-height: 48px; padding: var(--s3) var(--s4); font: inherit; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-sunken); }
.email-hook input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); outline: none; }
.email-hook .fineprint { font-size: var(--fs-sm); color: var(--ink-faint); margin: var(--s3) 0 0; }

.ad-slot { min-height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-faint);
  font-size: var(--fs-sm); margin: var(--s6) 0; background: var(--paper-sunken); }

.site-footer { border-top: 1px solid var(--line); padding: var(--s8) 0; margin-top: var(--s9); color: var(--ink-soft); font-size: var(--fs-sm); background: var(--paper-sunken); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s5); margin-bottom: var(--s4); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }
.disclosure { font-size: var(--fs-sm); color: var(--ink-soft); background: var(--paper-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin: var(--s4) 0; }

/* ---------- HERO KEYNOTE: product-led, minimal, one floating object (Pixel-modeled) ---------- */
.hero-keynote { text-align: center; padding-bottom: 0; }
.hero-keynote .kicker,
.hero-keynote h1,
.hero-keynote .lede { margin-left: auto; margin-right: auto; }
.hero-keynote .cta-row { justify-content: center; }
/* keep the stage on a dark stage — object pops, then fades to the bright body at the very bottom */
.hero-keynote::before {
  background:
    radial-gradient(44% 52% at 50% 30%, var(--hero-glow), transparent 72%),
    linear-gradient(180deg, var(--hero-dark) 0%, var(--hero-mid) 66%, var(--paper) 100%);
}
.hero-stage {
  position: relative; height: 300px; margin-top: var(--s8);
  display: flex; align-items: center; justify-content: center; perspective: 1300px;
}
.hero-stage::before { /* soft accent spotlight behind the product */
  content: ""; position: absolute; z-index: 0;
  width: min(560px, 92%); height: 260px; top: 22%;
  background: radial-gradient(50% 50% at 50% 50%, var(--hero-glow), transparent 72%);
  filter: blur(6px);
}
.glass-stack {
  position: relative; z-index: 1; width: 300px; height: 190px;
  animation: floaty 6s var(--ease) infinite alternate;
}
@keyframes floaty { from { transform: translateY(6px); } to { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .glass-stack { animation: none; } }
.gcard {
  position: absolute; inset: 0; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.42);
  background: linear-gradient(150deg, rgba(255,255,255,.32), rgba(255,255,255,.05) 72%);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 34px 70px rgba(0,0,0,.45);
}
.gcard.c1 { z-index: 3; }
.gcard.c2 { z-index: 2; transform: translate(22px,-20px) scale(.95); opacity: .68; }
.gcard.c3 { z-index: 1; transform: translate(44px,-40px) scale(.9); opacity: .42; }
.gcard.c1 .gdot { position: absolute; top: 22px; left: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.gcard.c1 .gline { position: absolute; height: 8px; border-radius: 99px; background: rgba(255,255,255,.6); }
.gcard.c1 .gline.a { top: 62px; left: 24px; width: 58%; }
.gcard.c1 .gline.b { top: 82px; left: 24px; width: 38%; }
.gcard.c1 .gbar { position: absolute; left: 24px; right: 24px; bottom: 24px; height: 34px; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--accent-hot)); box-shadow: 0 8px 22px rgba(229,53,43,.55); }
@media (max-width: 560px) { .hero-stage { height: 240px; } .glass-stack { width: 240px; height: 150px; } }
/* local dark stage pool so the glass product always pops on dark (Pixel spotlight) */
.hero-keynote .hero-stage { background: radial-gradient(closest-side at 50% 46%, rgba(6,6,10,.58), transparent 78%); }
