/* home.css: the homepage (src/pages/index.astro; trialled at /v2 until 2026-11-20) and, for the shared pieces, the five service
   landing pages (src/lib/service-pattern.js).
   It styles the re-cut pieces (hero, logo band, case file, service teasers, the capture form) in the site's own
   vocabulary: Fraunces for display, JetBrains Mono for labels, navy #17425D and sky #3A93C4. */

#abt .v2-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---- 1. hero: the claim on the left, the anchor on the right; on phones the anchor comes straight after the headline ---- */
/* the film stays as moving light, out of focus: its own faces and captions no longer compete with the headline */
#abt .hero-video-wrap.v2-hero .hero-video { opacity:.7; filter:blur(22px) grayscale(30%) saturate(1.15); transform:scale(1.12); }
#abt .hero-video-wrap.v2-hero .hero-video-overlay { background:
  linear-gradient(95deg, rgba(10,10,12,.9) 0%, rgba(10,10,12,.76) 40%, rgba(10,10,12,.36) 76%, rgba(10,10,12,.5) 100%),
  radial-gradient(ellipse at 82% 40%, rgba(58,147,196,.2) 0%, rgba(10,10,12,0) 60%); }
/* service pages: their hero films are lighter than the homepage's, so the film sits further back */
#abt .hero-video-wrap.v2-hero-svc .hero-video { opacity:.5; }
#abt .hero-video-wrap.v2-hero-svc .hero-video-overlay { background:
  linear-gradient(95deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.84) 45%, rgba(10,10,12,.72) 100%),
  radial-gradient(ellipse at 82% 40%, rgba(58,147,196,.18) 0%, rgba(10,10,12,0) 60%); }
#abt .v2-hero-inner { max-width:80rem; margin:0 auto; padding:3rem 1.5rem 3rem; }
#abt .v2-hero h1 { margin-bottom:1.1rem; }   /* site element: a little tighter, so the logos stay in the first screen */
#abt .v2-nw { white-space:nowrap; }
#abt .v2-hero-split { display:grid; grid-template-columns:minmax(0,1fr); }
#abt .v2-hero-split > .v2-hero-copy { display:contents; }      /* phones: the copy's lines and the anchor share one column, in this order */
#abt .v2-hero-copy > .eyebrow { order:1; }
#abt .v2-hero-copy > h1 { order:2; }
#abt .v2-hero-split > .v2-anchor { order:3; }
#abt .v2-hero-copy > .v2-hero-sub { order:4; }
#abt .v2-hero-copy > .v2-hero-actions { order:5; }
#abt .v2-hero-copy > .v2-hero-note { order:6; }
#abt .v2-hero-copy > .v2-hero-risk { order:7; }
#abt .v2-hero-sub { margin:0; max-width:36rem; font-size:1.0625rem; line-height:1.6; color:#e7e5e4; }
#abt .v2-hero-actions { display:flex; flex-wrap:wrap; gap:.9rem 1.4rem; align-items:center; margin-top:1.5rem; }
#abt .v2-hero-actions .btn { padding:.95rem 1.5rem; }
#abt .v2-hero-link { color:#fafaf9; font-weight:600; font-size:.95rem; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.4); }
#abt .v2-hero-link:hover { border-bottom-color:#3A93C4; }
#abt .v2-hero-note { margin:.7rem 0 0; font-size:.84rem; color:#a8a29e; }
#abt .v2-hero-risk { margin:1.1rem 0 0; font-size:.84rem; color:#d6d3d1; }
/* the anchor: a real case as a three-line sum, the saving very large and labelled at the same weight */
@keyframes v2-rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
#abt .v2-anchor { display:block; margin:0 0 1.4rem; padding:1.1rem 0 0; border-top:1px solid rgba(255,255,255,.16); color:#fafaf9; text-decoration:none; animation:v2-rise .6s .15s both cubic-bezier(.16,1,.3,1); }
#abt .v2-anchor:focus-visible { outline:2px solid #3A93C4; outline-offset:6px; border-radius:6px; }
#abt .v2-anchor-label { font-family:'JetBrains Mono',monospace; font-size:.74rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#e7e5e4; }
#abt .v2-anchor-sum { display:grid; grid-template-columns:auto 1fr; gap:.4rem 1rem; align-items:baseline; margin:.8rem 0 0; }
#abt .v2-anchor-sum dt { font-family:'JetBrains Mono',monospace; font-size:.76rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#e7e5e4; }
#abt .v2-anchor-sum dd { margin:0; font-size:.98rem; line-height:1.3; color:#d6d3d1; }
#abt .v2-anchor-sum s, #abt .v2-anchor-sum strong { font-size:1.45rem; font-weight:600; color:#fafaf9; }
#abt .v2-anchor-sum s { color:#e7e5e4; text-decoration:line-through; text-decoration-color:#f87171; text-decoration-thickness:3px; }
#abt .v2-anchor-big { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 .28em; margin-top:.9rem; padding-top:.9rem; border-top:1px solid rgba(255,255,255,.22); font-family:'Fraunces',serif; font-weight:800; font-variation-settings:'opsz' 144; line-height:.98; letter-spacing:-.03em; color:#fafaf9; }
#abt .v2-anchor-big .num { font-size:clamp(3.1rem, 15vw, 6.2rem); }
#abt .v2-anchor-big .word { font-size:clamp(1.55rem, 7.4vw, 3.1rem); letter-spacing:-.02em; }
#abt .v2-anchor-big .plus { margin-left:.04em; font-family:'Inter', system-ui, sans-serif; font-weight:800; font-size:.46em; font-variation-settings:normal; letter-spacing:0; vertical-align:.62em; }   /* the display face draws + as a hairline */
#abt .v2-anchor-when { margin-top:.3rem; font-family:'Fraunces',serif; font-style:italic; font-weight:700; font-size:1.15rem; color:#3A93C4; }
#abt .v2-anchor-scope { margin:.75rem 0 0; max-width:25rem; font-size:.9rem; line-height:1.5; color:#d6d3d1; }
#abt .v2-anchor-go { color:#fafaf9; font-weight:600; white-space:nowrap; border-bottom:1px solid rgba(255,255,255,.4); }
#abt .v2-anchor:hover .v2-anchor-go { border-bottom-color:#3A93C4; }
@media (prefers-reduced-motion:reduce){ #abt .v2-anchor { animation:none; } }
@media (max-width:480px){   /* phones: the main button stays in the first screen */
  #abt .v2-hero-inner { padding-top:2.25rem; padding-bottom:2.25rem; }
  #abt .v2-anchor { margin-bottom:1.1rem; padding-top:.9rem; }
  #abt .v2-anchor-label { font-size:.66rem; letter-spacing:.14em; }
  #abt .v2-anchor-sum { margin-top:.6rem; gap:.3rem .8rem; }
  #abt .v2-anchor-sum dt { font-size:.68rem; letter-spacing:.14em; }
  #abt .v2-anchor-sum dd { font-size:.88rem; }
  #abt .v2-anchor-sum s, #abt .v2-anchor-sum strong { font-size:1.25rem; }
  #abt .v2-anchor-big { margin-top:.7rem; padding-top:.7rem; }
  #abt .v2-anchor-scope { display:none; }   /* on a phone the line between the number and the button goes; the case file below says it */
  #abt .v2-hero-sub { font-size:1rem; line-height:1.55; }
  #abt .v2-hero-actions { margin-top:1.1rem; }
}
@media (min-width:1024px){
  #abt .v2-hero-split { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:1.5rem 3.5rem; align-items:center; }
  #abt .v2-hero-split > .v2-hero-copy { display:block; }
  #abt .v2-anchor { margin:0; padding:0 0 0 3rem; border-top:0; border-left:1px solid rgba(255,255,255,.16); }
  #abt .v2-anchor-sum s, #abt .v2-anchor-sum strong { font-size:1.85rem; }
  #abt .v2-anchor-sum dd { font-size:1.02rem; }
  #abt .v2-anchor-when { font-size:1.5rem; }
  #abt .v2-anchor-big .num { font-size:clamp(4.2rem, 6.2vw, 6.2rem); }   /* sized to the column, so 'saved' stays on the number's line */
  #abt .v2-anchor-big .word { font-size:clamp(2.1rem, 3.1vw, 3.1rem); }
}
@media (max-width:480px){ #abt .v2-hero h1 { font-size:clamp(1.7rem, 8.4vw, 2.25rem); } }   /* site element: each headline line holds one row on a phone */
/* Service and tool pages: line one ("Cut the Shopify Plus bill.") is as long as the tool's name, so the headline is sized to
   its column: --h1c is line one's length (service-pattern.js), the column is a size container, and Fraunces 800 at this
   tracking measures ~0.45em a character (.47 leaves a margin). The usual sizes stay the ceiling. */
#abt .v2-hero-svc .v2-hero-inner { container-type:inline-size; }
@media (min-width:1024px){ #abt .v2-hero-svc .v2-hero-copy { container-type:inline-size; } }
#abt .v2-hero-svc h1 { --h1max:2.25rem; --h1k:.52; font-size:min(var(--h1max), calc(100cqi / (var(--h1c, 14) * var(--h1k)))); }   /* .52: "Custom AI agents." runs .50 */
@media (min-width:481px){ #abt .v2-hero-svc h1 { --h1max:3.5rem; } }
@media (min-width:1024px){ #abt .v2-hero-svc h1 { --h1max:3.6rem; } }
@media (min-width:1280px){ #abt .v2-hero-svc h1 { --h1max:4rem; --h1k:.48; } }   /* Fraunces' optical sizes: ~0.49em a character at 28px, ~0.46 at 64px (widest names) */
@media (min-width:768px){
  #abt .v2-hero-inner { padding:3.75rem 1.5rem 3.25rem; }
  #abt .v2-hero-sub { font-size:1.1875rem; }
}

/* ---- the capture, in two steps: which tool, then the email ---- */
#abt .abt-quote-form { max-width:33rem; }
#abt .abt-quote-form [hidden] { display:none !important; }
#abt .abt-quote-step2 { margin-top:.5rem; }
#abt .abt-quote-row { display:flex; gap:.4rem; padding:.4rem; border-radius:var(--r-md, 12px); background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.26); transition:border-color .18s, box-shadow .18s; }
#abt .abt-quote-row:focus-within { border-color:#3A93C4; box-shadow:0 0 0 3px rgba(58,147,196,.28); }
#abt .abt-quote-row input { flex:1 1 auto; min-width:0; padding:.62rem .9rem; border:0; outline:0; background:transparent; color:#fafaf9; font:inherit; font-size:1rem; }
#abt .abt-quote-row input::placeholder { color:rgba(255,255,255,.55); }
#abt .abt-quote-row button { flex:0 0 auto; padding:.7rem 1.25rem; border:0; border-radius:calc(var(--r-md, 12px) - 4px); background:#3A93C4; color:#0a0a0c; font:inherit; font-size:.95rem; font-weight:700; white-space:nowrap; cursor:pointer; transition:background .18s, transform .18s; }
#abt .abt-quote-row button:hover { background:#5fb0dc; transform:translateY(-1px); }
#abt .abt-quote-row button:focus-visible { outline:2px solid #fafaf9; outline-offset:2px; }
#abt .abt-quote-row button:disabled { opacity:.6; cursor:default; transform:none; }
#abt .abt-quote-consent { display:flex; align-items:flex-start; gap:.55rem; margin-top:.75rem; font-size:.78rem; line-height:1.45; color:#a8a29e; cursor:pointer; }
#abt .abt-quote-consent input { flex:0 0 auto; margin-top:.15rem; accent-color:#3A93C4; }
#abt .abt-quote-consent a { color:inherit; text-decoration:underline; }
#abt .abt-quote-form .intake-challenge { margin-top:.6rem; }
#abt .abt-quote-status { margin-top:.5rem; font-size:.85rem; line-height:1.4; color:#d6d3d1; }
#abt .abt-quote-status:empty { display:none; }
#abt .abt-quote-status.is-error { color:#fca5a5; }
#abt .abt-quote-status.is-success { color:#9FC3D6; }
@media (max-width:520px){
  #abt .abt-quote-row { flex-direction:column; }
  #abt .abt-quote-row button { width:100%; }
}
/* the same form on a light section */
#abt .abt-quote-form.on-light .abt-quote-row { background:#fff; border-color:#0a0a0c; }
#abt .abt-quote-form.on-light .abt-quote-row:focus-within { border-color:#17425D; box-shadow:0 0 0 3px rgba(23,66,93,.18); }
#abt .abt-quote-form.on-light .abt-quote-row input { color:#0a0a0c; }
#abt .abt-quote-form.on-light .abt-quote-row input::placeholder { color:#78716c; }
#abt .abt-quote-form.on-light .abt-quote-row button { background:#17425D; color:#fafaf9; }
#abt .abt-quote-form.on-light .abt-quote-row button:hover { background:#1d5478; }
#abt .abt-quote-form.on-light .abt-quote-row button:focus-visible { outline-color:#0a0a0c; }
#abt .abt-quote-form.on-light .abt-quote-consent { color:#57534e; text-align:left; }
#abt .abt-quote-form.on-light .abt-quote-status { color:#44403c; }
#abt .abt-quote-form.on-light .abt-quote-status.is-error { color:#b91c1c; }
#abt .abt-quote-form.on-light .abt-quote-status.is-success { color:#17425D; }
#abt .v2-final-capture { display:flex; justify-content:center; }
#abt .v2-final-capture .abt-quote-form { width:100%; }
#abt .v2-service-capture { scroll-margin-top:7rem; }   /* service pages: the hero's link lands here */
#abt .v2-final-or { margin:1.1rem 0; font-family:'JetBrains Mono',monospace; font-size:.66rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#78716c; }

/* ---- 2. client logos, right under the hero ---- */
#abt .v2-logos { padding:1.7rem 0 2rem; }
#abt .v2-logos-label { margin-bottom:1.4rem; text-align:center; font-family:'JetBrains Mono',monospace; font-size:.62rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:#565658; }
#abt .v2-logos-row { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1.6rem 1.5rem; align-items:center; justify-items:center; max-width:70rem; margin:0 auto; }
#abt .v2-logos-row .cl-uw-tile { height:2.6rem; padding:0; border:0; border-radius:0; background:none; transform:none; }
#abt .v2-logos-row .cl-uw-tile { width:100%; }
#abt .v2-logos-row .cl-uw-tile img { width:100%; max-width:7.5rem; height:2.25rem; max-height:none; object-fit:contain; filter:grayscale(100%) opacity(.72); }   /* sized outright: two of the logo files carry no size of their own */
#abt .v2-logos-row .cl-uw-tile:hover img { filter:grayscale(0%) opacity(1); transform:none; }
@media (min-width:900px){ #abt .v2-logos-row { grid-template-columns:repeat(8, minmax(0,1fr)); gap:1rem 2rem; } }
#abt .v2-logos-all { margin-top:1.5rem; text-align:center; }
#abt .v2-logos-all > summary { display:inline-flex; align-items:center; gap:.5rem; list-style:none; cursor:pointer; padding:.35rem .2rem; font-family:'JetBrains Mono',monospace; font-size:.66rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#17425D; border-bottom:1px solid rgba(23,66,93,.35); }
#abt .v2-logos-all > summary::-webkit-details-marker { display:none; }
#abt .v2-logos-all > summary::after { content:'+'; font-size:.9rem; line-height:1; }
#abt .v2-logos-all[open] > summary::after { content:'\2212'; }
#abt .v2-logos-all > summary:focus-visible { outline:2px solid #17425D; outline-offset:3px; }
#abt .v2-logos-all .cl-uw { margin-top:1.4rem; text-align:left; }
#abt .v2-logos-all[open] ~ .v2-logos-note { display:none; }   /* the open list carries the same note */
#abt .v2-logos-note { margin:1.3rem auto 0; max-width:46rem; text-align:center; font-size:.68rem; line-height:1.5; color:#78716c; }

/* ---- 4. the case file, out of the hero ---- */
#abt .v2-case { margin:1.5rem 1rem; border-radius:var(--r-lg, 18px); overflow:hidden; padding:4rem 0; }
#abt .v2-case-grid { display:grid; grid-template-columns:1fr; gap:2.5rem; align-items:center; position:relative; z-index:1; }
#abt .v2-case .hero-spec { margin:0; max-width:26rem; width:100%; }
#abt .v2-case-quote { scroll-margin-top:7rem; }
#abt .v2-case-ask { margin:0 0 .8rem; font-size:.98rem; line-height:1.5; color:#e7e5e4; max-width:33rem; }
#abt .v2-btn-sky { background:#3A93C4; color:#0a0a0c; font-weight:700; }
#abt .v2-btn-sky:hover { background:#5fb0dc; transform:translateY(-2px); }
#abt .v2-case-also { display:flex; flex-wrap:wrap; gap:.65rem 1rem; align-items:center; margin-top:2.4rem; padding-top:1.6rem; border-top:1px solid rgba(255,255,255,.1); }
@media (min-width:1024px){
  #abt .v2-case { padding:5rem 0; }
  #abt .v2-case-grid { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:4rem; }
  #abt .v2-case .hero-spec { margin-left:auto; }
}
@media (max-width:640px){ #abt .v2-case { margin:1rem .6rem; border-radius:var(--r-md, 12px); padding:3rem 0; } }

/* ---- 5. service lines: five photo cards; the photo carries the card, the words are three lines on its lower edge ---- */
#abt .v2-svc-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1rem; }
#abt .v2-svc { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:flex-end; min-height:19rem; overflow:hidden; border-radius:var(--r-md, 12px); background:#0a0a0c; color:#fafaf9; text-decoration:none; transition:transform .25s, box-shadow .25s; }
#abt .v2-svc:hover { transform:translateY(-3px); box-shadow:0 24px 44px -24px rgba(10,10,12,.55); }
#abt .v2-svc:focus-visible { outline:3px solid var(--acc, #17425D); outline-offset:3px; }
#abt .v2-svc-img { position:absolute; inset:0; z-index:-2; }
#abt .v2-svc-img picture, #abt .v2-svc-img img { display:block; width:100%; height:100%; }
#abt .v2-svc-img img { object-fit:cover; filter:saturate(.85) contrast(1.04); transform:scale(1.01); transition:transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
#abt .v2-svc:hover .v2-svc-img img { transform:scale(1.06); filter:saturate(1) contrast(1.04); }
#abt .v2-svc-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(10,10,12,.1) 0%, rgba(10,10,12,.32) 38%, rgba(10,10,12,.9) 78%, rgba(10,10,12,.96) 100%); }
#abt .v2-svc-text { padding:1.2rem 1.15rem 1.05rem; }
#abt .v2-svc-num { font-family:'JetBrains Mono',monospace; font-size:.66rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.82); }
#abt .v2-svc-num span { margin-right:.2rem; color:var(--acc-light, #B8DCF5); }
#abt .v2-svc-h { margin:.55rem 0 0; font-family:'Fraunces',serif; font-size:1.28rem; font-weight:700; line-height:1.18; letter-spacing:-.012em; color:#fafaf9; }
#abt .v2-svc-foot { display:flex; justify-content:space-between; align-items:center; gap:.75rem; margin-top:.9rem; padding-top:.7rem; border-top:1px solid rgba(255,255,255,.22); font-family:'JetBrains Mono',monospace; font-size:.74rem; font-weight:700; color:#fafaf9; }
#abt .v2-svc-foot .arrow { transition:transform .18s; }
#abt .v2-svc:hover .v2-svc-foot .arrow { transform:translateX(4px); }
#abt .v2-svc:last-child { grid-column:1 / -1; min-height:16rem; }
@media (max-width:639px){   /* phones: the cards slide sideways, the next one peeking in */
  #abt .v2-svc-grid { display:flex; gap:.8rem; margin:0 -1.5rem; padding:0 1.5rem .4rem; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding:0 1.5rem; scrollbar-width:none; }
  #abt .v2-svc-grid::-webkit-scrollbar { display:none; }
  #abt .v2-svc, #abt .v2-svc:last-child { flex:0 0 80%; min-height:20rem; scroll-snap-align:start; }
}
@media (min-width:1100px){
  #abt .v2-svc-grid { grid-template-columns:repeat(5, minmax(0,1fr)); }
  #abt .v2-svc, #abt .v2-svc:last-child { grid-column:auto; min-height:25rem; }
  #abt .v2-svc-h { min-height:3.54em; }   /* three lines held for every headline, so the five labels line up */
}
@media (prefers-reduced-motion:reduce){ #abt .v2-svc, #abt .v2-svc-img img { transition:none; } #abt .v2-svc:hover .v2-svc-img img { transform:scale(1.01); } }

/* ---- tool pages (/rebuild/<tool>-alternative, src/lib/tool-pattern.js) ---- */
#abt .v2-price-card { scroll-margin-top:6.5rem; }   /* the hero's "fixed price for your team" link lands on the price */
#abt .v2-price-capture { margin-top:1.4rem; }
#abt .v2-price-capture .abt-quote-form { max-width:none; }
#abt .v2-after-steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:minmax(0,1fr); gap:1rem; counter-reset:none; }
#abt .v2-after-steps li { position:relative; padding:1.35rem 1.3rem 1.3rem; background:#fff; border:1px solid #e7e5e4; border-radius:1rem; }
#abt .v2-after-steps li::before { content:""; position:absolute; left:1.3rem; right:1.3rem; top:0; height:3px; border-radius:0 0 3px 3px; background:#17425D; }
#abt .v2-after-n { display:block; font-family:'JetBrains Mono',monospace; font-size:.7rem; font-weight:700; letter-spacing:.2em; color:#3A93C4; }
#abt .v2-after-steps h3 { margin:.55rem 0 .45rem; font-family:'Fraunces',serif; font-size:1.3rem; font-weight:700; line-height:1.2; letter-spacing:-.012em; color:#0a0a0c; }
#abt .v2-after-steps p { margin:0; font-size:.95rem; line-height:1.55; color:#57534e; }
#abt .v2-after-steps p strong { color:#0a0a0c; }
@media (min-width:640px){ #abt .v2-after-steps { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:1024px){ #abt .v2-after-steps { grid-template-columns:repeat(4, minmax(0,1fr)); gap:1.1rem; } }

/* ---- tool pages: your team builds it, or we do (src/lib/tool-pattern.js diyBlock) ---- */
#abt .v2-diy-wrap { background:#fff; border:1px solid rgba(10,10,12,.1); border-radius:18px; overflow:hidden; }
#abt .v2-diy-table { width:100%; border-collapse:collapse; font-size:.95rem; line-height:1.5; }
#abt .v2-diy-table thead th { padding:1rem 1.3rem; text-align:left; font-family:'JetBrains Mono',monospace; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#57534e; background:rgba(10,10,12,.035); }
#abt .v2-diy-table thead th.us { color:#fafaf9; background:#17425D; }
#abt .v2-diy-table thead td { background:rgba(10,10,12,.035); }
#abt .v2-diy-table tbody th { width:17%; padding:1rem 1.3rem; text-align:left; vertical-align:top; font-family:'JetBrains Mono',monospace; font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#57534e; }
#abt .v2-diy-table tbody td { width:41.5%; padding:1rem 1.3rem; vertical-align:top; color:#57534e; }
#abt .v2-diy-table tbody td.us { color:#0a0a0c; background:rgba(23,66,93,.05); }
#abt .v2-diy-table tbody td.us strong { color:#17425D; }
#abt .v2-diy-table tbody tr + tr > * { border-top:1px solid rgba(10,10,12,.07); }
@media (max-width:700px){   /* phones: each row becomes a small card, the two answers stacked and labelled */
  #abt .v2-diy-table, #abt .v2-diy-table tbody, #abt .v2-diy-table tr, #abt .v2-diy-table th, #abt .v2-diy-table td { display:block; width:auto; }
  #abt .v2-diy-table thead { display:none; }
  #abt .v2-diy-table tbody tr { padding:.9rem 1rem 1rem; }
  #abt .v2-diy-table tbody tr + tr { border-top:1px solid rgba(10,10,12,.08); }
  #abt .v2-diy-table tbody tr + tr > * { border-top:0; }
  #abt .v2-diy-table tbody th { width:auto; padding:0 0 .5rem; color:#0a0a0c; }
  #abt .v2-diy-table tbody td { width:auto; padding:.55rem .75rem; border-radius:10px; }
  #abt .v2-diy-table tbody td + td { margin-top:.4rem; }
  #abt .v2-diy-table tbody td::before { content:attr(data-col); display:block; margin-bottom:.15rem; font-family:'JetBrains Mono',monospace; font-size:.62rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#78716c; }
  #abt .v2-diy-table tbody td.us::before { color:#17425D; }
}

/* the free guide, for the visitor who will build it themselves */
#abt .v2-guide { margin-top:2.5rem; display:grid; grid-template-columns:minmax(0,1fr); gap:1.75rem; align-items:center; padding:1.75rem 1.4rem; border-radius:18px; background:linear-gradient(135deg, #0f1115 0%, #15222c 100%); color:#fafaf9; scroll-margin-top:6.5rem; }
#abt .v2-guide-cover { display:block; width:9.5rem; height:auto; margin:0 auto; border-radius:4px; box-shadow:0 22px 44px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); transform:rotate(-3deg); }
#abt .v2-guide-meta { font-family:'JetBrains Mono',monospace; font-size:.68rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#9FC3D6; }
#abt .v2-guide-h { margin:.6rem 0 .8rem; font-family:'Fraunces',serif; font-size:1.6rem; font-weight:700; line-height:1.15; letter-spacing:-.015em; color:#fafaf9; }
#abt .v2-guide-points { list-style:none; margin:0 0 1.2rem; padding:0; color:#d6d3d1; font-size:.95rem; line-height:1.5; }
#abt .v2-guide-points li { position:relative; padding-left:1.3rem; margin:.25rem 0; }
#abt .v2-guide-points li::before { content:"\2192"; position:absolute; left:0; color:#3A93C4; }
@media (min-width:768px){
  #abt .v2-guide { grid-template-columns:13rem minmax(0,1fr); gap:2.75rem; padding:2.25rem 2.75rem; }
  #abt .v2-guide-cover { width:100%; }
  #abt .v2-guide-h { font-size:1.9rem; }
}
#abt .abt-guide-form { max-width:33rem; }
#abt .abt-guide-form [hidden] { display:none !important; }
#abt .abt-guide-row { display:flex; gap:.4rem; padding:.4rem; border-radius:12px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.26); transition:border-color .18s, box-shadow .18s; }
#abt .abt-guide-row:focus-within { border-color:#3A93C4; box-shadow:0 0 0 3px rgba(58,147,196,.28); }
#abt .abt-guide-row input { flex:1 1 auto; min-width:0; padding:.62rem .9rem; border:0; outline:0; background:transparent; color:#fafaf9; font:inherit; font-size:1rem; }
#abt .abt-guide-row input::placeholder { color:rgba(255,255,255,.55); }
#abt .abt-guide-row button { flex:0 0 auto; padding:.7rem 1.25rem; border:0; border-radius:8px; background:#3A93C4; color:#0a0a0c; font:inherit; font-size:.95rem; font-weight:700; white-space:nowrap; cursor:pointer; transition:background .18s, transform .18s; }
#abt .abt-guide-row button:hover { background:#5fb0dc; transform:translateY(-1px); }
#abt .abt-guide-row button:focus-visible { outline:2px solid #fafaf9; outline-offset:2px; }
#abt .abt-guide-row button:disabled { opacity:.6; cursor:default; transform:none; }
#abt .abt-guide-consent { display:flex; align-items:flex-start; gap:.55rem; margin-top:.75rem; font-size:.78rem; line-height:1.45; color:#a8a29e; cursor:pointer; }
#abt .abt-guide-consent input { flex:0 0 auto; margin-top:.15rem; accent-color:#3A93C4; }
#abt .abt-guide-consent a { color:inherit; text-decoration:underline; }
#abt .abt-guide-form .intake-challenge { margin-top:.6rem; }
#abt .abt-guide-status { margin-top:.5rem; font-size:.85rem; line-height:1.4; color:#d6d3d1; }
#abt .abt-guide-status:empty { display:none; }
#abt .abt-guide-status.is-error { color:#fca5a5; }
#abt .abt-guide-status.is-success { color:#9FC3D6; }
#abt .abt-guide-download { display:inline-flex; margin-top:.8rem; padding:.8rem 1.3rem; border-radius:999px; background:#fafaf9; color:#17425D; font-weight:700; font-size:.95rem; text-decoration:none; }
#abt .abt-guide-download:hover { background:#fff; transform:translateY(-1px); }
@media (max-width:520px){ #abt .abt-guide-row { flex-direction:column; } #abt .abt-guide-row button { width:100%; } }
#abt .v2-final-diy { margin-top:1.4rem; font-size:.9rem; color:#57534e; }
#abt .v2-final-diy a { color:#17425D; font-weight:600; text-decoration:underline; text-underline-offset:3px; }

/* ---- tool pages: the calculator (src/lib/tool-calc.js) ---- */
#abt .v2-calc { scroll-margin-top:4rem; }
#abt .v2-calc-card { display:grid; grid-template-columns:minmax(0,1fr); background:#fff; border:1px solid rgba(10,10,12,.1); border-radius:18px; overflow:hidden; }
@media (min-width:900px){ #abt .v2-calc-card { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); } }
#abt .v2-calc-in { padding:1.75rem 1.5rem; }
#abt .v2-calc-label { display:block; font-family:'JetBrains Mono',monospace; font-size:.7rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#57534e; }
#abt .v2-calc-label + .v2-calc-range, #abt .v2-calc-label + .v2-calc-money { margin-top:.6rem; }
#abt .v2-calc-in .v2-calc-hint + .v2-calc-label { margin-top:1.6rem; }
#abt .v2-calc-range { display:flex; align-items:center; gap:1rem; }
#abt .v2-calc-range input { flex:1 1 auto; accent-color:#17425D; height:1.6rem; cursor:pointer; }
#abt .v2-calc-range output { flex:0 0 3.6ch; text-align:right; font-family:'Fraunces',serif; font-size:2.2rem; font-weight:800; line-height:1; color:#17425D; }
#abt .v2-calc-money { display:flex; align-items:center; gap:.35rem; padding:.55rem .9rem; border:1.5px solid #0a0a0c; border-radius:12px; font-family:'JetBrains Mono',monospace; font-size:1.3rem; font-weight:700; }
#abt .v2-calc-money:focus-within { border-color:#17425D; box-shadow:0 0 0 3px rgba(23,66,93,.18); }
#abt .v2-calc-money input { flex:1 1 auto; min-width:0; border:0; outline:0; background:transparent; font:inherit; color:#0a0a0c; }
#abt .v2-calc-hint { margin:.5rem 0 0; font-size:.82rem; line-height:1.45; color:#78716c; }
#abt .v2-calc-res { padding:1.75rem 1.5rem; background:#17425D; color:#fafaf9; }
#abt .v2-calc-out { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1rem 1.25rem; margin:0; }
#abt .v2-calc-out > div { min-width:0; }
#abt .v2-calc-out dt { font-family:'JetBrains Mono',monospace; font-size:.64rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#9FC3D6; }
#abt .v2-calc-out dd { margin:.25rem 0 0; font-family:'JetBrains Mono',monospace; font-size:1.2rem; font-weight:700; color:#fafaf9; }
#abt .v2-calc-out .v2-calc-y1 { grid-column:1 / -1; order:-1; padding-bottom:1rem; border-bottom:1px solid rgba(255,255,255,.2); }
#abt .v2-calc-out .v2-calc-y1 dd { font-family:'Fraunces',serif; font-size:3.2rem; font-weight:800; line-height:1; letter-spacing:-.02em; }
#abt .v2-calc-card.is-no .v2-calc-y1 dd { color:#fca5a5; }
#abt .v2-calc-verdict { margin:1.2rem 0 0; font-family:'Fraunces',serif; font-style:italic; font-size:1.1rem; line-height:1.4; color:#e7e5e4; }
#abt .v2-calc-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.4rem; margin-top:1.3rem; }
#abt .v2-calc-quote { background:#fafaf9; color:#17425D; font-weight:700; }
#abt .v2-calc-quote:hover { background:#fff; transform:translateY(-1px); }
#abt .v2-calc-print { padding:0; border:0; background:none; color:#fafaf9; font:inherit; font-size:.92rem; font-weight:600; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
#abt .v2-calc-foot { max-width:48rem; margin:1.1rem auto 0; text-align:center; font-family:'JetBrains Mono',monospace; font-size:.72rem; line-height:1.6; color:#78716c; }
@media (min-width:640px){ #abt .v2-calc-in, #abt .v2-calc-res { padding:2.25rem; } #abt .v2-calc-out { grid-template-columns:repeat(3, minmax(0,1fr)); } }

/* the one-page summary for finance: printed alone, nothing else from the site */
#abt-print-root { display:none; }
@media print {
  @page { size:Letter; margin:.7in; }
  html.abt-print-memo body > *:not(#abt-print-root) { display:none !important; }
  html.abt-print-memo #abt-print-root { display:block !important; }
  html.abt-print-memo, html.abt-print-memo body { background:#fff !important; background-image:none !important; }
  html.abt-print-memo::before, html.abt-print-memo::after, html.abt-print-memo body::before, html.abt-print-memo body::after { display:none !important; content:none !important; }
}
#abt-print-root .v2-memo { font-family:'Inter',system-ui,sans-serif; color:#0a0a0c; font-size:10.5pt; line-height:1.5; }
#abt-print-root .v2-memo-top { display:flex; justify-content:space-between; padding-bottom:8pt; border-bottom:1.5pt solid #17425D; font-family:'JetBrains Mono',monospace; font-size:8pt; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#17425D; }
#abt-print-root h1 { margin:18pt 0 6pt; font-family:'Fraunces',serif; font-size:24pt; line-height:1.1; letter-spacing:-.02em; }
#abt-print-root .v2-memo-lede { font-family:'Fraunces',serif; font-style:italic; font-size:13pt; color:#17425D; margin:0 0 12pt; }
#abt-print-root table { width:100%; border-collapse:collapse; margin:0 0 14pt; }
#abt-print-root th { width:34%; text-align:left; padding:6pt 8pt 6pt 0; font-family:'JetBrains Mono',monospace; font-size:8pt; letter-spacing:.08em; text-transform:uppercase; color:#57534e; border-bottom:.6pt solid #e7e2d9; vertical-align:top; }
#abt-print-root td { padding:6pt 0; border-bottom:.6pt solid #e7e2d9; font-weight:600; }
#abt-print-root h2 { margin:12pt 0 4pt; font-family:'Fraunces',serif; font-size:13pt; }
#abt-print-root p { margin:0 0 6pt; }
#abt-print-root .v2-memo-foot { margin-top:16pt; padding-top:8pt; border-top:.6pt solid #e7e2d9; font-family:'JetBrains Mono',monospace; font-size:8pt; color:#57534e; }

/* ---- guides hub (/rebuild/guides) ---- */
#abt .v2-gh-hero { padding:3.5rem 0 3rem; }
#abt .v2-gh-h1 { max-width:48rem; font-family:'Fraunces',serif; font-size:clamp(2.1rem, 5vw, 3.6rem); font-weight:800; line-height:1.05; letter-spacing:-.03em; color:#0a0a0c; margin:0 0 1rem; }
#abt .v2-gh-lede { max-width:44rem; font-size:1.08rem; line-height:1.6; color:#57534e; margin:0; }
#abt .v2-gh-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1.25rem; }
@media (min-width:640px){ #abt .v2-gh-grid { grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (min-width:1024px){ #abt .v2-gh-grid { grid-template-columns:repeat(4, minmax(0,1fr)); gap:1.5rem; } }
#abt .v2-gh-card a { display:flex; flex-direction:column; height:100%; padding:1rem 1rem 1.1rem; background:#fff; border:1px solid rgba(10,10,12,.08); border-radius:14px; text-decoration:none; color:inherit; transition:transform .18s, box-shadow .18s, border-color .18s; }
#abt .v2-gh-card a:hover { transform:translateY(-3px); border-color:#17425D; box-shadow:0 18px 36px -18px rgba(23,66,93,.35); }
#abt .v2-gh-card a:focus-visible { outline:3px solid #17425D; outline-offset:3px; }
#abt .v2-gh-card img { display:block; width:100%; height:auto; border-radius:4px; box-shadow:0 10px 24px -12px rgba(0,0,0,.45); margin-bottom:.9rem; }
#abt .v2-gh-tool { font-family:'JetBrains Mono',monospace; font-size:.66rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#17425D; }
#abt .v2-gh-name { margin-top:.3rem; font-family:'Fraunces',serif; font-size:1.12rem; font-weight:700; line-height:1.2; color:#0a0a0c; }
#abt .v2-gh-meta { margin-top:.35rem; font-size:.8rem; color:#78716c; }
#abt .v2-gh-go { margin-top:auto; padding-top:.7rem; font-size:.88rem; font-weight:700; color:#17425D; }
#abt .v2-gh-foot { margin:2rem 0 0; font-size:.92rem; color:#57534e; }
#abt .v2-gh-foot a { color:#17425D; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
