/* Snap Our Day product UI. Source of truth: docs/design-plan.md.
   Three grounds (ink, cream, paper), one accent, serif display over a humanist
   sans, condensed italic eyebrows. Bands re-scope the semantic tokens so every
   component reads correctly on dark or light without per-band overrides. */

:root {
  --ink: #2a2233;
  --ink-deep: #1f1926;
  --ink-raised: #372e42;
  --cream: #f0e8de;
  --cream-card: #f7f1ea;
  --paper: #fbf8f4;

  --text-on-cream: #2a2233;
  --muted-on-cream: #5c5560;
  --text-on-ink: #f7f1ea;
  --muted-on-ink: #bcb3c2;

  --accent: #a37c34;        /* rules, meters, large italic display text */
  --accent-fill: #82612a;   /* button fills: 5.1:1 with cream text */
  --accent-text: #7d5e26;   /* accent text on cream: 4.9:1 */
  --accent-bright: #d6aa5e; /* accent text and icons on ink: 7.3:1 */

  --line-on-cream: #dccfc2;
  --line-on-ink: #45394f;
  --success: #3d7a5a;
  --warning: #b9862a;
  --danger: #b04a3b;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Barlow Condensed", "Arial Narrow", "Instrument Sans", sans-serif;

  --r-pill: 999px;
  --r-card: 18px;
  --r-input: 10px;
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-warm: 0 40px 80px -30px rgba(42, 34, 51, 0.45);

  /* semantic tokens, cream context by default */
  --bg: var(--cream);
  --card: var(--cream-card);
  --text: var(--text-on-cream);
  --muted: var(--muted-on-cream);
  --line: var(--line-on-cream);
  --acc: var(--accent-text);
  --field: var(--paper);
}
.band-ink, .on-ink, .hero, .auth-photo, .site-top {
  --bg: var(--ink); --card: var(--ink-raised); --text: var(--text-on-ink); --muted: var(--muted-on-ink);
  --line: var(--line-on-ink); --acc: var(--accent-bright); --field: var(--ink-deep);
  background: var(--bg); color: var(--text);
}
.band-deep {
  --bg: var(--ink-deep); --card: var(--ink); --text: var(--text-on-ink); --muted: var(--muted-on-ink);
  --line: var(--line-on-ink); --acc: var(--accent-bright); --field: var(--ink-deep);
  background: var(--bg); color: var(--text);
}
.band-cream { --bg: var(--cream); --card: var(--cream-card); background: var(--bg); color: var(--text); }
body.app { --bg: var(--paper); --card: var(--cream-card); --field: #fdfaf4; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.marketing { font-size: 17px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--acc); }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 36rem; }
body.marketing .lead { font-size: 1.2rem; }
.icon { flex-shrink: 0; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container.wide { max-width: 1440px; }
.narrow { max-width: 30rem; }
.mt { margin-top: 1rem; }
.inline { display: inline; }

/* The eyebrow: condensed italic caps with a leading rule. Used on every section. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.5rem;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--cream-card); background: var(--accent-fill);
  border: 1px solid var(--accent-fill); border-radius: var(--r-pill);
  cursor: pointer; transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { background: #6f5223; border-color: #6f5223; color: var(--cream-card); text-decoration: none; }
.btn:focus-visible, .link:focus-visible, .icon-btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .theme-swatch:focus-visible, .tile-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.btn-ink { color: var(--text-on-ink); background: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-raised); border-color: var(--ink-raised); color: var(--text-on-ink); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); border-color: var(--text); }
.on-ink .btn-ghost, .band-ink .btn-ghost, .band-deep .btn-ghost { border-color: rgba(247, 241, 234, 0.35); }
.on-ink .btn-ghost:hover, .band-ink .btn-ghost:hover, .band-deep .btn-ghost:hover { border-color: var(--text-on-ink); background: rgba(247, 241, 234, 0.08); }
.btn-cream { color: var(--ink); background: var(--cream-card); border-color: var(--cream-card); }
.btn-cream:hover { color: var(--ink); background: var(--cream); border-color: var(--cream); }
.btn-danger { color: var(--danger); background: transparent; border-color: var(--line); }
.btn-danger:hover { color: var(--cream-card); background: var(--danger); border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0.4rem 1rem; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0.9rem 1.9rem; font-size: 16px; }
.btn-block { width: 100%; }
button:disabled, .btn:disabled { opacity: 0.5; cursor: default; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link:hover { color: var(--text); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: pointer; transition: color 150ms, border-color 150ms; }
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--text); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: var(--acc); }
.arrow-link .icon { transition: transform 180ms var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover .icon { transform: translateX(3px); }

/* ---------- Forms ---------- */
label, .field { display: block; margin-bottom: 1.1rem; font-weight: 500; font-size: 0.9rem; }
label > span, .field > span { display: block; margin-bottom: 0.45rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="url"], input[type="number"], input[type="search"], textarea, select {
  width: 100%; min-height: 46px; padding: 0.6rem 0.9rem;
  font: inherit; font-size: 15px; color: var(--text); background: var(--field);
  border: 1px solid var(--line); border-radius: var(--r-input);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163, 124, 52, 0.18); outline: none; }
::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
form > div { margin-bottom: 1.1rem; }
form > div label { font-weight: 500; }
form ul.errorlist, .errorlist { list-style: none; margin: 0.35rem 0 0; padding: 0; color: var(--danger); font-size: 0.875rem; }
form .helptext, .helptext { display: block; margin-top: 0.4rem; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
form button[type="submit"] { margin-top: 0.25rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
legend { padding: 0; margin-bottom: 0.45rem; font-weight: 500; font-size: 0.9rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-fill); width: 1.05rem; height: 1.05rem; }
.check { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.check label { display: inline; margin: 0; font-weight: 400; }
.switch { display: inline-flex; align-items: center; margin: 0; cursor: pointer; }
.switch input { appearance: none; width: 36px; height: 21px; margin: 0; border-radius: 999px; background: var(--line); position: relative; transition: background-color 150ms var(--ease); cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--cream-card); transition: transform 150ms var(--ease); }
.switch input:checked { background: var(--accent-fill); }
.switch input:checked::after { transform: translateX(15px); }
.switch input:disabled { opacity: 0.4; cursor: default; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--text-on-ink); transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease); }
.site-top.nav-float { position: fixed; left: 0; right: 0; background: transparent; }
.site-top.nav-float.is-scrolled { background: rgba(31, 25, 38, 0.9); backdrop-filter: blur(12px); box-shadow: inset 0 -1px 0 var(--line-on-ink); }
.announce { background: var(--ink-deep); color: var(--muted-on-ink); font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 36px; padding-block: 0.35rem; }
.announce a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.announce .link { color: var(--muted-on-ink); display: inline-grid; place-items: center; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.03em; color: var(--text-on-ink); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a, .nav-links .link { padding: 0.5rem 0.8rem; border-radius: var(--r-pill); color: var(--muted-on-ink); font-weight: 500; font-size: 14.5px; transition: color 150ms, background-color 150ms; }
.nav-links a:hover, .nav-links .link:hover { color: var(--text-on-ink); background: rgba(247, 241, 234, 0.08); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text-on-ink); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .btn-sm { min-height: 40px; padding-inline: 1.15rem; }
.user-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem 0.3rem 0.35rem; border: 1px solid var(--line-on-ink); border-radius: var(--r-pill); font-size: 0.85rem; color: var(--muted-on-ink); max-width: 16rem; }
.user-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-fill); color: var(--cream-card); font-family: var(--font-display); font-size: 0.95rem; text-transform: uppercase; flex-shrink: 0; }
.nav-toggle { display: none; }
@media (max-width: 56rem) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
}

main.app-main { padding-block: 2.5rem 6rem; }

/* ---------- Marketing: hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 92vh; max-height: 900px;
  display: grid; align-items: end;
  padding: 190px 0 64px;
  background: var(--ink-deep) url("../img/hero.2a04b9e71cb6.jpg") center / cover no-repeat;
  color: var(--text-on-ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 25, 38, 0.94) 0%, rgba(31, 25, 38, 0.78) 42%, rgba(31, 25, 38, 0.22) 100%),
    linear-gradient(0deg, rgba(31, 25, 38, 0.9) 0%, rgba(31, 25, 38, 0) 45%);
}
.hero .eyebrow { color: var(--accent-bright); }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 92px); font-weight: 400; line-height: 1.0; letter-spacing: -0.015em; margin: 18px 0 26px; }
.hero h1 em { color: var(--accent-bright); font-weight: 400; }
.hero .lead { color: var(--muted-on-ink); max-width: 34rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 34px 0 52px; }
.spec { display: grid; grid-template-columns: repeat(3, max-content); gap: 2.5rem 3.5rem; margin: 0; }
.spec div { display: grid; gap: 0.25rem; }
.spec dt { font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-bright); }
.spec dd { margin: 0; font-size: 15px; color: var(--text-on-ink); }
.hero-guests { position: absolute; right: var(--gutter); bottom: 28px; font-size: 0.85rem; color: var(--muted-on-ink); }
.hero-guests:hover { color: var(--text-on-ink); }
@media (max-width: 56rem) {
  .hero { min-height: 0; max-height: none; padding: 150px 0 88px; }
  .spec { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero-guests { left: var(--gutter); right: auto; }
}

/* ---------- Marketing: marquee ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; margin: 0; padding-left: 0; list-style: none; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 30px; color: var(--muted-on-ink); white-space: nowrap; }
.marquee-list li::after { content: "·"; margin-left: 3rem; color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Marketing: sections ---------- */
.section { position: relative; overflow: hidden; padding: 120px 0; }
.section-tight { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(38px, 4.4vw, 56px); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 18px; }
.section h2 em { color: var(--acc); }
.section .lead { margin: 0; }
@media (max-width: 56rem) { .section { padding: 80px 0; } .section-head { margin-bottom: 36px; } }

/* Use-case pages */
.answer { max-width: 44rem; margin: 0 0 40px; padding: 24px 28px; border-left: 2px solid var(--accent); background: var(--card); border-radius: 0 var(--r-card) var(--r-card) 0; font-size: 18px; line-height: 1.6; }
.answer .eyebrow { display: flex; margin-bottom: 0.5rem; }
.avoid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.avoid li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.avoid .icon { color: var(--danger); margin-top: 3px; }
.avoid strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; display: block; margin-bottom: 2px; }
.avoid p { margin: 0; color: var(--muted); font-size: 15.5px; }
.howto { counter-reset: step; display: grid; gap: 12px; }
.howto li { list-style: none; counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 22px; background: var(--card); border-radius: 14px; }
.howto li::before { content: counter(step); font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--acc); font-variant-numeric: lining-nums; }
.howto strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; display: block; margin-bottom: 4px; }
.howto p { margin: 0; color: var(--muted); font-size: 15.5px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.9rem; color: var(--muted); }
.related a:hover { color: var(--text); border-color: var(--text); text-decoration: none; }

/* Arcs: one per dark section at most. */
.arc { position: absolute; pointer-events: none; fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.35; }
.arc.dotted { stroke-dasharray: 2 7; stroke-linecap: round; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border-radius: var(--r-card); padding: 34px 32px; }
.card .icon { color: var(--acc); }
.card h3 { font-size: 26px; margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.card p + p { margin-top: 0.75rem; }
@media (max-width: 56rem) { .cards { grid-template-columns: 1fr; } .card { padding: 28px 24px; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid .card h3 { font-size: 24px; margin-top: 18px; }
.feature-grid .card p { font-size: 15.5px; }
@media (max-width: 56rem) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .feature-grid { grid-template-columns: 1fr; } }

/* Photo strip, edge to edge */
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--gutter) 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 auto; scroll-snap-align: start; list-style: none; }
.strip img { width: 380px; height: 285px; object-fit: cover; border-radius: var(--r-card); }
.strip ul { display: contents; }
@media (max-width: 36rem) { .strip img { width: 260px; height: 200px; } }

/* How it works */
.steps { display: grid; gap: 24px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 36px 0; }
.step:nth-child(even) .step-copy { order: 1; }
.step h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 400; margin: 8px 0 14px; }
.step p { color: var(--muted); max-width: 30rem; font-size: 17px; }
.step-media { display: grid; place-items: center; }
@media (max-width: 56rem) { .step { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; } .step:nth-child(even) .step-copy { order: 0; } }

/* Device frames for product vignettes */
.browser { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; font-family: var(--font-accent); font-style: italic; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.browser-body { padding: 22px; }
.band-ink .browser, .band-deep .browser { --card: var(--cream-card); --text: var(--text-on-cream); --muted: var(--muted-on-cream); --line: var(--line-on-cream); --acc: var(--accent-text); --field: var(--paper); }
.phone { width: 270px; padding: 10px; background: var(--ink-deep); border-radius: 40px; box-shadow: var(--shadow-warm); }
.phone-screen { border-radius: 32px; overflow: hidden; min-height: 500px; background: var(--cream-card); color: var(--text-on-cream); --muted: var(--muted-on-cream); --line: var(--line-on-cream); --acc: var(--accent-text); }

/* Vignette contents (illustrative product UI) */
.v-form label { font-size: 0.8rem; margin-bottom: 0.9rem; }
.v-form .v-input { min-height: 40px; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--field); font-size: 0.9rem; }
.v-form .v-input.serif { font-family: var(--font-display); font-size: 1.15rem; }
.v-form .btn { margin-top: 0.4rem; }
.v-note { font-size: 0.78rem; color: var(--muted); margin: 0.9rem 0 0; }
.table-card { width: 300px; padding: 30px 28px 26px; background: var(--cream-card); color: var(--text-on-cream); border-radius: 12px; text-align: center; box-shadow: var(--shadow-warm); transform: rotate(-2.5deg); }
.table-card .eyebrow { color: var(--accent-text); justify-content: center; margin-bottom: 0.6rem; }
.table-card .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.8; }
.table-card h4 { font-size: 30px; font-weight: 400; margin: 0 0 4px; }
.table-card .names { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--muted-on-cream); margin: 0 0 18px; }
.table-card .qr { width: 150px; height: 150px; margin: 0 auto 16px; }
.table-card .qr svg { width: 100%; height: 100%; display: block; }
.table-card small { display: block; font-family: var(--font-accent); font-style: italic; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-cream); }
.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.v-grid .v-tile { position: relative; }
.v-grid .v-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cream-card); background: var(--warning); }
.v-grid .v-dot.ok { background: var(--success); }
.v-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.v-head strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.v-head .pill { font-size: 0.72rem; }

/* Day timeline */
.moments { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.moment { border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 26px; }
.moment.now { border-color: var(--accent); background: var(--card); }
.moment .eyebrow { margin-bottom: 1.1rem; font-size: 0.68rem; }
.moment h3 { font-size: 28px; margin: 0 0 8px; }
.moment p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 62rem) { .moments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .moments { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px 28px 28px; }
.plan-featured { border-color: var(--accent); background: var(--card); }
.plan-flag { position: absolute; top: -0.85rem; left: 24px; padding: 0.3rem 0.8rem; font-family: var(--font-accent); font-style: italic; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--cream-card); }
.plan h3 { font-size: 26px; font-weight: 500; margin: 0 0 4px; }
.plan-price { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); font-size: 54px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; margin: 14px 0 6px; font-variant-numeric: lining-nums; }
.plan-price small { font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plan .tagline { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 0.55rem; font-size: 15px; flex: 1; }
.plan ul li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan ul .icon { color: var(--acc); margin-top: 0.2rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 62rem) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .plans { grid-template-columns: 1fr; } }
.club { position: relative; overflow: hidden; margin-top: 40px; padding: 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.club h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 400; margin: 6px 0 14px; }
.club p { color: var(--muted); margin: 0; max-width: 34rem; }
.club-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
.club .watermark { font-variant-numeric: lining-nums; position: absolute; right: 36px; bottom: -22px; font-family: var(--font-display); font-size: 120px; line-height: 1; letter-spacing: 0.02em; color: var(--text); opacity: 0.05; pointer-events: none; white-space: nowrap; }
@media (max-width: 56rem) { .club { grid-template-columns: 1fr; padding: 32px 26px; } .club-actions { justify-content: flex-start; } .club .watermark { display: none; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 22px 0; font-family: var(--font-display); font-weight: 500; font-size: 23px; line-height: 1.25; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--acc); transition: transform 200ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 40rem; }
@media (max-width: 56rem) { .faq { grid-template-columns: 1fr; gap: 24px; } .faq summary { font-size: 20px; } }

/* Final CTA + footer */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 12px; }
.cta-final p { color: var(--muted); margin: 0 0 30px; }
.footer { position: relative; padding: 72px 0 36px; }
.footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 18rem; margin: 14px 0 0; font-size: 15px; }
.footer h4 { font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 15px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-mark { position: absolute; right: 0; bottom: 60px; font-family: var(--font-display); font-size: clamp(80px, 12vw, 180px); line-height: 1; letter-spacing: 0.02em; color: var(--text); opacity: 0.04; pointer-events: none; user-select: none; white-space: nowrap; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-mark { display: none; } }
@media (max-width: 62rem) and (min-width: 56rem) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- App: layout pieces ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.page-header h1 { font-size: clamp(34px, 3.4vw, 44px); margin: 0.1rem 0 0.35rem; }
.page-header .eyebrow { margin-bottom: 0; }
.crumbs { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
.crumbs a:hover { color: var(--text); }
.actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.panel { padding: 1.6rem 1.75rem; background: var(--card); border-radius: var(--r-card); }
.panel h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 24px; font-weight: 500; margin-bottom: 0.3rem; }
.panel h2 .icon { color: var(--acc); }
.panel > .muted:first-of-type { margin-bottom: 1.1rem; }
.section-app { margin-top: 2.25rem; }
.section-head-app { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head-app h2 { font-size: 26px; font-weight: 500; margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { padding: 1.35rem 1.5rem; background: var(--card); border-radius: var(--r-card); }
.stat-label { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin-bottom: 0.6rem; }
.stat-value { font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.stat-value small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); letter-spacing: 0; margin-left: 0.35rem; }
.stat .arrow-link { font-size: 0.875rem; margin-top: 0.6rem; }
.meter { height: 4px; margin-top: 0.9rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width 300ms var(--ease); }
.meter-bar.warn { background: var(--danger); }

.pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.75rem 0.25rem 0.6rem; font-size: 0.8rem; font-weight: 500; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill-published::before { background: #7a6a9c; }
.pill-live::before { background: var(--success); box-shadow: 0 0 0 3px rgba(61, 122, 90, 0.2); }
.pill-gallery::before { background: var(--accent); }
.pill-archived::before { background: var(--line); }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; font-family: var(--font-accent); font-style: italic; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--acc); }
.chip-neutral { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); }
.chip-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

.subnav { display: flex; gap: 0.15rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem; color: var(--muted); font-weight: 500; font-size: 0.9rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 150ms; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.tabs { display: inline-flex; gap: 0.2rem; padding: 0.25rem; background: var(--card); border-radius: var(--r-pill); }
.tabs a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.9rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); border-radius: var(--r-pill); }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--cream-card); background: var(--ink); }

.event-cards { display: grid; gap: 0.9rem; }
.event-card { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: center; padding: 1.5rem 1.75rem; background: var(--card); border-radius: var(--r-card); color: var(--text); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.event-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-warm); }
.event-card h2 { font-size: 28px; font-weight: 400; margin: 0 0 0.25rem; }
.event-card .meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.event-card .thumbs { display: flex; gap: 6px; }
.event-card .thumbs img, .event-card .thumbs i { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: color-mix(in srgb, var(--text) 8%, transparent); display: block; }
@media (max-width: 36rem) { .event-card { grid-template-columns: 1fr; } }
.empty { display: grid; justify-items: center; gap: 0.5rem; padding: 4rem 1.5rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--muted); }
.empty .icon { color: var(--acc); }
.empty h2 { font-size: 28px; margin: 0.5rem 0 0; }
.empty p { margin: 0; max-width: 24rem; }
.empty .btn { margin-top: 1rem; }
.messages { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.message { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border-radius: var(--r-input); font-size: 0.9rem; background: var(--card); }
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.share { display: flex; gap: 0.5rem; }
.share input { flex: 1; min-width: 0; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.qr-preview { width: 120px; height: 120px; padding: 8px; background: var(--cream-card); border: 1px solid var(--line); border-radius: 12px; }
.qr-preview svg { width: 100%; height: 100%; display: block; }
@media (max-width: 36rem) { .share-row { grid-template-columns: 1fr; } }
.stats { display: flex; gap: 2.5rem; }
.stats strong { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1.1; font-variant-numeric: lining-nums; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc); }
tr:last-child td { border-bottom: 0; }
.danger { color: var(--danger); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.list-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; padding: 1.1rem 1.4rem; background: var(--card); border-radius: 14px; }
.list-row .quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }

/* Timeline (lifecycle) */
.timeline { list-style: none; margin: 0.25rem 0 0; padding: 0; }
.timeline li { position: relative; display: grid; gap: 0.05rem; padding: 0.55rem 0 0.55rem 1.6rem; font-size: 0.9rem; }
.timeline li::before { content: ""; position: absolute; left: 0.3rem; top: 1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: calc(0.3rem + 3px); top: 1.6rem; bottom: -0.5rem; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--success); }
.timeline li.now::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline li.now span { font-weight: 600; }
.timeline li em { font-style: normal; font-size: 0.8rem; color: var(--muted); }

/* Media grid, masonry */
.masonry { columns: 5 180px; column-gap: 10px; }
.masonry > li { list-style: none; break-inside: avoid; margin-bottom: 10px; }
.tile { position: relative; overflow: hidden; border-radius: 12px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.tile img { width: 100%; height: auto; display: block; }
.tile-pending { display: grid; place-items: center; aspect-ratio: 1; font-size: 0.8rem; color: var(--muted); }
.tile-badge { position: absolute; top: 0.55rem; left: 0.55rem; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.55rem; font-size: 0.7rem; font-weight: 500; border-radius: var(--r-pill); background: rgba(31, 25, 38, 0.75); color: var(--cream-card); backdrop-filter: blur(4px); }
.tile-status { position: absolute; top: 0.6rem; right: 0.6rem; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--cream-card); }
.tile-status.approved { background: var(--success); }
.tile-status.pending { background: var(--warning); }
.tile-status.rejected { background: var(--danger); }
.tile-actions .tile-bar { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 1.4rem 0.7rem 0.6rem; font-size: 0.8rem; color: var(--cream-card); background: linear-gradient(to top, rgba(31, 25, 38, 0.85), rgba(31, 25, 38, 0)); opacity: 0; transition: opacity 150ms; }
.tile-actions:hover .tile-bar, .tile-actions:focus-within .tile-bar { opacity: 1; }
.tile-buttons { display: flex; gap: 0.2rem; }
.tile-buttons .link { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--cream-card); }
.tile-buttons .link:hover { background: rgba(247, 241, 234, 0.2); }
.tile-buttons .link.danger:hover { background: var(--danger); }

/* Plans inside the app (upgrade page) */
body.app .plans { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
body.app .plan { background: var(--card); border-color: transparent; }
body.app .plan-featured { border-color: var(--accent); }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(20rem, 26rem) 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 62rem) { .editor { grid-template-columns: 1fr; } }
.editor-panel { display: grid; gap: 1rem; }
.editor-preview { position: sticky; top: calc(var(--nav-h) + 1rem); }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.preview-frame { display: grid; place-items: center; padding: 2rem; background: var(--cream); border-radius: var(--r-card); min-height: 72vh; }
.device { width: 100%; height: 72vh; background: var(--cream-card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: max-width 250ms var(--ease); }
.device.phone-frame { max-width: 400px; border-radius: 36px; border: 9px solid var(--ink-deep); box-shadow: var(--shadow-warm); }
.device iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--cream-card); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.6rem; }
.theme-swatch { display: grid; gap: 0.45rem; padding: 0.35rem; font: inherit; font-size: 0.8rem; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; transition: border-color 150ms; }
.theme-swatch:hover { border-color: var(--text); }
.theme-swatch.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.swatch-preview { display: grid; grid-template-rows: 1fr auto; height: 4rem; padding: 0.5rem 0.65rem; background: var(--background); border-radius: 8px; color: var(--text); }
.swatch-aa { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; color: var(--text); }
.swatch-accent { width: 40%; height: 4px; border-radius: 999px; background: var(--accent); }
.swatch-name { padding: 0 0.3rem 0.2rem; font-weight: 500; }
.blocks { list-style: none; margin: 0; padding: 0; }
.block { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; }
.block.off .block-name { color: var(--muted); }
.block-head { display: flex; align-items: center; gap: 0.6rem; }
.block-head .grip { color: var(--line); }
.block-name { flex: 1; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.block-controls { display: flex; align-items: center; gap: 0.3rem; }
.block-form { display: grid; gap: 0.25rem; padding: 0.9rem 0 0.4rem 2rem; }
.block-form label { font-size: 0.875rem; margin-bottom: 0.7rem; }
.block-form .btn { justify-self: start; margin-top: 0.4rem; }

/* ---------- Auth (split screen) ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h)); }
.auth-photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; background: var(--ink-deep) url("../img/auth.55a3a6904517.jpg") center / cover no-repeat; color: var(--text-on-ink); overflow: hidden; }
.auth-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 25, 38, 0.92) 0%, rgba(31, 25, 38, 0.25) 60%); }
.auth-photo > * { position: relative; }
.auth-photo .eyebrow { color: var(--accent-bright); }
.auth-photo blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; max-width: 22ch; }
.auth-photo blockquote em { color: var(--accent-bright); }
.auth-panel { display: grid; place-items: center; padding: 56px var(--gutter); background: var(--cream); }
.auth-card { width: 100%; max-width: 430px; padding: 44px 40px; background: var(--cream-card); border-radius: var(--r-card); }
.auth-card h1 { font-size: 36px; margin-bottom: 0.3rem; }
.auth-card > .muted { margin-bottom: 1.75rem; font-size: 0.95rem; }
.auth-card > .muted a { color: var(--acc); font-weight: 500; }
.auth-form label { margin-bottom: 1rem; }
.auth-actions { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.auth-hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.auth-card .helptext ul { margin: 0.25rem 0 0; padding-left: 1rem; }
@media (max-width: 56rem) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-photo { min-height: 220px; padding: 28px var(--gutter); }
  .auth-photo blockquote { font-size: 24px; }
  .auth-panel { padding: 32px var(--gutter) 56px; }
  .auth-card { padding: 32px 26px; }
}

/* ---------- Motion ---------- */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.06em 0.12em 0; margin: 0 -0.06em -0.12em 0; }
.reveal-words .w > span { display: inline-block; transform: translateY(110%); transition: transform 760ms var(--ease); transition-delay: calc(var(--i, 0) * 38ms); }
.reveal-words.is-in .w > span { transform: none; }
.rise { transition: opacity 560ms var(--ease), transform 560ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.rise.pending { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal-words .w > span { transform: none !important; }
  .rise.pending { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
}

/* Phone refinements */
.brand { white-space: nowrap; }
@media (max-width: 56rem) {
  .brand { font-size: 1.15rem; gap: 0.5rem; }
  .brand svg { width: 28px; height: 28px; }
  .nav { gap: 0.75rem; }
  .user-chip span:last-child { display: none; }
  .user-chip { padding-right: 0.35rem; }
}
@media (max-width: 36rem) {
  .announce { display: none; }
  .hero { padding-top: 120px; }
  .btn-lg { min-height: 50px; padding-inline: 1.5rem; }
  .section h2 { font-size: 34px; }
}

/* Settings: address field with a fixed suffix and a live availability line */
.addr { display: flex; align-items: stretch; }
.addr input { border-radius: var(--r-input) 0 0 var(--r-input); }
.addr-suffix { display: inline-flex; align-items: center; padding: 0 0.85rem; font-size: 0.9rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r-input) var(--r-input) 0; white-space: nowrap; }
.addr-status { margin: 0.4rem 0 0; font-weight: 500; }
.addr-status.ok { color: var(--success); }
.addr-status.bad { color: var(--danger); }
.addr-status.checking { color: var(--muted); }
.links { margin: 0; display: grid; gap: 1.1rem; }
.links dt { font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin-bottom: 0.3rem; }
.links dd { margin: 0; }
.links dd.mono { font-size: 0.9rem; word-break: break-all; }

/* Voice note tiles in host lists */
.audio-tile { display: grid; gap: 0.5rem; padding: 1rem; min-height: 8rem; background: var(--card); color: var(--text); font-size: 0.85rem; }
.audio-tile .icon { color: var(--acc); }
.audio-tile audio { width: 100%; }

/* Print pack: preview each printable beside what it is for */
.prints { display: grid; gap: 1rem; }
.print { display: grid; grid-template-columns: 200px 1fr; gap: 1.75rem; align-items: center; padding: 1.5rem 1.75rem; background: var(--card); border-radius: var(--r-card); }
.print-preview { display: grid; place-items: center; padding: 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.print-preview svg { display: block; width: 100%; height: auto; max-height: 250px; }
.print-preview.plain { padding: 1.25rem; }
.print-meta h2 { font-size: 26px; font-weight: 400; margin: 0 0 0.3rem; }
.print-meta p { max-width: 42ch; }
@media (max-width: 40rem) { .print { grid-template-columns: 1fr; gap: 1rem; } .print-preview { max-width: 200px; } }
