/* Public pages: landing, offline and error. Same tokens as app.css. */
body.public { background: var(--bg); }
.pub-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.pub-head-in { display: flex; align-items: center; gap: var(--s3); height: 64px; }
.pub-nav { display: none; gap: var(--s0); margin-left: var(--s1); }
.pub-nav a { padding: var(--s1) 12px; border-radius: var(--r-pill); color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.pub-nav a:hover { color: var(--ink); background: var(--sunken); }
.pub-head-end { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
@media (min-width: 900px) { .pub-nav { display: flex; } }
@media (max-width: 480px) { .pub-head-end .ghost { display: none; } }

.eyebrow { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: var(--s2); }
section.wrap { padding-block: var(--s8); }
section.wrap + section.wrap { border-top: 1.5px dashed var(--line); }

/* the poster */
.poster { padding-block: var(--s6) var(--s8); background: radial-gradient(90% 70% at 90% 0%, var(--blush), transparent 62%), radial-gradient(60% 60% at 0% 100%, var(--sage), transparent 70%); border-bottom: 1.5px dashed var(--line); }
.poster-kicker { margin-bottom: var(--s2); }
.poster-h { font-size: clamp(3.25rem, 1.2rem + 10vw, 8.5rem); line-height: .94; letter-spacing: -.035em; }
.poster-grid { display: grid; gap: var(--s4); margin-top: var(--s6); align-items: center; }
@media (min-width: 960px) { .poster-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s6); } }
.strip-paper.big { padding: var(--s6) var(--s4) var(--s4); }
.strip-paper.big .print { font-size: clamp(1.125rem, .8rem + 1.5vw, 1.875rem); line-height: 2.1; }
.poster-side { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.poster-side .seal-disc { --vfg: var(--v-match); }
.hero-cta { margin-top: var(--s4); }

/* the lens on the poster strip: blurred words everywhere, sharp only inside the lens */
@property --lx { syntax: "<length-percentage>"; inherits: true; initial-value: 30%; }
@property --ly { syntax: "<length-percentage>"; inherits: true; initial-value: 40%; }
.spec { position: relative; min-height: 8em; animation: drift 16s ease-in-out infinite; }
.spec.live { animation: none; }
.spec .print.soft { filter: blur(2.6px); opacity: .55; margin: 0; }
.spec .print.sharp { position: absolute; inset: 0; margin: 0; clip-path: circle(110px at var(--lx) var(--ly)); }
.rim { position: absolute; width: 220px; height: 220px; left: calc(var(--lx) - 110px); top: calc(var(--ly) - 110px); border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent), inset 0 0 30px color-mix(in srgb, var(--paper) 70%, transparent); pointer-events: none; }
.rim::after { content: ""; position: absolute; right: -18px; bottom: -24px; width: 46px; height: 8px; border-radius: 4px; background: var(--accent); transform: rotate(45deg); transform-origin: left center; }
@keyframes drift { 0%, 100% { --lx: 18%; --ly: 22%; } 33% { --lx: 62%; --ly: 40%; } 66% { --lx: 40%; --ly: 78%; } }
@media (prefers-reduced-motion: reduce) { .spec { animation: none; --lx: 40%; --ly: 40%; } }
@media (max-width: 640px) { .spec .print.sharp { clip-path: circle(76px at var(--lx) var(--ly)); } .rim { width: 152px; height: 152px; left: calc(var(--lx) - 76px); top: calc(var(--ly) - 76px); } }

/* sections */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; filter: blur(0); }
.display.mid { font-size: clamp(2rem, 1rem + 4vw, 3.75rem); }
.big3 { display: grid; gap: var(--s4); margin-top: var(--s3); }
@media (min-width: 800px) { .big3 { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.big3 li { display: flex; flex-direction: column; gap: var(--s1); }
.numeral { font-family: var(--serif); font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: .85; font-weight: 600; color: transparent; -webkit-text-stroke: 2px var(--accent); letter-spacing: -.04em; }
.big3 h2 { font-family: var(--serif); font-size: 1.625rem; font-weight: 600; }
.big3 p { color: var(--muted); max-width: 32ch; }

.sample { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .sample { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } }
.sample-left { display: flex; flex-direction: column; gap: var(--s3); }
.sample-left .strip-paper { transform: rotate(.5deg); }
.sample-notes { display: flex; flex-direction: column; gap: var(--s6); padding-top: var(--s8); }
.sample-notes .note { font-size: 1.5rem; }
.note-arrow.flip { transform: scaleX(-1); }
@media (max-width: 959px) { .sample-notes { padding-top: 0; } }
.sample-rows li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s1); padding: var(--s2) 0; border-top: 1.5px dashed var(--line); }
.sample-rows .pos { font-family: var(--print); color: var(--faint); font-size: .8125rem; padding-top: 2px; }
.sample-rows b { margin-right: var(--s1); }
.sample-rows p { font-size: .9375rem; margin-top: var(--s1); }

.nots ul { margin-top: var(--s3); }
.nots li { display: grid; gap: var(--s1) var(--s6); padding-block: var(--s3); border-top: 1.5px dashed var(--line); align-items: baseline; }
@media (min-width: 900px) { .nots li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.nots del { text-decoration-thickness: .09em; text-decoration-color: var(--accent); color: var(--muted); }
.nots p { color: var(--muted); max-width: 46ch; }

.pricing { display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.price-line { max-width: 18ch; font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem); line-height: 1; }
.pricing .muted { max-width: 56ch; }

/* enterprise */
.ent { display: grid; gap: var(--s4); padding: var(--s4) var(--s3); border-radius: 28px; background: linear-gradient(135deg, var(--blush), var(--sage)); }
@media (min-width: 900px) { .ent { grid-template-columns: 1fr 1.2fr; padding: var(--s6) var(--s6); align-items: center; } }
.ent h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: 700; line-height: 1.08; margin-bottom: var(--s2); }
.ent-copy p:not(.eyebrow) { color: var(--muted); margin-bottom: var(--s3); max-width: 46ch; }
.btn.grad { background: linear-gradient(120deg, var(--accent), #a33f84); color: #fff; border-color: transparent; }
.btn.grad:hover { filter: brightness(1.08); color: #fff; }
:root[data-theme="dark"] .btn.grad { background: linear-gradient(120deg, #e6a8d3, #b98cf0); color: #2b0f24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.grad { background: linear-gradient(120deg, #e6a8d3, #b98cf0); color: #2b0f24; } }
.ent-grid { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ent-grid { grid-template-columns: 1fr 1fr; } }
.ent-grid li { background: var(--surface); border-radius: 20px; padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); }
.ent-grid p { color: var(--muted); font-size: .9375rem; }
.tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: var(--s0); }

/* faq, footer */
.faq .fold + .fold { margin-top: var(--s1); }
.pub-foot { border-top: 1px solid var(--line); padding-block: var(--s4) calc(var(--s4) + env(safe-area-inset-bottom)); }
.pub-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.pub-foot nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.pub-foot nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.pub-foot nav a:hover { color: var(--ink); }

/* offline, error */
.pub-center { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); padding: var(--s3) var(--s2); background: radial-gradient(100% 70% at 50% 0%, var(--blush), transparent 70%); }
.pub-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: var(--s4) var(--s3); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); }
.pub-card .btn.block { margin-top: var(--s1); }
.big-ic { width: 40px; height: 40px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .scan-beam { animation: none; } }
@media print { .pub-head, .pub-foot { display: none; } }


.sec-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); margin-bottom: var(--s3); }
