/* home-edge.css - aviometrics.com home page in "B · Edge" (founder chose it 6 Nov 2026).
 * Design: Vera, team/vera_light_sporty_mockup.html + vera_light_sporty_notes.md (direction B).
 * Built by Ada, facelift Edge phase 1. Replaces css/home-v2.css + css/home-v2-instr.css ON THE HOME
 * PAGE ONLY: every rule is under body.home-edge. home-v2*.css stay untouched because product.php,
 * real-flight.php, blog.php and blog-post.php still use them (phase 2).
 * Tokens and fonts come from css/edge.css (loaded site-wide by includes/header.php).
 * Rules kept from the notes: yellow only as a fill, never as text on white; white text only on the
 * darker top of the sky photo (desktop, 1100 px and up); below that the title is ink on white above
 * the photo. No glows, dot grids or icon trios. Hero-trace data, markers and readouts unchanged:
 * only the card's colours move to the chart tokens (left #0E7490, right #C2410C, grid #E2E8F0). */

body.home-edge main.hv { background: #fff; color: var(--e-ink); font-family: var(--e-body); font-size: 1.0625rem; line-height: 1.6; }
body.home-edge .hv :focus-visible { outline: 3px solid var(--e-ink); outline-offset: 3px; }
body.home-edge .hv-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { body.home-edge .hv-wrap { padding: 0 28px; } }
body.home-edge :where(.hv) p { margin: 0; }
body.home-edge .hv h1,
body.home-edge .hv h2,
body.home-edge .hv h3 {
  font-family: var(--e-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0;
  line-height: 1; text-wrap: balance; margin: 0; color: inherit;
}
body.home-edge .hv h1 { font-size: clamp(2.5rem, 9.6vw, 4.4rem); line-height: .95; }
body.home-edge .hv h2 { font-size: clamp(2.1rem, 6vw, 3.2rem); margin-bottom: 20px; }
body.home-edge .hv h3 { font-size: 1.8rem; margin-bottom: 8px; }
body.home-edge .hv-y { box-shadow: inset 0 -.12em 0 var(--e-act); }
body.home-edge .hv-label {
  font-family: var(--e-body); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--e-ink2); margin-bottom: 12px;
}
body.home-edge .hv-lead { color: var(--e-ink2); max-width: 40em; margin-bottom: 26px; }

/* buttons (48 px+, 4 px corners, condensed capitals) */
body.home-edge .hv-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: var(--e-r); border: 2px solid var(--e-act); background: var(--e-act); color: var(--e-on-act);
  font-family: var(--e-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.1; text-decoration: none; text-align: center;
}
body.home-edge .hv-btn:hover { background: var(--e-act-press); border-color: var(--e-act-press); color: var(--e-on-act); }
body.home-edge .hv-btn-ghost { background: transparent; border-color: var(--e-ink); color: var(--e-ink); }
body.home-edge .hv-btn-ghost:hover { background: var(--e-ink); border-color: var(--e-ink); color: #fff; }
body.home-edge .he-btn-ink { background: var(--e-ink); border-color: var(--e-ink); color: #fff; }
body.home-edge .he-btn-ink:hover { background: #24282E; border-color: #24282E; color: #fff; }
body.home-edge .hv-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.home-edge .hv-cta-center { justify-content: center; }
body.home-edge .hv-sec { padding: 64px 0; }
@media (min-width: 860px) { body.home-edge .hv-sec { padding: 88px 0; } }

/* ================= 1. HERO: sky photo, title, overlapping panel with the pressure card ================= */
body.home-edge .he-hero { background: #fff; padding-bottom: 56px; }
body.home-edge .he-top { display: flex; flex-direction: column; }
body.home-edge .he-title { padding: 28px 0 22px; }
body.home-edge .he-title h1 { color: var(--e-ink); }
body.home-edge .he-photo {
  display: block; width: 100%; height: 300px; object-fit: cover; object-position: 38% 48%; background: #2C68A6;
}
@media (min-width: 600px) { body.home-edge .he-photo { height: 380px; } }

/* desktop: title in white on the darker top of the sky, right of the wing (crop tested at 1100-1920 px) */
@media (min-width: 1100px) {
  body.home-edge .he-top { position: relative; display: block; }
  body.home-edge .he-photo { height: 640px; object-position: 100% 40%; }   /* pushes the wing left, clear of the title */
  @media (min-width: 1600px) { body.home-edge .he-photo { height: 740px; object-position: 100% 20%; } }   /* keeps the pilot above the panel */
  body.home-edge .he-top-wrap { position: absolute; inset: 0; pointer-events: none; }
  body.home-edge .he-title {
    position: absolute; top: 56px; right: 28px; width: min(520px, 44%); padding: 0; pointer-events: auto;
  }
  body.home-edge .he-title h1 { color: #fff; font-size: clamp(3.4rem, 4.6vw, 4.4rem); }
  body.home-edge .he-title .hv-label { color: #fff; }
}

body.home-edge .he-panel {
  position: relative; z-index: 1; margin-top: -48px; background: #fff;
  border-top: 8px solid var(--e-ink); border-radius: 0 0 var(--e-r-card) var(--e-r-card);
  box-shadow: 0 1px 0 var(--e-line), 0 24px 48px -30px rgba(0, 0, 0, .5);
  padding: 22px 18px 24px;
  display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "sub" "card" "cta";
}
body.home-edge .he-panel-nocard { grid-template-areas: "sub" "cta"; }
body.home-edge .he-panel .hv-sub { grid-area: sub; font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.5; color: var(--e-ink); max-width: 34em; }
body.home-edge .he-panel .hv-card { grid-area: card; }
body.home-edge .he-panel .hv-cta { grid-area: cta; }
@media (max-width: 479.98px) { body.home-edge .he-panel .hv-cta .hv-btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  body.home-edge .he-panel {
    margin-top: -120px; padding: 30px 32px 30px;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 40px; row-gap: 26px;
    grid-template-areas: "sub card" "cta card"; align-items: start;
  }
  body.home-edge .he-panel-nocard { grid-template-columns: minmax(0, 820px); grid-template-areas: "sub" "cta"; }
}

/* the real canopy-pressure card (js/hero-trace.js + css/hero-trace.css), on white with the chart tokens */
body.home-edge .he-hero .hero-trace-slot { max-width: none; width: 100%; }
body.home-edge .he-hero .hero-trace-slot .instrument {
  background: #fff; color: var(--e-ink); border: 1px solid var(--e-line); border-radius: var(--e-r-card);
  box-shadow: none; padding: 16px 16px 12px; --ht-mono: var(--e-mono);
}
body.home-edge .he-hero .hero-trace-slot .ins-head { flex-wrap: wrap; row-gap: 6px; }
body.home-edge .he-hero .hero-trace-slot .ins-title { font-family: var(--e-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
body.home-edge .he-hero .hero-trace-slot .rec { background: #DC2626; }
body.home-edge .he-hero .hero-trace-slot .ins-tag { color: var(--e-ink2); border-color: #C9C9C2; }
body.home-edge .he-hero .hero-trace-slot .trace { height: 150px; }
@media (min-width: 900px) { body.home-edge .he-hero .hero-trace-slot .trace { height: 180px; } }
body.home-edge .he-hero .hero-trace-slot .trace .grid line { stroke: var(--chart-grid); stroke-dasharray: none; }
body.home-edge .he-hero .hero-trace-slot .trace .ln { stroke-width: 2.4; }
body.home-edge .he-hero .hero-trace-slot .trace .ln.l { stroke: var(--chart-left); }
body.home-edge .he-hero .hero-trace-slot .trace .ln.r { stroke: var(--chart-right); }
body.home-edge .he-hero .hero-trace-slot .trace .dot.l { fill: var(--chart-left); }
body.home-edge .he-hero .hero-trace-slot .trace .dot.r { fill: var(--chart-right); }
body.home-edge .he-hero .hero-trace-slot .trace stop { stop-color: var(--chart-left); }
body.home-edge .he-hero .hero-trace-slot .trace #tA { opacity: .35; }
body.home-edge .he-hero .hero-trace-slot .trace .tb.tl { fill: rgba(14, 116, 144, .07); }
body.home-edge .he-hero .hero-trace-slot .trace .tb.tr { fill: rgba(194, 65, 12, .06); }
body.home-edge .he-hero .hero-trace-slot .sw.l { background: var(--chart-left); }
body.home-edge .he-hero .hero-trace-slot .sw.r { background: var(--chart-right); }
body.home-edge .he-hero .hero-trace-slot .ins-mark { color: #fff; background: var(--e-ink); }
/* thermal-entry marker: ink dashed line; its label is ink on a yellow fill */
body.home-edge .he-hero .hero-trace-slot .trace .mk-entry {
  stroke: var(--e-ink); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 1; vector-effect: non-scaling-stroke;
}
body.home-edge .he-hero .hero-trace-slot .ins-entry {
  position: absolute; top: 4px; left: 0; transform: translateX(6px);
  font-family: var(--e-body); font-weight: 700; font-size: .74rem; letter-spacing: .02em; white-space: nowrap;
  color: var(--chart-best-ink); background: var(--chart-best); border: 1px solid var(--e-ink);
  padding: 2px 7px; border-radius: var(--e-r); opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
body.home-edge .he-hero .hero-trace-slot .ins-entry.flip { transform: translateX(calc(-100% - 6px)); }
body.home-edge .he-hero .hero-trace-slot .ins-entry.on { opacity: 1; }
/* readouts: Left, Right, Airspeed vs trim in one row; the GPS-climb readout (3rd child) stays hidden */
body.home-edge .he-hero .hero-trace-slot .ins-read { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top-color: var(--e-line); }
body.home-edge .he-hero .hero-trace-slot .ins-read.has-as { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
body.home-edge .he-hero .hero-trace-slot .ins-read > div:nth-child(3) { display: none; }
body.home-edge .he-hero .hero-trace-slot .ins-read .k { color: var(--e-ink2); font-weight: 600; }
body.home-edge .he-hero .hero-trace-slot .ins-read .v { color: var(--e-ink2); }
body.home-edge .he-hero .hero-trace-slot .ins-read .v b { color: var(--e-ink); font-size: 1.6rem; font-weight: 600; }
body.home-edge .he-hero .hero-trace-slot .ins-as .k { text-transform: none; color: var(--e-ink); font-weight: 700; }
body.home-edge .he-hero .hero-trace-slot .ins-as[hidden] { display: none; }
body.home-edge .he-hero #vC { color: var(--e-ink2); }
@media (max-width: 479.98px) {
  body.home-edge .he-hero .hero-trace-slot .ins-read .v b { font-size: 1.3rem; }
  body.home-edge .he-hero .hero-trace-slot .ins-read .k { font-size: .6rem; letter-spacing: .04em; }
  body.home-edge .he-hero .hero-trace-slot .ins-tag { font-size: .58rem; letter-spacing: .06em; padding: 3px 7px; }
}

/* ================= 1b. yellow beta band (live strings: beta title, price, price note, apply) ================= */
body.home-edge .he-band { background: var(--e-act); color: var(--e-on-act); }
body.home-edge .he-band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; min-height: 92px; padding-top: 18px; padding-bottom: 18px; }
body.home-edge .he-band-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-right: auto; }
body.home-edge .he-band-t strong { font-family: var(--e-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1; }
body.home-edge .he-band-t span { font-weight: 700; font-size: 1.05rem; }
body.home-edge .he-band .hv-btn:focus-visible { outline-color: var(--e-ink); }
@media (max-width: 479.98px) { body.home-edge .he-band .hv-btn { flex: 1 1 100%; } }

/* ================= 2. who is who ================= */
body.home-edge .hv-light { background: var(--e-ground); color: var(--e-ink); }
body.home-edge .hv-three { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 820px) { body.home-edge .hv-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.home-edge .hv-who {
  background: #fff; border-radius: 0 0 var(--e-r-card) var(--e-r-card); border-top: 6px solid var(--e-ink);
  padding: 24px; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--e-line);
}
body.home-edge .hv-who h3 { font-size: 2rem; }
body.home-edge .hv-who p { color: var(--e-ink2); flex: 1; }
body.home-edge .hv-who a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 8px; align-self: flex-start;
  color: var(--e-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
body.home-edge .hv-who a:hover { text-decoration-color: var(--e-act); text-decoration-thickness: 4px; }

/* ================= 3. fit · fly · read: the yellow band ================= */
body.home-edge #how { background: var(--e-act); color: var(--e-on-act); }
body.home-edge #how .hv-label { color: var(--e-on-act); }
body.home-edge .hv-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { body.home-edge .hv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
body.home-edge .hv-num { font-family: var(--e-head); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--e-on-act); margin: 0 0 6px !important; }
body.home-edge .hv-steps p:not(.hv-num) { color: var(--e-on-act); }
body.home-edge .hv-fig { margin-top: 18px; border-radius: var(--e-r-card); overflow: hidden; border: 2px solid var(--e-ink); background: #0b1117; aspect-ratio: 900 / 499; }
body.home-edge .hv-fig picture, body.home-edge .hv-fig img { display: block; width: 100%; height: 100%; }
body.home-edge .hv-fig img { object-fit: contain; }
body.home-edge .hv-more { margin-top: 18px !important; }
body.home-edge .hv-more a {
  display: inline-flex; min-height: 48px; align-items: center; color: var(--e-on-act); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
body.home-edge .hv-more a:hover { text-decoration-thickness: 4px; }

/* ================= 3b. in the air ================= */
body.home-edge .hv-air { background: #fff; }
body.home-edge .hv-air-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { body.home-edge .hv-air-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
body.home-edge .hv-air-p { color: var(--e-ink2); max-width: 34em; }
body.home-edge .hv-air-offer { margin-top: 20px !important; padding-left: 14px; border-left: 6px solid var(--e-act); font-weight: 700; color: var(--e-ink); }
body.home-edge .hv-air-fig { margin: 0; }
body.home-edge .hv-air-fig img { display: block; width: 100%; height: auto; background: #fff; border-radius: var(--e-r-card); border: 2px solid var(--e-ink); }
body.home-edge .hv-air-fig figcaption { font-size: .88rem; color: var(--e-ink2); margin-top: 10px; }

/* ================= 4. one flight, read back ================= */
body.home-edge .hv-flight { padding: 64px 0; background: var(--e-ground); color: var(--e-ink); }
@media (min-width: 860px) { body.home-edge .hv-flight { padding: 88px 0; } }
body.home-edge .hv-flight-head h2 { max-width: 22em; }
body.home-edge .hv-band { margin: 8px 0 40px; }
body.home-edge .hv-band img { display: block; width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; background: #0E2233; }
@media (min-width: 769px) { body.home-edge .hv-band img { aspect-ratio: 3574 / 1103; } }
body.home-edge .hv-band figcaption,
body.home-edge .hv-liftmap figcaption { font-size: .88rem; color: var(--e-ink2); margin-top: 10px; }
body.home-edge .hv-liftmap { margin: 0 0 36px; }
body.home-edge .hv-liftmap img { display: block; width: 100%; height: auto; border-radius: var(--e-r-card); background: #04121c; }
body.home-edge .hv-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin: 0;
  border-top: 4px solid var(--e-ink); padding-top: 28px;
}
@media (min-width: 860px) { body.home-edge .hv-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.home-edge .hv-stats dd { margin: 6px 0 0; font-size: .95rem; color: var(--e-ink2); }
body.home-edge .hv-stat { font-family: var(--e-head); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); text-transform: uppercase; color: var(--e-ink); line-height: 1; font-variant-numeric: tabular-nums; }
body.home-edge .hv-foot { font-size: .88rem; color: var(--e-ink2); margin-top: 28px !important; }

/* ================= 5. ParaGuru ================= */
body.home-edge .hv-guru { background: #fff; }
body.home-edge .hv-guru-grid { display: block; }
body.home-edge .hv-guru h2 { max-width: 20em; }

/* ================= 6. beta + price ================= */
body.home-edge .hv-beta { background: var(--e-ground); color: var(--e-ink); text-align: center; }
body.home-edge .hv-beta-inner { max-width: 780px; }
body.home-edge .hv-price { font-family: var(--e-head); font-weight: 700; line-height: 1; margin: 8px 0 18px !important; }
body.home-edge .hv-price span { font-size: clamp(4rem, 14vw, 6.5rem); color: var(--e-ink); box-shadow: inset 0 -.14em 0 var(--e-act); }
body.home-edge .hv-price small { display: block; margin-top: 20px; font-family: var(--e-body); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--e-ink2); }
body.home-edge .hv-beta .hv-lead { margin-left: auto; margin-right: auto; }

/* ================= sticky "Apply for the beta" bar, phones only ================= */
body.home-edge .hv-sticky { display: none; }
@media (max-width: 819.98px) {
  body.home-edge .hv-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 4px solid var(--e-ink); transition: transform .2s ease;
  }
  body.home-edge .hv-sticky .hv-btn { width: 100%; min-height: 54px; }
  body.home-edge .hv-sticky.hv-sticky-off { transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
  body.home-edge { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-edge .hv-sticky, body.home-edge .hv-sticky.hv-sticky-off { transition: none; }
  body.home-edge .he-hero .hero-trace-slot .rec { animation: none; }
  body.home-edge .he-hero .hero-trace-slot .ins-entry { transition: none; }
  html:has(body.home-edge) { scroll-behavior: auto; }
}

/* ================= Edge r2 (founder 7 Nov 2026; plan 92 2a) =================
 * Sky (--ed-accent, tokens in css/edge.css :root) for links, icon glyphs and the secondary / selected controls; yellow
 * stays the one primary action; condensed capitals only for h1 / h2 - h3, buttons, labels and values in Barlow normal
 * width; no ink-filled control (image frames and titled bands stay ink: they are figures, not controls). On the yellow
 * bands links stay ink (sky on yellow is 4.0:1) and the former ink buttons go sky (white on sky 5.6:1). */
body.home-edge .hv h3 { font-family: var(--e-body); text-transform: none; letter-spacing: 0; }
body.home-edge .hv-btn { font-family: var(--e-body); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
body.home-edge .hv-btn-ghost { border-color: var(--ed-accent); color: var(--ed-accent); }
body.home-edge .hv-btn-ghost:hover { background: var(--ed-accent-tint); border-color: var(--ed-accent-press); color: var(--ed-accent-press); }
body.home-edge .he-btn-ink { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }
body.home-edge .he-btn-ink:hover { background: var(--ed-accent-press); border-color: var(--ed-accent-press); color: #fff; }
body.home-edge .he-hero .hero-trace-slot .ins-title { font-family: var(--e-body); font-size: .95rem; letter-spacing: .08em; }
body.home-edge .he-band-t strong { font-family: var(--e-body); text-transform: none; font-size: clamp(1.3rem, 3.2vw, 1.75rem); line-height: 1.15; }
body.home-edge .hv-who a { color: var(--ed-accent); }
body.home-edge .hv-who a:hover { color: var(--ed-accent-press); text-decoration-color: currentColor; }
body.home-edge .hv-num { font-family: var(--e-body); font-size: 3.2rem; font-variant-numeric: tabular-nums; }
body.home-edge .hv-stat { font-family: var(--e-body); font-size: clamp(2rem, 4.4vw, 2.6rem); text-transform: none; }
body.home-edge .hv-price { font-family: var(--e-body); font-variant-numeric: tabular-nums; }
