/* 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; margin-inline: auto; }
.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; }
.impersonating { margin: 0; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.5rem 1rem; background: var(--accent-fill); color: var(--cream-card); font-size: 0.875rem; }
.impersonating .btn { background: var(--ink); color: var(--cream-card); }
/* The marketing header floats over the hero, which put it on top of the
   environment banner. With a banner present it sits in the flow instead. */
body:has(.env-banner) .site-top.nav-float { position: sticky; background: var(--ink); }
body:has(.env-banner) .hero { padding-top: 40px; }
@media (max-width: 36rem) { .env-banner-long { display: none; } }

.pw-field { position: relative; }
.pw-field input { padding-right: 2.7rem; }
.pw-toggle { position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.pw-toggle:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
::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, .auth-form .check label { display: inline; margin: 0; font-weight: 400; }
.check label a { color: var(--acc); text-decoration: underline; }
/* A wrapped label should not push the box to its middle. */
.check:has(label a) { align-items: flex-start; }
.check:has(label a) input { margin-top: 0.15rem; }
.check input { margin: 0; }
.plan-pick { border: 0; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.plan-pick legend { display: block; margin-bottom: 0.45rem; font-weight: 500; font-size: 0.9rem; }
.plan-option { display: flex; align-items: center; gap: 0.9rem; margin: 0; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; transition: border-color 150ms var(--ease), background-color 150ms var(--ease); }
.plan-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-option-body { display: grid; grid-template-columns: auto auto; column-gap: 0.6rem; align-items: baseline; flex: 1; }
.plan-option-body .small { grid-column: 1 / -1; }
.plan-option-price { font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: lining-nums; }
.plan-option .icon { color: transparent; }
.plan-option:has(:checked) { border-color: var(--accent); background: var(--card); }
.plan-option:has(:checked) .icon { color: var(--accent-text); }
.plan-option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.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; width: 40px; height: 40px; border-color: var(--line-on-ink); color: var(--text-on-ink); }
.nav-menu { display: none; }
@media (max-width: 56rem) {
  .nav-links { display: none; }
  /* Signed in on a phone: the chip and sign-out fold into a menu that shows
     the whole address, which the chip could not. */
  .nav-actions-host .user-chip, .nav-actions-host .inline, .nav-actions-host .btn-sm { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-menu { display: grid; gap: 0.25rem; padding: 0.75rem var(--gutter) 1rem; border-top: 1px solid var(--line-on-ink); background: var(--ink); }
  .nav-menu-who { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; padding: 0.4rem 0.5rem; font-size: 0.9rem; color: var(--text-on-ink); overflow-wrap: anywhere; }
  .nav-menu a, .nav-menu button { display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.7rem 0.5rem; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 500; color: var(--muted-on-ink); text-align: left; cursor: pointer; }
  .nav-menu a:hover, .nav-menu button:hover { color: var(--text-on-ink); background: rgba(247, 241, 234, 0.08); text-decoration: none; }
}

.app-main { padding-block: 2rem 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; } }


/* 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: 1fr 1fr 1.18fr; gap: 14px; align-items: stretch; }
.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; align-content: start; gap: 0.7rem; 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; row-gap: 26px; } .plan-featured { grid-column: span 2; } .plan-featured ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
@media (max-width: 36rem) { .plans { grid-template-columns: 1fr; } .plan-featured { grid-column: auto; } .plan-featured ul { 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 > * { min-width: 0; }
.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 { display: flex; width: fit-content; 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); }

/* The plan, with its upgrade, beside the status: on a phone the stats are
   a long scroll away and people could not find them. */
.pill-plan { padding-right: 0.3rem; gap: 0.5rem; }
.pill-plan a { display: inline-flex; padding: 0.1rem 0.6rem; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--cream-card); font-size: 0.75rem; font-weight: 600; }
.pill-plan a:hover { text-decoration: none; background: var(--accent); }
.page-header > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.page-header .crumbs, .page-header h1 { flex-basis: 100%; }
.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); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; 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); }
.tab-count { margin-left: 0.5rem; padding: 0.05rem 0.5rem; font-size: 0.75rem; font-weight: 600; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 10%, transparent); }
.tabs a[aria-current="page"] .tab-count { background: color-mix(in srgb, var(--cream-card) 25%, transparent); }

.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-message { width: 100%; min-height: 0; margin-top: 0.75rem; line-height: 1.5; resize: none; }
.panel-rule { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0 1.25rem; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.qr-preview { width: 184px; height: 184px; padding: 12px; 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; }
/* A five-column table on a phone squeezes names to one letter a line, so
   each row becomes a stacked card with its headings inline. */
@media (max-width: 44rem) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 0.1rem 0; border: 0; }
  .table-wrap td:empty { display: none; }
  .table-wrap td[data-label]::before { content: attr(data-label) " "; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 0.4rem; }
}

.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-pick { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(247, 241, 234, 0.85); cursor: pointer; opacity: 0; transition: opacity 150ms; }
.tile-actions:hover .tile-pick, .tile-pick:has(:checked), .tile-pick:focus-within { opacity: 1; }
.tile-pick input { margin: 0; width: 16px; height: 16px; }
.tile.picked { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.picked .tile-badge { top: 0.55rem; left: 2.6rem; }
.select-all { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.9rem; font-size: 0.875rem; color: var(--muted); cursor: pointer; }
.bulk-bar { position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem; padding: 0.75rem 1.1rem; background: var(--ink); color: var(--cream-card); border-radius: var(--r-card); box-shadow: var(--shadow-warm); }
.bulk-bar .btn-ghost { border-color: var(--line-on-ink); color: var(--cream-card); }
.bulk-bar .btn-ghost.danger:hover { background: var(--danger); border-color: var(--danger); }
.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 */
.preview-bar .tabs { flex: none; }
.preview-bar .save-state { flex: 1; }
.preview-bar .arrow-link { white-space: nowrap; }
.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; }
.block-hint { margin: 0 0 0.9rem; }
.sched { display: grid; gap: 0.5rem; margin-bottom: 1.1rem; }
.sched-row { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 0.5rem; align-items: center; }
.sched-row select, .sched-row input { min-height: 40px; padding: 0.4rem 0.6rem; font-size: 14px; }
.sched .btn { justify-self: start; }
.field-label { display: block; margin-bottom: 0.45rem; font-weight: 500; font-size: 0.9rem; }
.save-state { min-width: 6rem; text-align: right; }
.image-field { display: grid; gap: 0.6rem; margin-bottom: 1.1rem; }
/* Natural aspect, no letterbox, so a point on the thumbnail is the same point on the photo. */
.image-field-preview { display: block; width: 100%; height: auto; border-radius: 10px; }
.focus-pick { position: relative; cursor: crosshair; touch-action: none; user-select: none; }
.focus-dot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid var(--cream-card); border-radius: 50%; box-shadow: 0 0 0 2px var(--accent), 0 2px 8px rgba(0,0,0,0.35); pointer-events: none; }
.image-field .btn.disabled { opacity: 0.6; pointer-events: none; }
/* The file button is a <label>; undo the form-label layout it inherits. */
.image-field label.btn { margin: 0; }
.image-field label.btn > span { display: inline; margin: 0; }
.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; cursor: pointer; }
.audio-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.audio-tile .icon { color: var(--acc); }
.audio-tile audio { width: 100%; }
.tile-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }

.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(31, 25, 38, 0.96); padding: 1rem; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 82vh; border-radius: 6px; }
.lightbox audio { width: min(420px, 84vw); }
.lightbox figcaption { display: flex; gap: 1.5rem; align-items: center; color: #bcb3c2; font-size: 0.9rem; }
.lightbox figcaption a { display: inline-flex; align-items: center; gap: 0.35rem; color: #f7f1ea; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; background: rgba(244, 237, 226, 0.1); border: 0; color: #f7f1ea; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; transition: background-color 150ms ease; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(244, 237, 226, 0.22); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

/* 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; } }

/* Seating planner */
.seating { display: grid; grid-template-columns: minmax(16rem, 22rem) 1fr; gap: 1.25rem; align-items: start; }
.seating-side { position: sticky; top: 1rem; }
.seating-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.seat-list { list-style: none; margin: 0 0 1rem; padding: 0.25rem; min-height: 3.25rem; display: grid; gap: 0.4rem; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.party { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; }
.party .grip { cursor: grab; color: var(--muted); flex: none; }
.party-name { flex: 1; min-width: 0; }
.party-seats { flex: none; min-width: 1.6rem; text-align: center; padding: 0.1rem 0.45rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); font-size: 0.75rem; font-weight: 600; }
.party-x { display: inline-flex; padding: 0.2rem; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.party-x:hover { color: var(--danger); }
.party-ghost { opacity: 0.4; }
.party-member { border-style: dashed; }
.hidden-parties { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.3rem; font-size: 0.875rem; }
.hidden-parties li { display: flex; justify-content: space-between; gap: 0.5rem; }
.hidden-parties button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.party-add { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: end; margin-top: 1rem; }
.party-add label { margin: 0; }
.party-add .btn { grid-column: 1 / -1; justify-self: start; }
.party-add-guest { grid-column: 1 / -1; }
.table { padding: 1.1rem 1.2rem; border: 1px solid transparent; transition: border-color 150ms var(--ease); }
.table.over { border-color: var(--danger); }
.table.over .table-count { color: var(--danger); }
.table-head { display: grid; grid-template-columns: 1fr auto auto; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.table-head input, .table-head select { min-height: 2.4rem; padding: 0.3rem 0.6rem; font-size: 0.9rem; }
.table-name { font-family: var(--font-display); font-size: 1.15rem; }
.table-cap { display: inline-flex; align-items: center; gap: 0.15rem; margin: 0; font-weight: 600; color: var(--muted); }
.table-cap input { width: 3.2rem; text-align: center; }
.table-count { color: var(--text); }
.table-remove { text-align: right; }
.table-new h2 { margin-bottom: 0.75rem; }
@media (max-width: 62rem) { .seating { grid-template-columns: 1fr; } .seating-side { position: static; } }

/* Print pages: white paper, plum ink, the site's type. */
body.paper .site-top, body.paper footer, body.paper .impersonating { display: none; }
body.paper { background: #fff; }
.print-page { max-width: 44rem; margin: 0 auto 3rem; padding: 2rem 0; break-after: page; }
.print-page h1 { font-size: 2.6rem; margin: 0.3rem 0 1.5rem; }
.board { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 3rem; font-size: 1.05rem; }
/* Two columns of names do not fit a phone: one name per line instead. */
@media (max-width: 34rem) { .board { columns: 1; } }
.board li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.3rem 0; break-inside: avoid; }
.board li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.board li strong { flex: none; white-space: nowrap; }
.board-dots { min-width: 1.5rem; }
.board-dots { flex: 1; border-bottom: 1px dotted var(--line-on-cream); transform: translateY(-0.3em); }
.print-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.5rem 2.5rem; }
.print-tables section { break-inside: avoid; }
.print-tables h2 { font-size: 1.4rem; margin: 0 0 0.4rem; }
.print-tables ol { margin: 0; padding-left: 1.4rem; }
@media print { .no-print { display: none; } .print-page { margin: 0; padding: 0; } .app-main { padding: 0; } }

/* Legal pages: long prose, so a measure that can be read. */
.legal { max-width: 46rem; margin-inline: auto; }
.legal h2 { font-size: 1.6rem; font-weight: 400; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { max-width: 64ch; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal code { font-family: ui-monospace, monospace; font-size: 0.9em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0.5rem; font-size: 0.9rem; }
.legal-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.legal-table td { padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table td:last-child, .legal-table th:last-child { padding-right: 0; }
@media (max-width: 40rem) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .legal-table td { border: 0; padding: 0.15rem 0; }
}

/* Tour: a phone screenshot per step, arrows carrying the eye down the page. */
.tour-head { max-width: 42rem; margin: 0 auto 3.5rem; text-align: center; }
.tour-head h1 { margin-bottom: 1rem; }
.tour-head .actions { justify-content: center; margin-top: 1.5rem; }
.tour { list-style: none; counter-reset: tour; margin: 0 auto 4rem; padding: 0; max-width: 60rem; display: grid; gap: 4.5rem; }
.tour-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.tour-step.flip .tour-shot { order: 2; }
.tour-shot { display: grid; place-items: center; }
.phone { width: 260px; padding: 10px; background: var(--ink-deep); border-radius: 34px; box-shadow: var(--shadow-warm); }
.phone img { display: block; width: 100%; height: auto; border-radius: 25px; background: var(--paper); }
.tour-text { max-width: 26rem; }
.tour-phase { display: inline-block; font-family: var(--font-accent); font-style: italic; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }
.tour-n { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--line); margin: 0.2rem 0 0.4rem; }
.tour-text h2 { font-size: 1.9rem; font-weight: 400; margin: 0 0 0.6rem; }
.tour-text p:last-child { color: var(--muted); max-width: 34ch; }
.tour-arrow { position: absolute; left: 50%; bottom: -4.2rem; width: 60px; height: 4rem; transform: translateX(-50%); color: var(--accent); opacity: 0.55; }
@media (max-width: 52rem) {
  .tour { gap: 3.5rem; max-width: 26rem; }
  .tour-step, .tour-step.flip { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
  .tour-step.flip .tour-shot { order: 0; }
  .tour-text { margin-inline: auto; }
  .tour-text p:last-child, .tour-text { max-width: none; }
  .tour-arrow { bottom: -3.1rem; height: 2.75rem; }
  .phone { width: 220px; }
}
.tour-end { margin-top: 2rem; }
