/* v6: one type scale, one rhythm, one component set. Loaded after style.css. Theme tokens first, then rules. */

/* ---------- WHITE: the one look ---------- */
html:root {
  --sage: #FFFFFF; --sage2: #F2F5F8; --sage3: #E4EAF0; --surface: #F2F5F8;
  --ink: #0F2A44; --body: #2A4157; --line-s: #CCD6DF; --accent: #0E6B45;
  --card: #F2F5F8; --card-edge: #DCE4EB;
}

/* ---------- TYPE SCALE: weights 400 and 600 (700 prices), nothing thin ---------- */
body { font-size: 18px; line-height: 1.55; }
h1, h2, h3, h4 { font-weight: 600; }
h1, .h-xl { font-size: 72px; line-height: 1.02; letter-spacing: -0.03em; }
h2, .h-l { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; }
h3, .h-m { font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; }
h4 { font-size: 18px; }
.lede { font-size: 20px; line-height: 1.5; }
.label, .panel .label, .light .label { font-size: 13px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 14px; }
.panel p, .light p, .panel li { color: var(--body); }
.panel p, .panel li, .prac3 p { font-size: 18px; }
.panel .fine, .fine { font-size: 15px; }
.btn { font-weight: 600; font-size: 16px; }

/* ---------- RHYTHM: one section padding, one gap, one head pattern ---------- */
:root { --sec: 96px; --inset: 24px; }
.panel { padding: var(--sec) 0; }
.panel + .panel { margin-top: 24px; }
.sec { padding: 80px 0; }
.hero, .h4-hero, .p4-hero, .seats .s4-hero { padding: 56px 0 56px; }
.hero + .sec { padding-top: 24px; }
.sechead { max-width: 760px; margin-bottom: 48px; }
.sechead .h-l, .sechead h2 { margin: 0; }
.sechead-p { margin-top: 16px; font-size: 19px; line-height: 1.5; max-width: 40em; }
.h4-sechead, .show-head, .traits-head, .panel-head, .sec-head { margin-bottom: 48px; }
.show-head { align-items: flex-end; }
.sc4-foot { margin-top: 40px; }
@media (max-width: 760px) {
  :root { --sec: 64px; }
  h1, .h-xl { font-size: 44px; line-height: 1.05; }
  h2, .h-l { font-size: 32px; line-height: 1.1; }
  h3, .h-m { font-size: 22px; }
  body { font-size: 17px; }
  .panel p, .panel li, .prac3 p { font-size: 17px; }
  .sechead, .h4-sechead, .show-head, .traits-head, .panel-head, .sec-head { margin-bottom: 32px; }
  .hero, .h4-hero, .p4-hero, .seats .s4-hero { padding: 28px 0 32px; }
  .sec { padding: 56px 0; }
}

/* ---------- HERO: the headline is the loudest thing; the also-line and lede step down ---------- */
.h4-title { max-width: 11em; }
.h4-also { font-size: 18px; color: var(--muted); }

/* ---------- SEAT CARDS: one component, same on home, pricing, seats ---------- */
.sc4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; padding-top: 14px; }
.sc4-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-edge); color: var(--ink); }
.sc4-lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.sc4-name { margin-top: 10px; font-size: 26px; font-weight: 600; color: var(--ink); }
.sc4-price { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.panel .sc4-price { color: var(--ink); }
.sc4-price b { font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.sc4-price span { font-size: 15px; color: var(--body); }
.sc4-card .btn { margin-top: 24px; width: 100%; justify-content: center; min-height: 52px; border-radius: 12px; }
.sc4-card .btn-line { border-color: var(--ink); color: var(--ink); border-width: 1.5px; }
.sc4-card .btn-line:hover { background: var(--ink); color: var(--sage); }
.sc4-ticks { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-s); display: grid; gap: 12px; }
.sc4-ticks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.panel .sc4-ticks li { font-size: 16px; color: var(--ink); }
.sc4-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) var(--i-tick) center / 11px no-repeat; }
:root { --i-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4l3 3 6-6.4'/%3E%3C/svg%3E"); }
/* Owner card: raised, dark, the one to start with */
.sc4-card.own { background: #112A43; border-color: #112A43; color: #F1F4E9; transform: translateY(-14px); box-shadow: 0 24px 44px rgba(17, 42, 67, 0.30); }
.sc4-card.own .sc4-lbl { color: #B7D49D; }
.sc4-card.own .sc4-name, .sc4-card.own .sc4-price, .panel .sc4-card.own .sc4-price { color: #F1F4E9; }
.sc4-card.own .sc4-price span { color: #C9D8D2; }
.sc4-card.own .sc4-ticks { border-top-color: #3A5871; }
.sc4-card.own .sc4-ticks li, .panel .sc4-card.own .sc4-ticks li { color: #F1F4E9; }
.sc4-card.own .sc4-ticks li::before { background-color: #B7D49D; --i-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23112A43' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4l3 3 6-6.4'/%3E%3C/svg%3E"); }
.sc4-badge { position: absolute; top: -13px; left: 32px; padding: 5px 12px; border-radius: 999px; background: #B7D49D; color: #112A43; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 1180px) {
  .sc4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc4-card.own { transform: none; }
}
@media (max-width: 700px) {
  .sc4 { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 14px; }
  .sc4-card { padding: 24px; }
  .sc4-card.own { order: -1; transform: none; }
  .sc4-price b { font-size: 44px; }
}

/* ---------- CUSTOM LEVELS (pricing): three equal cards ---------- */
.lv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lv3 li { padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-edge); }
.lv3 .lv-n { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.07em; color: var(--accent); }
.lv3 h3 { margin-bottom: 10px; color: var(--ink); }
@media (max-width: 900px) { .lv3 { grid-template-columns: minmax(0, 1fr); gap: 16px; } .lv3 li { padding: 24px; } }

/* ---------- PROJECT CARDS ---------- */
.h4-cards { gap: 24px; }
.h4-card { background: var(--card); border: 1px solid var(--card-edge); box-shadow: none; }
.h4-card:hover { box-shadow: 0 0 0 2px var(--ink); }
.h4-body { padding: 20px 28px 28px; gap: 10px; }
.h4-body b { font-size: 24px; font-weight: 600; color: var(--ink); }
.h4-body .txt { font-size: 17px; }
.h4-body .more { font-size: 16px; font-weight: 600; color: var(--ink); }
.h4-fig figcaption { padding: 12px 28px 0; font-size: 13px; }

/* ---------- HOW WE WORK: heavy numbered columns ---------- */
.prac3 { gap: 24px; counter-reset: pr; }
.prac3 > div { counter-increment: pr; padding: 32px; border: 1px solid var(--card-edge); border-radius: 20px; background: var(--card); }
.prac3 > div .label { font-size: 0; margin: 0 0 18px; height: auto; }
.prac3 > div .label::before { content: counter(pr); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--accent); text-transform: none; }
.prac3 .h-m { font-size: 26px; color: var(--ink); margin-bottom: 14px; }
.panel .ptags { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent); }
@media (max-width: 900px) { .prac3 { grid-template-columns: minmax(0, 1fr); } .prac3 > div { padding: 24px; } }

/* ---------- WHO WE WORK WITH / AUDIENCES: same card ---------- */
.tcards4 { gap: 24px; }
.tcards4 > div { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-edge); }
.tcards4 h3 { font-size: 22px; color: var(--ink); }

/* ---------- ONE BUTTON SET ---------- */
.btn { border-radius: 12px; min-height: 52px; }
.btn-big { min-height: 56px; font-size: 17px; }
.panel .btn-ink { background: var(--ink); color: var(--sage); }

/* ---------- FIXES FROM THE RED TEAM ---------- */
.ctabox .label { color: #B7D49D; }
.qnav a, .dd-panel a, .menu-panel a, .menu-panel summary { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a { min-height: 44px; }
@media (max-width: 760px) {
  .label, .panel .label { font-size: 13px; }
  .fine, .panel .fine { font-size: 14px; }
}

/* ---------- ROUND 2 (after viewing home) ---------- */
.h4-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.h4-title { max-width: 13.5em; }
.h4-also { margin-top: 20px; }
.h4-gain { max-width: 34em; margin-top: 28px; }
.h4-hero .actions { margin-top: 28px; }
.h4-hero-grid > div + div { margin-top: 0; }
.h4-fig figcaption { min-height: 0; }
@media (min-width: 1200px) { .h4-fig figcaption { min-height: calc(2.8em + 12px); } }
.sc4-card.own { transform: none; margin-top: -14px; }
@media (max-width: 1180px) { .sc4-card.own { margin-top: 0; } }
.aud-list a b { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.aud-list a span { font-size: 17px; }
.h4-traits .traits-head, .traits-head { display: block; max-width: 760px; margin-bottom: 48px; }
.traits-head p { margin-top: 16px; font-size: 19px; }
.call-grid .actions .btn-line { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.call-grid .actions .btn-line:hover { background: var(--mint-hi); }
@media (max-width: 760px) { .traits-head { margin-bottom: 32px; } }

/* ROUND 3 */
.lv2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .lv2 { grid-template-columns: minmax(0, 1fr); } }
.lv3 li p + .text-link, .lv3 li .text-link { display: inline-block; margin-top: 16px; }
.lv3 .note { margin-top: 14px; font-size: 15px; opacity: .8; }
.sv-ops-head h2 { font-size: 44px; font-weight: 600; line-height: 1.1; }
#s-customers, #s-care, #s-fit { scroll-margin-top: 96px; }
.show-head { display: block; }
.show-head > .btn, .show-head > a.btn { margin-top: 24px; }
@media (max-width: 480px) {
  .topbar { padding-left: 18px; padding-right: 12px; gap: 8px; }
  .topbar .nav { gap: 8px; }
  .topbar .nav > .btn { padding: 0 14px; min-height: 44px; font-size: 15px; }
  .topbar .nav > .btn::after { display: none; }
  .topbar .menu summary { padding: 0 12px; min-height: 44px; }
}
.sc4-card.own .btn, .sc4-card.own .btn-mint { color: #112A43; }

/* ROUND 4: landing hero centered (Josh 11/10) */
.h4-hero-grid { text-align: center; justify-items: center; }
.h4-hero .h4-title, .h4-hero .h4-gain, .h4-hero .h4-also { margin-left: auto; margin-right: auto; }
.h4-hero .actions { justify-content: center; }
.h4-hero .label { display: block; }

/* ROUND 5: every page on one rhythm (Josh 11/10: consistent cadence, organization, structure) */
:root { --pv: 80px; }
@media (max-width: 760px) { :root { --pv: 56px; } }
main > section.panel.panel { padding-top: var(--pv); padding-bottom: var(--pv); }
main > section.sec.sec { padding-top: var(--pv); padding-bottom: var(--pv); }
main > section.hero + section.sec.sec { padding-top: 24px; padding-bottom: 24px; }
main > section.hero.hero { padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 760px) { main > section.hero.hero { padding-top: 28px; padding-bottom: 28px; } }
/* every hero is one stack on the left: label, headline, intro, buttons */
.hero .hero-grid, .hero .hero-grid.fit { display: block; }
.hero .hero-grid > div + p, .hero .hero-grid > div + div, .hero .hero-grid > p.lede { margin-top: 20px; }
.hero .hero-grid .lede { max-width: 44em; }
.hero .hero-grid .actions { margin-top: 28px; }
.hero h1 { max-width: 18em; }
.hero:not(.h4-hero) h1, .hero:not(.h4-hero) h1.h-xl { font-size: 64px; line-height: 1.04; }
@media (max-width: 760px) { .hero:not(.h4-hero) h1, .hero:not(.h4-hero) h1.h-xl { font-size: 44px; } }
.hero-grid.fit .ln { white-space: normal; }
/* every section heading is the same size, closing blocks included */
.panel.blk h2, .sec.blk h2, .call-grid h2, h2.h-xl { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
@media (max-width: 760px) { .panel.blk h2, .sec.blk h2, .call-grid h2, h2.h-xl { font-size: 32px; } }
.call-grid > div:first-child h2 { max-width: 14em; }
.s4-name { font-size: 44px; }
.blk .cards > .card > h2, .qgroup h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
@media (max-width: 760px) { .blk .cards > .card > h2, .qgroup h2 { font-size: 26px; } }

/* weights: only 400, 600 and 700 (prices) anywhere */
h3, h4, strong, b, th, .s4-every-h, .num, .q-title, .label, .n, .g-count, .card h3 { font-weight: 600; }
.services-line, .th-u, .t, .sm, .cnt, .yn, td span { font-weight: 400; }
/* text on white panels never uses the pale navy-page tones */
.panel { --muted: #4A6075; }
.panel .card .label, .panel a.card .label { color: var(--accent); }
.panel.dark, .panel .dark, .panel .ctabox, .panel .own, th.own, td.own { --muted: #D3E2DC; }
.panel.blk .cards .card a.card .label, .panel.blk .cards a.card .label { color: var(--accent); }

/* ROUND 6: group h2 and call card h2 at the one 32 size */
main .blk .cards > .card > h2, main .qgroup h2, main .fcard h2, main .panel .fcard h2 { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
@media (max-width:760px){ main .blk .cards > .card > h2, main .qgroup h2, main .fcard h2, main .panel .fcard h2 { font-size: 26px; } }

/* ROUND 7: ventures hero evidence figure */
.hero .hero-rest { display: grid; gap: 24px; margin-top: 24px; }
.hero .hero-rest > div > small { font-size: 14px; color: var(--muted); }
.hero .hero-rest figure { margin: 0; display: grid; gap: 12px; }
.hero .hero-rest figure > div:first-child { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.hero .hero-rest figure > div:first-child strong { display: block; margin-top: 6px; font-size: 26px; letter-spacing: -.02em; text-transform: none; color: #F1F4E9; }
.hero .hero-rest figure img { width: 100%; height: auto; border-radius: 20px; display: block; }
.hero .hero-rest figcaption { font-size: 14px; color: var(--muted); }
.hero .hero-rest + .actions { margin-top: 28px; }

/* ROUND 8: compare table Owner column, light mint tint instead of dark strips */
main .s4-cmp td.own { background: #E4EEDB; color: #0F2A44; border-top-color: #D3E0C8; }
main .s4-cmp .own .yes { color: #0F2A44; }
main .s4-cmp .own .no { color: #4A6075; }
main .s4-cmp td.own .yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%230E6B45'/%3E%3Cpath d='M7 12.4l3.4 3.4L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
main .s4-cmp tbody tr.grp th { background: #E8EDF2; }
main .s4-cmp td.own .no::before { background-image: var(--i-no); }

/* ROUND 9: Owner seat section is a white panel like the other seats, with a green top strip */
main .panel.owner-sec { background: #FFFFFF; color: #0F2A44; box-shadow: inset 0 5px 0 var(--accent); --muted: #4A6075; }
main .owner-sec h2, main .owner-sec .s4-name, main .owner-sec h3, main .owner-sec h4, main .owner-sec h4.mini, main .owner-sec b, main .owner-sec strong, main .owner-sec .acc > summary { color: #0F2A44; }
main .owner-sec p, main .owner-sec li, main .owner-sec .s4-who, main .owner-sec .s4-plus, main .owner-sec .per, main .owner-sec .acc-p, main .owner-sec .day li span { color: #2A4157; }
main .owner-sec .amt { color: #0E6B45; }
main .owner-sec .sp-tag, main .owner-sec .tag { background: #B7D49D; color: #0F2A44; }
main .owner-sec .text-link { color: #0E6B45; }
main .owner-sec .acc, main .owner-sec .acc > summary { border-color: #D5DEE6; }
main .owner-sec .acc > summary .cnt { color: #4A6075; }
main .owner-sec .acc > summary::after { background: linear-gradient(#FFFFFF,#FFFFFF) center / 12px 2px no-repeat, linear-gradient(#FFFFFF,#FFFFFF) center / 2px 12px no-repeat, #112A43; }
main .owner-sec .acc[open] > summary::after { background: linear-gradient(#FFFFFF,#FFFFFF) center / 12px 2px no-repeat, #0E6B45; }
main .owner-sec .ticks li::before { background-color: #0E6B45; }

/* ROUND 10: the five SpeeDee scene images are 3:2 flat screens, never crop or letterbox them */
main img[src*="speedee-control-sheet"], main img[src*="speedee-owner-queue"] { width: 100% !important; height: auto !important; aspect-ratio: 3 / 2 !important; object-fit: cover !important; object-position: center !important; display: block; }
main :is(.h4-img, .s4-img):has(img[src*="speedee-"]) { background: #112A43; }
[hidden] { display: none !important; }
:is(h1, h2, h3)[tabindex="-1"]:focus, :is(h1, h2, h3)[tabindex="-1"]:focus-visible { outline: none; }

/* Home 08 (11/15): the closing block of the home page ("What do you have in mind?") is its own band, so the blue no longer runs from the block above it into the footer.
   Full width, the top bar colour, one hairline on top. No gradient, no new colour, text colours unchanged. The footer already draws its own rule (.foot > .wrap),
   so on a page where this band sits right above the footer that rule is dropped: the band's own edge is the divider and the two never make a doubled line.
   Scoped to main > section.close-band: no other page or section matches. */
main > section.sec.close-band { background: var(--bar); border-top: 1px solid var(--line); }
main:has(> section.close-band) + .foot > .wrap { border-top: 0; }
