@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Italic.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f6f1ea;
  --bg-deep: #efe7db;
  --paper: #fbf7f1;
  --ink: #2a2723;
  --muted: #7a736a;
  --line: rgba(156, 122, 69, 0.28);
  --gold: #9c7a45;
  --gold-deep: #7d5e32;
  --white: #fffcf8;
  --shadow: 0 18px 40px rgba(42, 39, 35, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, #fffdf8 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }

#app {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}
.shell {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  padding: 28px 22px 40px;
  position: relative;
}
.screen { animation: fade .4s ease; }
@keyframes fade {
  from { transform: translateY(8px); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
}

.eyebrow, .mark {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.mark { text-align: center; margin-bottom: 28px; }
h1, h2, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
h1, h2 { color: #1c1916; font-weight: 600; }
h1 { font-size: 40px; line-height: 1.08; text-align: center; margin: 0 0 12px; }
h2 { font-size: 34px; line-height: 1.12; }
.lede {
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: #5e5850;
  margin-bottom: 18px;
}
.support {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 22px;
}
.disclaimer, .fine {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.disclaimer { margin-top: 28px; }

.btn, .btn-ghost, .btn-text {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn {
  background: #1c1916;
  color: #fff;
  padding: 16px 18px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.btn:hover { background: #1c1a17; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 15px 18px;
  border-radius: 2px;
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.btn-text {
  background: none;
  color: var(--muted);
  padding: 14px;
  font-size: 14px;
  margin-top: 6px;
}
.btn-row { display: flex; gap: 10px; margin-top: 10px; }
.btn-row .btn, .btn-row .btn-ghost { width: auto; flex: 1; }


.type-grid { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 22px; }
.type-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}
.type-card strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #1c1916;
  line-height: 1.2;
}
.type-card span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.progress-wrap { margin: 8px 0 22px; }
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.progress-top span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.back {
  background: none;
  border: 0;
  color: var(--gold-deep);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.bar { height: 1px; background: var(--line); }
.bar > i {
  display: block;
  height: 2px;
  margin-top: -0.5px;
  background: var(--gold);
  width: 0;
  transition: width .3s ease;
}

.q-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  margin: 10px 0 22px;
  color: #1c1916;
  font-weight: 500;
}
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option:hover, .option.selected {
  border-color: var(--gold);
  background: #fffaf3;
}

.center-state {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 18px;
}
.element-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}
.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  text-align: center;
  margin: 14px 0 28px;
}
.facts { display: grid; gap: 14px; margin: 8px 0 28px; }
.fact {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.fact strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 4px;
}
.fact p { font-size: 15px; line-height: 1.5; }

.card-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 22px 24px;
  text-align: center;
  margin: 8px 0 24px;
  box-shadow: var(--shadow);
}
.card-preview .element-kicker { margin-bottom: 10px; }
.card-preview h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 10px;
}
.card-preview p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
.card-preview .foot {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section { margin: 28px 0; }
.section h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  font-weight: 600;
}
.section p, .section li { font-size: 15px; line-height: 1.65; }
.body-copy { margin-bottom: 6px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: calc(25% - 8px); min-width: 64px; text-align: center; }
.chip {
  height: 44px;
  border-radius: 2px;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.swatch span { font-size: 11px; color: var(--muted); display: block; }
.look {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.look strong { display: block; font-size: 14px; margin-bottom: 4px; }
.pieces { display: flex; flex-direction: column; gap: 8px; }
.piece {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  background: var(--white);
}
.piece b { display: block; font-weight: 600; font-size: 15px; }
.piece span { font-size: 12px; color: var(--muted); }

.pay-box, .email-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 18px;
  margin: 18px 0 10px;
}
.pay-box h3, .email-box h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}
.price { font-size: 14px; color: var(--gold-deep); margin-bottom: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.pay-box ul { padding-left: 18px; margin-bottom: 8px; color: var(--ink); }
.pay-box li { margin: 6px 0; }
.note {
  background: #f3ece0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  margin: 12px 0;
}
input[type="email"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 2px;
  margin: 10px 0 16px;
  color: var(--ink);
  font-size: 16px;
}
input[type="email"]:focus { outline: none; border-bottom-color: var(--gold); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 20;
}
.toast.show { opacity: 1; }
.hidden { display: none !important; }
canvas#shareCanvas { display: none; }
