/* RangefinderInvest homepage pitch sections.
   Everything is namespaced (.hp, .hp-*) so it cannot collide with styles.css, which the header,
   the download section, the closing CTA, the footer and every sub-page still use.

   The typography and palette come from the approved concept (docs/rfi-pitch-2026-09-21/
   concept-v2.html): Newsreader for display, DM Sans for text, paper and teal. Both faces are
   self-hosted in fonts.css; nothing is requested from a third party. */

.hp{
  --paper:#faf9f5;--surface:#fff;--ink:#1c2c37;--body:#3b4b52;--muted:#56666c;
  --line:#d8dfda;--wash:#edf1eb;--teal:#244f52;--deep:#17383d;--gold:#947024;
  --soft:#97b0aa;--good:#1f7a4d;--bad:#a4442f;--cream:#f6f4eb;
  background:var(--paper);color:var(--body);
  font:16px/1.6 "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.hp *{box-sizing:border-box}
.hp .hp-wrap{width:min(1120px,calc(100% - 56px));margin:0 auto}
.hp h1,.hp h2,.hp h3{margin:0;color:var(--ink);font-family:Newsreader,Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.015em;line-height:1.1}
.hp h1{font-size:clamp(2.3rem,4.8vw,3.9rem)}
.hp h1 em,.hp h2 em{font-style:normal;color:var(--teal)}
.hp h2{font-size:clamp(1.8rem,3.2vw,2.6rem)}
.hp h3{font-size:1.35rem;line-height:1.22}
.hp p{margin:0}
.hp a{color:var(--teal)}
.hp figure{margin:0}
.hp img{display:block;width:100%;height:auto}
.hp button{font:inherit;cursor:pointer}
.hp :focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:4px}
.hp section{padding:88px 0}
.hp section.hp-tight{padding:60px 0}
.hp .hp-band{background:var(--wash);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.hp .hp-eyebrow{display:block;font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--teal)}
.hp .hp-lead{font-size:1.14rem;line-height:1.6;color:var(--ink);max-width:34em}
.hp .hp-small{font-size:.87rem;color:var(--muted)}
.hp .hp-fine{font-size:.78rem;color:var(--muted);margin-top:16px;max-width:92ch}
.hp .hp-h2{margin-top:10px}

/* ---------- buttons ---------- */
.hp .hp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 22px;border-radius:6px;font-weight:600;font-size:1rem;text-decoration:none;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.hp .hp-btn.hp-primary{background:var(--teal);border-color:var(--teal);color:#fff}
.hp .hp-btn.hp-primary:hover{background:var(--deep)}
.hp .hp-btn.hp-ghost:hover{border-color:var(--soft)}
.hp .hp-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* The sample switch, same shape as the Windows Store flip in styles.css:
   main[data-sample="pending"] hides every sample link and promotes Download;
   main[data-sample="live"]    shows them and hides the pending-only copy.
   home.css is loaded by index.html alone, so these selectors reach nothing else. */
main[data-sample="pending"] [data-sample-link]{display:none}
main[data-sample="live"] .hp-sample-pending{display:none}
main[data-sample="pending"] .hp-dl{background:var(--teal);border-color:var(--teal);color:#fff}
main[data-sample="pending"] .hp-dl:hover{background:var(--deep)}

/* ---------- hero ---------- */
.hp .hp-hero{padding:74px 0 62px}
.hp .hp-herogrid{display:grid;grid-template-columns:1.12fr 1fr;gap:54px;align-items:center}
.hp .hp-hero h1{margin-top:16px}
.hp .hp-hero .hp-lead{margin-top:22px}
.hp .hp-why{margin-top:18px;padding-left:16px;border-left:2px solid var(--gold);font-size:1rem;color:var(--muted);max-width:36em}
.hp .hp-why strong{color:var(--ink)}
.hp .hp-storeline{margin-top:14px}
.hp .hp-ticks{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:20px;font-size:.85rem;color:var(--muted)}
.hp .hp-ticks span::before{content:"✓ ";color:var(--teal);font-weight:700}
.hp .hp-sheet{background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:14px 14px 0 var(--wash);overflow:hidden}
.hp .hp-half{padding:22px 26px}
.hp .hp-half+.hp-half{border-top:1px solid var(--line)}
.hp .hp-sheet h3{font-size:1.5rem;margin-top:6px}
.hp .hp-orders{margin-top:14px;font-size:.92rem}
.hp .hp-orders div{display:grid;grid-template-columns:54px 1fr auto;gap:10px;padding:9px 0;border-top:1px solid var(--line)}
.hp .hp-act{font-size:.68rem;font-weight:700;letter-spacing:.1em;align-self:center;color:var(--muted)}
.hp .hp-act.hp-sell{color:var(--bad)}
.hp .hp-act.hp-buy{color:var(--good)}
.hp .hp-amt{font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.hp .hp-odds{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:12px}
.hp .hp-k{font-size:.8rem;color:var(--muted)}
.hp .hp-odds .hp-v{font-family:Newsreader,Georgia,serif;font-size:2.6rem;line-height:1.05;color:var(--ink)}
.hp .hp-odds .hp-v.hp-good{color:var(--good)}

/* ---------- the two examples ---------- */
.hp .hp-examples{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:40px}
.hp .hp-ex{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:30px;display:flex;flex-direction:column}
.hp .hp-num{font-family:Newsreader,Georgia,serif;color:var(--gold);font-size:1.05rem}
.hp .hp-ex h3{font-size:1.6rem;margin-top:4px}
.hp .hp-ex>p{margin-top:8px}
.hp .hp-seg{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.hp .hp-seg button{padding:9px 14px;border-radius:6px;border:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:.9rem;font-weight:500}
.hp .hp-seg button:hover{border-color:var(--soft)}
.hp .hp-seg button[aria-pressed=true]{background:var(--teal);border-color:var(--teal);color:#fff}
.hp .hp-acct{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}
.hp .hp-acct .hp-name{display:flex;justify-content:space-between;gap:12px;font-weight:600;font-size:.95rem;color:var(--ink)}
.hp .hp-acct .hp-name span{color:var(--muted);font-weight:500;text-align:right}
.hp .hp-bars{margin-top:10px;display:grid;gap:6px}
.hp .hp-barrow{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:10px;font-size:.74rem;color:var(--muted)}
.hp .hp-track{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--wash)}
.hp .hp-track i{display:block;height:100%;transition:width .35s}
.hp .hp-c1{background:var(--teal)}
.hp .hp-c2{background:var(--soft)}
.hp .hp-c3{background:#d6cfae}
.hp .hp-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:.74rem;color:var(--muted);margin-top:10px}
.hp .hp-legend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px}
.hp .hp-list{margin-top:12px;font-size:.92rem}
.hp .hp-list div{display:grid;grid-template-columns:54px 1fr auto;gap:10px;padding:8px 0;border-top:1px dashed var(--line)}
.hp .hp-list .hp-none{display:block;color:var(--muted);font-style:italic;padding:8px 0;border-top:1px dashed var(--line)}
.hp .hp-linkbtn{margin-top:18px;align-self:flex-start;background:none;border:0;padding:2px 0;color:var(--teal);font-weight:600;border-bottom:1px solid var(--soft)}
.hp .hp-house{margin-top:12px;font-size:.88rem;color:var(--ink)}
.hp .hp-result{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hp .hp-result .hp-v{font-family:Newsreader,Georgia,serif;font-size:2.9rem;line-height:1.05;color:var(--ink)}
.hp .hp-result .hp-v.hp-good{color:var(--good)}
.hp .hp-meter{height:10px;border-radius:5px;background:var(--wash);overflow:hidden;margin-top:18px}
.hp .hp-meter i{display:block;height:100%;background:var(--teal);transition:width .45s}
.hp .hp-verdict{margin-top:14px;font-size:.9rem;color:var(--ink)}
.hp .hp-ex .hp-fine{margin-top:auto;padding-top:18px}
.hp .hp-after{text-align:center;margin-top:36px}
.hp .hp-after p{margin-top:10px}

/* ---------- AI band ---------- */
.hp .hp-dark{background:var(--deep);color:#dfe8e5}
.hp .hp-dark h2,.hp .hp-dark h3{color:#fff}
.hp .hp-dark p{color:#b8c9c4}
.hp .hp-dark .hp-eyebrow{color:#e0c878}
.hp .hp-aigrid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.hp .hp-aigrid>div>p{margin-top:18px;font-size:1.04rem}
.hp .hp-bubble{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:12px 12px 12px 3px;padding:15px 18px;color:#fff;font-size:1rem;margin-top:12px}
.hp .hp-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px}
.hp .hp-rules div{border-top:1px solid rgba(255,255,255,.2);padding-top:14px}
.hp .hp-rules h3{font-size:1.08rem}
.hp .hp-rules p{font-size:.88rem;margin-top:6px}

/* ---------- product tour ---------- */
.hp .hp-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.hp .hp-tabs button{padding:10px 16px;border-radius:6px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:.9rem;font-weight:500}
.hp .hp-tabs button:hover{border-color:var(--soft)}
.hp .hp-tabs button[aria-selected=true]{background:var(--teal);border-color:var(--teal);color:#fff}
.hp .hp-panel{display:grid;grid-template-columns:4fr 7fr;gap:44px;align-items:start;margin-top:30px}
.hp .hp-panel h3{font-size:1.7rem}
.hp .hp-panel>div>p{margin-top:12px}
.hp .hp-panel ul{list-style:none;margin:18px 0 0;padding:0;font-size:.95rem}
.hp .hp-panel li{padding:9px 0 9px 22px;border-top:1px solid var(--line);position:relative;color:var(--ink)}
.hp .hp-panel li::before{content:"↗";position:absolute;left:0;color:var(--gold)}
.hp .hp-shot{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);box-shadow:0 18px 40px -28px rgba(23,56,61,.55)}
.hp .hp-shot figcaption{font-size:.76rem;color:var(--muted);padding:9px 14px;border-top:1px solid var(--line)}
/* A capture that stands on its own rather than sitting in a column's figure slot. */
.hp .hp-shot-wide{margin-top:26px}
/* Two captures that are one argument, stacked. In a tour panel it is also what
   keeps them in one grid cell — a panel is a 4fr/7fr grid, so a second <figure>
   as a direct child would become a third column. */
.hp .hp-shots{display:grid;gap:18px}
/* Two captures side by side under a full-width section. */
.hp .hp-shots-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:30px}
/* Captures that only read at the full wrap width, with the note that
   introduces them. Dropped below the single-column breakpoint; see the
   comment at the markup in #details. */
.hp .hp-wideshots{display:block}
/* Without JavaScript every panel is on the page and the tab strip is pointless,
   so it is hidden; the html.js class is set in <head>, so there is no flash. */
.js .hp-panel:not(.hp-on){display:none}
html:not(.js) .hp-tabs{display:none}

/* ---------- the questions it answers ---------- */
.hp .hp-qa{display:grid;grid-template-columns:1fr 1fr;gap:0 56px;margin-top:34px}
.hp .hp-qa h3.hp-col{font-family:"DM Sans",system-ui,sans-serif;font-size:.78rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);padding-bottom:10px;border-bottom:2px solid var(--ink)}
.hp .hp-qa ul{list-style:none;margin:0;padding:0}
.hp .hp-qa li{padding:14px 0;border-bottom:1px solid var(--line)}
.hp .hp-qa li b{display:block;font-family:Newsreader,Georgia,serif;font-weight:400;font-size:1.28rem;line-height:1.25;color:var(--ink)}
.hp .hp-qa li span{display:block;font-size:.92rem;color:var(--muted);margin-top:3px}
.hp .hp-moreqs{display:grid;grid-template-columns:1fr 1fr;gap:0 44px}
.hp .hp-moreqs>div{padding:14px 0;border-top:1px solid var(--line)}
.hp .hp-moreqs h3{font-family:"DM Sans",system-ui,sans-serif;font-size:.98rem;font-weight:600}
.hp .hp-moreqs p{margin-top:5px;font-size:.9rem}

/* ---------- ownership ---------- */
.hp .hp-four{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;margin-top:36px}
.hp .hp-four div{border-top:1px solid var(--line);padding-top:16px}
.hp .hp-four h3{font-size:1.18rem}
.hp .hp-four p{font-size:.92rem;margin-top:8px}

/* ---------- price ---------- */
.hp .hp-price{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:start}
.hp .hp-anchor{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px;max-width:470px}
.hp .hp-anchor div{border:1px solid var(--line);border-radius:8px;padding:14px 16px;background:var(--surface)}
.hp .hp-anchor .hp-v{font-family:Newsreader,Georgia,serif;font-size:1.9rem;line-height:1.1;color:var(--ink)}
.hp .hp-anchor .hp-v small{display:block;font:500 .8rem "DM Sans",system-ui,sans-serif;color:var(--muted)}
.hp .hp-anchor .hp-us2{border-color:var(--teal);background:var(--wash)}
.hp .hp-card{background:var(--surface);border:1px solid var(--ink);border-radius:10px;padding:30px}
.hp .hp-amount{font-family:Newsreader,Georgia,serif;font-size:4.2rem;line-height:1;color:var(--ink)}
.hp .hp-amount small{font:500 .95rem "DM Sans",system-ui,sans-serif;color:var(--muted);margin-left:8px}
.hp .hp-card ul{list-style:none;margin:18px 0 24px;padding:0;font-size:.95rem}
.hp .hp-card li{padding:6px 0 6px 22px;position:relative}
.hp .hp-card li::before{content:"✓";position:absolute;left:0;color:var(--teal);font-weight:700}
.hp .hp-card .hp-btn{width:100%}
.hp .hp-card .hp-btn+.hp-btn{margin-top:10px}
.hp .hp-us{margin-top:12px;font-size:.82rem;color:var(--muted);text-align:center}

/* ---------- details ---------- */
.hp details{border-top:1px solid var(--line);padding:16px 0}
.hp details:last-of-type{border-bottom:1px solid var(--line)}
.hp summary{font-weight:600;color:var(--ink);list-style:none;cursor:pointer}
.hp summary::-webkit-details-marker{display:none}
.hp summary::after{content:"+";float:right;color:var(--muted)}
.hp details[open]>summary::after{content:"\2212"}
.hp details>p{margin-top:10px;font-size:.95rem;max-width:80ch}
.hp .hp-dec{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}
.hp .hp-dec>div{border:1px solid var(--line);border-radius:8px;padding:20px;background:var(--surface)}
.hp .hp-who{font-size:.8rem;color:var(--muted);margin-top:4px}
.hp table{width:100%;border-collapse:collapse;margin-top:12px;font-size:.9rem}
.hp th,.hp td{text-align:right;padding:9px 0;border-top:1px solid var(--line);font-variant-numeric:tabular-nums;color:var(--ink)}
.hp th:first-child,.hp td:first-child{text-align:left;color:var(--muted);font-weight:500}
.hp thead th{border-top:0;font-size:.76rem;color:var(--muted);font-weight:600}
.hp .hp-takeaway{margin-top:14px;padding:12px 14px;background:var(--cream);border-radius:8px;font-size:.88rem;color:#5b4210}
.hp .hp-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:14px}
.hp .hp-tile{border:1px solid var(--line);border-radius:8px;padding:20px;background:var(--surface)}
.hp .hp-tile p{font-size:.9rem;margin-top:8px}
.hp .hp-links6{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}
.hp .hp-links6 a{display:block;padding:15px 18px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-weight:600;text-decoration:none;color:var(--ink)}
.hp .hp-links6 a:hover{border-color:var(--soft)}

.hp [id]{scroll-margin-top:84px}

@media (max-width:900px){
  .hp .hp-wrap{width:calc(100% - 36px)}
  .hp section{padding:56px 0}
  .hp .hp-hero{padding:44px 0}
  .hp .hp-herogrid,.hp .hp-examples,.hp .hp-aigrid,.hp .hp-panel,.hp .hp-qa,.hp .hp-price,.hp .hp-dec,.hp .hp-moreqs,.hp .hp-links6,.hp .hp-grid3,.hp .hp-anchor,.hp .hp-shots-2{grid-template-columns:1fr}
  .hp .hp-herogrid{gap:34px}
  .hp .hp-four,.hp .hp-rules{grid-template-columns:1fr 1fr}
  .hp .hp-qa{gap:28px}
  .hp .hp-sheet{box-shadow:8px 8px 0 var(--wash)}
  .hp .hp-ex{padding:24px}
  .hp .hp-result{gap:12px}
  .hp .hp-result .hp-v{font-size:2.4rem}
  .hp .hp-wideshots{display:none}
}
@media (max-width:560px){
  .hp .hp-four,.hp .hp-rules{grid-template-columns:1fr}
  .hp .hp-odds{grid-template-columns:1fr;gap:12px}
}
