
  :root {
    --bg: #0d0b1a; --ink: #ffffff; --muted: rgba(255,255,255,.55); --faint: rgba(255,255,255,.35);
    --card: rgba(255,255,255,.035); --card2: rgba(255,255,255,.055); --line: rgba(196,181,253,.12); --line2: rgba(196,181,253,.22);
    --c1: #8b5cf6; --c2: #ec4899; --teal: #c4b5fd; --tagbg: rgba(139,92,246,.18); --glow: rgba(139,92,246,.16); --grad: linear-gradient(90deg, var(--c1), var(--c2));
    --under: #34d399; --under-bg: rgba(52,211,153,.10); --fair: #fbbf24; --fair-bg: rgba(251,191,36,.09);
    --over: #f87171; --over-bg: rgba(248,113,113,.10); --pos: #34d399; --neg: #f87171;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font: 16px/1.6 "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
  a { color: inherit; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
  .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal);
         background: var(--tagbg); padding: 4px 10px; border-radius: 20px; margin-bottom: 14px; }

  /* nav */
  nav { position: sticky; top: 0; z-index: 20; background: rgba(13,11,26,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
  .brand { font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
  .brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-top: -3px; }
  .links a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 22px; }
  .links a:hover { color: var(--ink); }
  .links a.cta { color: #fff; background: var(--grad); padding: 8px 14px; border-radius: 8px; font-weight: 600; }

  /* hero + form */
  .hero { padding: 72px 0 26px; }
  .hero h1 { font-size: 64px; line-height: 1.04; margin: 0 0 16px; letter-spacing: -.03em; font-weight: 700; }
  .hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 640px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 18px; }
  form { display: grid; grid-template-columns: 2.3fr 1fr 1.3fr 1fr auto; gap: 12px; align-items: end; }
  label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
  input, select { width: 100%; padding: 12px 13px; font: inherit; font-size: 15px; color: var(--ink); background: rgba(255,255,255,.04);
                  border: 1px solid var(--line2); border-radius: 10px; }
  select option { color: #111; }
  input::placeholder { color: var(--faint); }
  input:focus, select:focus { outline: 2px solid rgba(139,92,246,.5); border-color: var(--c1); }
  button { padding: 12px 22px; font: inherit; font-weight: 700; color: #fff; background: var(--grad); border: 0; border-radius: 10px; cursor: pointer; height: 47px; }
  button:disabled { opacity: .6; cursor: wait; }
  .hint { font-size: 13px; color: var(--faint); margin-top: 12px; }
  .field { position: relative; }
  .sugg { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: #17142b; border: 1px solid var(--line2); border-radius: 10px; margin-top: 4px;
          box-shadow: 0 12px 30px rgba(0,0,0,.5); display: none; overflow: hidden; }
  .sugg div { padding: 9px 12px; cursor: pointer; font-size: 14px; color: rgba(255,255,255,.85); }
  .sugg div:hover, .sugg div.on { background: rgba(139,92,246,.18); }
  .err { color: var(--over); margin-top: 14px; }
  .hidden { display: none; }
  .stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
  .stats div b { display: block; font-size: 28px; font-weight: 700; }
  .stats div span { font-size: 13px; color: var(--muted); }

  /* results */
  #out { padding-bottom: 10px; scroll-margin-top: 80px; }
  .hero { scroll-margin-top: 62px; }
  .top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
  .kicker { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
  .big { font-size: 52px; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 2px; line-height: 1.1; }
  .sub { color: var(--muted); }
  .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
  .chip { font-size: 12.5px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: rgba(255,255,255,.8); }
  .verdict { border-radius: 14px; padding: 20px; border: 1px solid var(--line); }
  .verdict.under { background: var(--under-bg); border-color: rgba(52,211,153,.3); } .verdict.fair { background: var(--fair-bg); border-color: rgba(251,191,36,.28); }
  .verdict.over { background: var(--over-bg); border-color: rgba(248,113,113,.3); } .verdict.none { background: var(--card2); }
  .vlabel { font-size: 30px; font-weight: 700; margin: 2px 0 6px; letter-spacing: -.02em; }
  .under .vlabel { color: var(--under); } .fair .vlabel { color: var(--fair); } .over .vlabel { color: var(--over); }
  .scale { position: relative; height: 34px; margin: 16px 0 4px; }
  .scale .track { position: absolute; top: 14px; left: 0; right: 0; height: 6px; border-radius: 3px;
                  background: linear-gradient(90deg, rgba(52,211,153,.6), rgba(251,191,36,.55) 30%, rgba(251,191,36,.55) 70%, rgba(248,113,113,.6)); }
  .scale .mk { position: absolute; top: 4px; width: 2px; height: 26px; background: #fff; }
  .scale .mk span { position: absolute; top: -18px; transform: translateX(-50%); font-size: 11.5px; white-space: nowrap; font-weight: 600; }
  .scale .mk.g { background: var(--teal); } .scale .mk.g span { color: var(--teal); top: 28px; }
  .note { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 10px; border-left: 3px solid var(--fair); padding-left: 10px; }
  h2 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.02em; }
  .lead2 { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
  table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
  th { text-align: left; font-size: 11.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 8px; border-bottom: 1px solid var(--line); }
  td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  td.r, th.r { text-align: right; }
  tr.self td { background: rgba(139,92,246,.10); }
  .grp td { background: rgba(255,255,255,.025); font-weight: 600; font-size: 11.5px; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
  table.ft td { vertical-align: top; border-bottom: 0; padding-top: 14px; }
  table.ft tr.fw td { padding-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
  table.ft .fl { font-weight: 600; white-space: nowrap; }
  table.ft td.amt { font-size: 17px; font-weight: 700; white-space: nowrap; }
  .pos { color: var(--pos); } .neg { color: var(--neg); } .mut { color: var(--faint); }
  .implied { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
  .stat { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .stat b { display: block; font-size: 22px; }
  .stat span { font-size: 13px; color: var(--muted); }
  footer.result-foot { font-size: 12.5px; color: var(--faint); margin-top: 16px; }

  /* explainer sections */
  section.feat { padding: 70px 0 10px; }
  section.feat h2 { font-size: 40px; margin-bottom: 10px; }
  section.feat p.sl { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 0 28px; }
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .fcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
  .fcard h3 { margin: 0 0 6px; font-size: 20px; }
  .fcard p { margin: 0; color: var(--muted); font-size: 15px; }
  .fcard .num { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
  .bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
  .bands div { border-radius: 10px; padding: 12px; font-size: 13px; color: rgba(255,255,255,.8); border: 1px solid var(--line); }
  .bands b { display: block; font-size: 14px; margin-bottom: 2px; }
  .cta-box { text-align: center; padding: 64px 22px; margin: 70px 0 0; border-radius: 20px; border: 1px solid var(--line);
             background: radial-gradient(ellipse at top, var(--glow), transparent 60%), var(--card); }
  .cta-box h2 { font-size: 40px; }
  .cta-box a { display: inline-block; margin-top: 18px; text-decoration: none; color: #fff; background: var(--grad); padding: 13px 22px; border-radius: 10px; font-weight: 700; }
  .site-foot { color: var(--faint); font-size: 13px; padding: 40px 0 50px; border-top: 1px solid var(--line); margin-top: 70px; }
  .site-foot p { margin: 6px 0; }
  .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: s .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
  @keyframes s { to { transform: rotate(360deg); } }

  /* embed mode (inside a WordPress page) */
  html.embed body { background: transparent; } html.embed nav, html.embed .hero h1, html.embed .hero p.lead, html.embed .stats,
  html.embed section.feat, html.embed .cta-box, html.embed .site-foot { display: none; } html.embed .hero { padding: 0; }

  @media (max-width: 820px) {
    .hero { padding-top: 44px; } .hero h1 { font-size: 42px; } section.feat h2, .cta-box h2 { font-size: 30px; }
    form { grid-template-columns: 1fr 1fr; } form .addr { grid-column: 1 / -1; } form button { grid-column: 1 / -1; }
    .top, .grid, .implied { grid-template-columns: 1fr; } .bands { grid-template-columns: 1fr 1fr; }
    .big { font-size: 40px; } .links a:not(.cta) { display: none; } .links a.cta { padding: 7px 11px; font-size: 13px; } .brand { font-size: 15px; }
    table.ft, table.ft tbody, table.ft tr, table.ft td { display: block; } table.ft tr:first-child { display: none; }
    table.ft tr.fr { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding-top: 12px; }
    table.ft tr.fr td { padding: 0; } table.ft tr.fr td.fl { grid-column: 1; } table.ft tr.fr td.amt { grid-column: 2; grid-row: 1; text-align: right; }
    table.ft tr.fr td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: rgba(255,255,255,.85); font-size: 14px; margin-top: 4px; }
    table.ft tr.fw td:first-child { display: none; } table.ft tr.fw td { padding: 6px 0 12px; }
    #comps { min-width: 560px; }
  }

  /* soft glow behind the hero */
  body { background: radial-gradient(900px 500px at 15% -10%, rgba(139,92,246,.18), transparent 60%), radial-gradient(700px 400px at 95% 0%, rgba(236,72,153,.10), transparent 60%), var(--bg); background-repeat: no-repeat; }
  html.embed body { background: transparent; }
  .links a.on { color: var(--ink); }
  .more { display: inline-block; margin-top: 22px; color: var(--teal); text-decoration: none; font-weight: 600; }
  .more:hover { text-decoration: underline; }

  /* method page */
  .doc { max-width: 820px; }
  .doc .hero { padding-bottom: 10px; }
  .doc h2 { font-size: 32px; margin: 0 0 10px; }
  .doc h3 { font-size: 19px; margin: 26px 0 6px; }
  .doc p, .doc li { color: rgba(255,255,255,.78); font-size: 16.5px; }
  .doc li { margin: 6px 0; }
  .doc section { padding: 46px 0 6px; scroll-margin-top: 70px; }
  .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .toc a { font-size: 14px; text-decoration: none; color: rgba(255,255,255,.85); border: 1px solid var(--line2); padding: 6px 12px; border-radius: 99px; }
  .toc a:hover { background: var(--tagbg); }
  .step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; margin: 18px 0; }
  .step .n { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; }
  .step h3 { margin: 4px 0 4px; }
  .step p { margin: 0; }
  .eg { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; font-size: 15px; color: rgba(255,255,255,.82); }
  .eg b { color: #fff; }
  table.data { margin: 10px 0 6px; }
  table.data td, table.data th { padding: 9px 10px; }
  .chart { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; }
  .chart svg { width: 100%; height: auto; display: block; }
  .bar-row { display: grid; grid-template-columns: 210px 1fr 54px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14.5px; }
  .bar-row .b { height: 10px; border-radius: 5px; background: var(--grad); }
  .bar-row .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
  @media (max-width: 820px) { .bar-row { grid-template-columns: 130px 1fr 46px; } .doc h2 { font-size: 26px; } }
