/* ==========================================================================
   HOME (draft), second version. Loaded after home_product-1-1.css and
   home_product-1-2.css, which carry the site chrome (tokens, header, footer,
   network section, booking dialog). This file holds the page's type, the
   section rhythm, the "What we solve" stepper with its four figures, the AI
   swap and the start rail. home_v4.css holds the hero figure and the two
   start figures; home_v5.css holds the hero text, Results, Sky Guides and
   Getting started.

   Type contract, identical to the Services page:
     section h2  Space Grotesk 600, var(--fs-h2), -.03em, 1.04, ink
     h3          Space Grotesk 600, var(--fs-h3), -.015em, 1.2, ink
     lead        Poppins 400, var(--fs-lead), 1.45, ink
   Text is ink or brand blue. A box is white with a dark blue border
   (walkthrough of 21 Nov 2026): no gray or tinted fill and no line down one
   side. The one light fill, --v5-select from site_v5.css, marks a selected
   state and carries blue text.
   ========================================================================== */
:root{
  --ink:#0E2A42; --ink-3:#0E2A42; --brand:#004C97; --sky:#0096D6;
}

.admin-bar{ flex-wrap:wrap; }
.admin-bar .admin-bar-links{ gap:4px 14px; flex-wrap:wrap; }

/* ---------- type ---------- */
.hv-sec h2, .duo .ph-h2{
  font-size:var(--fs-h2); font-weight:600; letter-spacing:-.03em; line-height:1.04; color:var(--ink);
}
.hv-sec h3{ font-size:var(--fs-h3); font-weight:600; letter-spacing:-.015em; line-height:1.2; color:var(--ink); }
.hv-sec p, .hv-sec li{ color:var(--ink); }
.hv-sub{ margin-top:12px; font-family:var(--f-body); font-weight:400; font-size:var(--fs-lead); line-height:1.45; color:var(--ink); }

/* ---------- section rhythm ---------- */
.hv-sec{ padding-block:0; padding-top:clamp(56px,7vw,104px); }
.hv-hero{ padding-top:clamp(32px,4vw,56px); }
.duo .ph-h2{ margin-bottom:clamp(18px,2.2vw,32px); }
.duo .ph-more{ margin-top:10px; }

.ph-link{
  display:inline-flex; align-items:center; gap:8px; min-height:44px;
  font-family:var(--f-display); font-weight:500; font-size:var(--fs-body); color:var(--brand);
  text-decoration:underline; text-underline-offset:4px;
}
.ph-link svg{ width:18px; height:18px; flex:none; transition:transform var(--d2) var(--e-out); }
@media (hover:hover) and (pointer:fine){ .ph-link:hover svg{ transform:translateX(4px); } }

/* two buttons: one flat brand blue with white text, one white with a brand border. No gradient. */
.btn--primary{ background:var(--brand); border:1.5px solid var(--brand); box-shadow:none; }
.btn--line{ background:#FFFFFF; color:var(--brand); border:1.5px solid var(--brand); box-shadow:none; }
@media (hover:hover) and (pointer:fine){
  .btn--primary:hover{ background:var(--brand); border-color:var(--brand); box-shadow:0 10px 20px -12px rgba(0,76,151,.6); }
  .btn--line:hover{ transform:translateY(-2px); box-shadow:0 10px 20px -12px rgba(0,76,151,.6); }
}
.hv-cta{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; }

/* ---------- what we solve: the shared stepper. The rail is as tall as the
   stage, so neither column ends short of the other. ---------- */
.stp{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr); gap:clamp(18px,2.6vw,40px); margin-top:clamp(22px,2.8vw,40px); align-items:stretch; }
.stp-rail{ display:grid; gap:8px; grid-auto-rows:1fr; }
.stp-tab{
  display:flex; align-items:center; gap:14px; width:100%; min-height:64px; padding:12px 18px; text-align:left; cursor:pointer;
  background:#FFFFFF; border:1.5px solid var(--brand); border-radius:var(--r-card); color:var(--ink);
  font-family:var(--f-display); font-weight:500; font-size:var(--fs-body); line-height:1.25; letter-spacing:-.01em;
  scroll-margin-top:96px; scroll-margin-bottom:160px;   /* clears the fixed draft bar (admin render only) */
  transition:background var(--d2) var(--e-out), color var(--d2) var(--e-out), box-shadow var(--d2) var(--e-out);
}
.stp-n{
  flex:none; display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px;
  border:1.5px solid var(--brand); border-radius:50%; background:#FFFFFF; color:var(--brand); font-weight:600; font-size:var(--fs-small);
}
.stp-tab[aria-selected="true"]{ background:var(--v5-select,#E3F1FA); color:var(--brand); font-weight:600; }
@media (hover:hover) and (pointer:fine){ .stp-tab:hover{ box-shadow:0 12px 24px -18px rgba(0,76,151,.6); } }
.stp-panel{
  background:#FFFFFF; border:1.5px solid var(--brand); border-radius:var(--r-card);
  padding:clamp(18px,2.2vw,32px); box-shadow:0 1px 0 rgba(0,76,151,.05), 0 16px 32px -24px rgba(0,76,151,.5);
}
.stp-panel + .stp-panel{ margin-top:14px; }
.js .stp-panel + .stp-panel{ margin-top:0; }
.stp-panel[hidden]{ display:none; }
.stp-panel > h3, .stp-panel > p{ text-align:center; }
.stp-panel > p{ margin:8px auto 0; font-size:var(--fs-body); line-height:1.5; max-width:62ch; }
.js .stp-panel.is-in{ animation:hv-rise .4s var(--e-out); }
@keyframes hv-rise{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
@keyframes hv-popin{ from{ opacity:0; transform:scale(.5); } to{ opacity:1; transform:scale(1); } }
.hv-fig{ margin-top:clamp(16px,1.8vw,24px); }
/* a label that needs two lines breaks evenly, so no word is left alone under the rest */
.hv-fig-tag{ display:flex; align-items:center; gap:8px; margin-bottom:10px; font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); line-height:1.2; color:var(--ink); text-wrap:balance; }

/* 1. answers with sources */
.hv-qa{ display:grid; gap:12px; }
.hv-qa .hv-qa-q{
  justify-self:center; padding:10px 18px; background:#FFFFFF; color:var(--brand); border:1.5px solid var(--brand);
  border-radius:18px 18px 18px 4px; font-family:var(--f-display); font-weight:600; font-size:var(--fs-body); line-height:1.3;
}
.hv-qa-lane{
  display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,.9fr) minmax(0,1.2fr); align-items:center; gap:12px;
  padding:12px 14px; background:#FFFFFF; border:1.5px dashed var(--brand); border-radius:12px;
}
.hv-qa-lane--us{ border-style:solid; }
.hv-qa-who{ display:flex; align-items:center; gap:8px; font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); line-height:1.2; color:var(--ink); white-space:nowrap; }
.hv-qa-mid{ display:flex; flex-wrap:wrap; gap:6px; }
.hv-qa-mid i{
  font-style:normal; padding:4px 11px; border:1px solid var(--brand); border-radius:999px; background:#FFFFFF;
  font-family:var(--f-display); font-weight:500; font-size:.875rem; color:var(--ink); white-space:nowrap;
}
.hv-qa-mid i.hv-qa-none{ border-style:dashed; }
.hv-qa-a{ font-size:var(--fs-small); line-height:1.35; color:var(--ink); }
.hv-qa-a b{ display:block; margin-bottom:2px; font-family:var(--f-display); font-weight:600; font-size:var(--fs-body); color:var(--brand); }
.js .stp-panel.is-in .hv-qa-lane--us .hv-qa-mid i{ animation:hv-rise .4s var(--e-out) both; }
.js .stp-panel.is-in .hv-qa-lane--us .hv-qa-mid i:nth-child(2){ animation-delay:.18s; }
.js .stp-panel.is-in .hv-qa-lane--us .hv-qa-mid i:nth-child(3){ animation-delay:.36s; }
.js .stp-panel.is-in .hv-qa-lane--us .hv-qa-a{ animation:hv-rise .45s var(--e-out) .6s both; }

/* 2. drafted and graded: a grade ring that fills to 3.75 of 4.00, then Kept or Fixed */
.hv-draft{ display:grid; grid-template-columns:minmax(0,1.2fr) auto minmax(0,1fr) auto minmax(0,.8fr); align-items:center; gap:clamp(8px,1.4vw,20px); }
.hv-draft-doc, .hv-draft-revs, .hv-draft-you{ background:#FFFFFF; border:1.5px solid var(--brand); border-radius:12px; padding:14px 16px; min-height:150px; }
.hv-draft-doc i{ display:block; height:6px; margin-top:10px; border-radius:3px; background:var(--sky); transform-origin:left center; }
.hv-draft-doc i:nth-of-type(2){ width:88%; } .hv-draft-doc i:nth-of-type(3){ width:94%; }
.hv-draft-doc i:nth-of-type(4){ width:70%; } .hv-draft-doc i:nth-of-type(5){ width:82%; }
.hv-draft-arw{ width:clamp(26px,3.4vw,54px); height:24px; fill:none; stroke:var(--sky); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.hv-draft-revs{ display:flex; flex-direction:column; align-items:center; }
.hv-draft-revs .hv-fig-tag{ align-self:stretch; }
.hv-ring{ width:84px; height:84px; display:block; }
.hv-ring-t{ fill:#FFFFFF; stroke:#004C97; stroke-width:1.5; }
.hv-ring-a{ fill:none; stroke:#004C97; stroke-width:5; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:6.25; }
.hv-ring text{ font-family:var(--f-display); font-weight:600; font-size:19px; fill:#004C97; }
.js .stp-panel .hv-ring-a{ stroke-dashoffset:100; }
.js .stp-panel.is-in .hv-ring-a{ animation:hv-fill 1s var(--e-out) .7s both; }
@keyframes hv-fill{ from{ stroke-dashoffset:100; } to{ stroke-dashoffset:6.25; } }
.hv-draft-of{ margin-top:6px; font-size:var(--fs-small); color:var(--ink); }
.hv-draft-you{ display:flex; flex-direction:column; }
.hv-kf{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.hv-kf span{
  padding:8px 16px; border:1.5px solid var(--brand); border-radius:999px; background:#FFFFFF;
  font-family:var(--f-display); font-weight:500; font-size:var(--fs-small); color:var(--brand);
}
.hv-kf .hv-kf-on{ background:var(--v5-select,#E3F1FA); font-weight:600; }
.js .stp-panel.is-in .hv-draft-doc i{ animation:hv-grow .5s var(--e-out) both; }
.js .stp-panel.is-in .hv-draft-doc i:nth-of-type(2){ animation-delay:.12s; }
.js .stp-panel.is-in .hv-draft-doc i:nth-of-type(3){ animation-delay:.24s; }
.js .stp-panel.is-in .hv-draft-doc i:nth-of-type(4){ animation-delay:.36s; }
.js .stp-panel.is-in .hv-draft-doc i:nth-of-type(5){ animation-delay:.48s; }
.js .stp-panel.is-in .hv-draft-you{ animation:hv-rise .45s var(--e-out) 1.4s both; }
@keyframes hv-grow{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }

/* 4. what every task records */
.hv-log-rows{ display:grid; gap:8px; }
.hv-log-rows li{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px;
  padding:12px 16px; background:#FFFFFF; border:1.5px solid var(--brand); border-radius:12px;
}
.hv-log-ico{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; color:var(--brand); }
.hv-log-ico svg{ width:26px; height:26px; }
.hv-log-l{ font-family:var(--f-display); font-weight:600; font-size:var(--fs-body); color:var(--ink); }
.hv-log-ok{ display:inline-flex; align-items:center; gap:6px; font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); color:var(--brand); }
.hv-log-ok svg{ width:18px; height:18px; }
.js .stp-panel.is-in .hv-log-ok{ animation:hv-popin .4s var(--e-out) both; }
.js .stp-panel.is-in li:nth-child(2) .hv-log-ok{ animation-delay:.2s; }
.js .stp-panel.is-in li:nth-child(3) .hv-log-ok{ animation-delay:.4s; }

/* ---------- swap the AI: three layers, only the provider changes ---------- */
.hv-swap{ display:grid; grid-template-columns:minmax(0,.55fr) minmax(0,1.6fr); gap:clamp(18px,2.6vw,40px); align-items:stretch; margin-top:clamp(22px,2.8vw,40px); }
.hv-swap-pick{ display:grid; gap:8px; grid-auto-rows:1fr; }
.hv-swap-pick button{
  position:relative; min-height:48px; padding:0 20px; text-align:center; cursor:pointer;
  background:#FFFFFF; border:1.5px solid var(--brand); border-radius:var(--r-card); color:var(--ink);
  font-family:var(--f-display); font-weight:600; font-size:var(--fs-body); letter-spacing:-.015em;
  scroll-margin-top:96px; scroll-margin-bottom:160px;
  transition:background var(--d2) var(--e-out), color var(--d2) var(--e-out), box-shadow var(--d2) var(--e-out);
}
.hv-swap-pick button[aria-checked="true"]{ background:var(--v5-select,#E3F1FA); color:var(--brand); }
@media (hover:hover) and (pointer:fine){ .hv-swap-pick button:hover{ box-shadow:0 12px 24px -18px rgba(0,76,151,.6); } }
.hv-layers{ display:grid; gap:16px; }
.hv-layer{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:clamp(12px,1.6vw,22px);
  padding:clamp(16px,1.8vw,24px) clamp(16px,2vw,28px); background:#FFFFFF;
  border:1.5px solid var(--brand); border-radius:var(--r-card);
}
.hv-layer p{ margin-top:4px; font-size:var(--fs-body); line-height:1.4; }
.hv-layer-ico{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; color:var(--brand); }
.hv-layer-ico svg{ width:28px; height:28px; }
.hv-chip{
  padding:6px 14px; border:1.5px solid var(--brand); border-radius:999px; background:#FFFFFF; color:var(--brand);
  font-family:var(--f-display); font-weight:600; font-size:var(--fs-small); white-space:nowrap;
}
.hv-chip--swap{ border-style:dashed; }
.hv-layer--ai{ border-style:dashed; border-color:var(--sky); }
.hv-provider{ font-family:var(--f-display); font-weight:600; color:var(--brand); }
.hv-layer--ai.is-swapping{ animation:hv-swapout .55s var(--e-out); }
.hv-layer--ai.is-swapping .hv-layer-ico svg{ animation:hv-spin .55s var(--e-out); }
@keyframes hv-spin{ to{ transform:rotate(360deg); } }
@keyframes hv-swapout{ 0%{ transform:translateX(0); opacity:1; } 45%{ transform:translateX(38px); opacity:0; } 55%{ transform:translateX(-38px); opacity:0; } 100%{ transform:none; opacity:1; } }
.hv-swap-note{ margin-top:16px; font-size:var(--fs-small); line-height:1.45; text-align:center; }

/* ---------- the numbered rail under each way to start ---------- */
.hv-rail{ display:flex; flex-wrap:wrap; gap:10px 0; }
.hv-rail li{ position:relative; flex:1 1 0; min-width:120px; padding-right:14px; font-size:var(--fs-small); line-height:1.35; }
.hv-rail li::before{ content:""; position:absolute; top:15px; left:40px; right:6px; height:0; border-top:1.5px dashed var(--sky); }
.hv-rail li:last-child::before{ display:none; }
.hv-rail span{
  position:relative; display:flex; align-items:center; justify-content:center; width:32px; height:32px; margin-bottom:8px;
  border:1.5px solid var(--brand); border-radius:50%; background:#FFFFFF; color:var(--brand);
  font-family:var(--f-display); font-weight:600; font-size:var(--fs-small);
}
.hv-rail b{ display:block; font-family:var(--f-display); font-weight:600; font-size:var(--fs-body); color:var(--ink); }

/* ---------- closing ---------- */
.hv-close .hv-cta{ margin-top:clamp(18px,2.2vw,28px); justify-content:center; }
.hv-close{ padding-bottom:clamp(48px,6vw,96px); }

/* ---------- the network section (Home draft only) ---------- */
/* no small titles under the heading (kept for screen readers) */
#serviceoverview .duo-head, #serviceoverview .stg-title{
  position:absolute !important; width:1px !important; min-width:0 !important; height:1px !important; margin:-1px !important; padding:0 !important;
  overflow:hidden !important; clip:rect(0 0 0 0) !important; clip-path:inset(50%) !important; white-space:nowrap !important; border:0 !important;
}
/* the paints of the assistant box are in home_product-3-1.css, linked inside that section */

/* ---------- responsive ---------- */
@media (max-width:1099px){
  .stp{ grid-template-columns:minmax(0,1fr); }
  .stp-rail{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px){
  .hv-swap{ grid-template-columns:minmax(0,1fr); }
  /* five choices: three, then two that share the row, so no cell is left empty */
  .hv-swap-pick{ display:flex; flex-wrap:wrap; }
  .hv-swap-pick button{ flex:1 1 30%; padding:0 8px; font-size:var(--fs-small); }
  .hv-qa-lane{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .hv-draft{ grid-template-columns:minmax(0,1fr); justify-items:stretch; }
  .hv-draft-arw{ transform:rotate(90deg); justify-self:center; width:40px; }
  .hv-draft-doc, .hv-draft-revs, .hv-draft-you{ min-height:0; }
  /* the four figures stack in one column here and share one box, so they are
     drawn to nearly one height: the grade and the mark each sit on one row,
     the 48 pages stand 8 across, and each record is a centered card with its
     tick underneath */
  .hv-draft-revs{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:12px; }
  .hv-draft-revs .hv-fig-tag{ grid-row:1 / span 2; margin-bottom:0; }
  .hv-draft-revs .hv-ring{ grid-column:2; justify-self:center; width:64px; height:64px; }
  .hv-draft-of{ grid-column:2; margin-top:2px; }
  .hv-draft-you{ flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
  .hv-draft-you .hv-fig-tag{ margin-bottom:0; }
  .hv-draft-you .hv-kf{ margin-top:0; }
  .hv-log-rows{ gap:12px; }
  .hv-log-rows li{ grid-template-columns:auto auto; justify-content:center; gap:6px 12px; padding:18px 16px; }
  .hv-log-ico{ width:40px; height:40px; }
  .hv-log-ico svg{ width:30px; height:30px; }
  .hv-log-ok{ grid-column:1 / -1; justify-self:center; }
  .hv-layer{ grid-template-columns:auto minmax(0,1fr); }
  .hv-layer .hv-chip{ grid-column:2; justify-self:start; }
}
@media (max-width:560px){
  .stp-rail{ grid-template-columns:minmax(0,1fr); }
  .hv-cta .btn{ flex:1 1 100%; justify-content:center; }
  .hv-qa-who{ white-space:normal; }
}

/* JS off: every panel shows stacked, the picker (which needs JS) is hidden */
html:not(.js) .stp-rail{ display:none; }
html:not(.js) .stp{ grid-template-columns:minmax(0,1fr); }

@media (prefers-reduced-motion: reduce){
  .stp-panel, .stp-panel *, .hv-layer--ai, .hv-layer--ai *{ animation:none !important; transition:none !important; }
  .hv-ring-a{ stroke-dashoffset:6.25 !important; }
}
