:root {
  --cream: #fbf3ea;
  --paper: #fffaf4;
  --coral: #e8505b;
  --coral-dark: #c93a46;
  --peach: #f6b39a;
  --plum: #3b1d4a;
  --ink: #2a1433;
  --muted: #6e5a73;
  --line: #ecdccd;
  --gold: #c9973f;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 16px; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.brand { font-family: var(--serif); font-size: 30px; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--coral); }
.brand.small { font-size: 22px; }
.header nav { display: flex; gap: 28px; font-size: 15px; }
.header nav a { text-decoration: none; color: var(--muted); }
.header nav a:hover { color: var(--coral); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.button.coral { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -12px var(--coral); }
.button.coral:hover { background: var(--coral-dark); }
.button.cream { background: var(--cream); color: var(--plum); }
.button.ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--line); height: 44px; font-size: 15px; }
.button.wide { width: 100%; }

.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.kicker.light { color: var(--peach); }
h1, h2, h3 { font-family: var(--serif); color: var(--plum); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--coral); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 24px; padding: 24px 0 64px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin-bottom: 22px; }
.lead { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 30px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-points li::before { content: '♡ '; color: var(--coral); }
.hero-art { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--paper); box-shadow: 0 30px 60px -40px rgba(59, 29, 74, .6); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; scroll-margin-top: 24px; }
.calc-form { padding: 44px; }
.calc-form h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 28px; }
.names { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px; }
.plus { font-family: var(--serif); font-size: 34px; color: var(--coral); padding-bottom: 8px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 17px var(--sans);
}
.field input::placeholder { color: #b7a4b3; }
.error { min-height: 24px; margin: 12px 0 6px; color: var(--coral-dark); font-size: 14px; font-weight: 600; }
.privacy { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.calc-result { background: var(--plum); color: #f6e9ef; padding: 44px; display: grid; place-items: center; text-align: center; min-height: 420px; }
.empty p { max-width: 16em; margin: 22px auto 0; color: #d7c3d4; }
.rings { position: relative; width: 120px; height: 80px; margin: 0 auto; }
.rings span { position: absolute; top: 0; width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--peach); opacity: .8; }
.rings span:first-child { left: 0; }
.rings span:last-child { right: 0; border-color: var(--coral); }
#result:focus { outline: none; }
.gauge { position: relative; width: 170px; height: 170px; margin: 0 auto 14px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge .track { stroke: rgba(255, 255, 255, .12); }
.gauge .bar { stroke: var(--coral); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.gauge strong { position: absolute; inset: 0; display: grid; place-items: center; font: 700 44px var(--serif); color: #fff; }
.score-label { margin: 0; font-weight: 700; color: var(--peach); letter-spacing: .04em; }
.score-text { max-width: 24em; margin: 10px auto 22px; color: #ecdde8; }
.pair { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 24px; }
.pair > div { display: grid; gap: 2px; min-width: 90px; }
.num { font: 700 34px var(--serif); color: #fff; }
.who { font-size: 13px; color: #d7c3d4; overflow-wrap: anywhere; }
.link { font-size: 28px; color: var(--gold); }
.calc-result .button.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* How it works */
.how { padding: 96px 0 40px; }
.how h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 20em; margin-bottom: 40px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.steps li > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--peach); color: var(--plum); font: 700 18px var(--serif); margin-bottom: 16px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Sponsor */
.sponsor { padding: 56px 0; }
.sponsor-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 48px;
  background: radial-gradient(circle at 85% 20%, rgba(232, 80, 91, .55), transparent 45%), radial-gradient(circle at 70% 90%, rgba(201, 151, 63, .35), transparent 40%), var(--plum);
  color: #f6e9ef;
}
.sponsor-card h2 { color: #fff; font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 14px; }
.sponsor-card h2 em { color: var(--peach); }
.sponsor-card p { max-width: 32em; margin: 0 0 26px; color: #ecdde8; }
.sponsor-card small { display: block; margin-top: 16px; font-size: 12px; color: #cdb6c9; }

/* Scale */
.scale { padding: 40px 0 56px; }
.scale h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.scale-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.scale-list li { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.scale-list span { font: 700 26px var(--serif); color: var(--coral); }
.scale-list strong { font-size: 14px; font-weight: 600; color: var(--plum); }

.disclaimer { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 40px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer p { margin: 0; }
.footer a:hover { color: var(--coral); }

@media (max-width: 900px) {
  .header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-art { order: -1; aspect-ratio: 16 / 10; }
  .calc { grid-template-columns: 1fr; }
  .calc-form, .calc-result { padding: 28px 22px; }
  .calc-result { min-height: 320px; }
  .steps { grid-template-columns: 1fr; }
  .scale-list { grid-template-columns: repeat(2, 1fr); }
  .sponsor-card { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .names { grid-template-columns: 1fr; }
  .plus { text-align: center; padding: 0; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .gauge .bar { transition: none; }
}
