/* Cloudsnap homepage, hi-fi. Variants: body.variant-a (photo-led) and body.variant-b (type-led).
   Every colour, size and duration comes from ../system/tokens.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/var(--lh-body) var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* Type: the five sizes */
.display { font: var(--serif-weight) var(--fs-display)/var(--lh-display) var(--serif); letter-spacing: -0.015em; }
.h2 { font: 500 var(--fs-h2)/var(--lh-h2) var(--sans); letter-spacing: -0.02em; }
.h3 { font: 500 var(--fs-h3)/var(--lh-h3) var(--sans); letter-spacing: -0.01em; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.label { font: 600 var(--fs-small)/1.4 var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.lead { color: var(--ink-muted); max-width: 46ch; }
.muted { color: var(--ink-muted); }
.accent-on-light { color: var(--accent-on-light); }
.accent-on-dark { color: var(--accent-on-dark); }
.on-dark-muted { color: color-mix(in srgb, var(--paper) 74%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons and links */
.pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: var(--radius-pill); padding: 16px 30px 15px; font: 600 var(--fs-small)/1 var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; text-decoration: none; transition: background-color 200ms, color 200ms, transform 200ms var(--ease); }
.pill:hover { transform: translateY(-1px); }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-white { background: var(--white); color: var(--ink); }
.pill-outline { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.text-link { font-size: var(--fs-small); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-on-light); outline-offset: 3px; }
.dark a:focus-visible, .dark button:focus-visible { outline-color: var(--accent-on-dark); }

/* Photos: each slot names its image with data-photo; the gradient shows until it loads */
.photo { background: linear-gradient(160deg, var(--stone), var(--ink-muted)) center / cover no-repeat; background-image: var(--photo-src); }

/* Placeholders the client still has to supply, visible with ?ph=1 */
.show-ph [data-ph] { outline: 2px dashed #b00020; outline-offset: -2px; }
.ph-label { color: var(--ink-muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); transition: background-color 300ms, border-color 300ms, color 300ms; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: block; position: relative; }
.logo img { height: 26px; width: auto; }
.logo-white { position: absolute; inset: 0; opacity: 0; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a, .header-tools a:not(.pill) { text-decoration: none; }
.main-nav a:hover, .header-tools a:not(.pill):hover { text-decoration: underline; text-underline-offset: 6px; }
.header-tools { display: flex; align-items: center; gap: 24px; }
.header-cta { padding: 13px 22px 12px; }
.menu-button { display: none; background: none; border: 0; padding: 8px 0; color: inherit; cursor: pointer; }
/* The Greek navigation needs about 1180px; English fits at 1024px. */
@media (max-width: 1179px) { .main-nav, .hide-narrow { display: none; } .menu-button { display: block; } .header-tools { margin-left: auto; } }
@media (max-width: 600px) { .header-cta { display: none; } }

/* Variant A: header sits on the photo until the page scrolls */
.variant-a .site-header { position: fixed; left: 0; right: 0; }
.variant-a .site-header.on-photo { background: transparent; border-color: color-mix(in srgb, var(--white) 25%, transparent); color: var(--white); }
.variant-a .site-header.on-photo .logo-ink { opacity: 0; }
.variant-a .site-header.on-photo .logo-white { opacity: 1; }
.variant-a .site-header.on-photo .header-cta { background: var(--white); color: var(--ink); }

/* ---------- 1. Hero ---------- */
.hero-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
/* Short display line across the full width, then the descriptive h1 and the actions underneath. */
.hero-display { grid-column: 1 / -1; }
.hero-display .line { display: block; }
.caps .hero-display { text-transform: uppercase; letter-spacing: 0; }
.hero-intro { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.hero-side { display: flex; flex-direction: column; gap: 20px; }
.hero-extra { display: none; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero .note { color: var(--ink-muted); }
.hero-phone-wrap { position: relative; z-index: 3; height: 0; }
.hero-phone-wrap .phone { position: absolute; right: max(var(--gutter), calc(50% - 600px)); top: -300px; }

/* B: Pic-Time order. Display line on paper with its second line set right, a row of three photos below,
   phone rising across the seam of the second and third photo */
.variant-b .hero { padding-top: 88px; }
.variant-b .hero-display .line + .line { text-align: right; }
.variant-b .hero-media { order: 2; margin-top: 72px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; height: clamp(420px, 52vw, 720px); }
.variant-b .hero-photo { background-position: 32% 70%; }
.variant-b .hero-extra { display: block; background-position: 50% 50%; }
.variant-b .hero { display: flex; flex-direction: column; }
.variant-b .hero-text { order: 1; }
.variant-b .hero-phone-wrap { order: 3; }
/* The phone starts 200px below the top of the photos so its top shows in the first screen. */
.variant-b .hero-phone-wrap .phone { top: calc(200px - clamp(420px, 52vw, 720px)); right: calc(25% - 150px); }

/* A: headline on the photo */
.variant-a .hero { min-height: min(100vh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding: 160px 0 120px; color: var(--white); }
.variant-a .hero-media, .variant-a .hero-photo { position: absolute; inset: 0; }
.variant-a .hero-photo { background-position: 32% 72%; }
/* Darker on the left, where the text sits; lighter on the right, where the phone rises. */
.variant-a .hero-photo::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, color-mix(in srgb, var(--ink) 72%, transparent) 0%, color-mix(in srgb, var(--ink) 50%, transparent) 45%, color-mix(in srgb, var(--ink) 12%, transparent) 75%),
  linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent) 0%, color-mix(in srgb, var(--ink) 0%, transparent) 30%, color-mix(in srgb, var(--ink) 0%, transparent) 70%, color-mix(in srgb, var(--ink) 40%, transparent) 100%); }
.variant-a .hero-text { position: relative; z-index: 2; }
.variant-a .hero .note, .variant-a .hero-sub { color: color-mix(in srgb, var(--white) 90%, transparent); }
.variant-a .hero-cta { background: var(--white); color: var(--ink); }
/* A: all hero text stays in the left column so the phone can rise on the right without covering it. */
.variant-a .hero-text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); row-gap: 32px; }
.variant-a .hero-text .display, .variant-a .hero-intro, .variant-a .hero-side { grid-column: 1; }
.variant-a .hero-intro { max-width: 560px; }
.variant-a .hero-phone-wrap .phone { top: -420px; }

/* ---------- Phone ---------- */
.phone { width: 300px; aspect-ratio: 300 / 620; background: var(--ink); border-radius: var(--radius-phone); padding: 10px; box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--ink) 35%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); position: relative; }
.phone-on-dark { box-shadow: 0 0 0 1px color-mix(in srgb, var(--white) 12%, transparent); }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%); background: var(--ink); border-radius: 12px; z-index: 3; }
.screen { position: absolute; inset: 10px; border-radius: calc(var(--radius-phone) - 10px); overflow: hidden; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; transition: opacity 500ms var(--ease); }
.screen[hidden] { display: flex; opacity: 0; pointer-events: none; }
.screen-pad { padding: 52px 18px 18px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.screen .small { line-height: 1.35; }
.screen .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.screen .tile { aspect-ratio: 1; }
.screen .field { border-bottom: 1px solid var(--line); padding: 8px 0; display: flex; justify-content: space-between; gap: 8px; }
.screen .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.screen .bar > span { display: block; height: 100%; width: 66%; background: var(--accent); }
.screen .code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.screen .code span { border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 6px 0; background: var(--white); }
.screen .row { display: flex; align-items: center; gap: 10px; }
.screen .row .tile { width: 52px; flex: none; border-radius: 6px; }
.screen .grow { flex: 1; }
.screen .pill { padding: 12px 18px 11px; width: 100%; }
.screen .mini-pill { padding: 7px 12px 6px; width: auto; }
.screen .event-cover { height: 44%; flex: none; }
.screen .event-title { font: var(--serif-weight) var(--fs-h3)/1.15 var(--serif); }
.qr-card { background: var(--white); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--ink) 30%, transparent); }
.qr { display: grid; grid-template-columns: repeat(21, 1fr); aspect-ratio: 1; }
.qr i { background: var(--ink); }
.qr i.off { background: transparent; }

/* ---------- 2. Story ---------- */
/* Top padding clears the part of the hero phone that hangs below the hero (B: ~100px, A: ~200px). */
.story { padding: 240px 0 var(--section-y); transition: background-color 700ms var(--ease); }
.variant-a .story { padding-top: 320px; }
.story[data-tone="2"] { background: var(--stone); }
.story[data-tone="3"] { background: var(--mist); }
.story-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-top: 72px; }
.story-stage { position: sticky; top: 120px; height: calc(100vh - 160px); max-height: 760px; display: grid; place-items: center; }
.stage-photo { display: none; }
.chapters { display: flex; flex-direction: column; }
.chapter { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: 560px; }
.chapter-label { color: var(--accent-on-light); }
.step { display: flex; flex-direction: column; gap: 8px; }
.support { border-left: 1px solid var(--ink); padding-left: 16px; }
.chapter-media { display: none; }
/* A: the phone stands in front of a photo panel; the photo changes with the chapter */
.variant-a .stage-photo { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease); }
.variant-a .story[data-tone="1"] .stage-photo[data-for="1"],
.variant-a .story[data-tone="2"] .stage-photo[data-for="2"],
.variant-a .story[data-tone="3"] .stage-photo[data-for="3"] { opacity: 1; }
.variant-a .stage-photo::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.variant-a .story-stage .phone { position: relative; z-index: 1; }

/* ---------- 3. Events (dark) ---------- */
.dark { background: var(--ink); color: var(--paper); }
.events { padding: var(--section-y) 0; }
.events-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; }
.events-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; margin-top: 72px; align-items: start; }
.event-list li { border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.event-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.event-list button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 20px; cursor: pointer; font: 400 var(--fs-h3)/var(--lh-h3) var(--sans); transition: background-color 200ms; }
.event-list button::after { content: '+'; font-weight: 300; }
.event-list button[aria-expanded="true"] { background: color-mix(in srgb, var(--paper) 8%, transparent); }
.event-list button[aria-expanded="true"]::after { content: '–'; }
.event-list button:hover { background: color-mix(in srgb, var(--paper) 5%, transparent); }
.event-list .panel { display: none; }
.event-preview { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
/* The phone stands in front of a photo of that kind of event, as Pic-Time pairs its list with a large preview. */
.event-stage { position: relative; align-self: stretch; display: grid; place-items: center; padding: 40px 0; }
.event-photo { position: absolute; inset: 0; }
.event-photo::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.event-stage .phone { position: relative; z-index: 1; }

/* ---------- 4. Founder ---------- */
.founder { background: var(--mist); padding: var(--section-y) 0; }
.founder-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: center; }
.founder-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--mist), color-mix(in srgb, var(--mist), var(--ink) 18%)); display: grid; place-items: center; text-align: center; padding: 24px; }
.founder-quote { display: flex; flex-direction: column; gap: 28px; max-width: 780px; }
.quote { quotes: '“' '”'; }
.quote:lang(el) { quotes: '«' '»'; }
.quote::before { content: open-quote; }
.quote::after { content: close-quote; }

/* ---------- 5. Privacy ---------- */
.privacy { background: var(--paper-raised); padding: var(--section-y) 0 0; }
.privacy-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.privacy-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 64px auto 0; max-width: 1040px; }
.privacy-points li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ink); padding-top: 20px; }
.privacy-visual { position: relative; margin-top: 80px; }
.privacy-visual .photo { height: clamp(360px, 46vw, 640px); background-position: 50% 62%; }
.variant-b .privacy-visual { max-width: 1040px; margin: 80px auto 0; padding: 0 var(--gutter) var(--section-y); }
.meta-chips { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.variant-b .meta-chips { bottom: calc(var(--section-y) + 32px); }
.meta-chips li { display: flex; align-items: center; gap: 8px; background: var(--paper-raised); color: var(--ink); border-radius: var(--radius-pill); padding: 10px 16px 9px; box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--ink) 35%, transparent); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- 6. Compare (the table is reference material, collapsed under a label that names its contents) ---------- */
.compare { padding: calc(var(--section-y) * 0.6) 0; }
/* Closed: the question on the left, the label that opens the table on the right. Open: the table spans both columns. */
.compare .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; }
.compare-title { max-width: 16ch; }
.compare-more[open] { grid-column: 1 / -1; }
.compare-more summary { display: inline-block; list-style: none; cursor: pointer; }
.compare-more summary::-webkit-details-marker { display: none; }
.compare-more summary::after { content: ' +'; }
.compare-more[open] summary::after { content: ' –'; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 48px; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.compare-table thead th { padding-top: 0; }
.compare-table tbody th { font-weight: 600; width: 24%; }
.compare-table td { width: 38%; }

/* ---------- 7. Pricing ---------- */
.pricing { background: var(--stone); padding: var(--section-y) 0; }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: 32px; align-items: start; }
.pricing-text { display: flex; flex-direction: column; gap: 20px; padding-right: 24px; }
.plan { background: var(--paper-raised); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.plan-list { display: flex; flex-direction: column; gap: 6px; color: var(--ink-muted); margin-bottom: 8px; }

/* ---------- 8. FAQ ---------- */
.faq { padding: var(--section-y) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-weight: 400; }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-muted); }

/* ---------- 9. Closing ---------- */
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.closing-inner .h2 { max-width: 20ch; }
.variant-a .closing { min-height: min(92vh, 860px); display: grid; place-items: center; color: var(--white); padding: var(--section-y) 0; }
.variant-a .closing-photo { position: absolute; inset: 0; background-position: 50% 50%; }
.variant-a .closing-photo::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 58%, transparent); }
.variant-a .closing-inner { position: relative; }
.variant-a .closing .lead { color: color-mix(in srgb, var(--white) 90%, transparent); }
.variant-a .closing-cta { background: var(--white); color: var(--ink); }
.variant-b .closing { display: flex; flex-direction: column; padding-top: var(--section-y); }
.variant-b .closing-inner { order: 1; }
.variant-b .closing-photo { order: 2; height: clamp(320px, 36vw, 520px); margin-top: 80px; background-position: 50% 50%; }
.variant-b .closing-cta { background: var(--ink); color: var(--paper); }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 96px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 30ch; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.footer-grid a, .legal a { text-decoration: none; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.footer-grid a:hover, .legal a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.legal { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 72px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); color: color-mix(in srgb, var(--paper) 74%, transparent); }

/* ---------- Phone-only sticky start button ---------- */
.sticky-cta { display: none; }
@media (max-width: 600px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform 300ms var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .pill { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-text, .variant-a .hero-text, .story-head, .events-head, .founder-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pricing-text { grid-column: 1 / -1; padding: 0; }
  .events-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .variant-b .hero { padding-top: 48px; }
  .variant-b .hero-media { margin-top: 48px; height: 440px; grid-template-columns: minmax(0, 1fr); }
  .variant-b .hero-extra { display: none; }
  .variant-b .hero-photo { background-position: 30% 70%; }
  .variant-b .hero-display .line + .line { text-align: left; }
  .variant-a .hero { padding: 104px 0 0; min-height: 0; }
  .variant-a .hero-photo { background-position: 28% 70%; }
  /* On a phone the text spans the full width, so the overlay is even rather than darker on the left. */
  .variant-a .hero-photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 58%, transparent) 0%, color-mix(in srgb, var(--ink) 66%, transparent) 100%); }
  .hero-phone-wrap { height: auto; display: flex; justify-content: center; margin-top: -220px; }
  /* A: the phone sits under the text, inside the photo, so it never covers the white text. */
  .variant-a .hero-phone-wrap { margin: 48px 0 -160px; }
  .hero-phone-wrap .phone, .variant-a .hero-phone-wrap .phone, .variant-b .hero-phone-wrap .phone { position: relative; right: auto; top: auto; width: 82%; max-width: 320px; }
  .story { padding-top: 80px; }
  .variant-a .story { padding-top: 240px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .story-stage { display: none; }
  .chapter { min-height: 0; padding: 40px 0; max-width: none; }
  .chapter-media { display: block; background-image: none; }
  .chapter-phone { width: 82%; max-width: 320px; margin: 0 auto 16px; }
  /* A: on a phone each chapter's screen stands on that chapter's photo, edge to edge. */
  .variant-a .chapter-media { background-image: var(--photo-src); margin: 0 calc(-1 * var(--gutter)) 16px; padding: 40px 0; }
  .variant-a .chapter-phone { margin-bottom: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
  .events-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .event-preview { display: none; }
  .event-list button { padding: 20px 4px; }
  .event-list button[aria-expanded="true"] + .panel { display: flex; flex-direction: column; gap: 16px; padding: 4px 4px 28px; }
  .event-list .panel .event-stage { padding: 32px 0; }
  .event-list .panel .phone { width: 82%; max-width: 320px; }
  .founder-photo { width: 64%; }
  .privacy-points { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
  .privacy-visual, .variant-b .privacy-visual { margin-top: 48px; }
  .meta-chips { flex-direction: column; align-items: center; bottom: 24px; width: max-content; }
  .compare .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .compare-table thead { display: none; }
  .compare-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .compare-table th, .compare-table td { padding: 0; border: 0; width: auto; }
  .compare-table tbody th { grid-column: 1 / -1; }
  .compare-table td::before { content: attr(data-col); display: block; font: 600 var(--fs-small)/1.4 var(--sans); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-list details p { padding-right: 0; }
  .variant-a .closing { min-height: 560px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .legal { margin-top: 48px; padding-bottom: 72px; }
}

/* ---------- Review bar (hidden with ?ui=0) ---------- */
.review-bar { position: fixed; right: 12px; bottom: 12px; z-index: 40; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100vw - 24px); background: var(--white); border: 1px solid var(--line); padding: 8px 12px; font: 12px/1.4 ui-monospace, monospace; box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--ink) 40%, transparent); }
.review-bar a { color: var(--ink); }
.review-bar a[aria-current] { font-weight: 700; text-decoration: none; }
.no-ui .review-bar { display: none; }
body.counting .ph-label { display: none !important; }
@media (max-width: 600px) { .review-bar { bottom: 84px; } }
