/* Matches fromhomeplaybook.com: cream paper, navy ink, gold accents, Georgia headings, pill buttons. */
:root {
  --cream: #f7f1e7; --paper: #fffdf8; --navy: #14233b; --navy-soft: #2e4059;
  --gold: #76531f; --gold-light: #dfc68d; --sage: #718175; --line: #ded5c7;
  --muted: #556174; --error: #a63c3c; --shadow: 0 24px 70px #14233b24;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65;
}
a { color: var(--navy); }
.wrap { width: min(760px, 100% - 32px); margin: 0 auto; }
main { padding: clamp(40px, 7vw, 88px) 0 64px; outline: none; }
[hidden] { display: none !important; }

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.top-link { font-size: 15px; font-weight: 700; text-decoration: none; }
.top-link:hover, .brand:hover { text-decoration: underline; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
h3 { font-size: 26px; }
.eyebrow { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: 13px; font-weight: 800; margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--navy-soft); margin: 20px 0 28px; max-width: 640px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 22px; border-top: 1px solid var(--gold-light); padding-top: 12px; max-width: 640px; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 54px; padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  font: inherit; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 24px #14233b24; transition: transform .18s, background .18s, box-shadow .18s;
}
.button:hover { transform: translateY(-1px); background: var(--navy-soft); }
.button:focus-visible, .opt:focus-visible, .back:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.button-secondary { background: transparent; color: var(--navy); box-shadow: none; }
.button-secondary:hover { background: var(--paper); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.button:disabled { opacity: .6; cursor: default; transform: none; }

.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 24px; }
.options { display: grid; gap: 12px; }
.opt {
  text-align: left; font: inherit; color: var(--navy); cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; min-height: 58px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.opt:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 8px 20px #14233b14; }
.opt[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.back { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 10px 0; margin-top: 18px; text-decoration: underline; text-underline-offset: 3px; }

.cards { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; counter-reset: card; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.card:not(:first-child) { box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rank { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.fit { font-size: 14px; font-weight: 700; color: var(--sage); }
.card p { margin: 10px 0 0; }
.card h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 6px; font-weight: 800; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 4px 0; }
.step { background: var(--cream); border: 1px solid var(--gold-light); padding: 12px 16px; border-radius: 12px; }

.offer { background: var(--navy); color: #fff; border-radius: 26px; padding: clamp(24px, 5vw, 40px); margin: 0 0 40px; }
.offer h2 { color: #fff; }
.offer p { color: #dfe4ec; margin: 14px 0 22px; }
.offer .button { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }
.offer .button-secondary { background: transparent; color: #fff; border-color: #ffffff66; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lead { border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 32px); background: var(--paper); margin-bottom: 32px; }
.lead p { margin: 8px 0 18px; color: var(--navy-soft); }
.lead .button-secondary:hover { background: var(--cream); }
.share { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.share .back { margin: 0; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot p { margin: 6px 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .button { width: 100%; }
  .share .button { width: auto; }
  .top-link { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
