:root {
  --wine: #7a2742;
  --wine-deep: #4a1528;
  --wine-soft: #f4e6ea;
  --blush: #d4537e;
  --gold: #b5894e;
  --cream: #fbf7f3;
  --ink: #2a1f23;
  --ink-soft: #6b5b61;
  --line: rgba(74, 21, 40, 0.12);
  --line-strong: rgba(74, 21, 40, 0.22);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(74, 21, 40, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--wine);
}
.brand-mark { font-size: 18px; color: var(--blush); }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 19px; letter-spacing: 0.2px; }

.step-tag {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.screen {
  flex: 1;
  padding: 28px 22px 36px;
  animation: fade 0.35s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.15; }
h1 { font-size: 30px; letter-spacing: 0; }
h2 { font-size: 23px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--blush); font-weight: 600; margin: 0 0 12px; }
.lede { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 12px 0 26px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.form-note, .plan-subhead {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 8px 0 20px;
}

.btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  margin: 10px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.08s, background 0.15s;
}
.btn:hover { border-color: var(--blush); background: var(--wine-soft); }
.btn:active { transform: scale(0.99); }
.btn.selected { border-color: var(--wine); background: var(--wine-soft); }
.btn .btn-sub { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

.btn-primary {
  text-align: center;
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
  font-weight: 500;
}
.btn-primary:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  text-align: center;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 12px;
}
.btn-ghost:hover { background: none; color: var(--wine); }

.progress { height: 4px; background: var(--line); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--blush); transition: width 0.3s ease; }

.field { margin: 0 0 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.input, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.input:focus, select:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px var(--wine-soft); }
.detail-input { margin-top: 10px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.check-row input {
  margin-top: 2px;
}
.fine-print {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 10px 0 18px;
}
.fine-print a { color: var(--wine); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.chip.selected { background: var(--wine); color: #fff; border-color: var(--wine); }

.archetype-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--wine-soft), #fff);
  margin-bottom: 22px;
}
.archetype-card .glyph { font-size: 34px; }
.archetype-card h2 { margin: 12px 0 8px; color: var(--wine-deep); }

.plan-stop {
  display: block;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}
.plan-stop:last-of-type { border-bottom: none; }
.stop-media {
  margin: 0 0 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--wine-soft);
}
.stop-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.stop-media figcaption {
  padding: 7px 10px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
}
.stop-placeholder {
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--wine-deep);
  background: var(--wine-soft);
}
.stop-placeholder span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: "Fraunces", serif;
  font-size: 25px;
}
.stop-placeholder small {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.stop-body { width: 100%; }
.stop-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.stop-time { font-size: 13px; font-weight: 600; color: var(--blush); }
.stop-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-soft); }
.stop-name { font-family: "Fraunces", serif; font-size: 17px; font-weight: 600; margin: 2px 0 4px; }
.stop-blurb { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.stop-meta { font-size: 12px; color: var(--gold); margin-top: 6px; }

.stop-actions {
  margin-top: 12px;
}
.stop-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.stop-primary-actions:empty { display: none; }
.stop-quiet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.action-btn {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.action-primary {
  min-height: 40px;
  justify-content: center;
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.action-secondary-primary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--wine);
}
.stop-quiet-actions .action-btn {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.action-btn:hover {
  border-color: var(--blush);
  color: var(--wine);
  background: var(--wine-soft);
}
.action-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.section-head {
  font-family: "Fraunces", serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 24px 0 2px;
}
.side-stop { padding: 14px 0 18px; }
.side-stop .stop-name { font-size: 15px; }

.plan-modal {
  width: min(90vw, 380px);
  max-height: min(80vh, 620px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.plan-modal::backdrop {
  background: rgba(42, 31, 35, 0.48);
}
.modal-card {
  position: relative;
  padding: 22px;
}
.modal-card h3 {
  font-size: 24px;
  margin-bottom: 4px;
}
.modal-subtitle {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--wine);
  background: var(--wine-soft);
}
.modal-links {
  display: grid;
  gap: 9px;
}
.modal-link {
  display: block;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--wine);
  text-decoration: none;
  font-size: 14px;
}
.modal-link:hover {
  border-color: var(--line-strong);
  background: var(--wine-soft);
}

.rationale {
  background: var(--wine-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--wine-deep);
  margin: 18px 0;
  font-style: italic;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 50;
}
.toast.show { opacity: 1; }

.link-btn { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-family: inherit; text-decoration: underline; }
.link-btn:hover { color: var(--wine); }

.stat-row { display: flex; gap: 12px; margin: 22px 0; }
.stat { flex: 1; background: var(--wine-soft); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.stat .num { font-family: "Fraunces", serif; font-size: 26px; font-weight: 600; color: var(--wine-deep); }
.stat .lbl { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 12px;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--wine); }

.marketing-page {
  min-height: 100vh;
  background: #fff;
}
.marketing-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.marketing-nav .brand { text-decoration: none; }
.marketing-nav nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}
.marketing-nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.marketing-nav nav a:hover { color: var(--wine); }
.marketing-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px 22px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: 42px;
  align-items: center;
}
.marketing-hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: 0;
  max-width: 720px;
}
.hero-copy .lede {
  max-width: 620px;
  font-size: 18px;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  gap: 12px;
  margin-top: 24px;
}
.hero-actions .btn {
  margin: 0;
  text-align: center;
  text-decoration: none;
}
.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--wine-soft);
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.marketing-band {
  max-width: 1080px;
  margin: 0 auto;
  padding: 38px 22px;
  border-top: 1px solid var(--line);
}
.marketing-band.alt {
  background: var(--wine-soft);
  max-width: none;
  padding-left: max(22px, calc((100vw - 1080px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1080px) / 2 + 22px));
}
.marketing-band h2 {
  max-width: 720px;
  font-size: 28px;
}
.feature-grid, .link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.feature-grid h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  margin-bottom: 8px;
}
.feature-grid p, .steps {
  color: var(--ink-soft);
  line-height: 1.6;
}
.steps {
  padding-left: 20px;
  margin: 18px 0 22px;
}
.link-grid a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--wine);
  text-decoration: none;
  background: #fff;
}
.link-grid a:hover {
  background: var(--wine-soft);
  border-color: var(--line-strong);
}

.content-page {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 22px 42px;
  background: #fff;
}
.content-page .brand { margin-bottom: 34px; }
.content-page article { display: grid; gap: 18px; }
.content-page h1 { font-size: 34px; }
.content-page h2 { margin-top: 10px; font-size: 22px; }
.content-page p, .content-page li { color: var(--ink-soft); line-height: 1.65; }
.content-page ul { padding-left: 20px; margin: 0; }
.content-page .btn { max-width: 320px; text-align: center; text-decoration: none; }
.content-hero-image {
  margin: 8px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wine-soft);
}
.content-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.content-cta {
  margin-top: 10px;
}
.site-footer {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}
.site-footer p {
  margin: 0 0 10px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.site-footer a {
  color: var(--wine);
}
.legal-page article {
  gap: 14px;
}

@media (prefers-color-scheme: dark) {
  :root { --cream: #16100f; --ink: #f3e9ea; --ink-soft: #b39aa1; --line: rgba(255,255,255,0.1); --line-strong: rgba(255,255,255,0.18); --wine-soft: #2b1620; }
  .app { background: #1d1416; }
  .input, select, .btn, .chip { background: #241a1d; color: var(--ink); }
  .archetype-card { background: linear-gradient(180deg, #2b1620, #1d1416); }
  .archetype-card h2, .stat .num { color: #f0c4d2; }
  .rationale { color: #ecc0ce; }
  .btn:hover { color: var(--ink); }
  .content-page, .marketing-page, .feature-grid article, .link-grid a, .plan-modal, .modal-close, .action-secondary-primary { background: #1d1416; }
  .marketing-band.alt { background: #2b1620; }
  .hero-media, .stop-media, .stop-placeholder { background: #2b1620; }
  .modal-link { background: #241a1d; }
}

@media (max-width: 760px) {
  .marketing-nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .marketing-hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .marketing-hero h1 { font-size: 42px; }
  .hero-actions, .feature-grid, .link-grid {
    grid-template-columns: 1fr;
  }
  .hero-media img { aspect-ratio: 16 / 11; }
}
