/* ============================================================
   Save a Seat — festive design system
   Bright, warm, celebratory. Confetti energy without the clutter.
   ============================================================ */

/* Fraunces is loaded as a variable font with its SOFT + WONK axes so display type can
   carry character (see --display-soft). Weights 400/600/900 used across pages still resolve. */

:root {
  /* palette */
  --pink:   #FF4D8D;
  --coral:  #FF7A5A;
  --sunny:  #FFC24B;
  --mint:   #22D3A5;
  --sky:    #38BDF8;
  --grape:  #8B5CF6;
  --ink:    #2A1E42;
  --ink-soft:#5B4E73;
  --cream:  #FFF7EE;
  --cream-2:#FFF0E0;
  --white:  #ffffff;
  --line:   rgba(42, 30, 66, 0.10);

  /* type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* geometry */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow: 0 18px 50px -20px rgba(42, 30, 66, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(42, 30, 66, 0.28);

  --grad-party: linear-gradient(120deg, #FF4D8D 0%, #FF7A5A 42%, #FFC24B 100%);
  --grad-cool:  linear-gradient(120deg, #8B5CF6 0%, #38BDF8 100%);
  --maxw: 1140px;

  /* ---- "Open the Envelope" materials (added 2026-09-30; additive, nothing renamed) ---- */
  --paper:      #F7F1E6;   /* invitation stock */
  --paper-2:    #EFE5D3;   /* envelope / second sheet */
  --paper-3:    #E4D3B6;   /* kraft, deepest paper tone */
  --paper-edge: rgba(42, 30, 66, 0.12);
  --ink-deep:   #1A1230;
  --wax:        #C8245F;   /* wax seal body */
  --wax-deep:   #8A0F3E;   /* wax seal shadow */
  --marigold:   #FFC24B;
  --gold:       #D4AF37;   /* foil — premium moments only */
  --gold-soft:  #F7E7A6;
  --grad-wax:   radial-gradient(circle at 35% 30%, #FF6FA3 0%, #E0306F 38%, #A8154C 78%, #7A0B35 100%);
  --grad-foil:  linear-gradient(110deg, #B08D2E 0%, #F7E7A6 38%, #D4AF37 55%, #FFF4C8 70%, #B08D2E 100%);

  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;   /* polaroid captions + notes ONLY */

  /* paper grain: SVG fractal noise as a data URI (never an image file) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .12 0 0 0 0 .26 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --shadow-paper: 0 1px 1px rgba(42,30,66,.06), 0 6px 14px -6px rgba(42,30,66,.18), 0 26px 50px -26px rgba(42,30,66,.35);
  --shadow-lift:  0 2px 2px rgba(42,30,66,.06), 0 14px 24px -10px rgba(42,30,66,.24), 0 40px 70px -30px rgba(42,30,66,.42);

  /* motion */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --dur-press: 140ms;
  --dur-ui:    240ms;

  /* ---- phase 2: app + invite materials (added 2026-10-01; additive) ---- */
  --card-stock: #FFFDF8;          /* the card itself, a shade lighter than the table */
  --wax-text:   #B81E55;          /* wax pink, darkened for AA small text on paper */
  --navy:       #1F2A44;          /* formal ink */
  --gold-ink:   #8A6A2F;          /* formal accent text (AA on ivory) */
  --gold-line:  #B8914A;          /* formal hairlines, decorative only */
  --slate:      #2F3A46;          /* somber ink */
  --slate-soft: #56626E;
  /* lighter grain for use as a background layer on cards (alpha .16) */
  --grain-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* deckled (hand-torn) edge, used as a mask on a strip; tiles seamlessly every 160px */
  --deckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='10' preserveAspectRatio='none'%3E%3Cpath d='M0 10V4.2L5 3.1L9 4.6L15 2.4L21 3.8L26 2.9L33 4.9L38 3.2L44 2.1L50 3.9L56 3.3L61 4.8L67 2.6L74 3.5L79 2.2L85 4.1L91 3L97 4.7L103 2.5L109 3.6L114 2.8L120 4.5L126 3.1L131 2L137 3.7L143 4.4L149 2.7L155 3.9L160 4.2V10Z'/%3E%3C/svg%3E");
  --seal-shape: 50% 46% 52% 48% / 48% 53% 47% 52%;
  --seal-shadow: inset 0 -3px 5px rgba(0,0,0,.22), inset 0 2px 3px rgba(255,255,255,.28), 0 4px 10px -4px rgba(138,15,62,.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; font-weight: 900; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 999px;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, filter .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); transition-duration: var(--dur-press, 140ms); }
.btn:focus-visible, .brand:focus-visible, .nav-links a:focus-visible {
  outline: 3px solid var(--pink); outline-offset: 3px;
}
/* Label is ink, not white: white on the party gradient measures 1.6–3.1:1 (fails AA);
   ink-deep measures 5.7–11:1 across every stop, and the signature gradient stays untouched. */
.btn-primary { color: var(--ink-deep); background: var(--grad-party); box-shadow: 0 10px 24px -8px rgba(255,77,141,.6); }
.btn-primary .spin { border-color: rgba(26,18,48,.28); border-top-color: var(--ink-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(255,77,141,.7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1.5px solid var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 247, 238, .82);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; text-decoration: none; color: var(--ink-deep); }
/* Brand mark = the ONE master seal (static/img/brand/seal.svg, drawn by scripts/make_brand_assets.py):
   organic wax edge, pressed ring, Fraunces italic "S". Its view box includes the drop shadow,
   so the image is a touch larger than the wax itself. */
.seal-mark { display: block; flex: none; width: 40px; height: 40px; transform-origin: 50% 55%; transition: transform var(--dur-ui) var(--ease-out); }
.footer .seal-mark, .pw-foot .seal-mark { width: 28px; height: 28px; }
.lp-footer .brand .seal-mark { width: 40px; height: 40px; }
/* memorial pages: the seal goes quiet, like a blind emboss — no wax pink */
[data-tone="somber"] .pw-foot .seal-mark { filter: grayscale(1) contrast(.8) opacity(.55); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .brand:hover .seal-mark { transform: rotate(-12deg) scale(1.06); }
  [data-tone="somber"] .brand:hover .seal-mark, [data-tone="somber"] .pw-foot a:hover .seal-mark { transform: none; }
}
/* legacy text seal, still used by surfaces not yet on the image mark */
.brand .dot {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  background: var(--grad-wax); color: #FFE3EC; font-family: var(--display); font-style: italic;
  font-weight: 800; font-size: 1.05rem; line-height: 1; text-shadow: 0 1px 0 rgba(90, 0, 30, .5);
  border-radius: var(--seal-shape); box-shadow: var(--seal-shadow);
  transition: transform var(--dur-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .brand:hover .dot { transform: rotate(-14deg) scale(1.06); }
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
@media (max-width: 760px), (pointer: coarse) { .nav .brand, .nav .btn-sm { min-height: 44px; } }   /* tap targets */
.nav-links a { text-decoration: none; font-weight: 600; }
/* :not(.btn) — otherwise this outranks .btn-dark and paints "Log in" ink-soft on ink (2.1:1) */
.nav-links a:not(.btn) { color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--pink); background: rgba(255,77,141,.1); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.8rem, 1.2rem + 6vw, 5.2rem); }
.hero h1 .grad { background: var(--grad-party); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.2rem; color: var(--ink-soft); font-size: .92rem; }

/* floating invite card in hero */
.invite-card {
  position: relative; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow); padding: 10px; transform: rotate(-2deg);
}
.invite-card .photo { border-radius: 30px; height: 300px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.invite-card .body { padding: 22px 24px 26px; text-align: center; }
.invite-card .body .k { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .7rem; color: var(--pink); }
.invite-card .body h3 { font-size: 2rem; margin: .3rem 0; }
.invite-card .body .meta { color: var(--ink-soft); font-weight: 600; }
.sticker { position: absolute; font-size: 2.4rem; filter: drop-shadow(0 8px 10px rgba(42,30,66,.2)); }

/* ---------- confetti ---------- */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
/* One fall per piece, then it rests off-screen: lively on arrival, still within ~9s (WCAG 2.2.2). */
.confetti i { position: absolute; top: -10%; width: 10px; height: 14px; border-radius: 2px; opacity: .9; animation: fall linear 1 forwards; }
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0); }
  100% { transform: translateY(115vh) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; display: none; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; position: relative; }
.section.tint { background: var(--cream-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin-top: .8rem; }

/* occasion pills */
.occasions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.occasion { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1.5px solid var(--line); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-sm); transition: transform .18s; }
.occasion:hover { transform: translateY(-3px) rotate(-1deg); }
.occasion .emoji { font-size: 1.3rem; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 16px; }
.card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--line); position: relative; }
.step .num { font-family: var(--display); font-weight: 900; font-size: 2.6rem; background: var(--grad-party); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h3 { font-size: 1.3rem; margin: .4rem 0; }
.step p { color: var(--ink-soft); margin: 0; }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; background: #fff; border-radius: var(--r-xl); padding: 40px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden; }
.price-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--grad-party); }
.price-card .amount { font-family: var(--display); font-weight: 900; font-size: 4rem; line-height: 1; margin: .4rem 0; }
.price-card .amount small { font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); font-family: var(--body); }
.price-card ul { list-style: none; padding: 0; margin: 1.6rem 0; text-align: left; display: grid; gap: .7rem; }
.price-card li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); font-weight: 500; }
.price-card li .tick { color: var(--mint); font-weight: 900; }

/* pricing tiers */
/* Flex-wrap (not grid) so a partial last row centers instead of hugging the left. */
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; align-items: stretch; }
.plan { flex: 1 1 190px; max-width: 250px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan.best { border-color: var(--pink); box-shadow: 0 18px 44px -18px rgba(255,77,141,.5); }
.plan .tier { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; color: var(--pink); }
.plan .amt { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; margin: .5rem 0 .1rem; }
.plan .amt small { font-size: .9rem; font-weight: 700; color: var(--ink-soft); font-family: var(--body); }
.plan .sub { color: var(--ink-soft); font-size: .88rem; min-height: 2.4em; margin: 0 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; flex: 1; align-content: start; }
/* Block + absolutely-placed tick keeps mixed inline text (<b>, <em>) flowing on one line. */
.plan li { position: relative; padding-left: 1.3em; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.plan li .tick { position: absolute; left: 0; top: 0; color: var(--mint); font-weight: 900; }
.plan .ribbon { position: absolute; top: -12px; right: 16px; background: var(--grad-party); color: #fff; font-weight: 800; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.plan.pro { background: linear-gradient(160deg, #1A1230, #2A1E42); border-color: #1A1230; color: #fff; }
.plan.pro .tier { color: #F7E7A6; }
.plan.pro .amt, .plan.pro .amt small { color: #fff; }
.plan.pro .sub, .plan.pro li { color: rgba(255,255,255,.78); }
.plan.pro li .tick { color: #D4AF37; }
.plan.pro .btn-ghost { background: #fff; color: #1A1230; border-color: #fff; }
@media (max-width: 520px) { .plan { flex-basis: 100%; max-width: none; } }

/* footer */
.footer { background: var(--ink); color: #fff; padding: 56px 0 40px; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .muted { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: 1rem; }

/* ---------- forms / auth ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 40px; border: 1px solid var(--line); }
.auth-card h1 { font-size: 2rem; margin-bottom: .4rem; }
.auth-card .sub { color: var(--ink-soft); margin-bottom: 1.6rem; }
.tabs { display: flex; background: var(--cream-2); border-radius: 999px; padding: 4px; margin-bottom: 1.6rem; }
.tabs button { flex: 1; border: none; background: none; padding: .6rem; border-radius: 999px; font-weight: 700; font-family: var(--body); cursor: pointer; color: var(--ink-soft); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,77,141,.14); background: #fff; }
.field .hint { color: var(--ink-soft); font-size: .82rem; margin-top: .3rem; }

.alert { padding: .8rem 1rem; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.alert-error { background: #FFE4E9; color: #B4123F; }
.alert-ok { background: #DCFCEF; color: #067A55; }

/* ---------- dashboard ---------- */
.dash { padding: 40px 0 80px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.dash-head h1 { font-size: 2.4rem; }
.dash-head p { color: var(--ink-soft); margin: .2rem 0 0; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.event-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.event-card .top { height: 130px; background-size: cover; background-position: center; position: relative; }
.event-card .badge { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); }
.event-card .badge.pub { color: #067A55; } .event-card .badge.draft { color: #B4700F; }
.event-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.event-card .kind { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); }
.event-card h3 { font-size: 1.35rem; margin: .3rem 0; }
.event-card .meta { color: var(--ink-soft); font-size: .9rem; }
.event-card .stats { display: flex; gap: 16px; margin: 14px 0; }
.event-card .stats .s { font-size: .85rem; color: var(--ink-soft); }
.event-card .stats .s b { display: block; font-size: 1.3rem; color: var(--ink); font-family: var(--display); }
.event-card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; border-radius: 999px; }

.empty { text-align: center; padding: 80px 20px; background: #fff; border: 2px dashed var(--line); border-radius: var(--r-lg); }
.empty .big { font-size: 3.4rem; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(42,30,66,.5); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-back.on { display: flex; }
.modal { background: var(--cream); border-radius: var(--r-xl); width: 100%; max-width: 640px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.6rem; }
.modal-x { border: none; background: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-soft); line-height: 1; }
.modal-body { padding: 24px 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.theme-row { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-chip { cursor: pointer; border: 2px solid transparent; border-radius: var(--r-sm); padding: 3px; }
.theme-chip.on { border-color: var(--ink); }
.theme-chip .sw { width: 58px; height: 44px; border-radius: 9px; }

/* share box */
.share-box { display: flex; gap: 8px; margin-top: 8px; }
.share-box input { flex: 1; font-family: var(--body); padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--cream); }

/* rsvp list */
.rsvp-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rsvp-row .who b { font-weight: 700; }
.rsvp-row .who span { color: var(--ink-soft); font-size: .86rem; }
.tag { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; }
.tag.yes { background: #DCFCEF; color: #067A55; } .tag.no { background: #FFE4E9; color: #B4123F; } .tag.maybe { background: #FFF1D6; color: #B4700F; }

/* ============================================================
   Public celebration page (the shareable guest link)
   ============================================================ */
.celebrate { min-height: 100vh; position: relative; overflow-x: hidden; }
.celebrate .hero-band { position: relative; padding: 90px 20px 70px; text-align: center; color: #fff; overflow: hidden; }
.celebrate .hero-band .cover { position: absolute; inset: 0; background-size: cover; background-position: center; }
.celebrate .hero-band .veil { position: absolute; inset: 0; }
.celebrate .hero-band .inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.celebrate .kicker { font-weight: 800; letter-spacing: .28em; text-transform: uppercase; font-size: .82rem; opacity: .95; }
.celebrate .big-title { font-size: clamp(2.6rem, 1.5rem + 6vw, 5.6rem); margin: .6rem 0; text-shadow: 0 10px 40px rgba(0,0,0,.25); }
.celebrate .hosts { font-size: 1.2rem; font-weight: 600; opacity: .96; }
.celebrate .datechip { display: inline-flex; gap: 1.2rem; margin-top: 1.8rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 1rem 1.6rem; border-radius: var(--r-lg); backdrop-filter: blur(6px); }
.celebrate .datechip .d { text-align: center; }
.celebrate .datechip .d small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; opacity: .85; }
.celebrate .datechip .d b { font-family: var(--display); font-size: 1.5rem; }

.celebrate .content { max-width: 720px; margin: -40px auto 0; position: relative; z-index: 3; padding: 0 20px 80px; }
.panel { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 40px; margin-bottom: 24px; border: 1px solid var(--line); }
.panel h2 { font-size: 1.8rem; margin-bottom: .8rem; }
.panel .message { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.75; white-space: pre-wrap; }
.detail-list { display: grid; gap: 16px; }
.detail-list .d { display: flex; gap: 14px; align-items: flex-start; }
.detail-list .d .di { font-size: 1.5rem; }
.detail-list .d b { display: block; }
.detail-list .d span { color: var(--ink-soft); }

.rsvp-panel { text-align: center; }
.rsvp-choice { display: flex; gap: 10px; justify-content: center; margin: 1rem 0 1.4rem; flex-wrap: wrap; }
.rsvp-choice button { border: 2px solid var(--line); background: #fff; padding: .8rem 1.4rem; border-radius: 999px; font-family: var(--body); font-weight: 700; cursor: pointer; font-size: 1rem; transition: all .15s; }
.rsvp-choice button.on[data-v="yes"] { background: var(--mint); color: #05493a; border-color: var(--mint); }
.rsvp-choice button.on[data-v="maybe"] { background: var(--sunny); color: #6b4a00; border-color: var(--sunny); }
.rsvp-choice button.on[data-v="no"] { background: var(--pink); color: #fff; border-color: var(--pink); }

.count-strip { display: flex; justify-content: center; gap: 40px; margin-top: 10px; }
.count-strip .c b { font-family: var(--display); font-size: 2rem; display: block; }
.count-strip .c span { color: var(--ink-soft); font-size: .85rem; }

.pw-foot { text-align: center; padding: 30px; color: var(--ink-soft); font-size: .9rem; }
.pw-foot a { color: var(--pink); font-weight: 700; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .invite-card { max-width: 420px; margin: 0 auto; }
  .cards, .steps { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .panel { padding: 26px; }
  .celebrate .datechip { gap: .8rem; padding: .8rem 1rem; }
}

/* ---- public page: calendar/directions CTAs ---- */
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---- countdown ---- */
.countdown { display: inline-flex; align-items: baseline; gap: .5rem; margin-top: 1rem; font-weight: 700; }
.countdown b { font-family: var(--display); font-size: 1.6rem; }

/* ---- save the date band ---- */
.std-tag { display:inline-block; background: rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.35); padding:.3rem .9rem; border-radius:999px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; font-size:.72rem; margin-bottom:.8rem; }

/* ---- schedule timeline ---- */
.schedule-tl { display: grid; gap: 0; }
.schedule-tl .item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-left: 2px solid var(--line); margin-left: 8px; padding-left: 20px; position: relative; }
.schedule-tl .item::before { content: ''; position: absolute; left: -8px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-party); box-shadow: 0 0 0 4px var(--cream); }
.schedule-tl .item .t { font-family: var(--display); font-weight: 900; color: var(--pink); }
.schedule-tl .item h4 { margin: 0; font-size: 1.15rem; }
.schedule-tl .item p { margin: .2rem 0 0; color: var(--ink-soft); }

/* ---- registry ---- */
.registry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.registry-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r-md); font-weight: 700; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.registry-btn:hover { transform: translateY(-2px); border-color: var(--pink); }

/* ---- sign-up sheet (school track) ---- */
.signup-list { display: grid; gap: 12px; }
.slot { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--cream); }
.slot.full { opacity: .72; }
.slot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.slot-head h4 { margin: 0; font-size: 1.1rem; }
.slot-head p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.slot-cap { flex: none; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .7rem; border-radius: 999px; background: #DCFCEF; color: #067A55; white-space: nowrap; }
.slot-cap.full { background: #FFE4E9; color: #B4123F; }
.slot-claims { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.slot-claims .who-chip { font-size: .78rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--ink-soft); }
.slot-form { margin-top: 12px; display: none; gap: 8px; }
.slot-form.open { display: grid; }
.slot-actions { margin-top: 12px; }

/* ---- editor: repeater rows ---- */
.repeater { display: grid; gap: 10px; }
.rep-row { display: grid; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); position: relative; }
.rep-row .rep-x { position: absolute; top: 8px; right: 10px; border: none; background: none; cursor: pointer; color: var(--ink-soft); font-size: 1.1rem; }
.rep-add { align-self: start; background: var(--cream-2); border: 1.5px dashed var(--line); color: var(--ink); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; cursor: pointer; font-family: var(--body); }
.rep-add:hover { border-color: var(--pink); }

/* ---- premium chips + locks ---- */
.theme-chip.locked { position: relative; }
.theme-chip.locked::after { content: '🔒'; position: absolute; top: 6px; right: 8px; font-size: .8rem; }
.premium-card { background: linear-gradient(120deg, #1A1230, #4B2E83); color: #fff; border-radius: var(--r-lg); padding: 22px; margin-top: 8px; }
.premium-card h4 { color: #fff; font-size: 1.2rem; margin: 0 0 .4rem; }
.premium-card ul { margin: .6rem 0; padding-left: 1.1rem; color: rgba(255,255,255,.85); }
.premium-card li { margin: .2rem 0; }
.badge-premium { background: linear-gradient(120deg,#D4AF37,#F7E7A6); color:#4B2E83; }
.section-label { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.section-label .lock { color: var(--grape); }

.hidden { display: none !important; }
/* honeypot — off-screen, hidden from real users & assistive tech, visible to naive bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.spin { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.5); border-top-color:#fff; border-radius:50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ============================================================
   Billing toggle (Monthly | Yearly) — shared by landing + dashboard
   A paper pill with an ink "thumb" that slides under the active choice.
   ============================================================ */
.bill-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: max-content; margin: 0 auto 34px; padding: 5px;
  background: #FFFDF8; border: 1px solid var(--paper-edge); border-radius: 999px;
  box-shadow: var(--shadow-paper);
}
.bill-toggle::before {            /* sliding thumb */
  content: ''; position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px); border-radius: 999px; background: var(--ink);
  transform: translateX(0); transition: transform 320ms var(--ease-out);
}
.bill-toggle[data-period="yearly"]::before { transform: translateX(100%); }
.bill-toggle button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.3rem; border: 0; border-radius: 999px; background: transparent;
  font: 700 .95rem/1 var(--body); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: color 200ms var(--ease-out), transform 120ms var(--ease-out);
}
.bill-toggle button.on { color: #fff; }
.bill-toggle button:active { transform: scale(.97); }
.bill-toggle button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.bill-save {
  padding: .28rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  background: #FFE3EC; color: var(--wax-text);
}
.bill-toggle button.on .bill-save { background: var(--grad-wax); color: #FFF2F6; }
.bill-note b { color: var(--wax-text); font-weight: 800; }
.plan.pro .bill-note b { color: #F7E7A6; }
@media (max-width: 420px) {
  .bill-toggle { max-width: 100%; }
  .bill-toggle button { padding: 0 .75rem; gap: .35rem; font-size: .9rem; }
  .bill-save { padding: .24rem .45rem; }
  .bill-save-long { display: none; }       /* "Save 52%" — keeps the toggle inside a 375px screen */
}
@media (prefers-reduced-motion: reduce) {
  .bill-toggle::before, .bill-toggle button { transition: none; }
}
