/* textkeep.app. Strict CSP: no inline styles or scripts, so everything lives here.
   Animations are CSS only and switch off with "Reduce motion". */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --surface-2: #EEF1F6;
  --line: #DFE4EC;
  --ink: #0E1524;
  --ink-2: #26304A;
  --muted: #4E5A72;
  --accent: #8A5A00;
  --accent-hover: #6B4500;
  --teal: #00796F;
  --gold: #F5B544;
  --night: #0E1524;
  --night-2: #131C30;
  --night-line: #22304D;
  --night-ink: #E8ECF4;
  --night-muted: #A9B3C7;
  --night-teal: #2EE6D6;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Big Shoulders Display", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B111E;
    --surface: #131C30;
    --surface-2: #18223A;
    --line: #22304D;
    --ink: #E8ECF4;
    --ink-2: #C9D1E0;
    --muted: #A9B3C7;
    --accent: #F5B544;
    --accent-hover: #FFD27F;
    --teal: #2EE6D6;
    --night: #070B14;
    --night-2: #0E1524;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

code, .mono { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--night); color: var(--night-ink); border-bottom: 1px solid var(--night-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--night-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--night-ink); }

/* Hero */
.hero {
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(46, 230, 214, 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(245, 181, 68, 0.12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--night);
  color: var(--night-ink);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--night-teal); letter-spacing: 0.02em; margin: 0 0 16px; }
.eyebrow .prompt { color: var(--gold); }
.hero h1 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(48px, 6.2vw, 80px); line-height: 0.95; letter-spacing: 0.005em; font-weight: 800; text-transform: none; }
.hero h1 span { color: var(--gold); }
.hero p.lead { margin: 0 0 28px; font-size: 19px; color: var(--night-muted); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon { display: inline-block; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; background: var(--gold); color: #1B1405; }
.soon.flush { margin-top: 4px; }
.ghost { display: inline-block; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--night-line); color: var(--night-ink); text-decoration: none; background: rgba(255, 255, 255, 0.03); }
.ghost:hover { color: #FFFFFF; border-color: var(--night-teal); }
.platforms { margin: 16px 0 0; font-size: 14px; color: var(--night-muted); }


/* Trust strip */
.trust { background: var(--night-2); border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); color: var(--night-ink); }
.trust ul { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.trust svg { color: var(--night-teal); flex: none; }

/* Sections */
section { padding: 72px 0; }
h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 54px); line-height: 1.02; letter-spacing: 0.005em; font-weight: 800; margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card svg { color: var(--teal); }
.card h3 { margin: 12px 0 6px; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.pro-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: #1B1405; vertical-align: 2px; }

/* Showcase */
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }

/* Privacy band */
.privacy-band {
  background: radial-gradient(60% 80% at 100% 50%, rgba(46, 230, 214, 0.1), transparent 70%), var(--night);
  color: var(--night-ink);
}
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.privacy-band .kicker { color: var(--gold); }
.privacy-band .section-lead { color: var(--night-muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checks svg { flex: none; color: var(--night-teal); margin-top: 3px; }
.more { margin: 32px 0 0; }
.privacy-band a { color: var(--gold); }
.privacy-band a:hover { color: #FFD27F; }
.flow svg { display: block; width: 100%; height: auto; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.flow text { fill: var(--night-ink); font-size: 15px; font-weight: 700; text-anchor: middle; }
.flow .f-sub { fill: var(--night-muted); font-size: 13px; font-weight: 500; }
.f-line { stroke: var(--night-teal); stroke-width: 2.5; fill: none; }
.f-line.dashed { stroke: #5A6680; stroke-dasharray: 5 6; }
.f-node rect { fill: var(--night-2); stroke: var(--night-teal); stroke-width: 1.5; }
.f-hub rect { fill: #1A2440; stroke: var(--gold); stroke-width: 2; }
.f-hub .f-lockbody { fill: var(--gold); stroke: none; }
.f-lock { fill: none; stroke: var(--gold); stroke-width: 3; }
.f-none rect { fill: transparent; stroke: #5A6680; stroke-width: 1.5; stroke-dasharray: 5 6; }
.f-none text { fill: var(--night-muted); text-decoration: line-through; }
.f-none .f-sub { text-decoration: none; }

/* Maker */
.maker-band { background: var(--surface); border-top: 1px solid var(--line); }
.maker-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; max-width: 900px; }
.maker-cross { fill: var(--gold); filter: drop-shadow(0 8px 24px rgba(245, 181, 68, 0.35)); }
.maker-band h2 { margin-bottom: 10px; }
.maker-band p { color: var(--muted); margin: 0 0 12px; max-width: 40em; }
.maker-band .sig { color: var(--accent); font-weight: 700; font-style: italic; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan .amount small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.plan li + li { margin-top: 4px; }
.note { color: var(--muted); font-size: 15px; margin: 24px 0 0; }

/* Inner pages */
.page-title { background: var(--night); color: var(--night-ink); padding: 48px 0 40px; }
.page-title h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.03em; line-height: 1.1; }
.page-title p { margin: 0; color: var(--night-muted); }
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 18px 20px; margin: 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin: 0 0 8px; }
.contact p { margin: 0 0 8px; }
.contact .email { font-size: 22px; font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style-position: outside; }
details p, details ul { color: var(--ink-2); }
details[open] summary { margin-bottom: 8px; }

/* 404 */
.notfound { text-align: center; padding: 96px 20px; }
.notfound .code { font-family: var(--mono); color: var(--teal); font-size: 15px; margin: 0 0 10px; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); padding: 36px 0 44px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: flex-start; }
.maker { display: flex; align-items: center; gap: 10px; color: var(--night-ink); }
.maker svg { flex: none; }
.maker .name { font-weight: 700; display: block; }
.maker .tag { color: var(--night-teal); font-weight: 600; font-size: 13px; display: block; }
.site-footer p { margin: 0; max-width: 44em; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--night-ink); }
.site-footer .legal { flex-basis: 100%; }

@media (max-width: 960px) {
  .hero-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 64px; }
  .trust ul { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .grid, .plans, .plans.two, .checks { grid-template-columns: minmax(0, 1fr); }
  .maker-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .maker-cross { width: 72px; height: 72px; }
  section { padding: 56px 0; }
}

@media (min-width: 600px) and (max-width: 860px) {
  .grid, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
}

/* Slogans (Nicholas Xerri apps) */
.site-footer .slogan { margin: 0; color: var(--night-ink); font-weight: 600; align-self: center; }
.motto { margin: -20px 0 32px; color: var(--accent); font-weight: 700; font-size: 18px; }

/* ===== TextKeep additions ===== */

.page-title h1, .notfound h1 { font-family: var(--display); font-weight: 800; letter-spacing: 0.005em; }
.card h3, .space h3, .plan h3 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.01em; }
.maker .gold { fill: var(--gold); }

/* Hero */
.hero { padding: 88px 0 104px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, 0.03); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--night-teal); box-shadow: 0 0 0 0 rgba(46, 230, 214, 0.6); }
.shine {
  background: linear-gradient(100deg, #F5B544 0%, #FFE2A8 22%, #F5B544 40%, #F5B544 60%, #2EE6D6 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
}
.hero .soon { box-shadow: 0 10px 30px rgba(245, 181, 68, 0.25); }

/* Animated editor illustration */
.stage { position: relative; padding: 28px 8px 48px; }
.window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #0B111E; border: 1px solid #26355A;
  box-shadow: 0 0 0 1px rgba(46, 230, 214, 0.06), 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(46, 230, 214, 0.08);
  font-family: var(--mono); font-size: 14px; line-height: 1.75;
}
.titlebar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #121B2E; border-bottom: 1px solid #22304D; }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lights i + i { background: #FEBC2E; }
.lights i + i + i { background: #28C840; }
.tabs { display: flex; gap: 4px; overflow: hidden; }
.tabs b { font-weight: 500; font-size: 12px; color: #8390A8; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.tabs b.on { color: #E8ECF4; background: #1B2640; box-shadow: inset 0 -2px 0 var(--gold); }
.editor { position: relative; padding: 16px 0 20px; }
.code { list-style: none; margin: 0; padding: 0; counter-reset: ln; color: #C9D1E0; }
.code li { counter-increment: ln; padding: 0 16px 0 0; white-space: pre; }
.code li::before { content: counter(ln); display: inline-block; width: 44px; padding-right: 14px; text-align: right; color: #4E5A72; }
.code .k { color: #2EE6D6; }
.code .s { color: #F5B544; }
.code .c { color: #6E7B95; font-style: italic; }
.code li.typed { background: rgba(46, 230, 214, 0.05); }
.fixbox { position: relative; display: inline-grid; }
.fixbox > .s { grid-area: 1 / 1; }
.wrong { text-decoration: underline wavy #FF6B6B; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.right { opacity: 0; }
.caret { display: inline-block; width: 2px; height: 1.2em; margin-left: 1px; vertical-align: -3px; background: var(--gold); }
.popover {
  position: absolute; left: 250px; top: 128px; width: 280px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(27, 38, 64, 0.92); border: 1px solid #33456E;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-family: system-ui, -apple-system, sans-serif; font-size: 13px; line-height: 1.45; color: #E8ECF4;
  opacity: 0;
}
.popover p { margin: 0; }
.pop-title { font-weight: 700; color: #FF8A8A; }
.pop-body { color: #C9D1E0; margin-top: 2px !important; }
.pop-body code { color: var(--gold); }
.pop-action { margin-top: 8px !important; color: var(--night-teal); font-weight: 600; }
.pop-action kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid #33456E; color: #C9D1E0; margin-left: 4px; }
.statusbar { display: flex; flex-wrap: wrap; gap: 18px; padding: 6px 14px; background: #121B2E; border-top: 1px solid #22304D; font-size: 12px; color: #8390A8; }
.statusbar .status-bad { color: #FF8A8A; }
.statusbar .status-good { color: #2EE6D6; display: none; }
.statusbar span:last-child { margin-left: auto; }

.chip {
  position: absolute; padding: 9px 14px; border-radius: 999px;
  background: rgba(19, 28, 48, 0.82); border: 1px solid #2B3B60;
  color: #E8ECF4; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; }
.chip-a { top: 0; right: 4%; }
.chip-b { bottom: 8px; left: -2%; }
.chip-b::before { background: var(--night-teal); }
.chip-c { bottom: 54px; right: -3%; }

/* Format marquee */
.marquee { background: #0A101C; border-top: 1px solid var(--night-line); overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; gap: 40px; }
.marquee li { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; color: #5D6A86; white-space: nowrap; }
.marquee li:nth-child(3n) { color: #8E98AC; }

/* Workspaces */
.spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.space {
  position: relative; padding: 26px 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.space::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(80% 60% at 50% 0%, rgba(46, 230, 214, 0.10), transparent 70%); opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.space:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 20px 50px rgba(14, 21, 36, 0.18); }
.space:hover::after { opacity: 1; }
.space-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--night); color: var(--gold); }
.space h3 { margin: 16px 0 6px; }
.space p { margin: 0; color: var(--muted); font-size: 16px; }

/* Transformation band */
.transform-band { background: var(--surface-2); }
.transform-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.transform-band .checks { grid-template-columns: minmax(0, 1fr); }
.transform-band .checks svg { color: var(--teal); }
.pipeline { margin: 0; padding: 18px; border-radius: 20px; background: var(--night); border: 1px solid var(--night-line); box-shadow: 0 30px 70px rgba(14, 21, 36, 0.3); }
.pipeline svg { display: block; width: 100%; height: auto; font-family: system-ui, -apple-system, sans-serif; }
.p-card rect:first-child { fill: #131C30; stroke: #2B3B60; stroke-width: 1.5; }
.p-out rect:first-child { stroke: var(--gold); }
.p-head { fill: #E8ECF4; font-size: 13px; font-weight: 700; }
.p-rows rect { fill: #22304D; }
.p-rows .p-bad { fill: rgba(255, 107, 107, 0.35); }
.p-code { fill: #C9D1E0; font-family: var(--mono); font-size: 12px; }
.p-key { fill: #2EE6D6; }
.p-flow { fill: none; stroke: var(--night-teal); stroke-width: 2.5; stroke-dasharray: 6 10; stroke-linecap: round; opacity: 0.85; }
.p-step rect { fill: #1A2440; stroke: var(--gold); stroke-width: 1.5; }
.p-step text { fill: #F5E3BC; font-size: 14px; font-weight: 700; text-anchor: middle; }

/* Big numbers */
.stats { background: var(--night); color: var(--night-ink); padding: 64px 0; background-image: radial-gradient(50% 120% at 50% 0%, rgba(245, 181, 68, 0.10), transparent 70%); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 2px solid var(--night-line); }
.stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 76px); line-height: 1; color: var(--gold); }
.stat:nth-child(2) .num { color: var(--night-teal); }
.stat:nth-child(3) .num { color: #E9E2D0; }
.stat .lbl { color: var(--night-muted); font-size: 16px; max-width: 18em; }

/* Feature cards */
.card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); box-shadow: 0 16px 40px rgba(14, 21, 36, 0.14); }
.pro-tag.flush { margin-left: 0; }

/* LaTeX band */
.latex-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.latex-demo { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(14, 21, 36, 0.18); }
.latex-demo .src { background: #0B111E; color: #C9D1E0; padding: 22px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; }
.latex-demo .src p { white-space: pre; }
.latex-demo .src p { margin: 0; }
.tk-cmd { color: #2EE6D6; }
.tk-arg { color: #F5B544; }
.tk-com { color: #6E7B95; font-style: italic; }
.latex-demo .out { background: #FBF8F2; color: #1C2230; padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.math { margin: 0; padding: 0 36px; font-family: "Times New Roman", Georgia, serif; font-size: 30px; text-align: center; position: relative; }
.math sup { font-size: 0.6em; }
.eqno { position: absolute; right: 0; font-size: 18px; top: 8px; color: #5C6273; }
.pdf-note { margin: 0; font-size: 12px; color: #5C6273; text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }

/* Pricing extras */
.plan { position: relative; }
.plan .amount s { font-size: 0.55em; color: var(--muted); font-weight: 600; margin-right: 6px; }
.ribbon { position: absolute; top: -13px; right: 20px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: #1B1405; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.plan.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface) 40%); }

@media (max-width: 1080px) {
  .spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .transform-grid, .latex-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 24px 0 64px; }
  .chip-c { right: 0; }
  .chip-b { left: 0; }
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .spaces { grid-template-columns: minmax(0, 1fr); }
  .window { font-size: 12px; }
  .code li::before { width: 30px; padding-right: 10px; }
  .popover { left: 40px; top: 118px; width: 240px; }
  .latex-demo { grid-template-columns: minmax(0, 1fr); }
  .chip { font-size: 12px; }
  .chip-a { right: 0; top: -4px; }
  .tabs b:not(.on) { display: none; }
}

/* ===== Motion (off when the visitor asks for reduced motion) ===== */
@media (prefers-reduced-motion: no-preference) {
  .shine { animation: shine 7s ease-in-out infinite; }
  .eyebrow .dot { animation: ping 2.4s ease-out infinite; }
  .window { animation: float 9s ease-in-out infinite; }
  .chip-a { animation: float 7s ease-in-out -2s infinite; }
  .chip-b { animation: float 8s ease-in-out -5s infinite; }
  .chip-c { animation: float 6.5s ease-in-out -1s infinite; }
  .caret { animation: blink 1.05s steps(1) infinite; }

  /* The fix story: typo, problem, popover, fixed, valid. 10 s loop. */
  .wrong { animation: story-wrong 10s ease infinite; }
  .right { animation: story-right 10s ease infinite; }
  .popover { animation: story-pop 10s ease infinite; }
  .status-bad { animation: story-bad 10s steps(1) infinite; }
  .status-good { display: inline; animation: story-good 10s steps(1) infinite; }
  .code li.typed { animation: story-line 10s ease infinite; }

  .marquee ul { animation: marquee 48s linear infinite; }
  .p-flow { animation: flow 1.6s linear infinite; }
  .p-step rect { animation: glow 3s ease-in-out infinite; }
  .p-step:nth-of-type(2) rect { animation-delay: 1s; }
  .p-step:nth-of-type(3) rect { animation-delay: 2s; }
  .p-rows .p-bad { animation: reject 3s ease-in-out infinite; }
  .maker-cross { animation: turn 40s linear infinite; }

  @supports (animation-timeline: view()) {
    .reveal > .wrap { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .card, .space, .stat { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
}

@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 214, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(46, 230, 214, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes story-wrong { 0%, 55% { opacity: 1; text-decoration-color: transparent; } 12%, 52% { text-decoration-color: #FF6B6B; } 60%, 100% { opacity: 0; } }
@keyframes story-right { 0%, 55% { opacity: 0; } 62%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes story-pop { 0%, 18% { opacity: 0; transform: translateY(8px) scale(0.98); } 24%, 50% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes story-bad { 0%, 10% { visibility: hidden; } 12%, 58% { visibility: visible; } 60%, 100% { visibility: hidden; } }
@keyframes story-good { 0%, 58% { visibility: hidden; } 60%, 100% { visibility: visible; } }
@keyframes story-line { 0%, 54% { background: rgba(255, 107, 107, 0.07); } 60%, 90% { background: rgba(46, 230, 214, 0.10); } 100% { background: rgba(46, 230, 214, 0.05); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes glow { 0%, 100% { stroke-width: 1.5; filter: none; } 50% { stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(245, 181, 68, 0.7)); } }
@keyframes reject { 0%, 40% { transform: translateX(0); opacity: 1; } 70% { transform: translateX(-14px); opacity: 0.2; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
