@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Tokens ──────────────────────────────────────────────── */
:root {
  --cream: #FAF6F0;
  --ink:   #1A1A1A;
  --sage:  #6B8068;
  --rose:  #C25B5B;
  --gold:  #C9A961;
  --soft:  #E8E0D5;

  --sage-light: #8FA38C;
  --sage-xlight: #EBF0EA;
  --sage-dark:  #4D5C4B;
  --rose-light: #D4807E;
  --rose-dark:  #A04848;
  --gold-light: #DFC483;
  --ink-muted:  #5A5A5A;
  --ink-faint:  #888;

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(26,26,26,0.06);
  --shadow-sm: 0 1px 4px rgba(26,26,26,0.08);
  --shadow:    0 4px 16px rgba(26,26,26,0.10);
  --shadow-lg: 0 8px 32px rgba(26,26,26,0.13);

  --max-width: 1140px;
  --tool-max:  900px;

  --transition: 180ms ease;
  --transition-slow: 300ms ease;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sage); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage-dark); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.serif { font-family: 'Fraunces', Georgia, serif; }
.lead  { font-size: 1.15rem; color: var(--ink-muted); line-height: 1.7; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.small { font-size: 0.875rem; }
.x-small { font-size: 0.8rem; }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.tool-container {
  width: 100%;
  max-width: var(--tool-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }

/* ─── Calc Grid (tool two-column layout) ──────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.calc-inputs { display: flex; flex-direction: column; gap: 0; }
.calc-results { position: sticky; top: 88px; }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--soft);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}
.site-header .header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--sage); }
.site-logo span { color: var(--sage); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav a:hover { color: var(--ink); background: var(--soft); }
.site-nav a.active { color: var(--sage); }
/* Header purchase CTA: don't let the button wrap or shrink */
.site-nav .header-unlock-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Country picker (header) ─────────────────────────────── */
.country-picker { display: inline-flex; align-items: center; }
.country-picker select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 6px 24px 6px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color var(--transition);
}
.country-picker select:hover { border-color: var(--sage); }
.country-picker select:focus { outline: none; border-color: var(--sage); }

/* ─── Hamburger (mobile) ──────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Tools drawer wrapper ────────────────────────────────── */
.pill-nav-wrapper {
  position: relative;
  background: var(--cream);
}
/* Bottom border only when drawer is open, so closed state has nothing */
.pill-nav-wrapper.open { border-bottom: 1px solid var(--soft); }

/* ─── Toggle handle (always visible, hangs under header) ──── */
.pill-nav-handle {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: transparent;
  position: relative;
  z-index: 2;
}
.tools-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--soft);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 6px 20px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  position: relative;
  top: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.tools-toggle:hover { color: var(--sage); border-color: var(--sage); }
.tools-toggle:focus { outline: none; border-color: var(--sage); }
.tools-toggle-chevron {
  font-size: 0.7rem;
  line-height: 1;
  display: inline-block;
  transform: rotate(180deg); /* default: open state, points up */
  transition: transform 0.25s ease;
}
.tools-toggle.is-closed .tools-toggle-chevron {
  transform: rotate(0deg); /* closed state, points down */
}

/* ─── Pill nav (collapsible drawer) ───────────────────────── */
.pill-nav {
  background: var(--cream);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease;
}
.pill-nav.open { max-height: 600px; }
.pill-nav.no-transition { transition: none; }
/* When drawer is open, the handle's bottom edge fuses with the drawer
   (the drawer sits directly below the handle visually). */
.pill-nav-wrapper.open .tools-toggle { box-shadow: none; }
.pill-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 14px 20px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}
.pill-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.pill-group-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted, #8a8278);
  white-space: nowrap;
}
.pill-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.pill-link:hover { border-color: var(--sage); color: var(--sage); }
.pill-link.active { background: var(--sage); border-color: var(--sage); color: #fff; }
/* Default (uncategorised) paid pill (fallback): cream-tinted */
.pill-link[data-paid="true"] {
  background: #f5f0e8;
  color: var(--ink-muted, #6b6b6b);
  border-color: #ebe2d3;
}

/* Per-category palettes
   Pill background + border tint by category. Always applied (member or not)
   so categories are scannable at a glance. Active state is unified sage. */

/* Free — neutral white pills, no special tint */
.pill-group--free .pill-link { background: #fff; color: var(--ink); border-color: var(--soft); }
.pill-group--free .pill-link:hover { border-color: var(--sage); color: var(--sage); }
.pill-group--free .pill-group-label { color: var(--ink-muted, #8a8278); }

/* Budget & Finances — gold family (money) */
.pill-group--budget .pill-link { background: #fbf3e0; border-color: #e2c789; color: #6a5018; }
.pill-group--budget .pill-link:hover { background: #fff; border-color: var(--gold); color: #6a5018; }
.pill-group--budget .pill-group-label { color: #8a6c20; }

/* Timeline & Day-of — sage family (calm, grounding) */
.pill-group--timeline .pill-link { background: #eaf1ea; border-color: #aac0a4; color: #3a5237; }
.pill-group--timeline .pill-link:hover { background: #fff; border-color: var(--sage); color: var(--sage); }
.pill-group--timeline .pill-group-label { color: #4f6b4a; }

/* Guests & Logistics — terracotta (warm, people) */
.pill-group--guests .pill-link { background: #fbe9e0; border-color: #e2a98e; color: #7a3a1f; }
.pill-group--guests .pill-link:hover { background: #fff; border-color: #c47352; color: #7a3a1f; }
.pill-group--guests .pill-group-label { color: #9a4d2a; }

/* Vendors & Comms — muted blue (professional, communication) */
.pill-group--vendors .pill-link { background: #e8eef6; border-color: #94a6c3; color: #2e3f5c; }
.pill-group--vendors .pill-link:hover { background: #fff; border-color: #5a7299; color: #2e3f5c; }
.pill-group--vendors .pill-group-label { color: #3e547a; }

/* Creative & Personal — blush pink (intimate, expressive) */
.pill-group--creative .pill-link { background: #fbeaef; border-color: #d99eac; color: #7a3247; }
.pill-group--creative .pill-link:hover { background: #fff; border-color: #c46885; color: #7a3247; }
.pill-group--creative .pill-group-label { color: #94405b; }

/* Community — rose (warm, inclusive) */
.pill-group--community .pill-link { background: #fbeaea; border-color: #d99e9e; color: #7a3232; }
.pill-group--community .pill-link:hover { background: #fff; border-color: var(--rose); color: var(--rose); }
.pill-group--community .pill-group-label { color: #94404a; }

/* Active state — unified sage across all groups */
.pill-link.active,
.pill-link[data-paid="true"].active {
  background: var(--sage) !important;
  color: #fff !important;
  border-color: var(--sage) !important;
}

/* Collective pill keeps its rose treatment (sits inside Community group) */
.pill-collective {
  background: var(--rose) !important;
  border-color: var(--rose) !important;
  color: #fff !important;
}
.pill-collective:hover {
  background: #a84b4b !important;
  border-color: #a84b4b !important;
  color: #fff !important;
}

/* ─── Collective CTA (contextual, per-tool) ──────────────── */
.collective-cta {
  background: linear-gradient(135deg, #fdf3f3 0%, #fdf9f0 100%);
  border: 1px solid #e8c4c4;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
@media (max-width: 600px) {
  .collective-cta { grid-template-columns: 1fr; gap: 0.75rem; text-align: center; }
}
.collective-cta-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8c4c4;
}
.collective-cta-body { line-height: 1.45; }
.collective-cta-hook {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.collective-cta-payoff {
  font-size: 0.875rem;
  color: var(--ink);
  margin: 0.15rem 0 0.35rem;
  line-height: 1.5;
}
.collective-cta-sub {
  font-size: 0.78rem;
  color: var(--muted, #7a7268);
  margin: 0;
  font-style: italic;
}
.collective-cta-action { flex-shrink: 0; }
.collective-cta-action .btn { white-space: nowrap; }

/* Member variant: subtler styling (engagement nudge, not conversion CTA) */
.collective-cta[data-cta-variant="member"] {
  background: linear-gradient(135deg, #f0f4f1 0%, #fdf9f0 100%);
  border-color: #c9d4c5;
}
.collective-cta[data-cta-variant="member"] .collective-cta-icon {
  border-color: #c9d4c5;
}

/* ─── Refer & Earn page ──────────────────────────────────── */
.refer-dashboard {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
  align-items: start;
}
@media (max-width: 720px) { .refer-dashboard { grid-template-columns: 1fr; gap: 1.5rem; } }

.refer-total {
  background: linear-gradient(135deg, #f0f4f1 0%, #fdf9f0 100%);
  border: 1px solid var(--sage);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
}
.refer-total-num {
  font-family: 'Fraunces', serif;
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}
.refer-total-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.5rem 0 0.75rem;
}
.refer-total-breakdown {
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.5;
}

.refer-bars { display: flex; flex-direction: column; gap: 1.25rem; }
.refer-bar-block { background: var(--cream); border: 1px solid var(--soft); border-radius: 12px; padding: 1rem 1.25rem; }
.refer-bar-block-soon { opacity: 0.85; }
.refer-bar-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; margin-bottom: 0.6rem; }
.refer-bar-name { font-weight: 600; color: var(--ink); }
.refer-bar-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--soft); color: var(--muted);
  padding: 2px 8px; border-radius: 10px; margin-left: 0.4rem;
  vertical-align: middle;
}
.refer-bar-val { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.refer-bar-track { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.refer-bar-fill { height: 100%; border-radius: 5px; transition: width 0.4s ease; }
.refer-bar-fill-sage { background: var(--sage); }
.refer-bar-fill-rose { background: var(--rose); }
.refer-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin-top: 0.75rem; }
.tier-pip {
  text-align: center;
  padding: 0.4rem 0.25rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--soft);
  opacity: 0.55;
  transition: all 0.2s;
}
.tier-pip.earned { opacity: 1; background: #f0f4f1; border-color: var(--sage); }
.tier-pip-num { font-family: 'Fraunces', serif; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.tier-pip-label { font-size: 0.65rem; color: var(--muted); margin-top: 0.15rem; }
.refer-soon-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; font-style: italic; }

.refer-divider { border: none; border-top: 1px solid var(--soft); margin: 2rem 0; }
.refer-section { margin-bottom: 2.5rem; }
.refer-section.locked-until-slug { opacity: 0.45; pointer-events: none; }
.refer-help { font-size: 0.875rem; color: var(--muted); margin: 0.25rem 0 1rem; line-height: 1.5; }
.refer-disclaimer { font-size: 0.78rem; color: var(--muted); margin-top: 1rem; font-style: italic; }

/* Slug picker */
.slug-picker-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 10px;
  padding: 0.45rem 0.5rem 0.45rem 0.95rem;
  flex-wrap: wrap;
}
.slug-prefix {
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  align-self: center;
}
.slug-picker-row input {
  flex: 1;
  min-width: 140px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.4rem 0;
}
.slug-feedback { font-size: 0.85rem; margin: 0.6rem 0; min-height: 1.2em; }
.slug-feedback.checking { color: var(--muted); }
.slug-feedback.good { color: var(--sage); font-weight: 500; }
.slug-feedback.bad { color: var(--rose); }
.slug-locked-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream); border: 1px solid var(--soft);
  border-radius: 10px; padding: 0.9rem 1.25rem; gap: 1rem;
}
.slug-locked-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.slug-locked-value { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; color: var(--sage); margin-top: 0.15rem; }

/* Share kit */
.share-card {
  background: var(--cream);
  border: 1px solid var(--soft);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.share-card-label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.share-row { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; }
.share-row input {
  flex: 1; min-width: 200px;
  border: 1px solid var(--soft); border-radius: 8px;
  padding: 0.55rem 0.8rem; font-size: 0.88rem;
  background: #fff; color: var(--ink); font-family: inherit;
}
.share-card textarea {
  width: 100%; border: 1px solid var(--soft); border-radius: 8px;
  padding: 0.7rem 0.9rem; font-size: 0.88rem;
  background: #fff; color: var(--ink); font-family: inherit;
  resize: vertical; line-height: 1.55; box-sizing: border-box;
}
.share-card-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }

/* Channel cards */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.channel-card {
  background: var(--cream);
  border: 1px solid var(--soft);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.channel-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.channel-emoji { font-size: 1.3rem; }
.channel-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.channel-hint { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.7rem; }
.channel-copy {
  width: 100%; border: 1px solid var(--soft); border-radius: 8px;
  padding: 0.55rem 0.7rem; font-size: 0.82rem;
  background: #fff; color: var(--ink); font-family: inherit;
  resize: vertical; min-height: 90px; line-height: 1.55; box-sizing: border-box;
  margin-bottom: 0.55rem;
}

/* Tracking table */
.refer-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.5rem; }
.refer-table th, .refer-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--soft); text-align: left; }
.refer-table th { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.refer-table tr:last-child td { border-bottom: none; }
.refer-table-empty { text-align: center; padding: 1.5rem; color: var(--muted); font-style: italic; }

.refer-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 600; }
.refer-status.badge-pending { background: var(--soft); color: var(--muted); }
.refer-status.badge-active { background: #e3ede5; color: var(--sage); }
.refer-status.badge-expired { background: #fdf0f0; color: var(--rose); }

.refer-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (max-width: 580px) { .refer-add-row { grid-template-columns: 1fr; } }
.refer-add-row input {
  border: 1px solid var(--soft); border-radius: 8px;
  padding: 0.55rem 0.85rem; font-size: 0.88rem;
  background: #fff; color: var(--ink); font-family: inherit;
}

/* ─── Collective card (homepage) ─────────────────────────── */
.tool-card-collective {
  background: linear-gradient(135deg, #fdf3f3 0%, #fdf9f0 100%);
  border-color: var(--rose);
}
.tool-card-collective:hover { border-color: var(--rose); box-shadow: 0 10px 30px rgba(194, 91, 91, 0.18); }
.tool-card-collective .card-arrow { color: var(--rose); }
.tool-card-collective .badge-members { background: var(--rose); color: #fff; }

/* ─── Locked tool preview banner ──────────────────────────── */
.preview-banner {
  background: linear-gradient(135deg, var(--sage-xlight) 0%, #fdf9f0 100%);
  border-bottom: 1px solid var(--sage);
  padding: 14px 16px;
}
.preview-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.preview-banner-icon { font-size: 1.4rem; flex-shrink: 0; }
.preview-banner-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
}
.preview-banner-text strong { color: var(--sage-dark); display: inline; }
.preview-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Body-level pointer lock on locked tools: catches dynamically-injected inputs.
   Re-enable interaction only inside the preview banner. */
body.tool-preview-locked main {
  pointer-events: none;
  user-select: none;
}
body.tool-preview-locked main .preview-banner,
body.tool-preview-locked main .preview-banner * {
  pointer-events: auto;
  user-select: auto;
}
/* Visual treatment so locked inputs look obviously inactive */
body.tool-preview-locked main input,
body.tool-preview-locked main select,
body.tool-preview-locked main textarea,
body.tool-preview-locked main button {
  opacity: 0.65;
  cursor: not-allowed !important;
  background-color: #f5f1eb;
}
body.tool-preview-locked main .preview-banner input,
body.tool-preview-locked main .preview-banner select,
body.tool-preview-locked main .preview-banner textarea,
body.tool-preview-locked main .preview-banner button {
  opacity: 1;
  cursor: pointer !important;
  background-color: revert;
}

/* On mobile, allow horizontal scroll only */
@media (max-width: 768px) {
  .pill-nav-inner { padding: 8px 12px; }
  .pill-link { font-size: 0.75rem; padding: 5px 10px; }
}

/* ─── Tool Hero ───────────────────────────────────────────── */
.tool-hero {
  background: linear-gradient(135deg, var(--sage-xlight) 0%, var(--cream) 60%);
  border-bottom: 1px solid var(--soft);
  padding: 48px 24px 40px;
  text-align: center;
}
.tool-hero .badge {
  display: inline-block;
  margin-bottom: 16px;
}
.tool-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 12px;
}
.tool-hero .lead {
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Result Hero (sticky result panel) ──────────────────── */
.result-hero {
  background: var(--sage);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.result-hero .result-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}
.result-hero .result-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.result-hero .result-sub {
  font-size: 0.875rem;
  opacity: 0.85;
}
.result-hero .result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.result-hero .result-stat { text-align: center; }
.result-hero .result-stat .stat-val {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}
.result-hero .result-stat .stat-lbl {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 2px;
}

/* result-hero variant: rose (for CTA emphasis) */
.result-hero.rose { background: var(--rose); }
.result-hero.gold { background: var(--gold); color: var(--ink); }
.result-hero.gold .result-label,
.result-hero.gold .result-sub,
.result-hero.gold .result-stat .stat-lbl { opacity: 0.7; color: var(--ink); }
.result-hero.gold .result-grid { border-color: rgba(0,0,0,0.12); }

/* ─── Input Groups / Forms ────────────────────────────────── */
.input-section {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.input-section:last-child { margin-bottom: 0; }
.input-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-section-title .icon {
  width: 20px;
  height: 20px;
  background: var(--sage-xlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.field {
  margin-bottom: 14px;
}
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--cream);
  border: 1.5px solid var(--soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,128,104,0.15);
}
.field textarea { resize: vertical; min-height: 80px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field .field-hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 4px;
}
.field .field-warn {
  font-size: 0.78rem;
  color: var(--rose);
  margin-top: 4px;
  display: none;
}
.field .field-warn.show { display: block; }

/* inline number+label rows */
.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.field-row .field-val {
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
  min-width: 72px;
}

/* Range / slider */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: var(--soft);
  border-radius: 3px;
  border: none;
  padding: 0;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--sage);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition);
}
input[type='range']::-webkit-slider-thumb:hover { background: var(--sage-dark); }
input[type='range']:focus { outline: none; }
input[type='range']:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(107,128,104,0.2); }

/* Checkbox */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.check-field input[type='checkbox'] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--sage);
  margin-top: 1px;
  cursor: pointer;
}
.check-field .check-label {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-group input[type='radio'] { display: none; }
.radio-group label {
  display: inline-block;
  padding: 7px 14px;
  border: 1.5px solid var(--soft);
  border-radius: 50px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
  color: var(--ink-muted);
}
.radio-group input[type='radio']:checked + label {
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
}
.radio-group label:hover {
  border-color: var(--sage-light);
  color: var(--ink);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }

.btn-rose {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}
.btn-outline:hover { background: var(--sage-xlight); color: var(--sage-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--soft);
}
.btn-ghost:hover { background: var(--soft); color: var(--ink); }

/* Premium unlock button. Sage gradient, soft shadow, sparkle icon support.
   Used on the hero and anywhere we want the paid CTA to feel premium-not-aggressive. */
.btn-unlock {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: #fff;
  border-color: var(--sage-dark);
  box-shadow: 0 4px 14px rgba(77, 92, 75, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-unlock:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--sage-dark) 0%, #3d4b3b 100%);
  border-color: #3d4b3b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(77, 92, 75, 0.35);
}
.btn-unlock:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(77, 92, 75, 0.25); }
.btn-unlock-icon {
  font-size: 1.1em;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Compact menu-chip variant for the header. Slim, pill-shaped, sits inside
   the nav row, white text on sage, no shadow because it's not the focal hero CTA.
   Selectors scoped to .site-nav so we beat the `.site-nav a` muted-color rule. */
.btn-menu-chip,
.site-nav a.btn-menu-chip {
  background: var(--sage);
  color: #fff;
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-menu-chip:hover,
.site-nav a.btn-menu-chip:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
}

.btn-sm { padding: 7px 14px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 15px 30px; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-sage   { background: var(--sage-xlight); color: var(--sage-dark); }
.badge-rose   { background: #fceaea; color: var(--rose-dark); }
.badge-gold   { background: #fdf4e0; color: #8a6a10; }
.badge-soft   { background: var(--soft); color: var(--ink-muted); }
.badge-free   { background: var(--sage-xlight); color: var(--sage-dark); }
.badge-members { background: #fdf4e0; color: #8a6a10; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-sm { padding: 18px 20px; border-radius: var(--radius); }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); cursor: pointer; }

.tool-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.tool-card .card-badge { margin-bottom: 10px; }
.tool-card .card-icon {
  width: 40px; height: 40px;
  background: var(--sage-xlight);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.tool-card .card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.tool-card .card-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0;
}
.tool-card .card-arrow {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Info / alert boxes ──────────────────────────────────── */
.info-box {
  background: var(--sage-xlight);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--sage-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}
.warn-box {
  background: #fff8f0;
  border: 1px solid #f0c080;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #7a4f10;
  line-height: 1.5;
}
.tip-box {
  background: #fdf4e0;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 16px;
}
.tip-box strong { color: #7a5f10; }

/* ─── Breakdown Table ─────────────────────────────────────── */
.breakdown-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.875rem;
  background: #fff;
}
.breakdown-table th {
  background: var(--sage-xlight);
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
}
.breakdown-table th:last-child,
.breakdown-table td:last-child { text-align: right; }
.breakdown-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--soft);
  color: var(--ink);
}
.breakdown-table tr:last-child td {
  font-weight: 700;
  background: #fffdf8;
}
.breakdown-table .bar-cell { width: 80px; }
.breakdown-bar {
  height: 6px;
  background: var(--soft);
  border-radius: 3px;
  overflow: hidden;
}
.breakdown-bar-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ─── CTA Panel ─────────────────────────────────────────────
   This is the bottom-of-page purchase panel. Sage gradient,
   not rose, because it's selling the subscription, not the
   community. The community (Collective) keeps its rose accent. */
.cta-panel {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0 0;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: #fff;
  margin-bottom: 12px;
}
.cta-panel p {
  color: rgba(255,255,255,0.88);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}
.cta-panel .price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff;
}
.cta-panel .btn-cta {
  background: #fff;
  color: var(--sage-dark);
  border-color: #fff;
  font-size: 1rem;
  padding: 13px 28px;
}
.cta-panel .btn-cta:hover { background: var(--cream); color: var(--sage-dark); }
.cta-panel .cta-sub {
  margin-top: 14px;
  font-size: 0.8rem;
  opacity: 0.72;
  margin-bottom: 0;
}

/* inline cta (inside tool pages, below result).
   Now used for cross-tool nav (not purchase) so sage-tinted, not rose. */
.cta-inline {
  background: var(--sage-xlight);
  color: var(--ink);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.cta-inline p {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.cta-inline p:last-child { margin-bottom: 0; }

/* ─── Tool Page Layout Wrapper ────────────────────────────── */
.tool-body {
  padding: 40px 0 64px;
}

/* ─── Action Bar (print/share row) ───────────────────────────*/
.action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ─── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--soft);
  margin: 28px 0;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

/* ─── Homepage Hero ───────────────────────────────────────── */
.homepage-hero {
  background: linear-gradient(150deg, var(--sage-xlight) 0%, var(--cream) 55%);
  border-bottom: 1px solid var(--soft);
  padding: 80px 24px 72px;
  text-align: center;
}
.homepage-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  max-width: 760px;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}
.homepage-hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}
.homepage-hero .hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Tool Grid (homepage) ────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tools-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ─── Members lock overlay ────────────────────────────────── */
.members-card {
  position: relative;
}
.members-card .lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,246,240,0.5);
  backdrop-filter: blur(1px);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.members-card:hover .lock-overlay { opacity: 1; }

/* ─── Timeline (for golden hour tool) ────────────────────── */
.light-timeline {
  position: relative;
  padding-left: 28px;
}
.light-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--soft);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--soft);
  border: 2px solid var(--cream);
  flex-shrink: 0;
}
.timeline-item.golden::before { background: var(--gold); }
.timeline-item.ceremony::before { background: var(--sage); }
.timeline-item.sunset::before { background: var(--rose); }
.timeline-item .tl-time {
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 58px;
  color: var(--ink);
}
.timeline-item .tl-label {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.timeline-item .tl-label strong { color: var(--ink); }
.timeline-item.golden .tl-time { color: #8a6a10; }
.timeline-item.golden .tl-label strong { color: #8a6a10; }

/* ─── Style Quiz ─────────────────────────────────────────── */
.quiz-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
}
.quiz-progress-dot {
  flex: 1;
  height: 4px;
  background: var(--soft);
  border-radius: 2px;
  transition: background var(--transition);
}
.quiz-progress-dot.done { background: var(--sage); }
.quiz-progress-dot.active { background: var(--sage-light); }

.quiz-question {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.35;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
}
.quiz-option:hover { border-color: var(--sage-light); background: var(--sage-xlight); }
.quiz-option.selected { border-color: var(--sage); background: var(--sage-xlight); }
.quiz-option .option-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.quiz-option .option-text {
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.4;
}
.quiz-option .option-text em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.quiz-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: space-between;
}
.quiz-result-style {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 16px;
}
.quiz-result-section { margin-bottom: 24px; }
.quiz-result-section h4 { margin-bottom: 10px; }
.quiz-result-section ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.quiz-result-section ul li { margin-bottom: 6px; }

/* ─── Hashtag generator ───────────────────────────────────── */
.hashtag-list { display: flex; flex-direction: column; gap: 8px; }
.hashtag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color var(--transition);
}
.hashtag-item:hover { border-color: var(--sage-light); }
.hashtag-item .hashtag-text {
  flex: 1;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: var(--sage);
  font-weight: 600;
}
.hashtag-item .copy-btn {
  background: var(--sage-xlight);
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-dark);
  cursor: pointer;
  transition: background var(--transition);
}
.hashtag-item .copy-btn:hover { background: var(--sage); color: #fff; }
.hashtag-item .copy-btn.copied { background: var(--sage); color: #fff; }

.monogram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.monogram-card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: border-color var(--transition);
}
.monogram-card:hover { border-color: var(--sage-light); }
.monogram-card svg { margin: 0 auto 10px; }
.monogram-card .mono-label {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-bottom: 6px;
  margin-top: 0;
}
.monogram-card .download-btn {
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.monogram-card .download-btn:hover { color: var(--sage-dark); text-decoration: underline; }

/* ─── Guest list table ────────────────────────────────────── */
.guest-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: #fff;
}
.guest-table {
  font-size: 0.8rem;
  min-width: 760px;
}
.guest-table th {
  background: var(--sage-xlight);
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}
.guest-table td {
  padding: 8px 10px;
  border-top: 1px solid var(--soft);
  vertical-align: middle;
}
.guest-table tr:hover td { background: #fafafa; }
.guest-table input,
.guest-table select {
  width: 100%;
  padding: 5px 7px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  background: transparent;
  font-size: 0.8rem;
  color: var(--ink);
}
.guest-table input:focus,
.guest-table select:focus {
  border-color: var(--sage);
  background: #fff;
  outline: none;
}
.guest-table .status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-yes { background: #e6f4e7; color: #2a7a30; }
.status-no  { background: #fceaea; color: #9a2b2b; }
.status-maybe { background: #fdf4e0; color: #7a5f10; }
.status-pending { background: var(--soft); color: var(--ink-faint); }

.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stat-pill {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-pill strong { font-weight: 700; color: var(--ink); }
.stat-pill span { color: var(--ink-muted); }

/* ─── Seating chart ───────────────────────────────────────── */
.seating-canvas {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.seating-table-el {
  position: absolute;
  border: 2px solid var(--sage);
  border-radius: 50%;
  background: var(--sage-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sage-dark);
  cursor: move;
  user-select: none;
}
.seat-chip {
  display: inline-block;
  background: var(--sage-xlight);
  border: 1.5px solid var(--sage-light);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.75rem;
  cursor: grab;
  white-space: nowrap;
}
.seat-chip.conflict { border-color: var(--rose); background: #fceaea; color: var(--rose-dark); }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 40px 24px 32px;
  margin-top: 64px;
}
.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.site-footer .footer-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.site-footer .footer-tagline {
  font-size: 0.875rem;
  margin-bottom: 0;
}
.site-footer a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
}
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
}

/* ─── Utility ─────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.hidden { display: none !important; }
.vis-hidden { visibility: hidden; }

/* ─── Print styles ────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .action-bar,
  .cta-inline,
  .cta-panel,
  .no-print { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }
  h1, h2, h3 { color: #000; }

  .tool-body { padding: 0; }
  .tool-container { max-width: 100%; padding: 0; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .result-hero {
    background: #f0f0f0 !important;
    color: #000 !important;
    box-shadow: none;
    break-inside: avoid;
  }
  .result-hero .result-number,
  .result-hero .result-stat .stat-val { color: #000 !important; }

  .breakdown-table { border: 1px solid #ccc; }
  .breakdown-table th { background: #f0f0f0; color: #000; }
  .breakdown-bar-fill { background: #888 !important; }

  .input-section { border: 1px solid #ccc; break-inside: avoid; }
  .light-timeline { break-inside: avoid; }
  table { page-break-inside: avoid; }
  a[href]::after { content: ''; }
}

/* ─── Responsive ──────────────────────────────────────────── */

/* Switch to mobile (hamburger) nav before the desktop header gets squeezed.
   At 769-900px the 4 free links + country picker + Unlock button overlap
   the logo, so collapse early. */
@media (max-width: 900px) {
  .site-nav { display: none; flex-direction: column; width: 100%; gap: 2px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .site-header { height: auto; flex-wrap: wrap; padding: 12px 20px; }
  .site-header .header-inner { flex-wrap: wrap; }
  .site-nav a { padding: 10px 12px; width: 100%; white-space: normal; }
  /* When stacked vertically in mobile menu, button is full width too */
  .site-nav .header-unlock-cta { width: 100%; justify-content: center; }
  .country-picker { width: 100%; }
  .country-picker select { width: 100%; }
}

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }

  .cta-panel { padding: 36px 24px; border-radius: var(--radius-lg); }
  .monogram-grid { grid-template-columns: 1fr 1fr; }

  .homepage-hero { padding: 56px 20px 48px; }
  .tools-grid, .tools-grid-lg { grid-template-columns: 1fr; }

  .site-footer .footer-inner { grid-template-columns: 1fr; }
  .site-footer .footer-links { flex-wrap: wrap; gap: 12px; }

  .quiz-nav { gap: 8px; }
  .radio-group { gap: 6px; }

  .stats-row { gap: 8px; }
  .stat-pill { font-size: 0.8rem; padding: 6px 12px; }
}

@media (max-width: 480px) {
  .container, .tool-container { padding-left: 16px; padding-right: 16px; }
  .result-hero { padding: 22px 20px 18px; }
  .result-hero .result-number { font-size: 2.25rem; }
  .card { padding: 20px; }
  .cta-panel h2 { font-size: 1.4rem; }
  .monogram-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 12px 22px; font-size: 1rem; }
}
