/* ============================================================================
   Scope Change Planner — Free Scope Review Calculator
   Same design language as the sales page: warm paper + ink, one teal accent,
   Fraunces (display) + Inter (body). Whitespace-led, premium.
   ========================================================================== */
:root {
  --ink:        #16191c;
  --ink-soft:   #41474e;
  --muted:      #6f7780;
  --line:       #e6e3dd;
  --paper:      #ffffff;
  --bg:         #faf8f4;       /* warm paper */
  --bg-tint:    #f3f0e9;
  --accent:     #0f9d77;
  --accent-d:   #0b7d5e;
  --accent-tint:#e7f6f0;
  --warn:       #b8460e;
  --warn-tint:  #fcefe6;
  --warn-line:  #f3d8c5;
  --maxw:       1080px;
  --radius:     16px;
  --shadow:     0 1px 2px rgba(20,24,29,.05), 0 10px 30px rgba(20,24,29,.06);
  --shadow-lg:  0 24px 70px rgba(20,24,29,.13);
  --font:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif:      "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
em { font-style: italic; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---- buttons ------------------------------------------------------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: 13px 26px; border-radius: 999px; font-size: 16px;
  border: none; cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease, background .15s;
  box-shadow: 0 4px 14px rgba(15,157,119,.28);
}
.btn:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,157,119,.34); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid rgba(15,157,119,.4); outline-offset: 3px; }
.btn-lg { padding: 17px 38px; font-size: 18px; }
.btn-block { display: block; text-align: center; width: 100%; }
.btn-nav { padding: 9px 18px; font-size: 14.5px; box-shadow: none; }
.btn-ghost {
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  font-family: var(--font); font-weight: 600; font-size: 15px; padding: 11px 22px;
  border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-tint); }
.btn-ghost:focus-visible { outline: 3px solid rgba(15,157,119,.4); outline-offset: 2px; }

/* ---- nav ----------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(250,248,244,.82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--accent); }
.nav-tag { font-size: 13px; font-weight: 600; color: var(--accent-d); background: var(--accent-tint); border: 1px solid #cdeee2; padding: 4px 12px; border-radius: 999px; }
.nav .btn-nav { margin-left: auto; }
@media (max-width: 560px) { .nav-tag { display: none; } }

/* ---- hero ---------------------------------------------------------- */
.hero { padding: 78px 0 40px; }
.hero-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-d); margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); margin-bottom: 22px; }
.hero h1 em { color: var(--accent-d); font-style: italic; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 660px; margin: 0 auto 14px; }
.lede strong { color: var(--ink); font-weight: 600; }
.lede-sub { font-size: 14.5px; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---- sections ------------------------------------------------------ */
.section { padding: 64px 0; }
.pad-top-0 { padding-top: 8px; }
.section-tint { background: var(--bg-tint); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-d); margin-bottom: 14px; }
.section h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 20px; }
.body-lg { font-size: 17px; color: var(--ink-soft); }
.body-lg strong { color: var(--ink); font-weight: 600; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---- calculator card ----------------------------------------------- */
.calc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px 8px; overflow: hidden; }
.step { padding: 34px 34px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--accent-d); margin-bottom: 10px; }
.step-h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 8px; }
.step-help { font-size: 14.5px; color: var(--muted); margin-bottom: 24px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } .step { padding: 26px 22px; } }
.field { display: flex; flex-direction: column; }
.field-full { margin-top: 18px; }
.field-label { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }

.input-wrap { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.input-wrap:focus-within { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px rgba(15,157,119,.13); }
.input-prefix, .input-suffix { color: var(--muted); font-size: 16px; font-weight: 500; flex-shrink: 0; }
.input-prefix { margin-right: 2px; }
.input-suffix { margin-left: 6px; font-size: 14px; }
.input-wrap input { border: none; background: none; outline: none; font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--ink); width: 100%; padding: 13px 0; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.input-wrap input::-webkit-outer-spin-button, .input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* rate readout (live) */
.rate-readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 18px; background: var(--accent-tint); border: 1px solid #cdeee2; border-radius: 12px; padding: 14px 18px; }
.rate-readout-label { font-size: 13px; font-weight: 600; color: var(--accent-d); text-transform: uppercase; letter-spacing: .06em; }
.rate-readout-val { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rate-readout-note { flex-basis: 100%; font-size: 12.5px; color: var(--ink-soft); }

/* range / slider */
.range-row { display: flex; align-items: center; gap: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--bg-tint); flex: 1; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15,157,119,.4); cursor: pointer; transition: transform .12s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15,157,119,.4); cursor: pointer; }
input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(15,157,119,.3); }
.range-val { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); min-width: 58px; text-align: right; font-variant-numeric: tabular-nums; }

/* checkbox row */
.check-row { display: flex; align-items: flex-start; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.check-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.check-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* actions */
.calc-actions { margin-top: 28px; }
.calc-privacy { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.calc-privacy a { color: var(--accent-d); text-decoration: underline; text-underline-offset: 2px; }

/* validation */
.input-wrap.invalid { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(184,70,14,.12); }
.calc-error { display: none; margin-top: 14px; font-size: 14px; color: var(--warn); background: var(--warn-tint); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 16px; }
.calc-error.show { display: block; }

/* ---- result -------------------------------------------------------- */
.result { margin-top: 40px; animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.result-head { text-align: center; background: var(--ink); color: #f3f0e9; border-radius: var(--radius); padding: 48px 32px 40px; box-shadow: var(--shadow-lg); }
.result-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.result-h2 { font-size: clamp(19px, 2.6vw, 24px); font-weight: 500; color: #c9cdd2; max-width: 520px; margin: 0 auto 18px; line-height: 1.3; }
.result-hero-num { font-family: var(--serif); font-weight: 600; color: #fff; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.result-hero-num #r_annual { font-size: clamp(58px, 12vw, 104px); display: inline-block; }
.result-hero-per { font-size: clamp(20px, 3vw, 28px); color: var(--accent); margin-left: 6px; }
.result-hero-sub { font-size: 16px; color: #aeb4ba; margin: 16px 0 0; }

/* effective rate compare */
.rate-compare { display: flex; align-items: stretch; gap: 14px; margin-top: 24px; }
.rate-block { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; text-align: center; box-shadow: var(--shadow); }
.rate-block-actual { border-color: var(--warn-line); background: var(--warn-tint); }
.rate-block-label { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.rate-block-actual .rate-block-label { color: var(--warn); }
.rate-block-val { display: block; font-family: var(--serif); font-size: clamp(28px, 6vw, 40px); font-weight: 600; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.rate-block-actual .rate-block-val { color: var(--warn); }
.rate-block-drop { display: block; font-size: 13px; font-weight: 600; color: var(--warn); margin-top: 8px; }
.rate-arrow { display: flex; align-items: center; font-size: 28px; color: var(--muted); }
@media (max-width: 560px) { .rate-compare { flex-direction: column; } .rate-arrow { transform: rotate(90deg); justify-content: center; } }
.rate-compare-note { font-size: 14px; color: var(--ink-soft); text-align: center; margin: 16px auto 0; max-width: 600px; }
.rate-compare-note strong { color: var(--ink); }

/* breakdown */
.breakdown-title { font-size: clamp(22px, 3vw, 28px); margin: 44px 0 18px; text-align: center; }
.breakdown-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.breakdown-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: 14px; }
.breakdown-icon { color: var(--warn); font-weight: 700; font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.breakdown-text { font-size: 15.5px; color: var(--ink-soft); }
.breakdown-text strong { color: var(--ink); font-weight: 600; }
.breakdown-amount { margin-left: auto; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--warn); white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }

/* the flip */
.flip-card { margin-top: 28px; background: var(--accent-tint); border: 1px solid #cdeee2; border-radius: var(--radius); padding: 28px 30px; }
.flip-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--accent-d); margin-bottom: 10px; }
.flip-body { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 10px; }
.flip-body strong { color: var(--accent-d); font-weight: 700; }
.flip-fine { font-size: 13.5px; color: var(--ink-soft); margin: 0; opacity: .9; }
.flip-fine em { font-style: italic; }

.result-disclaimer { font-size: 13px; color: var(--muted); margin: 26px 0 0; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* result CTA */
.result-cta { margin-top: 40px; text-align: center; background: linear-gradient(180deg, var(--bg-tint), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 30px; box-shadow: var(--shadow); }
.cta-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-d); margin-bottom: 12px; }
.cta-h2 { font-size: clamp(24px, 3.6vw, 32px); margin-bottom: 18px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-body { font-size: 16px; color: var(--ink-soft); max-width: 600px; margin: 0 auto 26px; }
.cta-body strong { color: var(--ink); font-weight: 600; }
.result-cta .btn { margin-bottom: 14px; }
.cta-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.cta-support { font-size: 14.5px; color: var(--accent-d); font-weight: 600; margin: 16px auto 0; max-width: 560px; }

.result-actions { text-align: center; margin-top: 28px; }

/* ---- how list ------------------------------------------------------ */
.how-list { counter-reset: how; list-style: none; padding: 0; margin: 28px 0; }
.how-list li { position: relative; padding-left: 48px; margin-bottom: 18px; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.how-list li strong { color: var(--ink); }
.how-list li em { font-style: italic; }
.how-list li::before { counter-increment: how; content: counter(how); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-d); font-family: var(--serif); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* ---- footer -------------------------------------------------------- */
.footer { background: var(--ink); color: #aeb4ba; padding: 52px 0 44px; }
.footer-brand { font-weight: 700; font-size: 17px; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.footer-disc { font-size: 13px; line-height: 1.7; max-width: 760px; margin-bottom: 18px; }
.footer-disc strong { color: #e6e3dd; }
.footer-copy { font-size: 12.5px; color: #71777d; margin: 0; }
.footer-copy a { color: #c9cdd2; text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
