/* Rhymes That Make You Tingle — vintage storybook aesthetic */
:root {
  --cream: #faf3e6;
  --cream-deep: #f3e8d3;
  --burgundy: #5e1a2a;
  --burgundy-deep: #421220;
  --rose: #c98f8f;
  --rose-soft: #e8c9c4;
  --ink: #221411;
  --ink-soft: #5c4a42;
  --gold: #c9a227;
  --gold-soft: #e3c878;
  --shadow: 0 10px 30px rgba(66, 18, 32, 0.14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #fff8ec 0%, var(--cream) 55%, var(--cream-deep) 100%);
  min-height: 100vh;
  line-height: 1.55;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--burgundy-deep); margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.12; font-weight: 900; }
h1 em, h2 em, .brand-name em { font-style: italic; color: var(--burgundy); }
h2 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
.hand { font-family: 'Caveat', cursive; font-size: 1.35rem; color: var(--burgundy); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 0; }
.section-title { text-align: center; font-size: clamp(1.7rem, 7vw, 2.3rem); }
.section-sub { text-align: center; margin-top: -6px; }

/* paper card */
.paper {
  background:
    linear-gradient(175deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%),
    var(--cream);
  border: 1px solid #e7d6b8;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  position: relative;
}
.paper::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(201, 162, 39, .35); border-radius: 9px;
  pointer-events: none;
}

.flourish { text-align: center; color: var(--gold); font-size: 1.3rem; margin: 6px 0 10px; }
.spin { display: inline-block; animation: spin 2.4s linear infinite; font-size: 2rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: rgba(250, 243, 230, .88); border-bottom: 1px solid #e7d6b8; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--burgundy-deep); }
.brand-mark { color: var(--gold); font-size: 1.2rem; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.02rem; }
.site-nav { display: flex; gap: 14px; font-size: .92rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav-premium { color: var(--burgundy) !important; font-weight: 700 !important; }

/* hero */
.hero { text-align: center; padding: 52px 0 30px; }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--ink-soft); margin: 0 0 14px; }
.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 44ch; margin: 14px auto 24px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.microcopy { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-top: 18px; }
.free-counter { font-size: .85rem; font-weight: 600; color: var(--burgundy); margin-top: 8px; }

/* buttons */
.btn {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
  border: none; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; display: inline-block; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, #7a2438, var(--burgundy)); color: #fff7ea; box-shadow: 0 6px 18px rgba(94,26,42,.32); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(94,26,42,.4); }
.btn-secondary { background: transparent; color: var(--burgundy); border: 2px solid var(--burgundy); }
.btn-ghost { background: rgba(255,255,255,.55); color: var(--burgundy-deep); border: 1px solid #dcc9a4; }
.btn-big { font-size: 1.12rem; padding: 17px 30px; letter-spacing: .04em; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }

/* wizard */
.wizard { margin-top: 6px; }
.wizard-progress { height: 6px; background: #ead9b8; border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
#wizard-bar { height: 100%; width: 20%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 99px; transition: width .3s ease; }
.wstep h2 { text-align: center; margin-bottom: 18px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.opt {
  font-family: 'Inter', sans-serif; font-size: .98rem; font-weight: 500;
  padding: 15px 10px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.6); border: 1.5px solid #dcc9a4; color: var(--ink);
  transition: all .12s ease;
}
.opt.selected { border-color: var(--burgundy); background: #fff; box-shadow: 0 0 0 2px rgba(94,26,42,.18); color: var(--burgundy-deep); font-weight: 700; }
.vibe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vibe strong { display: block; font-size: 1.05rem; }
.vibe span { font-size: .8rem; color: var(--ink-soft); }
.vibe.locked { opacity: .75; border-style: dashed; }
.opt-label { font-family: 'Inter', sans-serif; font-size: .85rem; color: var(--ink-soft); }

input[type=text], textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: 1.05rem;
  padding: 15px 16px; border-radius: 12px; border: 1.5px solid #dcc9a4;
  background: rgba(255,255,255,.75); color: var(--ink);
}
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(94,26,42,.12); }
textarea { resize: vertical; }

.loading { text-align: center; padding: 30px 0; }

/* result card */
.rhyme-card { text-align: center; }
.card-title { font-size: 1.25rem; margin-bottom: 4px; }
.vibe-badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--burgundy); border: 1px solid var(--gold); border-radius: 999px; padding: 4px 14px; margin: 6px 0 14px;
  background: rgba(201,162,39,.1);
}
.rhyme-lines { font-family: 'Playfair Display', Georgia, serif; font-size: 1.28rem; line-height: 1.75; color: var(--ink); margin: 8px 0 14px; white-space: pre-line; }
.card-brand { font-size: .78rem; color: var(--ink-soft); font-style: italic; margin: 10px 0 0; }
.send-nudge { text-align: center; margin: 18px 0 14px; font-size: 1.5rem; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-grid .btn { font-size: .92rem; padding: 13px 10px; }

/* gallery */
.gallery-grid { display: grid; gap: 14px; margin-top: 20px; }
.sample-card { padding: 20px; }
.sample-card .rhyme-lines { font-size: 1.08rem; }
.sample-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--rose-soft); color: var(--burgundy-deep); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px;
}

/* premium */
.price-grid { display: grid; gap: 14px; margin-top: 22px; }
.price-card { text-align: center; }
.price-card.featured { border: 2px solid var(--gold); }
.price-card .flag { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.price { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--burgundy-deep); margin: 8px 0; }
.price span { font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 12px 0 18px; text-align: left; }
.price-card li { padding: 6px 0 6px 28px; position: relative; font-size: .95rem; }
.price-card li::before { content: "❦"; position: absolute; left: 4px; color: var(--gold); }
.price-card .btn { width: 100%; }

/* footer */
.site-footer { text-align: center; padding: 40px 0 60px; border-top: 1px solid #e7d6b8; margin-top: 20px; }

/* modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(34, 20, 17, .55); backdrop-filter: blur(4px); padding: 20px;
}
.modal { max-width: 420px; width: 100%; text-align: center; }
.modal h2 { margin-bottom: 8px; }
.hidden { display: none !important; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200;
  background: var(--burgundy-deep); color: #fff7ea; padding: 13px 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; box-shadow: var(--shadow); max-width: 90vw; text-align: center;
}

@media (min-width: 640px) {
  .cta-row { flex-direction: row; justify-content: center; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .wrap { max-width: 720px; }
  #gallery-grid { grid-template-columns: 1fr 1fr; }
}
