/* Lanternly Digital — "Index + Dither" */
@font-face { font-family: "Redaction"; src: url("assets/fonts/redaction-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Redaction"; src: url("assets/fonts/redaction-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Redaction 20"; src: url("assets/fonts/redaction-20.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Redaction 50"; src: url("assets/fonts/redaction-50.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Redaction 70"; src: url("assets/fonts/redaction-70.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --night: #1F2A2E; --night-2: #26343A; --night-3: #3A4A51; --cream: #FFF8EC; --muted: #B9B2A4;
  --amber: #F4A62A; --amber-hi: #FFBE55; --ember: #C4551F;
  --display: "Redaction", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, "Segoe UI", Arial, sans-serif;
  --rail: 248px; --gutter: clamp(1.25rem, 4vw, 4rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; accent-color: var(--amber); }
::selection { background: var(--amber); color: var(--night); }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--amber); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-hi); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); max-width: 18ch; }
h3 { font-size: 1.55rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--amber); color: var(--night); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border: 1.5px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .12s steps(2), color .12s steps(2); }
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: var(--amber-hi); color: var(--night); }
.btn-line, .btn-ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-line:hover, .btn-ghost:hover { background: var(--cream); color: var(--night); }
.btn-night { background: var(--night); color: var(--cream); }
.btn-night:hover { background: #2C3B41; color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Index rail (desktop) */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); padding: 28px 24px; display: flex; flex-direction: column; gap: 40px; border-right: 1px solid var(--night-3); background: var(--night); z-index: 10; }
.rail-logo img { width: 200px; }
.rail-nav { display: grid; gap: 2px; }
.rail-nav a { color: var(--muted); text-decoration: none; padding: 7px 0; font-size: .98rem; border-bottom: 1px solid transparent; }
.rail-nav a:hover, .rail-nav a[aria-current="true"] { color: var(--cream); }
.rail-nav a[aria-current="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--amber); margin: 0 9px 2px -16px; }
.rail-nav .rail-cta { color: var(--amber); margin-top: 10px; }
.rail-foot { margin-top: auto; font-size: .88rem; }
.rail-foot p { margin: 0 0 .9em; }
.index { margin: 0 0 1.4rem; border-top: 1px solid var(--night-3); font-size: .8rem; }
.index div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--night-3); }
.index dt { color: var(--muted); }
.index dd { margin: 0; color: var(--cream); text-align: right; }
.index .live { color: var(--amber); font-size: 1.05rem; }
.topbar { display: none; }

main, .footer { margin-left: var(--rail); }

/* 1. Hero */
.hero { position: relative; min-height: clamp(640px, 100svh, 1040px); display: flex; align-items: flex-end; padding: var(--gutter); padding-bottom: clamp(2.5rem, 7vh, 5rem); overflow: hidden; }
.lantern { position: absolute; top: 0; right: 0; width: 62%; height: 100%; image-rendering: pixelated; }
.hero-copy { position: relative; max-width: 50rem; }
.headline { font-size: clamp(3.1rem, 7.2vw, 7.6rem); line-height: .96; max-width: 11ch; margin-bottom: .32em; }
.dim { white-space: nowrap; color: var(--amber); }
.dim[data-cut="70"] { font-family: "Redaction 70", var(--display); color: var(--muted); }
.dim[data-cut="50"] { font-family: "Redaction 50", var(--display); color: #D8C9A8; }
.dim[data-cut="20"] { font-family: "Redaction 20", var(--display); color: var(--cream); }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.28rem); max-width: 36rem; color: #E6DECF; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.4rem; }
.fine { font-size: .9rem; color: var(--muted); max-width: 40rem; }

/* Sections */
section:not(.hero) { padding: clamp(4.5rem, 11vw, 9rem) var(--gutter); border-top: 1px solid var(--night-3); }
.intro { max-width: 36rem; font-size: 1.1rem; margin-bottom: 2.6rem; }

/* 2. Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.big-fact { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.3; max-width: 22ch; margin-top: 1.4rem; }
.figure { color: var(--amber); }
.field { display: grid; grid-template-columns: repeat(15, var(--dot)); gap: calc(var(--dot) * .45); --dot: clamp(11px, 1.35vw, 19px); padding-top: .6rem; }
.field span { width: var(--dot); height: var(--dot); border: 1px solid var(--night-3); }
.field span.on { background: var(--amber); border-color: var(--amber); }
.ledger.facts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin: 1.5rem 0 0; border-top: 1px solid var(--night-3); }
.facts div { padding: 1.4rem 1.6rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; }
.facts dt { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.facts dd { margin: 0; color: #E6DECF; max-width: 30ch; }
.sources { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: 0; }

/* 3. Log */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-3); max-width: 64rem; }
.log li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--night-3); }
.log time { font-family: "Redaction 50", var(--display); font-size: 1.7rem; line-height: 1.3; color: var(--muted); }
.log h3 { margin: 0 0 .2em; }
.log p { margin: 0; color: #E6DECF; max-width: 46ch; }
.log li.lit time { font-family: var(--display); color: var(--amber); }

/* 4. Demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.ticks li { padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--night-3); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 8px; height: 8px; background: var(--amber); }
.alert-wrap { margin: 0; }
.alert { background: var(--cream); color: var(--night); padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.alert p { margin: 0 0 .35rem; }
.alert-top { display: flex; justify-content: space-between; font-size: .8rem; color: #5B6669; }
.alert-title { font-weight: 600; font-size: 1.15rem; }
.hot { background: var(--amber); color: var(--night); font-size: .72rem; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; }
.alert-quote { font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.alert-call { display: inline-block; margin-top: .5rem; background: var(--night); color: var(--cream); font-weight: 600; padding: 9px 16px; font-size: .92rem; }
.alert-wrap figcaption { color: var(--muted); font-size: .85rem; margin-top: 1rem; }

/* 5. Prices */
.founding { display: inline-block; background: var(--night-2); padding: .9rem 1.1rem; margin-bottom: 2rem; max-width: 46rem; }
.founding b { color: var(--amber); font-weight: 600; }
.table { border-top: 1px solid var(--night-3); max-width: 72rem; }
.tr { display: grid; grid-template-columns: 13rem 6rem 6rem minmax(0, 1fr) 7rem; gap: 1.2rem; align-items: baseline; padding: 1.4rem .8rem; border-bottom: 1px solid var(--night-3); }
.tr.th { padding-top: .8rem; padding-bottom: .8rem; font-size: .82rem; color: var(--muted); }
.tr.rec { background: var(--night-2); }
.plan { font-family: var(--display); font-size: 1.6rem; line-height: 1.3; }
.plan em { display: block; font-family: var(--body); font-style: normal; font-size: .82rem; font-weight: 600; color: var(--amber); margin-top: .3rem; }
.num { font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.inc { color: #E6DECF; font-size: .97rem; }
.tr .btn { justify-self: end; }
.prices .fine { margin-top: 1.5rem; }

/* 5. Prices: plan builder */
.builder { max-width: 76rem; }
.builder fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: 1.1rem; }
.step span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--amber); color: var(--night); font-size: .95rem; }
.step i { font-style: normal; color: var(--muted); font-weight: 400; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tiers legend { grid-column: 1 / -1; }
.tier { border: 1px solid var(--night-3); padding: 1.3rem 1.3rem 1.5rem; cursor: pointer; transition: border-color .12s steps(2); }
.tier.rec { background: var(--night-2); }
.tier:hover { border-color: var(--muted); }
.tier:has(input:checked) { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.tier-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .8rem; row-gap: .35rem; align-items: center; cursor: pointer; padding-bottom: 1rem; border-bottom: 1px solid var(--night-3); margin-bottom: 1rem; position: relative; }
.tier-head input, .addon input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tick { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--cream); border-radius: 50%; display: grid; place-items: center; }
.tier-head input:checked + .tick { border-color: var(--amber); }
.tier-head input:checked + .tick::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--amber); }
.tier-head input:focus-visible + .tick, .addon input:focus-visible + .box { outline: 2px solid var(--amber); outline-offset: 3px; }
.tier-name { font-family: var(--display); font-size: 1.55rem; line-height: 1.15; }
.tier-name em { display: inline-block; font-family: var(--body); font-style: normal; font-size: .76rem; font-weight: 600; color: var(--night); background: var(--amber); padding: 2px 7px; margin-left: .3rem; vertical-align: .3em; }
.tier-price { grid-column: 2; color: var(--muted); font-size: .92rem; }
.tier-price b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--cream); font-variant-numeric: tabular-nums; }
.tier-price b:nth-of-type(2) { margin-left: .6rem; }
.plus { margin: 0 0 .7rem; font-size: .9rem; color: var(--amber); font-weight: 600; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.feats li { display: grid; gap: .15rem; padding-left: 1.1rem; position: relative; }
.feats li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 6px; height: 6px; background: var(--amber); }
.feats b { font-weight: 600; font-size: .98rem; }
.feats span { color: #D9D1C2; font-size: .9rem; line-height: 1.45; }
.addons { margin-top: 2.4rem; max-width: 60rem; }
.addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.05rem .2rem; border-top: 1px solid var(--night-3); cursor: pointer; position: relative; }
.addon:last-of-type { border-bottom: 1px solid var(--night-3); }
.addon .box { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--cream); margin-top: .15rem; display: grid; place-items: center; }
.addon input:checked + .box { background: var(--amber); border-color: var(--amber); }
.addon input:checked + .box::after { content: ""; width: .32rem; height: .62rem; border: solid var(--night); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.addon-text { display: grid; gap: .15rem; }
.addon-text b { font-weight: 600; }
.addon-text span { color: #D9D1C2; font-size: .9rem; line-height: 1.45; }
.addon-price { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.addon.off { cursor: default; }
.addon.off .addon-text, .addon.off .box { opacity: .55; }
.addon.off .addon-price { color: var(--amber); font-family: var(--body); font-size: .9rem; font-weight: 600; padding-top: .2rem; }
.total { margin-top: 1.6rem; max-width: 60rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; background: var(--night-2); border-top: 2px solid var(--amber); padding: 1rem 1.2rem; }
.total p { margin: 0; }
.total-line { flex: 1 1 16rem; }
.total-label { display: block; font-size: .8rem; color: var(--muted); }
.total-name { font-weight: 600; }
.total-nums { display: flex; gap: 1.4rem; color: var(--muted); }
.total-nums b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--cream); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tier { padding: 1.1rem 1rem 1.3rem; }
  .addon { grid-template-columns: auto minmax(0, 1fr); }
  .addon-price { grid-column: 2; }
  .total { padding: .8rem 1rem; gap: .4rem 1rem; }
  .total-line { flex-basis: 100%; }
  .total-nums b { font-size: 1.45rem; }
  .total .btn { flex: 1 1 100%; }
}

/* 6. FAQ */
.qa { max-width: 52rem; border-top: 1px solid var(--night-3); }
details { border-bottom: 1px solid var(--night-3); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: none; width: 14px; height: 14px; margin-top: .35em; }
.pm::before, .pm::after { content: ""; position: absolute; background: var(--amber); }
.pm::before { left: 0; right: 0; top: 6px; height: 2px; }
.pm::after { top: 0; bottom: 0; left: 6px; width: 2px; transition: transform .15s steps(2); }
details[open] .pm::after { transform: scaleY(0); }
details p { color: #E6DECF; max-width: 60ch; margin: -.3rem 0 1.2rem; }

/* 7. Contact: the lit room */
.contact { background: var(--amber); color: var(--night); border-top: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact h2 { color: var(--night); }
.contact a { color: var(--night); text-decoration-thickness: 1.5px; }
.contact-copy p { max-width: 34rem; font-size: 1.1rem; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.opt { font-weight: 400; opacity: .78; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input, .form textarea { display: block; width: 100%; margin-top: .35rem; padding: .8rem .9rem; border: 1.5px solid var(--night); border-radius: 0; background: var(--cream); color: var(--night); font: 400 1rem var(--body); caret-color: var(--ember); }
.form input::placeholder { color: #6B6253; }
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: #7A1F0B; box-shadow: inset 0 0 0 1px #7A1F0B; background: #FFF0E6; }
.form :focus-visible, .contact .btn:focus-visible { outline-color: var(--night); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plan-note { background: var(--night); color: var(--cream); padding: .6rem .9rem; margin-bottom: 1rem; }
.after, .consent { font-size: .86rem; margin: .8rem 0 0; }
.status { min-height: 1.4em; margin: .8rem 0 0; font-weight: 600; color: #6E1B07; }
.done { background: var(--night); color: var(--cream); padding: 2rem; }
.done:focus { outline: none; }
.done h3 { color: var(--amber); }

/* Footer */
.footer { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 3rem; align-items: start; padding: 3rem var(--gutter); border-top: 1px solid var(--night-3); font-size: .9rem; }
.footer p { margin: 0; }
.footer p.muted { grid-column: 1 / -1; }

/* Legal pages (privacy, terms) */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--night); border-bottom: 1px solid var(--night-3); }
.wrap { width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.header-inner > .btn:last-child { margin-left: auto; }
.brand img { height: 42px; width: auto; }
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: .2em; }
.legal h2 { font-size: 1.7rem; margin: 2.4rem 0 .6rem; max-width: none; }
.legal p, .legal li { max-width: 68ch; color: #E6DECF; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .4rem 0; }
.legal .updated { color: var(--muted); font-size: .92rem; }
.site-header ~ .footer, .legal ~ .footer { margin-left: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.copy { color: var(--muted); }

/* Phones + small laptops */
@media (max-width: 1000px) {
  .rail { display: none; }
  main, .footer { margin-left: 0; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 10; justify-content: space-between; align-items: center; padding: 10px var(--gutter); background: var(--night); border-bottom: 1px solid var(--night-3); }
  .topbar img { width: 158px; }
  .hero { min-height: auto; flex-direction: column; align-items: stretch; padding-top: 0; }
  .lantern { position: relative; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); height: min(52svh, 460px); }
  .hero-copy { margin-top: -5.5rem; }
  .problem, .demo, .contact { grid-template-columns: 1fr; }
  .ledger.facts { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1fr auto auto; gap: .4rem 1rem; }
  .tr.th { display: none; }
  .tr .inc { grid-column: 1 / -1; }
  .tr > span:last-child { grid-column: 1 / -1; }
  .tr .btn { justify-self: start; }
  .num::before { content: attr(data-l); font-family: var(--body); font-size: .8rem; color: var(--muted); }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .log li { grid-template-columns: 1fr; gap: .4rem; }
  .headline { font-size: clamp(2.7rem, 12vw, 3.4rem); }
  .field { --dot: clamp(9px, 3.6vw, 14px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
a[href^="tel:"] { white-space: nowrap; }

/* Dot-matrix figures (drawn by lantern.js; the text stays for screen readers and no-JS) */
.dm { display: inline-block; height: .78em; width: auto; vertical-align: baseline; fill: currentColor; overflow: visible; }
.figure.has-dm > .dm-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.big-fact .dm { height: .74em; }
.facts dt .dm { height: .9em; }
/* Headings come into focus as they arrive (lantern.js) */
h2[data-cut="50"] { font-family: "Redaction 50", var(--display); }
h2[data-cut="20"] { font-family: "Redaction 20", var(--display); }
/* Mobile section strip */
.strip { display: none; }
@media (max-width: 1000px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .strip { display: flex; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; font-size: .88rem; }
  .strip a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 6px 0; }
  .strip a[aria-current="true"] { color: var(--amber); }
}
@media (max-width: 560px) {
  .tr { grid-template-columns: 1fr 1fr; }
  .tr .plan { grid-column: 1 / -1; }
}
/* Phones: the two-row top bar slides away while scrolling down, returns on scroll up */
@media (max-width: 1000px) {
  .topbar { transition: transform .2s steps(3); }
  .topbar.away { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) { .topbar { transition: none; } }

.demo-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-btns .btn { min-height: 56px; flex-direction: column; align-items: flex-start; gap: 4px; padding: .7rem 1.3rem; text-align: left; }
.demo-btns .btn span { font-weight: 400; font-size: .85rem; opacity: .8; }
@media (max-width: 600px) { .demo-btns .btn { width: 100%; } }
