/* Tapefab landing. Same identity as the panel (docs/DISENO.md): light studio, ink lines,
   hard shadows, JetBrains Mono for titles and numbers, Inter for text, pixel and ASCII details. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Jersey 10";
  src: url("/fonts/jersey-10-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0E1B2C; --text2: #3A4A60; --text3: #4A5A70;
  --bg: #F3F9FF; --surface: #FFFFFF; --sky: #7CC0FF; --sky-light: #BFE0FF; --sky-bg: #EAF5FF; --blue: #1A62B8;
  --needs: #FFD84D; --up-bg: #DDF5E9; --up: #1E6B4C; --lila: #EEE8FF; --cream: #FFF1CF; --pink: #FFE3F0;
  --line: #B9CCE2; --ascii: #9DB4CF; --edge: var(--ink); --shadow-color: var(--ink); --on-bright: #0E1B2C;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --shadow: 4px 4px 0 var(--shadow-color);
  color-scheme: light;
}
/* Dark: follows the system unless the visitor picks a theme (data-theme on <html>, see theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EDEDED; --text2: #BDBDBD; --text3: #9C9C9C;
    --bg: #0A0A0A; --surface: #161616; --sky-light: #1D3A57; --sky-bg: #1F1F1F; --blue: #8CC8FF;
    --up-bg: #113A2B; --up: #7BE0AE; --lila: #1E1A33; --cream: #262013; --pink: #2E1824;
    --line: #333333; --ascii: #555555; --edge: #555555; --shadow-color: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EDEDED; --text2: #BDBDBD; --text3: #9C9C9C;
  --bg: #0A0A0A; --surface: #161616; --sky-light: #1D3A57; --sky-bg: #1F1F1F; --blue: #8CC8FF;
  --up-bg: #113A2B; --up: #7BE0AE; --lila: #1E1A33; --cream: #262013; --pink: #2E1824;
  --line: #333333; --ascii: #555555; --edge: #555555; --shadow-color: #000000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
img, svg { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--mono); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text3); }
.fine { color: var(--text3); font-size: 14px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; border: 2px solid var(--edge); background: var(--surface); color: var(--ink); font-family: var(--mono); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 2px solid var(--edge); background: var(--sky); color: var(--on-bright); box-shadow: var(--shadow);
  font: 700 15px/1 var(--mono); text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow-color); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow-color); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--shadow-color); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 2px solid var(--edge); font: 700 12px/1.4 var(--mono); }
.chip .dot { width: 8px; height: 8px; border: 2px solid var(--edge); }
.chip-beta { background: var(--lila); }
.chip-beta .dot { background: var(--sky); }
.chip-needs { background: var(--needs); color: var(--on-bright); border-color: var(--ink); }
.chip-needs .dot { background: var(--on-bright); border-color: var(--on-bright); }
.chip-best { position: absolute; top: -16px; left: 16px; background: var(--needs); color: var(--on-bright); border-color: var(--ink); }
.card { border: 2px solid var(--edge); background: var(--surface); box-shadow: var(--shadow); }
.ico { width: 18px; height: 18px; fill: currentColor; shape-rendering: crispEdges; flex: none; }
.ico-lg { width: 32px; height: 32px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; border-bottom: 2px solid var(--edge); background: var(--bg); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 400 32px/1 "Jersey 10", var(--mono); text-decoration: none; letter-spacing: 0.01em; }
.brand span { padding-bottom: 2px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); font: 600 14px/1 var(--mono); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: flex; border: 2px solid var(--edge); background: var(--surface); }
.lang a { display: grid; place-items: center; min-width: 40px; min-height: 40px; color: var(--ink); font: 700 12px/1 var(--mono); text-decoration: none; }
.lang a + a { border-left: 2px solid var(--edge); }
.lang a[aria-current="page"] { background: var(--sky-light); }
.theme { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--edge); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
.top-cta { display: none; }
@media (min-width: 560px) { .top-cta { display: inline-flex; } }
@media (min-width: 900px) { .nav { display: flex; } .tools { margin-left: 16px; } }

/* Hero */
.hero { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ascii { color: var(--ascii); font: 600 12px/1.4 var(--mono); letter-spacing: .04em; }
h1 { font-size: clamp(32px, 7.4vw, 56px); font-weight: 800; }
.lead { max-width: 34em; color: var(--text2); font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 72px; padding-bottom: 88px; } }

/* Hero demo */
.hero-demo { position: relative; display: grid; justify-items: center; gap: 0; }
.phone { width: min(100%, 320px); border: 2px solid var(--edge); background: var(--surface); box-shadow: 6px 6px 0 var(--shadow-color); }
.phone-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 2px solid var(--edge); font-size: 12px; }
.reel { position: relative; height: 300px; overflow: hidden; border-bottom: 2px solid var(--edge); background: var(--cream); }
.reel-sky { position: absolute; inset: 0 0 40% 0; background:
  repeating-linear-gradient(0deg, transparent 0 10px, rgba(255,216,77,.35) 10px 12px), #FFE7A6; }
.reel-loaves { position: absolute; left: 0; right: 0; bottom: 18%; display: flex; justify-content: center; gap: 10px; }
.reel-loaves i { width: 72px; height: 44px; border: 2px solid #0E1B2C; background:
  repeating-linear-gradient(90deg, #C98A3A 0 14px, #E2A85A 14px 16px); box-shadow: 3px 3px 0 #0E1B2C; }
.reel-loaves i:nth-child(2) { transform: translateY(-14px); }
.reel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: #8A5A2B; border-top: 2px solid #0E1B2C; }
.reel-caption { position: absolute; left: 12px; right: 12px; top: 18px; z-index: 1; padding: 8px 10px; border: 2px solid #0E1B2C;
  background: #FFFFFF; color: #0E1B2C; font: 800 16px/1.25 var(--mono); }
.reel-time { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 2px 6px; border: 2px solid #0E1B2C; background: #FFFFFF; color: #0E1B2C; font-size: 12px; }
.phone-meta { display: grid; gap: 10px; padding: 12px; }
.phone-meta > p { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.nets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nets li { padding: 2px 8px; border: 2px solid var(--edge); background: var(--sky-bg); font: 600 12px/1.5 var(--mono); }
.phone-actions { display: flex; gap: 8px; }
.phone-actions .btn { flex: 1; cursor: default; }
.phone-actions .btn:hover, .phone-actions .btn:active { transform: none; box-shadow: 3px 3px 0 var(--shadow-color); }
.stats { width: min(100%, 320px); margin-top: 20px; padding: 14px; display: grid; gap: 6px; background: var(--surface); }
.stats-title { font-size: 12px; font-weight: 700; }
.bar { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 8px; font: 13px/1.3 var(--mono); }
.bar .blocks { color: var(--blue); overflow: hidden; white-space: nowrap; letter-spacing: -1px; }
.bar b { font-weight: 800; }
.learned { display: flex; gap: 8px; margin-top: 6px; padding: 8px; border: 2px dotted var(--line); background: var(--lila); font-size: 13px; }
.demo-stack { position: relative; display: grid; justify-items: center; width: min(100%, 320px); }
@media (min-width: 900px) { .hero-demo { justify-items: end; } }
/* Wide screens: the results card overlaps the decorative video image, never the buttons. */
@media (min-width: 1100px) {
  .stats { position: absolute; top: 130px; right: calc(100% - 90px); width: 250px; margin-top: 0; }
}

/* Sections */
.band { padding: 56px 0; border-top: 2px solid var(--edge); border-bottom: 2px solid var(--edge); background: var(--sky-bg); }
.section { padding-top: 56px; padding-bottom: 56px; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--text2); font: 700 10px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.meet { display: flex; gap: 16px; align-items: center; max-width: 760px; margin: 0 0 28px; padding: 16px 18px; }
.meet img { flex: none; image-rendering: pixelated; }
.meet p { margin: 0; color: var(--text2); }
.meet strong { color: var(--ink); }
.ascii-title { margin-bottom: 28px; font-size: clamp(20px, 4vw, 28px); font-weight: 800; }
.ascii-title span { color: var(--ascii); font-weight: 600; }
h3 { font-size: 18px; font-weight: 800; }
.card p { color: var(--text2); }
.card .price, .card .plan-for { color: var(--ink); }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; gap: 8px; padding: 18px; }
.step-n { color: var(--blue); font-size: 14px; font-weight: 800; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.features { display: grid; gap: 16px; }
.feat { display: grid; gap: 10px; align-content: start; padding: 18px; }
.feat .ico-lg { color: var(--blue); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Pricing */
.toggles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.seg { display: inline-flex; border: 2px solid var(--edge); background: var(--surface); box-shadow: 3px 3px 0 var(--shadow-color); }
.seg button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 600 13px/1 var(--mono); cursor: pointer; }
.seg button + button { border-left: 2px solid var(--edge); }
.seg button[aria-pressed="true"] { background: var(--sky-light); font-weight: 800; }
.plans { display: grid; gap: 28px 16px; margin-bottom: 24px; }
.plan { position: relative; display: grid; gap: 12px; align-content: start; padding: 22px 18px; }
.plan-main { background: var(--surface); box-shadow: 6px 6px 0 var(--shadow-color); }
.plan-main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--sky); border-bottom: 2px solid var(--edge); }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.price b { font-size: 40px; font-weight: 800; }
.per { color: var(--text3); font-size: 14px; }
.plan-for { font-weight: 600; }
.list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--text2); font-size: 15px; }
.list li { position: relative; padding-left: 26px; }
.list li::before { content: "■"; position: absolute; left: 0; top: 0; color: var(--blue); font: 700 12px/1.9 var(--mono); }
.list strong { color: var(--ink); }
.fine + .fine { margin-top: 6px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 2px solid var(--edge); background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px;
  font: 700 15px/1.35 var(--mono); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 2px dotted var(--line); }
.faq details p { padding: 12px 16px 16px; color: var(--text2); }

/* Closing and footer */
.closing { display: grid; justify-items: start; gap: 18px; padding: 28px 22px; background: var(--cream); }
.closing h2 { font-size: clamp(22px, 4.6vw, 34px); font-weight: 800; }
@media (min-width: 900px) { .closing { grid-template-columns: 1fr auto; align-items: center; padding: 36px; } }
.foot { border-top: 2px solid var(--edge); background: var(--surface); }
.foot-in { display: grid; gap: 14px; padding-top: 28px; padding-bottom: 36px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font: 600 14px/1.4 var(--mono); }
.foot-links a { color: var(--ink); }

/* From our own channels */
.proof-in { display: grid; gap: 28px; }
.proof-copy { display: grid; gap: 18px; align-content: start; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.totals div { padding: 12px; }
.totals dt { color: var(--text3); font: 600 12px/1.3 var(--mono); }
.totals dd { margin: 4px 0 0; color: var(--blue); font: 800 clamp(20px, 4.4vw, 26px)/1 var(--mono); white-space: nowrap; }
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.covers li { display: grid; overflow: hidden; }
.covers img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-bottom: 2px solid var(--edge); }
.covers p { padding: 8px; color: var(--text2); font-size: 11px; }
.covers b { color: var(--ink); }
@media (min-width: 900px) { .proof-in { grid-template-columns: 1fr 1fr; align-items: center; } .covers p { font-size: 12px; } }
.made { color: var(--text3); font-size: 13px; }
.made a { color: var(--ink); font-weight: 800; }
