.prorate-page {

    &{
      --page:#f5f5f7;
      --surface:#ffffff;
      --surface-2:#fbfbfd;
      --ink:#10203a;
      --muted:#687387;
      --muted-2:#6f7a89;
      --line:#e2e6ec;
      --line-strong:#d5dbe4;
      --blue:#0a73e8;
      --blue-hover:#0065d1;
      --blue-soft:#eef6ff;
      --green:#16845b;
      --green-soft:#effaf5;
      --shadow:0 18px 52px rgba(17,32,56,.075),0 2px 7px rgba(17,32,56,.03);
      --shadow-soft:0 6px 20px rgba(17,32,56,.045);
      --radius-xl:30px;
      --radius-lg:22px;
      --radius-md:15px;
      --max:1100px;
    }
    *{box-sizing:border-box}
    
    &{
      margin:0;
      background:var(--page);
      color:var(--ink);
      font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
      -webkit-font-smoothing:antialiased;
      text-rendering:optimizeLegibility;
    }
    button,input,select{font:inherit}
    button{touch-action:manipulation}
    a{color:inherit}
    :focus-visible{outline:3px solid rgba(10,115,232,.25);outline-offset:2px}

    .topbar{
      height:60px;
      position:sticky;
      top:0;
      z-index:30;
      background:rgba(250,250,252,.78);
      border-bottom:1px solid rgba(16,32,58,.07);
      backdrop-filter:saturate(180%) blur(22px);
      -webkit-backdrop-filter:saturate(180%) blur(22px);
    }
    .topbar__inner{
      max-width:var(--max);
      height:100%;
      padding:0 22px;
      margin:0 auto;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
    }
    .brand{text-decoration:none;display:flex;align-items:flex-end;gap:7px;color:#166da8}
    .brand__name{font-size:21px;font-weight:800;letter-spacing:-.045em;line-height:1}
    .brand__sub{font-size:8px;line-height:1.15;font-weight:760;letter-spacing:.08em;color:#7890a6;text-transform:uppercase;margin-bottom:1px}
    .topbar__back{font-size:13px;font-weight:650;color:#5d697a;text-decoration:none}
    .topbar__back:hover{color:var(--ink)}

    &{padding:34px 22px 70px}
    .shell{max-width:var(--max);margin:0 auto}

    .hero{
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      align-items:end;
      gap:28px;
      margin:0 0 18px;
    }
    .hero__copy{max-width:760px}
    .breadcrumb{margin:0 0 12px;font-size:12px;font-weight:680;color:#7b8798}
    .breadcrumb a{text-decoration:none}.breadcrumb a:hover{text-decoration:underline}
    h1{
      margin:0;
      max-width:820px;
      font-size:clamp(38px,5vw,54px);
      line-height:1.01;
      letter-spacing:-.055em;
      font-weight:805;
    }
    .hero__lead{
      margin:11px 0 0;
      max-width:690px;
      color:var(--muted);
      font-size:17px;
      line-height:1.5;
      letter-spacing:-.01em;
    }
    .hero__badge{
      margin-bottom:4px;
      display:inline-flex;
      align-items:center;
      gap:7px;
      white-space:nowrap;
      color:#536174;
      font-size:12px;
      font-weight:700;
    }
    .hero__badge:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(22,132,91,.09)}
    .plainMeaning{
      margin-top:12px;max-width:720px;padding:10px 12px;
      border-radius:12px;background:rgba(255,255,255,.62);border:1px solid rgba(16,32,58,.07);
      color:#536176;font-size:13px;line-height:1.5;
    }
    .plainMeaning strong{color:#27384f}

    .calculator{
      position:relative;
      overflow:hidden;
      background:rgba(255,255,255,.96);
      border:1px solid rgba(16,32,58,.075);
      border-radius:var(--radius-xl);
      box-shadow:var(--shadow);
    }
    .calculator__bar{
      padding:18px 22px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      border-bottom:1px solid var(--line);
      background:rgba(255,255,255,.72);
    }
    .calculator__title{display:flex;align-items:center;gap:11px;min-width:0}
    .calculator__titleIcon{
      width:34px;height:34px;border-radius:11px;
      display:grid;place-items:center;
      color:var(--blue);background:var(--blue-soft);
      flex:0 0 auto;
    }
    .calculator__titleIcon svg{width:18px;height:18px}
    .calculator__title h2{margin:0;font-size:17px;line-height:1.15;letter-spacing:-.02em}
    .calculator__title p{margin:3px 0 0;color:var(--muted-2);font-size:12px;line-height:1.35}
    .privacy{
      display:inline-flex;align-items:center;gap:7px;
      color:#5c697b;font-size:12px;font-weight:680;white-space:nowrap;
    }
    .privacy svg{width:14px;height:14px}

    .calculator__body{
      display:grid;
      grid-template-columns:minmax(0,1.02fr) minmax(390px,.98fr);
      min-height:510px;
    }
    .formPane{padding:30px 30px 28px;border-right:1px solid var(--line)}
    .resultPane{
      position:relative;
      padding:30px;
      background:linear-gradient(145deg,#f9fbff 0%,#f5f8fc 58%,#f7f8fa 100%);
      display:flex;
      flex-direction:column;
      min-width:0;
    }
    .resultPane:after{
      content:"";position:absolute;inset:0;pointer-events:none;
      box-shadow:inset 0 1px rgba(255,255,255,.7);
    }

    .field{margin:0 0 20px}
    .field__label,.field label{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin:0 0 8px;
      color:#344258;
      font-size:13px;
      font-weight:710;
    }
    .field__hint{font-size:12px;font-weight:590;color:#687486}
    input[type="number"],input[type="date"],select{
      width:100%;height:54px;
      border:1px solid var(--line-strong);
      background:#fff;
      color:var(--ink);
      border-radius:14px;
      padding:0 14px;
      outline:none;
      box-shadow:0 1px 1px rgba(13,27,47,.02);
      transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
    }
    input:hover,select:hover{border-color:#c8d0db}
    input:focus,select:focus{border-color:#75aef1;box-shadow:0 0 0 4px rgba(10,115,232,.10)}
    .amountWrap{position:relative}
    .amountWrap__symbol{
      position:absolute;left:15px;top:50%;transform:translateY(-50%);
      pointer-events:none;color:#344258;font-size:19px;font-weight:770;
    }
    .amountWrap input{padding-left:48px;font-size:21px;font-weight:760;letter-spacing:-.025em}
    .twoCol{display:grid;grid-template-columns:.8fr 1.2fr;gap:14px}

    .segmented{
      display:grid;grid-template-columns:1fr 1fr;gap:4px;
      min-height:54px;padding:4px;
      border-radius:14px;background:#eef1f5;
    }
    .segmented button{
      border:0;border-radius:11px;background:transparent;color:#697486;
      font-weight:720;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease;
    }
    .segmented button:hover{color:#36455a}
    .segmented button.is-active{background:#fff;color:var(--ink);box-shadow:0 2px 9px rgba(19,35,57,.10)}

    .dateHelper{margin:-10px 0 20px;color:#667386;font-size:12px;line-height:1.45}
    .exitOption{display:none;margin:-4px 0 20px}
    .exitOption.show{display:block}
    .checkRow{
      display:flex;align-items:center;gap:10px;
      margin:0;padding:12px 14px;
      border:1px solid var(--line);border-radius:13px;background:#f8f9fb;
      color:#455268;font-size:12px;font-weight:600;
    }
    .checkRow input{width:18px;height:18px;accent-color:var(--blue);margin:0}
    .checkHelp{margin:7px 0 0 14px;color:var(--muted);font-size:12.5px;line-height:1.45}

    .error{
      display:none;margin:-8px 0 16px;padding:10px 12px;
      color:#9a3030;background:#fff4f4;border:1px solid #f0cece;border-radius:12px;
      font-size:12px;line-height:1.4;
    }
    .error.show{display:block}

    .primary{
      width:100%;height:54px;border:0;border-radius:14px;
      background:var(--blue);color:#fff;font-weight:760;cursor:pointer;
      box-shadow:0 10px 24px rgba(10,115,232,.22);
      transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
    }
    .primary:hover{background:var(--blue-hover);transform:translateY(-1px);box-shadow:0 12px 26px rgba(10,115,232,.25)}
    .primary:active{transform:translateY(0)}
    .formNote{
      display:flex;align-items:flex-start;gap:7px;
      margin:12px 2px 0;color:#667386;font-size:12px;line-height:1.45;
    }
    .formNote svg{width:14px;height:14px;flex:0 0 auto;margin-top:1px}
    .formNote a{color:var(--blue);font-weight:680;text-decoration:none}.formNote a:hover{text-decoration:underline}

    .resultEyebrow{
      display:flex;align-items:center;justify-content:space-between;gap:14px;
      position:relative;z-index:1;
      color:#607087;font-size:12px;font-weight:760;text-transform:uppercase;letter-spacing:.08em;
      margin-bottom:16px;
    }
    .resultEyebrow__status{display:inline-flex;align-items:center;gap:6px;text-transform:none;letter-spacing:0;font-weight:650;color:#68778a}
    .resultEyebrow__status:before{content:"";width:6px;height:6px;border-radius:50%;background:#a8b1bf}
    .resultEyebrow__status.is-ready{color:var(--green)}
    .resultEyebrow__status.is-ready:before{background:var(--green)}
    .resultEyebrow__status.is-stale{color:#8a6415}
    .resultEyebrow__status.is-stale:before{background:#c98d18}

    .emptyState{
      position:relative;z-index:1;
      flex:1;display:flex;flex-direction:column;justify-content:center;
      padding:12px 0 18px;
    }
    .emptyIcon{
      width:58px;height:58px;border-radius:19px;
      display:grid;place-items:center;
      margin-bottom:18px;color:#56789f;
      background:rgba(255,255,255,.8);border:1px solid #dfe6ef;
    }
    .emptyIcon svg{width:27px;height:27px}
    .emptyState strong{max-width:340px;font-size:27px;line-height:1.07;letter-spacing:-.04em}
    .emptyState p{max-width:360px;margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
    .ghostFormula{
      margin-top:20px;max-width:360px;
      display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:7px;
      color:#778394;font-size:12px;font-weight:680;
    }
    .ghostFormula span:nth-child(odd){height:34px;border-radius:10px;background:rgba(255,255,255,.58);border:1px solid rgba(211,220,231,.82);display:grid;place-items:center}

    .resultCard{display:none;position:relative;z-index:1;flex:1;flex-direction:column}
    .resultCard.show{display:flex}.emptyState.hide{display:none}
    .resultKicker{margin:4px 0 7px;color:#536b88;font-size:13px;font-weight:690}
    .resultAmount{
      margin:0 0 10px;
      color:#113a68;
      font-size:clamp(44px,5vw,63px);
      line-height:.98;letter-spacing:-.06em;font-weight:820;
      overflow-wrap:anywhere;
    }
    .resultSummary{margin:0 0 20px;font-size:17px;line-height:1.35;font-weight:680;letter-spacing:-.018em;color:#304159}
    .resultMeta{display:grid;grid-template-columns:1.35fr .65fr;gap:10px;margin-bottom:10px}
    .metaCard{
      min-width:0;padding:13px 14px;
      background:rgba(255,255,255,.74);border:1px solid #dde5ef;border-radius:15px;
    }
    .metaCard span{display:block;margin-bottom:5px;color:#657386;font-size:11px;font-weight:760;letter-spacing:.055em;text-transform:uppercase}
    .metaCard strong{display:block;color:#2b3b52;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
    .formula{
      padding:14px 15px;
      background:rgba(255,255,255,.74);border:1px solid #dde5ef;border-radius:15px;
      color:#536176;font-size:13px;line-height:1.55;
    }
    .formula strong{color:#24354d}
    .formula__label{margin-bottom:8px;color:#657386;font-size:11px;font-weight:760;letter-spacing:.055em;text-transform:uppercase}
    .formula__row{display:flex;justify-content:space-between;gap:14px;padding:4px 0}
    .formula__row span:first-child{color:#657386}
    .formula__row strong{text-align:right}
    .formula__result{margin-top:7px;padding-top:9px;border-top:1px solid #e3e8ef;font-weight:760;color:#24354d}
    .criterion{display:flex;align-items:flex-start;gap:8px;margin:12px 2px 0;color:#5e6d81;font-size:12px;line-height:1.45}
    .criterion svg{width:14px;height:14px;flex:0 0 auto;margin-top:1px;color:var(--green)}
    .resultActions{display:flex;gap:8px;margin-top:auto;padding-top:18px}
    .secondary{
      min-height:42px;border-radius:12px;padding:0 14px;
      border:1px solid #d9e1eb;background:rgba(255,255,255,.72);color:#3d4d64;
      font-size:13px;font-weight:710;cursor:pointer;
      transition:background .18s ease,border-color .18s ease;
    }
    .secondary:hover{background:#fff;border-color:#cbd5e1}
    .copyState{align-self:center;color:var(--green);font-size:12px;font-weight:670;visibility:hidden;opacity:0;transition:opacity .18s ease}
    .copyState.show{visibility:visible;opacity:1}

    .below{padding-top:22px}

    .contentHeading{margin:0 0 12px;padding:0 2px}
    .contentHeading h2{margin:0;font-size:22px;line-height:1.15;letter-spacing:-.03em}
    .contentHeading p{margin:6px 0 0;max-width:760px;color:var(--muted);font-size:13px;line-height:1.55}
    .methodBox{
      margin-bottom:14px;padding:18px;
      background:#fff;border:1px solid rgba(16,32,58,.075);border-radius:18px;
    }
    .methodBox__eyebrow{margin:0 0 6px;color:#607087;font-size:11px;font-weight:760;letter-spacing:.07em;text-transform:uppercase}
    .methodBox h2{margin:0;font-size:19px;line-height:1.2;letter-spacing:-.025em}
    .methodBox p{margin:8px 0 0;max-width:880px;color:var(--muted);font-size:13px;line-height:1.62}
    .methodBox a{color:var(--blue);font-weight:680;text-decoration:none}
    .methodBox a:hover{text-decoration:underline}
    .reviewed{margin-top:9px!important;color:#59687b!important;font-size:11.5px!important}

    .details{
      background:var(--surface);border:1px solid rgba(16,32,58,.075);border-radius:18px;overflow:hidden;
    }
    .details details+details{border-top:1px solid var(--line)}
    .details summary{
      list-style:none;cursor:pointer;padding:16px 18px;
      display:flex;align-items:center;justify-content:space-between;gap:18px;
      font-size:13px;font-weight:700;
    }
    .details summary::-webkit-details-marker{display:none}
    .details summary:after{content:"+";color:#7e8998;font-size:19px;font-weight:400;line-height:1}
    .details details[open] summary:after{content:"–"}
    .details p{margin:0;padding:0 18px 17px;max-width:880px;color:var(--muted);font-size:13px;line-height:1.58}

    .related{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
    .related a{
      min-height:58px;padding:0 17px;
      display:flex;align-items:center;justify-content:space-between;gap:16px;
      background:#fff;border:1px solid rgba(16,32,58,.075);border-radius:16px;
      text-decoration:none;font-size:13px;font-weight:700;
    }
    .related a:hover{border-color:#cfd7e2;box-shadow:var(--shadow-soft)}
    .related span{font-size:18px;color:var(--blue)}
    .footnote{padding-top:28px;text-align:center;color:#687486;font-size:12px}

    @media (max-width:900px){
      &{padding:26px 16px 54px}
      .topbar__inner{padding:0 16px}
      .hero{grid-template-columns:1fr;margin-bottom:16px;gap:12px}.hero__badge{display:inline-flex;justify-self:start;margin:0}
      .calculator__body{grid-template-columns:1fr}.formPane{border-right:0;border-bottom:1px solid var(--line);padding:24px 20px}.resultPane{padding:24px 20px;min-height:300px;scroll-margin-top:76px}
    }
    @media (max-width:600px){
      .topbar{height:56px}.topbar__back{font-size:12px}
      .brand__sub{display:none}
      h1{font-size:33px;line-height:1.03}
      .hero__lead{font-size:15px;line-height:1.45}
      .plainMeaning{font-size:12.5px;margin-top:10px}
      .calculator{border-radius:22px}
      .calculator__bar{padding:15px 17px;align-items:flex-start}.calculator__title p{display:none}.privacy{display:none}
      .twoCol{grid-template-columns:1fr}.formPane{padding:22px 17px 20px}.resultPane{padding:22px 17px;min-height:275px;scroll-margin-top:70px}
      .resultMeta{grid-template-columns:1fr}.resultAmount{font-size:46px}
      .related{grid-template-columns:1fr}
    }
    @media (prefers-reduced-motion:reduce){
      *,*:before,*:after{scroll-behavior:auto!important;transition:none!important}
    }
  
}
.prorate-page .related { margin:18px 0 0; }

.prorate-page .resultAmount { overflow-wrap:anywhere; }

.prorate-page .primary:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.prorate-page .formula__note { margin:10px 0 0; font-size:12px; color:#536176; }
