/* Gift Lista — app.css
 *
 * Component styles for the production app. Tokens come from tokens.css
 * (single source of truth, mirrored from design-reference/tokens.css);
 * this file consumes them, never redefines.
 *
 * Patterns lift from design-reference/styles.css + brief-design/brief.css.
 * Keep them in sync when those change.
 */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* Body is a touch darker than --bg so the centered shell on desktop
     stands proud when its soft shadow lifts. */
  background: oklch(0.94 0.005 80);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

body { min-height: 100vh; min-height: 100dvh; }

button { font: inherit; color: inherit; }

/* Links never take the UA blue/visited-purple — every link in the app is
   styled as a button, card, or inherits surrounding text colour. Components
   that want an accent (e.g. .link-btn) set their own colour. */
a { color: inherit; text-decoration: none; }

/* ── App shell ────────────────────────────────────────────────────────── */
#app {
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  #app { box-shadow: none; max-width: 100%; }
}

/* ── Hello (Phase 0 placeholder, still in use as authed landing) ──────── */
.hello {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--safe-top) var(--pad-x) var(--safe-bot);
  text-align: center;
}

.hello__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--ink-mute);
  margin: 0 0 var(--gap);
}

.hello__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 12vw, 72px);
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0;
}

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  min-height: 50px;
  color: var(--ink);
}

.topbar__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  flex: 1;
  text-align: center;
}

.topbar__slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 64px;
}

.topbar__slot--right { justify-content: flex-end; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 0;
  background: rgba(0, 0, 0, 0.04);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
}
.icon-btn:active { background: rgba(0, 0, 0, 0.08); }

.link-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 8px 4px;
}

/* ── Brand wordmark ───────────────────────────────────────────────────── */
/* "Gift Lista": type-pairing as identity — DM Sans bold + Instrument Serif
   italic, joined by a single accent dot. No boxed glyph. */
.brand { display: inline-flex; align-items: baseline; gap: 6px; }
.brand__gift {
  font-family: var(--font-sans); font-size: 17px; font-weight: 700;
  letter-spacing: -0.4px; color: var(--ink); line-height: 1;
}
.brand__lista {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 20px; letter-spacing: -0.3px; color: var(--ink); line-height: 1;
}
.brand__dot {
  width: 4px; height: 4px; border-radius: 4px; background: var(--accent);
  align-self: center; transform: translateY(-1px); flex-shrink: 0;
}
.brand--sm { gap: 5px; }
.brand--sm .brand__gift { font-size: 13.5px; font-weight: 600; letter-spacing: -0.2px; }
.brand--sm .brand__lista { font-size: 16px; }
.brand--sm .brand__dot { width: 3px; height: 3px; }

/* ── Auth shell (signin / check-email / onboarding / callback-error) ──── */
.auth-screen {
  padding: calc(var(--safe-top) + 24px) var(--pad-x) var(--safe-bot);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-screen .brand { align-self: flex-start; }

.auth-hero {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.8px;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.auth-hero__under {
  position: relative;
  display: inline-block;
}

.auth-hero__under > svg {
  position: absolute;
  left: 0;
  right: -4px;
  bottom: -6px;
  display: block;
}

.auth-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: -10px 0 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.auth-footer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0;
  text-align: center;
  max-width: 280px;
  align-self: center;
}
.auth-footer a { color: var(--ink-soft); }

/* Decorative gestures (single-line drawings used as the one screen
   gesture on /auth/check-email and /auth/callback error). */
.envelope-gesture {
  margin: 8px 0 2px;
  display: flex;
  justify-content: center;
}
.envelope-gesture svg { display: block; }

/* Email shown back, mono pill */
.echo-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 10px 14px;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
}

.resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.resend-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.1px;
  padding: 0;
}

.resend-btn[disabled] { color: var(--ink-mute); cursor: not-allowed; }

/* ── Field + form basics ──────────────────────────────────────────────── */
.field { display: block; }

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.1px;
  margin: 0 0 6px;
  padding: 0;
}

.field__hint {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 6px;
  line-height: 1.45;
}

.field__readonly {
  margin: 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  word-break: break-all;
}

.field__readonly--mono { font-family: var(--font-mono); font-size: 13px; }

.field--group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px; /* iOS won't zoom on focus at >=16px */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input::placeholder { color: var(--ink-mute); }

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint);
}

.input--error {
  border-color: oklch(0.78 0.10 25);
  background: oklch(0.985 0.01 25);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: oklch(0.50 0.12 25);
  font-weight: 500;
  letter-spacing: -0.1px;
  margin: 0 0 6px;
}
.field-error::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: oklch(0.55 0.18 25);
}

/* "or" divider between primary + alternate auth methods */
.or-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.or-rule::before,
.or-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}

/* OAuth button (Google placeholder for Phase 1.5) */
.btn--oauth {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--ink);
  cursor: pointer;
}
.btn--oauth[disabled] { color: var(--ink-mute); cursor: not-allowed; }

.btn--oauth__g {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, oklch(0.92 0.005 80) 50%, oklch(0.84 0.005 80) 50%);
  display: inline-block;
}

.coming-soon-tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Onboarding step tag + locale pills ───────────────────────────────── */
.step-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.radio-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.radio-pill {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.radio-pill:has(input[type="radio"]:checked) {
  background: var(--tint);
  border-color: var(--accent);
  color: var(--deep);
}

.radio-pill__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill__flag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--ink-mute);
}
.radio-pill:has(input[type="radio"]:checked) .radio-pill__flag { color: var(--deep); }

/* ── Account screen sections ──────────────────────────────────────────── */
.account {
  padding: 8px var(--pad-x) var(--safe-bot);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.account-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair-soft);
}
.account-section:last-of-type { border-bottom: 0; padding-bottom: 0; }

.account-section__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.read-row {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.read-row__k {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.read-row__v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.1px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.account__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.auth__saved {
  font-size: 14px;
  background: var(--tint);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.1px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn--lg { height: 56px; padding: 0 22px; border-radius: 14px; font-size: 16px; }

.btn--sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; gap: 6px; }

.btn--full { width: 100%; }

.btn--accent {
  background: var(--accent);
  color: var(--bg);
}
.btn--accent:active { background: var(--deep); }
.btn--accent[disabled] { opacity: 0.6; cursor: not-allowed; }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--hair);
}
.btn--ghost:active { background: var(--tint); }

.btn--secondary-destructive {
  background: transparent;
  color: oklch(0.50 0.12 25);
  border: 1px solid var(--hair);
}

/* ── Section primitives (used by /lists and editor screens) ───────────── */
.section {
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.section--tight { gap: 10px; }

.section--util-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

/* ── Avatar button (top-right /lists chrome) ──────────────────────────── */
.avatar-btn {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--tint); color: var(--deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: -0.2px;
  border: 0; cursor: pointer; text-decoration: none;
}

/* ── List cards (dashboard) ───────────────────────────────────────────── */
.list-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--hair-soft);
  padding: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.list-card__cover {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--tint);
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
.list-card__cover--dots { background: var(--deep); }
.list-card__cover--gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--tint) 100%);
}
.list-card__cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.list-card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-card__title--placeholder { color: var(--ink-mute); font-style: italic; font-weight: 500; }
.list-card__meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.list-card__meta-dot { opacity: 0.4; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.status-pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 4px;
}
.status-pill--active { background: var(--tint); color: var(--deep); }
.status-pill--active::before { background: var(--accent); }
.status-pill--draft { background: rgba(0, 0, 0, 0.04); color: var(--ink-soft); }
.status-pill--draft::before { background: var(--ink-mute); }
.status-pill--archived {
  background: transparent;
  color: var(--ink-mute);
  border: 1px solid var(--hair);
  padding: 2px 8px 2px 6px;
}
.status-pill--archived::before { background: var(--ink-mute); }

.archived-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 4px;
  border-top: 1px solid var(--hair-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  background: transparent;
  border-left: 0; border-right: 0; border-bottom: 0;
  width: 100%;
  font-family: inherit;
}
.archived-toggle__count { color: var(--ink-mute); margin-left: 4px; }
.archived-group { display: flex; flex-direction: column; gap: 10px; opacity: 0.75; }

/* Archived card + its restore action. The card keeps its full-width tap
   target; the restore button sits to its right on a shared row. */
.archived-row { display: flex; align-items: stretch; gap: 8px; }
.archived-row > .list-card { flex: 1; min-width: 0; }
.archived-row__restore { display: flex; align-items: center; }

/* Hide the open <details> default marker — we render our own chevron. */
.archived-details { width: 100%; }
.archived-details > summary { list-style: none; cursor: pointer; }
.archived-details > summary::-webkit-details-marker { display: none; }
.archived-details > summary > .archived-toggle__chev {
  transition: transform 120ms ease;
}
.archived-details[open] > summary > .archived-toggle__chev { transform: rotate(180deg); }

/* ── Empty state ──────────────────────────────────────────────────────── */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px 20px;
}
.empty-state__hero {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  max-width: 280px;
}
.empty-state__sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}
.empty-state__cta { margin-top: 6px; }
.empty-state__gesture {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--tint);
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* ── Public error pages (404 / 410) ───────────────────────────────────── */
.error-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 60px) var(--pad-x) calc(var(--safe-bot) + 16px);
  gap: 24px;
}
.error-glyph {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 120px;
  line-height: 1;
  letter-spacing: -4px;
  color: var(--ink);
  margin: 0;
}
.error-glyph__strike {
  position: absolute;
  left: -8px; right: -8px; top: 50%;
  height: 1px;
  background: var(--accent);
  transform: rotate(-4deg);
}
.error-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}
.error-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 400;
  margin: 0;
}
.error-sub {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ── Public list cover ────────────────────────────────────────────────── */
/* Grafit ships a dark cover (DESIGN_NOTES) so the white text stays legible
   with or without an uploaded photo. No cover image → the --deep→--accent
   gradient; with one → the photo under a darkening scrim (.cover--photo). */
.cover {
  position: relative;
  height: 196px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, var(--accent), var(--deep));
}
/* Photo cover: the rendition fills the band under a darkening scrim so the
   white cover text stays legible; content sits above both via z-index. */
.cover__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
}
.cover__row,
.cover__lead,
.cover__name,
.cover__countdown { position: relative; z-index: 1; }
.cover > div { position: relative; z-index: 1; }
.cover__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cover__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}
.cover__date { font-family: var(--font-mono); font-size: 11px; opacity: 0.85; }
.cover__lead { font-size: 13px; opacity: 0.85; margin-bottom: 4px; }
.cover__name {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -1px;
  font-style: italic;
}
.cover__countdown {
  position: absolute;
  right: 20px;
  bottom: 20px;
  text-align: right;
  color: #fff;
}
.cover__countdown-num {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -2px;
  font-style: italic;
}
.cover__countdown-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

/* ── Public item detail ───────────────────────────────────────────────── */
.item-hero {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 360px;
  border-radius: 20px;
  background: var(--tint);
  position: relative;
  overflow: hidden;
}
.item-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-hero--dark {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0;
}
.item-price-row { display: flex; align-items: baseline; gap: 8px; }
.item-price { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; color: var(--ink); }
.item-retailer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
}
.item-note {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.item-note__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.item-meta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.item-meta-grid dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 1px;
}
.item-meta-grid dd { margin: 0; color: var(--ink); font-weight: 500; }
.item-action-stack { display: flex; flex-direction: column; gap: 10px; }

/* ── Greeting quote ───────────────────────────────────────────────────── */
.quote { padding: 12px 16px; border-left: 2px solid var(--accent); }
.quote__text {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

/* ── Bottom sticky action bar ─────────────────────────────────────────── */
.action-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px var(--pad-x) calc(var(--safe-bot) + 8px);
  background: linear-gradient(180deg, rgba(245, 244, 239, 0) 0%, var(--bg) 30%);
}

/* ── List editor — header, tabs, saved indicator ──────────────────────── */
.editor-head {
  padding: 0 var(--pad-x) 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--hair-soft);
}
.editor-head__date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.editor-head__title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-head__title--placeholder { color: var(--ink-mute); font-style: italic; font-weight: 500; }

.seg-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 12px var(--pad-x) 0;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
}
.seg-tab {
  flex: 1;
  height: 36px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  border-radius: 9px;
  text-align: center;
  line-height: 36px;
  text-decoration: none;
}
.seg-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.saved-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: -0.1px;
}
.saved-indicator__dot {
  width: 6px; height: 6px; border-radius: 4px;
  background: oklch(0.65 0.12 150);
}

/* ── Form fields (settings, future item-edit) ─────────────────────────── */
.form-field { display: block; }
.form-field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.1px;
  margin: 0 0 6px;
}
.form-field + .form-field { margin-top: 14px; }

.greeting-textarea {
  min-height: 80px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  line-height: 1.4;
  resize: none;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.greeting-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.char-counter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  text-align: right;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.cover-drop {
  height: 120px;
  border-radius: 14px;
  border: 1.5px dashed var(--hair);
  background: rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-soft);
  cursor: pointer;
}
.cover-drop:active { background: var(--tint); }
.cover-drop__t { font-size: 13px; font-weight: 500; }
.cover-drop__s { font-size: 11.5px; color: var(--ink-mute); }

/* Uploading state (JS-enhanced): swap the + icon for a spinner and dim the
   dropzone so the wait while the image re-encodes reads as progress. */
.cover-drop__spinner { display: none; }
.cover-drop.is-uploading {
  border-style: solid;
  border-color: var(--accent);
  background: var(--tint);
  pointer-events: none;
}
.cover-drop.is-uploading .cover-drop__icon,
.cover-drop.is-uploading .cover-drop__s { display: none; }
.cover-drop.is-uploading .cover-drop__spinner {
  display: block;
  width: 18px; height: 18px;
  border: 2px solid var(--hair);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cover-spin 0.7s linear infinite;
}
@keyframes cover-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cover-drop.is-uploading .cover-drop__spinner { animation: none; }
}

/* Uploaded cover preview shown above the (re)place dropzone. */
.cover-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 8px;
}

/* The native file input is visually hidden; the .cover-drop label is the
   tap target. The upload button submits the chosen file. */
.cover-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cover-upload-btn { margin-top: 8px; align-self: flex-start; }

.slug-row {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 10px 6px 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slug-row__v {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slug-row__warn {
  font-size: 11.5px;
  color: oklch(0.55 0.10 60);
  margin: 0;
  line-height: 1.4;
}

/* Inline two-step confirm via native <details>. The summary is the trigger
   (styled as a button or a slug-row); the body holds the warning + confirm
   action and reveals on open. No JS. */
.confirm-disclosure > summary { list-style: none; cursor: pointer; }
.confirm-disclosure > summary::-webkit-details-marker { display: none; }
.confirm-disclosure__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.confirm-disclosure__body--end { align-items: flex-end; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.settings-row:last-of-type { border-bottom: 0; }
.settings-row__l { flex: 1; min-width: 0; }
.settings-row__title { font-size: 14px; font-weight: 500; color: var(--ink); }
.settings-row__sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; line-height: 1.4; }
.settings-row__title--destructive { color: oklch(0.50 0.12 25); }

/* Native checkbox → iOS-style toggle. Hidden input owns state; sibling
   `.toggle` is the painted control. No JS required. */
.toggle-control { position: relative; display: inline-block; }
.toggle-control__input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.toggle {
  position: relative;
  display: inline-block;
  width: 42px; height: 26px;
  border-radius: 999px;
  background: var(--hair);
  transition: background 150ms ease;
  cursor: pointer;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease;
}
.toggle-control__input:checked + .toggle { background: var(--ink); }
.toggle-control__input:checked + .toggle::after { transform: translateX(16px); }
.toggle-control__input:focus-visible + .toggle { box-shadow: 0 0 0 3px var(--tint); }

/* ── Items tab — gift rows ────────────────────────────────────────────── */
.gift-list { display: flex; flex-direction: column; gap: 10px; }
.gift {
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: 18px;
  padding: var(--card-pad);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.gift--edit { padding-left: 12px; }
/* Grab handle: hidden until the reorder script enables sorting. */
.gift__handle {
  display: none;
  width: 18px;
  flex-shrink: 0;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  cursor: grab;
  touch-action: none; /* let Sortable own the long-press, not the scroller */
}
.gift-list.is-sortable .gift__handle { display: flex; }
/* The body+image is the tap target → the edit screen. */
.gift__link {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.gift__link:active { transform: scale(0.995); }
/* Drag states from Sortable. */
.gift--ghost { opacity: 0.4; }
.gift--chosen { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.gift__img {
  width: 84px; height: 84px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* Real uploaded thumbnail (slice 4) fills the box. */
.gift__img--photo { padding: 0; object-fit: cover; }
/* Placeholder until an image is uploaded: tinted block, centred glyph. */
.gift__img--placeholder {
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--deep);
}
.gift__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gift__name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gift__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-soft);
}
.gift__price { font-weight: 600; color: var(--ink); }
.gift__dot { opacity: 0.4; }
.gift__store { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift__tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.gift__qty {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-mute); letter-spacing: 0.3px;
}
/* Size chip in the gift tag row — neutral pill (clothes/shoe size). */
.gift__size {
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.05); padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}

/* Priority badge — a row of 1–3 dots + label (DESIGN_NOTES: dots, not stars). */
.prio {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 11.5px; font-weight: 600; letter-spacing: -0.1px;
  white-space: nowrap;
}
.prio__dots { display: inline-flex; gap: 2px; }
.prio__dot { width: 3px; height: 3px; border-radius: 4px; background: rgba(0, 0, 0, 0.12); }
.prio__dot.is-on { background: currentColor; }
.prio--low { color: var(--ink-mute); }
.prio--medium { color: var(--ink-soft); }
.prio--high { color: var(--accent); }

/* ── Item add/edit form ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Generic note textarea (shares the settings greeting look). */
.textarea {
  min-height: 80px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--hair-soft);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 16px; /* iOS won't zoom on focus at >=16px */
  color: var(--ink);
  width: 100%;
  line-height: 1.4;
  resize: none;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.textarea::placeholder { color: var(--ink-mute); }
.textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }

/* Split price input: amount field + currency <select>. */
.price-input {
  display: flex;
  align-items: center;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.price-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.price-input__num {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  padding: 0 14px;
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
}
.price-input__num::placeholder { color: var(--ink-mute); }
.price-input__cur {
  height: 100%; padding: 0 30px 0 12px;
  border: 0; border-left: 1px solid var(--hair-soft);
  background: rgba(0, 0, 0, 0.02);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.5px;
  cursor: pointer; appearance: none;
  /* Chevron so the native <select> reads as a picker. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Priority radio chips — single-select, no JS (selected via :has(:checked)). */
.prio-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.prio-chip {
  height: 38px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: -0.2px;
  display: inline-flex; align-items: center; gap: 6px;
}
.prio-chip__input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.prio-chip .prio__dot.is-on { background: var(--ink-soft); }
.prio-chip:has(.prio-chip__input:checked) {
  border-color: var(--accent); background: var(--tint); color: var(--deep);
}
.prio-chip:has(.prio-chip__input:checked) .prio__dot.is-on { background: var(--accent); }
.prio-chip:has(.prio-chip__input:focus-visible) { box-shadow: 0 0 0 3px var(--tint); }

/* Delete confirm at the bottom of the item edit form. */
.destructive-zone { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--hair-soft); }

/* ─── PUBLIC: RESERVATION STATUS ──────────────────────────────────────── */
/* Availability pill on the list grid + item page. Modifiers map 1:1 to
   ItemStatus (available / reserved / purchased). */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: -0.1px;
  border: 1px solid transparent;
}
.status--available { color: var(--ink); border-color: var(--hair); background: transparent; }
.status--reserved { color: var(--accent); background: rgba(0, 0, 0, 0.04); }
.status--reserved::before {
  content: ""; width: 6px; height: 6px; border-radius: 4px; background: var(--accent);
}
.status--purchased { color: var(--ink-mute); background: rgba(0, 0, 0, 0.04); text-decoration: line-through; }

/* Purchased gift rows read as settled (muted, struck name). */
.gift--purchased .gift__name { color: var(--ink-mute); text-decoration: line-through; }
.gift--purchased { opacity: 0.85; }

/* Cover venue line — pin + venue name, links out to a map. */
.cover__venue {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.92);
}
.cover__venue svg { opacity: 0.85; flex-shrink: 0; }

/* Public list status filter chips (JS-free links). */
.filter-row { display: flex; gap: 8px; }
.filter-chip {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 999px; border: 1px solid var(--hair); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.filter-chip.is-active { border-color: var(--accent); background: var(--tint); color: var(--deep); }
/* Price-range chips can overflow on narrow phones — scroll them horizontally
   instead of wrapping, so the status row above stays a clean single line. */
.filter-row--scroll {
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.filter-row--scroll::-webkit-scrollbar { display: none; }
.filter-row--scroll .filter-chip { flex: 0 0 auto; }

/* Language switcher — native <details> dropdown in the public top bar. */
.lang-switcher { position: relative; }
.lang-switcher > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 8px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.lang-switcher > summary::-webkit-details-marker { display: none; }
.lang-switcher > summary:active { background: rgba(0, 0, 0, 0.04); }
.lang-switcher[open] > summary { background: rgba(0, 0, 0, 0.04); }
.lang-switcher__menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
  min-width: 140px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 12px; padding: 4px; box-shadow: var(--shadow-pop, 0 8px 24px rgba(0, 0, 0, 0.12));
}
.lang-switcher__item {
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.lang-switcher__item:active { background: rgba(0, 0, 0, 0.04); }
.lang-switcher__item.is-active { color: var(--deep); background: var(--tint); font-weight: 600; }

/* "Where to buy" — store list on the item page, cheapest first. */
.where-to-buy { display: flex; flex-direction: column; gap: 8px; }
.where-to-buy__label {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: 0.1px; text-transform: uppercase;
}
.store-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--hair-soft); border-radius: 12px;
}
.store-row__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.store-row__name { font-size: 14px; font-weight: 600; }
.store-row__price { font-size: 12.5px; color: var(--ink-soft); }
.store-row__cta {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--deep);
}

/* Top-pick marker — the accent star pill that replaced priority dots. */
.top-pick {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: -0.1px;
  color: var(--deep); background: var(--tint);
}
.top-pick svg { color: var(--accent); }

/* "You reserved this" hint next to the badges. */
.gift__mine {
  font-size: 11px; font-weight: 600; color: var(--deep);
  background: var(--tint); padding: 3px 8px; border-radius: 999px;
}

/* ─── PUBLIC: RESERVE FORM ────────────────────────────────────────────── */
.gift-preview {
  background: var(--surface); border-radius: 16px; border: 1px solid var(--hair-soft);
  padding: 14px; display: flex; gap: 12px; align-items: center;
}
.notice {
  background: var(--tint); border-radius: 14px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start; color: var(--deep);
}
.notice__title { font-size: 13px; font-weight: 600; letter-spacing: -0.1px; }
.notice__sub { font-size: 12.5px; opacity: 0.85; margin-top: 3px; line-height: 1.4; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-field__req { color: var(--accent); margin-left: 4px; }

.checkbox-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--hair-soft); border-radius: 12px;
  cursor: pointer;
}
.checkbox-row__title { font-size: 13.5px; font-weight: 500; display: block; }
.checkbox-row__sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; display: block; }

.privacy {
  padding: 12px 14px; background: rgba(0, 0, 0, 0.03);
  border-radius: 12px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-soft); line-height: 1.35;
}

/* ─── PUBLIC: CONFIRMATION ────────────────────────────────────────────── */
.confetti-hero {
  height: 196px; border-radius: 20px; background: var(--tint);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.confetti-hero__check {
  width: 80px; height: 80px; border-radius: 999px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.thanks-title {
  font-family: var(--font-serif); font-style: italic;
  font-size: 32px; line-height: 1.05; margin: 0;
  letter-spacing: -0.8px; font-weight: 400;
}
.thanks-body { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.thanks-body b { color: var(--ink); }
.summary-card {
  background: var(--surface); border-radius: 16px;
  border: 1px solid var(--hair-soft); padding: 14px;
  display: flex; flex-direction: column; gap: 14px;
}
.summary-card__row { display: flex; gap: 12px; align-items: center; }
.summary-card__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.summary-card__meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.summary-card__code {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute);
  padding: 8px 10px; background: rgba(0, 0, 0, 0.03); border-radius: 8px;
  letter-spacing: 0.2px;
}

/* ─── Public homepage (giftlista.rs root) ─────────────────────────────── */
/* Rebuilt from the Gift Lista handoff. The screen rides the shared #app
   shell (centered + shadowed on desktop, full-width below 480px), so no
   home-specific breakpoints are needed — the product stays mobile-first. */
.home-screen {
  padding: calc(var(--safe-top) + 28px) var(--pad-x) calc(var(--safe-bot) + 12px);
  flex: 1; display: flex; flex-direction: column; gap: 26px;
}

.home-hero { display: flex; flex-direction: column; gap: 16px; }

.home-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: var(--tint); color: var(--deep);
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: -0.1px;
}
.home-chip__dot {
  width: 5px; height: 5px; border-radius: 5px; background: var(--accent);
}

.home-hero__title {
  font-family: var(--font-serif); font-style: italic;
  font-size: 36px; line-height: 1.1; letter-spacing: -0.9px;
  font-weight: 400; margin: 0; color: var(--ink);
  padding-bottom: 18px;       /* room for italic descender + curve gesture */
}
.home-hero__under {
  position: relative; display: inline-block; white-space: nowrap;
}
.home-hero__under > svg {
  position: absolute; left: 0; right: -4px; bottom: -14px; display: block;
  width: 100%; height: auto;
}

.home-hero__sub {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  color: var(--ink-soft); margin: 0; max-width: 320px;
  text-wrap: pretty;
}

.home-cta-stack { display: flex; flex-direction: column; gap: 10px; }

.home-preview { display: flex; flex-direction: column; gap: 8px; }
.home-preview__label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-mute);
}

.home-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.home-benefit {
  background: var(--surface); border: 1px solid var(--hair-soft);
  border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 96px;
}
.home-benefit__icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--tint); color: var(--deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.home-benefit__label {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--ink); line-height: 1.3; white-space: pre-line; letter-spacing: -0.1px;
}

.home-foot {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 11.5px; color: var(--ink-mute);
  padding-top: 4px;
}
.home-foot__brand { display: inline-flex; }
.home-foot__sep { opacity: 0.5; }
