/*
Theme Name: Midwest Fleet Solutions
Theme URI: https://midwestfleetsolutions.com/
Description: Custom theme for Midwest Fleet Solutions. GPS fleet tracking, dash cams and safety solutions. Works with Yoast SEO, Formidable Forms, WP Rocket and Site Kit.
Version: 1.0.5
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: midwest-fleet-solutions
*/
/* Layout concept: "dispatch board". Clean cool-white pages, a deep slate band for
   the hero and footer, brand blue used as the live signal (pins, status, CTAs),
   and monospace data labels borrowed from the tracking software itself. */
:root {
  --bg: #F5F8FA;
  --surface: #FFFFFF;
  --surface-2: #EAF1F5;
  --ink: #15212B;
  --ink-2: #4A5B68;
  --line: #D8E2E9;
  --brand: #29AAE1;
  --brand-ink: #0B76A8;
  --brand-wash: #E1F3FB;
  --night: #101B24;
  --night-2: #1A2A36;
  --night-ink: #E8F0F5;
  --night-ink-2: #9FB3C1;
  --ok: #1F9D6B;
  --warn: #D9822B;
  --logo-light: block;
  --logo-dark: none;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);

  --radius: 10px;
  --wrap: 1180px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D161D; --surface: #14212B; --surface-2: #1A2A36; --ink: #E6EEF3; --ink-2: #A3B5C2;
    --line: #26394A; --brand: #3DB6EA; --brand-ink: #6CCBF2; --brand-wash: #14324A;
    --night: #08111A; --night-2: #12202B; --night-ink: #E8F0F5; --night-ink-2: #9FB3C1;
    --ok: #3CC48E; --warn: #F0A050; --logo-light: none; --logo-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D161D; --surface: #14212B; --surface-2: #1A2A36; --ink: #E6EEF3; --ink-2: #A3B5C2;
  --line: #26394A; --brand: #3DB6EA; --brand-ink: #6CCBF2; --brand-wash: #14324A;
  --night: #08111A; --night-2: #12202B; --night-ink: #E8F0F5; --night-ink-2: #9FB3C1;
  --ok: #3CC48E; --warn: #F0A050; --logo-light: none; --logo-dark: block; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; margin: 0; font-weight: 750; font-stretch: 92%; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0; max-width: 68ch; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.5rem; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: .5rem 1rem; }

/* Eyebrow: mono, like a field label in the tracking app */
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-ink); display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.on-night .eyebrow { color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: .01em; padding: .85rem 1.35rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #06222F; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); }
.on-night .btn-ghost { border-color: color-mix(in srgb, var(--night-ink) 30%, transparent); color: var(--night-ink); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Preview ribbon (mockup only) */
.mfs-unused-ribbon { background: var(--brand-wash); color: var(--ink); font-size: var(--step--1); }
.mfs-unused-ribbon .wrap { padding-block: .45rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; text-align: center; }
.mfs-unused-ribbon a { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand { gap: .6rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-display); text-transform: uppercase; }
.wordmark b { font-weight: 800; font-stretch: 110%; font-size: 1.32rem; letter-spacing: .01em; color: var(--brand); }
.wordmark span { font-weight: 600; font-size: .7rem; letter-spacing: .2em; color: var(--ink); margin-top: .2rem; }
.site-footer .wordmark span { color: var(--night-ink); }
.site-footer .brand img { height: 48px; }
.brand .logo-l { display: var(--logo-light); }
.brand .logo-d { display: var(--logo-dark); }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: .5rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-wash); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-family: var(--f-mono); font-size: .85rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-cta .btn { padding: .6rem 1.1rem; font-size: .92rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; display: block; }
@media (max-width: 1200px) { .header-phone { display: none; } }
@media (max-width: 1010px) {
  .menu-btn { display: block; }
  .nav, .header-cta { display: none; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem var(--gut-r) 1rem var(--gut-l); gap: .15rem; }
  .site-header.open .nav a { padding: .75rem .5rem; font-size: 1.05rem; }
  .site-header.open .nav .nav-quote { display: block; margin-top: .5rem; text-align: center; background: var(--brand); color: #06222F; border-radius: 999px; }
}
.nav .nav-quote { display: none; }

/* Night bands (hero, CTA, footer) */
.on-night { background: var(--night); color: var(--night-ink); }
.on-night .muted { color: var(--night-ink-2); }
.on-night a:not(.btn) { color: var(--brand); }

/* HOME HERO */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--night-ink) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--night-ink) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 75%); }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 88%; letter-spacing: -0.025em; line-height: 1.0; }
.hero h1 .accent { color: var(--brand); display: block; }
.hero h1 .kw { display: block; font-size: 0.42em; font-weight: 600; font-stretch: 100%; letter-spacing: -0.005em; line-height: 1.25; color: var(--night-ink-2); margin-top: 1rem; }
.hero .lede { font-size: var(--step-1); color: var(--night-ink-2); line-height: 1.5; max-width: 34ch; }
.hero-copy { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }

/* Live tracking card over photo */
.hero-visual { position: relative; min-width: 0; }
.hero-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--night) 75%, transparent)); }
.pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); animation: ping 2.4s ease-out infinite; z-index: 2; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 18px transparent; } }
.track-card { position: absolute; left: -1.5rem; bottom: -1.5rem; width: min(330px, 88%); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); font-size: .85rem; z-index: 3; }
.track-card header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.track-card .asset { font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.status { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); white-space: nowrap; }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; border-block: 1px solid var(--line); padding-block: .7rem; }
.readouts div { display: flex; flex-direction: column; }
.readouts dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.readouts dd { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.alert-row { display: flex; gap: .6rem; align-items: flex-start; margin-top: .7rem; color: var(--ink-2); line-height: 1.4; }
.alert-row b { color: var(--ink); }
.alert-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-top: .35rem; }
.track-note { position: absolute; right: .8rem; top: .8rem; z-index: 3; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: .25rem .5rem; border-radius: 6px; }

/* Proof strip */
.proof { border-top: 1px solid color-mix(in srgb, var(--night-ink) 12%, transparent); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proof li { padding: 1.4rem 1rem 1.6rem; display: flex; flex-direction: column; gap: .2rem; border-left: 1px solid color-mix(in srgb, var(--night-ink) 12%, transparent); }
.proof li:first-child { border-left: 0; padding-left: 0; }
.proof .num { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: var(--step-2); color: var(--night-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.proof .lbl { font-size: .85rem; color: var(--night-ink-2); line-height: 1.35; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }
.split > * { min-width: 0; }

/* Experience block */
.exp-figure { display: flex; flex-direction: column; gap: .4rem; }
.exp-figure .big { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(5rem, 3rem + 9vw, 10rem); line-height: .85; color: var(--brand); letter-spacing: -0.04em; }
.exp-figure .big small { font-size: .32em; font-stretch: 100%; letter-spacing: 0; color: var(--ink); margin-left: .25rem; }

/* Solution cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.section-alt .card { background: var(--bg); }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-wash); color: var(--brand-ink); display: grid; place-items: center; }
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); font-size: .97rem; flex: 1; }
.card .more svg { width: 16px; height: 16px; }
.card .more { font-family: var(--f-display); font-weight: 700; font-size: .92rem; color: var(--brand-ink); display: inline-flex; gap: .35rem; align-items: center; }

/* Video poster */
.video { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; color: #fff; text-decoration: none; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video:hover img { transform: scale(1.03); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,17,26,.8), rgba(8,17,26,.15)); }
.video .play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 25%, transparent); }
.video .play svg { width: 30px; height: 30px; margin-left: 5px; fill: #06222F; }
.video .cap { position: absolute; z-index: 2; left: 1.4rem; bottom: 1.2rem; right: 1.4rem; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* Pricing callouts */
.price-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; background: var(--surface); display: flex; flex-direction: column; gap: .35rem; }
.price .tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.price .amt { font-family: var(--f-display); font-weight: 800; font-stretch: 85%; font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.price .amt small { font-size: .4em; font-weight: 600; color: var(--ink-2); }
.price p { font-size: .93rem; color: var(--ink-2); }

/* CTA band */
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.8rem, 6vw, 4.2rem); }
.cta-band h2 { font-size: var(--step-3); max-width: 20ch; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.4); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 30%, color-mix(in srgb, var(--night) 60%, transparent)); }
.page-hero .wrap { padding-block: clamp(3rem, 7vw, 5.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 88%; letter-spacing: -0.025em; line-height: 1; max-width: 18ch; }
.page-hero h1 .accent { color: var(--brand); }
.page-hero .lede { color: var(--night-ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.crumbs { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-2); }
.crumbs a { color: var(--night-ink-2) !important; text-decoration: none; }

/* Prose */
.prose { display: flex; flex-direction: column; gap: 1.1rem; }
.prose p { color: var(--ink-2); }
.prose p.lead { color: var(--ink); font-size: var(--step-1); line-height: 1.5; font-weight: 500; }

/* Checklists and chips */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; }
.checks.one { grid-template-columns: minmax(0, 1fr); }
.checks.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checks li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.45; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .1rem; border-radius: 50%; background: var(--brand-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230B76A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-family: var(--f-mono); font-size: .8rem; font-weight: 600; padding: .45rem .75rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: .45rem; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }

/* Feature rows (GPS page) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; }
.feature.flip > :first-child { order: 2; }
.feature > * { min-width: 0; }
.shot { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: .6rem; box-shadow: 0 30px 60px -40px rgba(16,27,36,.45); }
.shot img { border-radius: 6px; width: 100%; }
.shot.phone { max-width: 260px; margin-inline: auto; border-radius: 28px; padding: .5rem; }
.shot.phone img { border-radius: 22px; }
.feature-label { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }

/* Report definitions */
.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.defs div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.defs dt { font-family: var(--f-display); font-weight: 700; margin-bottom: .3rem; }
.defs dd { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Numbered steps (dashcam) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
.step { border-top: 3px solid var(--brand); padding-top: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.step .n { font-family: var(--f-mono); font-weight: 700; color: var(--brand-ink); font-size: .85rem; }
.step p { color: var(--ink-2); }

.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3rem; }
.fgrid > div { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.fgrid h3 { font-size: 1.15rem; }
.fgrid p { color: var(--ink-2); font-size: .97rem; }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.calc-in { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1.3rem; }
.calc-out { background: var(--night); color: var(--night-ink); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; }
.field label output { font-family: var(--f-mono); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.field .hint { font-size: .82rem; color: var(--ink-2); }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .85rem; border-bottom: 1px dashed color-mix(in srgb, var(--night-ink) 20%, transparent); }
.calc-line span { color: var(--night-ink-2); font-size: .92rem; }
.calc-line b { font-family: var(--f-mono); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.calc-line.total { border: 0; padding: 0; }
.calc-line.total b { font-family: var(--f-display); font-stretch: 85%; font-size: var(--step-3); color: var(--brand); font-weight: 800; }
.calc-formula { font-family: var(--f-mono); font-size: .78rem; color: var(--night-ink-2); line-height: 1.6; }
.disclaimer { font-size: .82rem; color: var(--ink-2); margin-top: .9rem; }

/* Team */
.person { display: flex; gap: 1.2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-wash); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; }
.person .role { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.person a { display: block; font-size: .95rem; word-break: break-all; }

.area-map { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-map span { font-family: var(--f-mono); font-size: .8rem; padding: .4rem .7rem; border-radius: 999px; background: var(--brand-wash); color: var(--brand-ink); font-weight: 600; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.post:hover { border-color: var(--brand); }
.post time { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.post h2 { font-size: var(--step-1); line-height: 1.25; }
.post p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.post .topic { align-self: flex-start; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: var(--brand-wash); color: var(--brand-ink); font-weight: 700; }
.post.featured { grid-column: 1 / -1; background: var(--night); color: var(--night-ink); border-color: var(--night); }
.post.featured p, .post.featured time { color: var(--night-ink-2); }
.post.featured h2 { font-size: var(--step-2); max-width: 26ch; }

/* Forms */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form .full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .35rem; }
.form label .req { color: var(--brand-ink); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .75rem .85rem; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.radios { display: flex; gap: .6rem; }
.radios label { margin: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-weight: 500; cursor: pointer; }
.radios input { accent-color: var(--brand); }
.form-note { grid-column: 1 / -1; padding: .9rem 1rem; border-radius: 8px; background: var(--brand-wash); color: var(--ink); font-size: .92rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-wash); color: var(--brand-ink); display: grid; place-items: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list h3 { font-size: 1rem; margin-bottom: .2rem; }
.info-list p, .info-list a { font-size: 1rem; }
.mono-num { font-family: var(--f-mono); font-weight: 600; }

/* Footer */
.site-footer .wrap { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }

.site-footer h2 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-ink-2); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer ul a { color: var(--night-ink) !important; text-decoration: none; }
.site-footer ul a:hover { color: var(--brand) !important; }
.footer-base { border-top: 1px solid color-mix(in srgb, var(--night-ink) 12%, transparent); }
.footer-base .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; font-size: .85rem; color: var(--night-ink-2); grid-template-columns: none; }

/* Notes page */
.notes table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.notes th, .notes td { text-align: left; vertical-align: top; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
.notes th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.notes td:first-child { font-weight: 600; white-space: nowrap; }
.notes .old { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-2) 50%, transparent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flag { border-left: 3px solid var(--warn); padding: .9rem 1.1rem; background: var(--surface); border-radius: 0 8px 8px 0; }

/* Responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof li:nth-child(4) { border-left: 0; padding-left: 0; }
  .checks.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero > .wrap, .split, .feature, .calc { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > :first-child { order: 0; }
  .track-card { left: .8rem; bottom: -1.2rem; }
  .hero-visual { margin-bottom: 1.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .defs, .posts, .fgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cards, .price-pair, .checks, .checks.three, .form { grid-template-columns: minmax(0, 1fr); }
  .proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { border-left: 0; padding-left: 0; }
  .brand img { height: 34px; }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: flex; flex-direction: column; gap: .2rem; }
.faq-toc .feature-label { margin-bottom: .5rem; }
.faq-toc a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .45rem .7rem; border-radius: 8px; border-left: 2px solid var(--line); }
.faq-toc a:hover { border-left-color: var(--brand); background: var(--surface-2); }
.faq-group { display: flex; flex-direction: column; gap: .6rem; scroll-margin-top: 100px; }
.faq-group + .faq-group { margin-top: 1.5rem; }
.faq-group h2 { font-size: var(--step-2); margin-bottom: .4rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq[open] { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.2rem; font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; line-height: 1.35; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-wash); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 1.1rem; }
.faq[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 1.2rem 1.2rem; }
.faq-a p { color: var(--ink-2); }
@media (max-width: 820px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-toc { position: static; flex-direction: row; flex-wrap: wrap; } .faq-toc .feature-label { width: 100%; } }


/* ---------- WordPress additions ---------- */
.entry { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 1.1rem; }
.entry > * { margin: 0; }
.entry p, .entry li { color: var(--ink-2); }
.entry h2 { font-size: var(--step-2); margin-top: 1rem; }
.entry h3 { font-size: var(--step-1); margin-top: .6rem; }
.entry ul, .entry ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.entry img { border-radius: 10px; }
.entry blockquote { margin: 0; padding: .8rem 1.2rem; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 8px 8px 0; }
.entry-thumb { margin: 0; }
.entry-nav { max-width: 760px; margin: 3rem auto 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-weight: 600; }
.pager { margin-top: 2rem; }
.pager .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pager .page-numbers { padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pager .page-numbers.current { background: var(--brand); color: #06222F; border-color: var(--brand); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-bar .site-header { top: calc(env(safe-area-inset-top, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

/* Built-in forms */
.form-col { min-width: 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .flabel { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; padding: 0; }
.form-done { display: flex; flex-direction: column; gap: .6rem; }
.form-done h2 { font-size: var(--step-2); }
.form .form-note[role="alert"] { background: color-mix(in srgb, #C2412D 12%, var(--surface)); }

/* Formidable Forms restyle */
.frm-wrap { display: block; }
.frm-wrap .frm_forms, .frm-wrap form, .frm-wrap fieldset { margin: 0; padding: 0; border: 0; }
.frm-wrap .frm_form_fields > fieldset > div, .frm-wrap .frm_fields_container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.frm-wrap .frm_form_field { grid-column: 1 / -1; margin: 0 !important; }
.frm-wrap .frm_half, .frm-wrap .frm6 { grid-column: span 1; }
.frm-wrap .frm_primary_label, .frm-wrap legend { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .35rem; color: var(--ink); }
.frm-wrap .frm_required { color: var(--brand-ink); }
.frm-wrap input[type="text"], .frm-wrap input[type="email"], .frm-wrap input[type="tel"], .frm-wrap input[type="number"], .frm-wrap select, .frm-wrap textarea {
  width: 100% !important; max-width: 100%; font: inherit; color: var(--ink); background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; padding: .75rem .85rem !important; box-shadow: none !important; height: auto !important; }
.frm-wrap textarea { min-height: 140px; }
.frm-wrap input:focus, .frm-wrap select:focus, .frm-wrap textarea:focus { outline: 2px solid var(--brand) !important; outline-offset: 1px; border-color: transparent !important; }
.frm-wrap .frm_radio { display: inline-flex; margin-right: .6rem; }
.frm-wrap .frm_radio label { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
.frm-wrap .frm_radio input { accent-color: var(--brand); }
.frm-wrap .frm_submit { grid-column: 1 / -1; }
.frm-wrap .frm_button_submit, .frm-wrap button[type="submit"] { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-display) !important; font-weight: 700 !important; font-size: 1rem !important; padding: .85rem 1.6rem !important; border-radius: 999px !important; border: 0 !important; background: var(--brand) !important; color: #06222F !important; cursor: pointer; box-shadow: none !important; }
.frm-wrap .frm_error, .frm-wrap .frm_error_style { color: #C2412D; font-size: .85rem; margin-top: .3rem; }
.frm-wrap .frm_message { padding: .9rem 1rem; border-radius: 8px; background: var(--brand-wash); color: var(--ink); }
.frm-wrap .frm_description { font-size: .82rem; color: var(--ink-2); }
@media (max-width: 560px) { .frm-wrap .frm_form_fields > fieldset > div, .frm-wrap .frm_fields_container { grid-template-columns: minmax(0, 1fr); } .frm-wrap .frm_half, .frm-wrap .frm6 { grid-column: 1 / -1; } }
