/* DubHard brand system. Fonts and images are all served from this site. */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #08080a;
  --bg-2: #0f0f13;
  --card: #15151a;
  --card-2: #1f1f27;
  --line: #2a2a33;
  --text: #f6f6f8;
  --muted: #9c9caa;
  /* The one brand colour. To rebrand, change these four lines (and the fill in favicon.svg). */
  --accent: #c8ff2e;          /* lime */
  --accent-hi: #dcff70;       /* hover and links */
  --accent-rgb: 200, 255, 46; /* same colour as numbers, for glows */
  --ink: #0d1400;             /* text on the accent colour */
  --gold: #ffc24a;            /* small highlights only */
  --ok: #3ddc97;
  --warn: #ffc24a;
  --bad: #ff5d6c;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-bottom: 72px; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .45em; font-family: var(--display); text-transform: uppercase; font-synthesis-style: none; }
h1, h2 { font-style: italic; font-weight: 800; line-height: .95; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: .02em; }
h4 { font-weight: 700; font-size: 1rem; letter-spacing: .1em; color: var(--muted); }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
img, video, canvas { max-width: 100%; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.section { padding-top: 72px; }
.grad { color: var(--accent); }
.eyebrow { font: 700 .95rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin: 0 0 .7em; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; color: var(--ink); background: var(--accent);
  font: 700 1.08rem/1 var(--display); text-transform: uppercase; letter-spacing: .07em;
  padding: 13px 24px 12px; border-radius: 8px; text-decoration: none;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(var(--accent-rgb), .35); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn-lg { padding: 17px 34px 16px; font-size: 1.3rem; }
.btn-sm { padding: 9px 16px 8px; font-size: .98rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px var(--muted); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-hi); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.inline { display: inline; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); line-height: 1; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; transform: skewX(-8deg); }
.logo-bubble { fill: var(--accent); }
.logo-bar { fill: var(--bg); }
.logo-word { font: italic 800 1.75rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.logo-word b { font-weight: 800; color: var(--accent); }
.logo-lg { justify-content: center; }
.logo-lg .logo-mark { width: 44px; height: 44px; }
.logo-lg .logo-word { font-size: 2.6rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(8, 8, 10, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a:not(.btn), .nav-links .linklike { color: var(--text); font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .09em; }
.nav-links a:not(.btn):hover, .nav-links .linklike:hover { color: var(--accent-hi); text-decoration: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 28px; font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 12px 0 0; max-width: 300px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { margin-bottom: 4px; }
.foot-col a { color: var(--text); }
.foot-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* Flash messages */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.flash-ok { border-color: rgba(61, 220, 151, .5); }
.flash-error { border-color: rgba(255, 93, 108, .6); }
.flash-info { border-color: rgba(255, 194, 74, .5); }

/* Hero */
.hero { position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 70%, var(--bg) 100%),
    radial-gradient(760px 560px at 76% 62%, rgba(var(--accent-rgb), .34), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 26px),
    #0b0b0e; }
.hero-word { position: absolute; right: -3vw; top: 2%; z-index: 0; font: italic 800 clamp(9rem, 25vw, 23rem)/.8 var(--display); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .075); white-space: nowrap; pointer-events: none; user-select: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 16px; align-items: center; padding-top: 40px; }
.hero-copy { padding: 24px 0 72px; }
.hero h1 { font-size: clamp(3.6rem, 9.2vw, 7.4rem); line-height: .86; margin-bottom: .28em; }
.lead { font-size: 1.14rem; color: #c9c9d3; max-width: 33em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 26px; flex-wrap: wrap; color: var(--muted);
  font: 600 1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .09em; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; background: var(--accent); transform: skewX(-12deg); }
.hero-points strong { color: var(--text); }

/* Hero stage: three cutouts, language tags around them */
.stage { position: relative; height: 640px; align-self: end; }
.stage-glow { position: absolute; left: 50%; bottom: -120px; width: 560px; height: 560px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .6), rgba(var(--accent-rgb), .16) 46%, transparent 70%); filter: blur(12px); }
.cut { position: absolute; bottom: 0; height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); }
.cut-c { left: 50%; transform: translateX(-50%); z-index: 3; }
.cut-l { left: 0; height: 86%; z-index: 2; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)) brightness(.72) saturate(.9); }
.cut-r { right: -3%; height: 88%; z-index: 2; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)) brightness(.72) saturate(.9); }
.bubble { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border-radius: 8px;
  background: rgba(15, 15, 19, .9); border: 1px solid var(--line); white-space: nowrap; font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); backdrop-filter: blur(6px); animation: float 6s ease-in-out infinite; font-synthesis-style: none; }
.bubble i { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); position: relative; flex: none; }
.bubble i::after { content: ""; position: absolute; left: 7px; top: 5px; border-left: 6px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.bubble-1 { top: 8%; left: 0; } .bubble-2 { top: 4%; right: 4%; animation-delay: -1s; } .bubble-3 { top: 34%; left: -4%; animation-delay: -2s; }
.bubble-4 { top: 30%; right: -2%; animation-delay: -3s; } .bubble-5 { top: 60%; left: 4%; animation-delay: -4s; } .bubble-6 { top: 56%; right: 2%; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Language ticker under the hero */
.ticker { background: var(--accent); color: var(--ink); overflow: hidden; border-top: 1px solid rgba(0, 0, 0, .2); }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker-group { display: flex; align-items: center; flex: none; }
.ticker span { font: italic 800 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 13px 0 12px; white-space: nowrap; font-synthesis-style: none; }
.ticker i { width: 9px; height: 20px; margin: 0 26px; background: var(--ink); opacity: .55; transform: skewX(-14deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Section heads */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head .eyebrow { margin-bottom: .5em; }
.sec-head > a { font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.sec-sub { color: var(--muted); max-width: 44em; margin: -10px 0 24px; }

/* Language pills */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.langs-left { justify-content: flex-start; margin: 8px 0 28px; }
.lang { padding: 8px 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: 600 .95rem/1.3 var(--font); }
.lang:hover { text-decoration: none; border-color: var(--muted); }
.lang.on { background: var(--accent); color: var(--ink); border-color: transparent; font-weight: 700; }

/* Language switch demo */
.demo { display: grid; grid-template-columns: 340px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.demo-cover { position: relative; min-height: 420px; background: #000; }
.demo-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.demo-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--card) 100%); }
.demo-tag { position: absolute; z-index: 1; left: 14px; top: 14px; padding: 5px 10px 4px; border-radius: 5px; font: 700 .9rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; background: var(--accent); color: var(--ink); transform: skewX(-8deg); }
.demo-body { padding: 36px 40px; min-width: 0; align-self: center; }
.demo-screen { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 12px 0 18px; }
.demo-line { font: italic 700 clamp(1.6rem, 3.2vw, 2.4rem)/1.12 var(--display); margin: 14px 0 10px; min-height: 2.3em; transition: opacity .2s ease; font-synthesis-style: none; }
.demo-line.swap { opacity: 0; }
.demo-audio { margin: 0; color: var(--muted); font: 600 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.demo-audio b { color: var(--accent); }
.demo-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-langs .lang { cursor: pointer; }
.wave { display: flex; gap: 4px; align-items: center; height: 36px; }
.wave i { flex: 1; max-width: 9px; background: var(--accent); border-radius: 3px; height: 30%; animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .15s; } .wave i:nth-child(3n) { animation-delay: .35s; } .wave i:nth-child(5n) { animation-delay: .6s; } .wave i:nth-child(7n) { animation-delay: .8s; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }

/* Language cards */
.langgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.langcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.langcard:hover { text-decoration: none; transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: var(--ink); }
.langcard-code { position: absolute; right: 10px; top: -10px; font: italic 800 6.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09); }
.langcard:hover .langcard-code { -webkit-text-stroke-color: rgba(18, 5, 0, .25); }
.langcard-name { position: relative; font: italic 800 2.2rem/1 var(--display); text-transform: uppercase; font-synthesis-style: none; }
.langcard-meta { position: relative; color: var(--muted); font: 600 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.langcard-meta b { color: var(--accent); }
.langcard:hover .langcard-meta, .langcard:hover .langcard-meta b { color: var(--ink); }

/* Cover row */
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cover { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cover:hover { text-decoration: none; }
.cover:hover img { transform: scale(1.05); }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s ease; pointer-events: none; }
.cover:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.cover-new { position: absolute; left: 10px; top: 10px; padding: 4px 9px 3px; border-radius: 4px; background: var(--accent); color: var(--ink); font: 700 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; transform: skewX(-8deg); }
.cover-play { position: absolute; left: 50%; top: 42%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.8); transition: opacity .15s ease, transform .15s ease; }
.cover-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 17px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.cover:hover .cover-play { opacity: 1; transform: scale(1); }
.cover-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 14px 13px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, transparent, rgba(8, 8, 10, .95) 62%); }
.cover-title { font: 700 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.cover-langs { display: flex; gap: 5px; flex-wrap: wrap; }
.cover-langs i { font: 700 .78rem/1 var(--display); letter-spacing: .08em; padding: 3px 6px 2px; border-radius: 4px; background: rgba(255, 255, 255, .16); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step, .card, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card { margin: 0 0 18px; }
.card > :last-child, .step > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.6rem; }
.step-n { font: italic 800 3.6rem/.9 var(--display); color: var(--accent); margin-bottom: 10px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 34px 0 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; padding: 30px 26px 26px; }
.plan h3 { font-size: 1.5rem; margin-bottom: .2em; }
.plan-note { font: 700 .92rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.plan-featured { border: 2px solid var(--accent); background: linear-gradient(180deg, rgba(var(--accent-rgb), .13), var(--card) 45%); box-shadow: 0 24px 70px rgba(var(--accent-rgb), .16); }
.plan-featured .plan-note { position: absolute; top: -13px; left: 24px; margin: 0; padding: 6px 12px 5px; border-radius: 5px; background: var(--accent); color: var(--ink); transform: skewX(-8deg); }
.plan-price { font: italic 800 5rem/.9 var(--display); letter-spacing: -.01em; margin: 6px 0 8px; }
.plan-price sup { font-size: .42em; vertical-align: top; position: relative; top: .12em; margin: 0 2px; }
.plan-per { color: var(--muted); font-size: .92rem; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.plan li { position: relative; padding: 5px 0 5px 26px; color: #d3d3dc; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.trust { list-style: none; padding: 0; margin: 8px 0 0; display: flex; justify-content: center; gap: 10px 30px; flex-wrap: wrap; color: var(--muted);
  font: 600 1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.trust li { display: inline-flex; align-items: center; gap: 9px; }
.trust li::before { content: ""; width: 8px; height: 8px; background: var(--accent); transform: skewX(-12deg); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two .card { margin: 0; padding: 30px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 700 1.7rem/1 var(--display); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 0 18px; color: var(--muted); }

.cta-band { position: relative; overflow: hidden; text-align: center; padding: 64px 24px; border-radius: 16px; background: var(--accent); color: var(--ink); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 24px); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 14em; margin: 0 auto .5em; font-synthesis-style: none; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--ink); color: var(--text); }
.cta-band .btn:hover { background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* Forms */
.auth { max-width: 460px; padding-top: 56px; }
.form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.form input:not([type=checkbox]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: 1rem var(--font);
}
.form input:not([type=checkbox]):focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form small { display: block; font-weight: 400; margin-top: 4px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 5px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.inline-form { margin-top: 12px; }

/* Tables and badges */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font: 600 .9rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 9px 2px; border-radius: 5px; font: 700 .85rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .09em; background: var(--card-2); color: var(--muted); }
.badge-paid { background: rgba(61, 220, 151, .16); color: var(--ok); }
.badge-seen, .badge-pending, .badge-admin { background: rgba(255, 194, 74, .16); color: var(--warn); }
.badge-expired, .badge-void { background: rgba(255, 93, 108, .14); color: var(--bad); }

/* Invoice */
.invoice-status { padding: 12px 14px; border-radius: 10px; background: var(--bg-2); margin-bottom: 18px; }
.invoice-grid { display: grid; grid-template-columns: 232px 1fr; gap: 24px; align-items: start; margin-bottom: 14px; }
.qr { display: block; background: #fff; padding: 10px; border-radius: 12px; line-height: 0; }
.qr canvas { width: 100%; height: auto; image-rendering: pixelated; }
.invoice-fields label { display: block; font-weight: 600; margin-bottom: 14px; }
.copyrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.copyrow code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 1.05rem; word-break: break-all; }
.copyrow .addr { font-size: .9rem; }
.unit { color: var(--muted); font-weight: 600; }
.invoice ul { padding-left: 1.1em; margin: 0; }
.invoice .help { background: var(--bg-2); margin: 10px 0 0; }
.invoice .help:first-of-type { margin-top: 18px; }

/* Library */
.lib-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lib-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.lib-top h1 { margin: 0; font-size: clamp(2.8rem, 6.5vw, 4.6rem); font-synthesis-style: none; }
.lib-top .eyebrow { margin-bottom: .5em; }
.lib-search { display: flex; gap: 8px; }
.lib-search input { width: 240px; max-width: 100%; padding: 10px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 1rem var(--font); }
.lib-search input:focus { border-color: var(--accent); outline: none; }
.lib-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 0; margin-bottom: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lib-filter-label, .tracks-label { font: 700 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-right: 6px; }
.lib-result { color: var(--muted); margin: -8px 0 20px; }
.lib-all { margin-top: 44px; }
.joinbar { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 26px; border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), .45); background: linear-gradient(90deg, rgba(var(--accent-rgb), .14), transparent 70%), var(--card); }
.joinbar p { margin: 0; color: #d3d3dc; }
.joinbar strong { color: var(--text); }

/* Featured scene */
.feature { position: relative; display: block; min-height: 440px; border-radius: 16px; overflow: hidden; color: var(--text); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.feature:hover { text-decoration: none; }
.feature-bg { position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%); mask-image: linear-gradient(90deg, transparent, #000 48%); }
.feature:hover .feature-bg { transform: scale(1.03); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 10, .75), transparent 45%); pointer-events: none; }
.feature-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px; min-height: 440px; padding: 40px; max-width: 620px; }
.feature-body .eyebrow { margin: 0; }
.feature-title { font: italic 800 clamp(2.6rem, 6vw, 4.8rem)/.9 var(--display); text-transform: uppercase; }
.feature-meta { color: #d3d3dc; font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.feature-btn { margin-top: 8px; }
.feature:hover .feature-btn { background: var(--accent-hi); box-shadow: 0 10px 30px rgba(var(--accent-rgb), .35); }
.cover-langs i.on, .tile-langs span.on { background: var(--accent); color: var(--ink); }

/* Scene tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tile { display: block; color: var(--text); }
.tile:hover { text-decoration: none; }
.tile-img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #22222b, #131318 60%); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; transition: transform .35s ease; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-img::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s ease; pointer-events: none; }
.tile:hover .tile-img::after { box-shadow: inset 0 0 0 2px var(--accent); }
.tile-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.8); transition: opacity .15s ease, transform .15s ease; }
.tile-play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.tile:hover .tile-play { opacity: 1; transform: scale(1); }
.tile-dur, .tile-lock, .tile-new { position: absolute; padding: 4px 8px 3px; border-radius: 4px; font: 700 .85rem/1 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.tile-dur { right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); }
.tile-new { left: 8px; top: 8px; background: var(--accent); color: var(--ink); transform: skewX(-8deg); }
.tile-lock { right: 8px; top: 8px; background: rgba(0, 0, 0, .78); color: var(--accent); }
.tile-body { padding: 12px 2px 4px; }
.tile-body h3 { font-size: 1.4rem; margin-bottom: 8px; }
.tile:hover h3 { color: var(--accent-hi); }
.tile-langs { display: flex; gap: 5px; flex-wrap: wrap; }
.tile-langs span { font: 700 .78rem/1 var(--display); letter-spacing: .08em; padding: 3px 6px 2px; border-radius: 4px; background: var(--card-2); color: var(--muted); }
.empty { padding: 56px 22px; }

/* Watch page */
.theater { background: linear-gradient(180deg, #000 0%, #000 55%, var(--bg) 100%); padding: 24px 0 0; }
.player-wrap { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(var(--accent-rgb), .10); }
.player-wrap video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.player-cover[hidden] { display: none; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; opacity: .82; transition: opacity .2s ease, transform .5s ease; }
.player-cover:hover img { opacity: 1; transform: scale(1.02); }
.player-cover-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--accent); box-shadow: 0 16px 50px rgba(0, 0, 0, .5); transition: transform .15s ease; }
.player-cover-play::after { content: ""; position: absolute; left: 38px; top: 28px; border-left: 30px solid var(--ink); border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.player-cover:hover .player-cover-play { transform: scale(1.08); }
.wm { position: absolute; z-index: 2; left: 8%; top: 10%; pointer-events: none; user-select: none; white-space: nowrap;
  font: 700 clamp(.7rem, 1.3vw, .95rem)/1 var(--display); letter-spacing: .18em; color: rgba(255, 255, 255, .34);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45); transition: left 2.5s ease, top 2.5s ease; }
.player-wrap.is-fs { border-radius: 0; display: flex; align-items: center; background: #000; }
.player-wrap.is-fs video { height: 100%; aspect-ratio: auto; }
.fs-btn { position: absolute; z-index: 3; right: 12px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .15s ease; }
.player-wrap:hover .fs-btn, .fs-btn:focus-visible { opacity: 1; }
.fs-btn::before, .fs-btn::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid #fff; }
.fs-btn::before { left: 9px; top: 9px; border-right: 0; border-bottom: 0; }
.fs-btn::after { right: 9px; bottom: 9px; border-left: 0; border-top: 0; }
.player-cover { z-index: 4; }
.player-cover:not(:has(img)) { background: radial-gradient(circle at 50% 50%, #1f1f27, #000 70%); }
.player-msg { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px; text-align: center; background: rgba(0, 0, 0, .82); }
.player-msg[hidden] { display: none; }
.player-msg p { margin: 0; font: 700 1.3rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; max-width: 26em; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 26px; }
.watch-main h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: .2em; }
.tracks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.watch-meta { color: var(--muted); font: 600 1.05rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.desc { color: #c9c9d3; max-width: 70ch; }
.watch-back { margin-top: 26px; }
.upnext h2 { font-size: 1.7rem; margin-bottom: .7em; }
.next { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; color: var(--text); }
.next:hover { text-decoration: none; }
.next-img { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #22222b, #131318 60%); box-shadow: inset 0 0 0 1px var(--line); }
.next-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.next-img .tile-dur { right: 5px; bottom: 5px; font-size: .78rem; padding: 3px 6px 2px; }
.next-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.next-title { font: 700 1.2rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.next:hover .next-title { color: var(--accent-hi); }
.prose { padding-top: 56px; }
.prose h2 { margin-top: 1.5em; font-size: 1.5rem; }
.prose p, .prose li { color: var(--muted); }

.soon { padding-top: 18vh; }
.soon h1 { font-size: clamp(3rem, 9vw, 5.5rem); margin: 28px 0 .2em; }
.soon .lead { margin: 0 auto; }
.soon-login { margin-top: 40px; font-size: .85rem; }
.soon-login a { color: var(--muted); }

/* Admin */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; font: 600 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .09em; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-v { font: italic 800 2.2rem/1 var(--display); margin-bottom: 4px; }

/* Age gate */
body.gated { overflow: hidden; }
body.gated > header, body.gated > main, body.gated > footer { filter: blur(18px); pointer-events: none; user-select: none; }
.agegate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 8, 10, .84); }
.agegate-box { max-width: 480px; text-align: center; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 14px; padding: 36px 28px; }
.agegate-box .logo { margin-bottom: 18px; }
.agegate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-copy { padding: 16px 0 0; }
  .hero-word { top: auto; bottom: 30%; }
  .stage { height: 430px; max-width: 460px; width: 100%; margin: 0 auto; }
  .stage-glow { width: 380px; height: 380px; }
  .bubble { font-size: .92rem; padding: 6px 11px 6px 8px; }
  .bubble-3 { left: 0; } .bubble-4 { right: 0; }
  .demo { grid-template-columns: 1fr; }
  .demo-cover { min-height: 0; height: 240px; }
  .demo-cover::after { background: linear-gradient(180deg, transparent 55%, var(--card) 100%); }
  .demo-body { padding: 22px 20px 26px; }
  .langgrid, .covers { grid-template-columns: repeat(2, 1fr); }
  .steps, .two, .form-grid { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: 1fr; gap: 32px; }
  .theater { padding-top: 12px; }
  .feature, .feature-body { min-height: 380px; }
  .feature-bg { width: 100%; -webkit-mask-image: linear-gradient(0deg, transparent 8%, #000 70%); mask-image: linear-gradient(0deg, transparent 8%, #000 70%); }
  .feature-body { padding: 24px 20px; }
  .lib-search { width: 100%; }
  .lib-search input { flex: 1; width: auto; }
  .invoice-grid { grid-template-columns: 1fr; }
  .qr { max-width: 232px; margin: 0 auto; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .section { padding-top: 56px; }
}
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }  /* sides only: sections keep their top spacing */
  .nav-links { gap: 14px; flex-wrap: nowrap; }
  .nav-links .nav-opt { display: none; }  /* guests on phones: logo, log in, join. The hero links to the rest. */
  .nav-links { gap: 11px; }
  .nav-links a:not(.btn), .nav-links .linklike { font-size: .88rem; letter-spacing: .04em; white-space: nowrap; }
  .logo-word { font-size: 1.35rem; }
  .logo-mark { width: 26px; height: 26px; }
  .theater .wrap { padding-left: 0; padding-right: 0; }
  .theater .player-wrap { border-radius: 0; }
  .player-cover-play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .player-cover-play::after { left: 29px; top: 21px; border-left-width: 22px; border-top-width: 15px; border-bottom-width: 15px; }
  .next { grid-template-columns: 130px minmax(0, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .langcard { padding: 20px 16px 16px; }
  .langcard-name { font-size: 1.7rem; }
  .langcard-code { font-size: 4.6rem; }
  .cover-title { font-size: 1.15rem; }
  .ticker span { font-size: 1.3rem; }
  .btn-lg { padding: 15px 26px 14px; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wave i { animation: none; height: 50%; }
  .bubble, .ticker-track { animation: none; }
  .wm { transition: none; }
  .btn, .tile-img img, .tile-play, .feature-bg, .player-cover img, .cover img, .cover-play, .langcard, .demo-line { transition: none; }
}
