/* =====================================================================
   Ez Order – Design System & Styles
   Fonts: Manrope (headings), Inter (body/UI)
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --red-500: #E32336;
    --red-600: #CA1B21;
    --red-700: #A6161B;
    --red-800: #821115;
    --red-50:  #FDF2F2;
    --red-100: #F9DADC;

    --blue-500: #2952BC;
    --blue-400: #3E68D5;
    --blue-800: #132658;
    --navy-900: #0C1836;
    --blue-50:  #F2F5FC;
    --blue-100: #DCE4F6;

    --white: #FFFFFF;
    --text: #171923;
    --text-2: #3A4255;
    --muted: #647084;
    --subtle: #8D96A8;
    --border: #E6E9F0;
    --border-strong: #D5DAE4;
    --surface: #FAFBFD;

    --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -8px rgba(16, 24, 40, .10);
    --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -16px rgba(12, 24, 54, .22);

    --header-h: 72px;
    --container: 1240px;
    --gutter: 32px;
    --section-y: 112px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
main:focus { outline: none; }

:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--red-100); color: var(--text); }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.text-red { color: var(--red-500); }

.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 15px; height: 15px; }

/* ---------- 3. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: var(--radius-sm); }

.btn--primary {
    background: var(--red-500);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(130, 17, 21, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn--primary:hover { background: var(--red-600); box-shadow: 0 6px 16px -6px rgba(202, 27, 33, .55); }
.btn--primary:active { background: var(--red-700); transform: translateY(1px); }

.btn--secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--blue-500); color: var(--blue-500); background: var(--blue-50); }
.btn--secondary:active { transform: translateY(1px); }

.btn--ghost {
    background: transparent;
    color: var(--text-2);
    border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--white); color: var(--text); }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red-600);
}
.eyebrow--pill {
    padding: 6px 12px 6px 10px;
    background: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: 999px;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(2rem, 1.35rem + 2vw, 2.875rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.section-lead {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

.section-head { margin-bottom: 56px; }
.section-head--center { max-width: 680px; margin-inline: auto; text-align: center; }

.fine-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    text-align: left;
}
.fine-note .icon { margin-top: 2px; color: var(--subtle); }
.fine-note--left { justify-content: flex-start; }

/* ---------- 5. Header & navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 16px -12px rgba(16, 24, 40, .18); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand__logo { width: 64px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand__sub {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--muted);
    text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    transition: color .15s var(--ease), background-color .15s var(--ease);
}
.site-nav__link:hover { color: var(--text); background: #F4F5F8; }
.site-nav__link[aria-current="page"] { color: var(--red-500); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
}
.nav-toggle span { display: inline-flex; }
.nav-toggle__close { display: none !important; }
.nav-toggle__open { display: inline-flex !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex !important; }

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    padding: 64px 0 112px;
    overflow: hidden;
}
.hero::before {
    /* Subtle editorial rule grid behind hero */
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(19, 38, 88, .045) 1px, transparent 1px);
    background-size: calc((min(100vw, var(--container) + var(--gutter) * 2) - var(--gutter) * 2) / 6) 100%;
    background-position: center top;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.hero__eyebrow-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.hero__eyebrow-wrap .eyebrow--pill {
    margin-bottom: 0;
}
.hero__badge-since {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue-800);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 999px;
}

.hero__title {
    font-size: clamp(2.75rem, 1.4rem + 4.4vw, 4.875rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.hero__lead {
    margin-top: 24px;
    max-width: 540px;
    font-size: 18.5px;
    line-height: 1.65;
    color: var(--muted);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}
.hero__actions--center { justify-content: center; }
.hero__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    max-width: 540px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-2);
}
.hero__trust .icon { color: var(--blue-500); }

.hero__visual {
    position: relative;
    padding-bottom: 32px;
}
.hero__photo {
    position: relative;
    margin: 0 0 0 auto;
    width: 82%;
    aspect-ratio: 4 / 4.6;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--blue-50);
    box-shadow: var(--shadow);
}
.hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 24, 54, 0) 55%, rgba(12, 24, 54, .35) 100%);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__visual::before {
    /* light red block behind the phone */
    content: "";
    position: absolute;
    left: -4%;
    bottom: 0;
    width: 52%;
    height: 46%;
    background: var(--red-50);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.hero__phone {
    position: absolute;
    left: 2%;
    bottom: 0;
    width: 42%;
    max-width: 250px;
}

.hero__note {
    position: absolute;
    right: -12px;
    top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
}
.hero__note strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--text); }
.hero__note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-500);
}

/* ---------- 7. Phone mockup ---------- */
.phone { width: 100%; }
.phone__frame {
    position: relative;
    aspect-ratio: 9 / 19.2;
    padding: 3.4%;
    background: #10131C;
    border-radius: 15% / 7%;
    box-shadow:
        inset 0 0 0 1.5px #2B3040,
        inset 0 0 0 4px #10131C,
        var(--shadow-lg);
}
.phone__frame::before {
    /* side button */
    content: "";
    position: absolute;
    right: -2px;
    top: 22%;
    width: 3px;
    height: 12%;
    background: #23283A;
    border-radius: 0 2px 2px 0;
}
.phone__screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border-radius: 12% / 5.6%;
}
.phone__screen > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.phone__island {
    position: absolute;
    z-index: 2;
    top: 4.2%;
    left: 50%;
    width: 30%;
    height: 3.2%;
    transform: translateX(-50%);
    background: #05070C;
    border-radius: 999px;
}
.phone__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    height: 100%;
    padding: 0 16px;
    background: linear-gradient(180deg, var(--white) 0%, var(--white) 60%, var(--red-50) 100%);
}
.phone__brand img {
    width: 68%;
    max-width: 140px;
    margin: 0 auto;
}
.phone__brand span {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(9px, 1.8cqw, 11px);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* ---------- 8. Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding-top: 56px; }
.section--tint-blue { background: var(--blue-50); }
.section--border-top { border-top: 1px solid var(--border); }
.section--download { padding-top: 0; }

/* Product introduction */
.intro-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 56px;
}
.intro-head .section-lead { margin-top: 0; padding-bottom: 6px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.feature-card {
    position: relative;
    padding: 32px 28px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.feature-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-bottom: 28px;
    border-radius: var(--radius);
}
.feature-card__icon--blue { background: var(--blue-50); color: var(--blue-500); }
.feature-card__icon--red  { background: var(--red-50); color: var(--red-500); }
.feature-card__icon--navy { background: var(--blue-50); color: var(--blue-800); }
.feature-card__num {
    position: absolute;
    top: 32px; right: 28px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--subtle);
    letter-spacing: .04em;
}
.feature-card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15.5px; }

/* How it works */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    list-style: none;
}
.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 28px;
    right: calc((100% - 64px) / 3 - 28px);
    border-top: 1.5px dashed #BCC9EA;
}
.step { position: relative; display: flex; flex-direction: column; }
.step__marker { position: relative; z-index: 1; }
.step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: var(--white);
    border: 1px solid var(--blue-100);
    border-radius: 50%;
    color: var(--blue-500);
    box-shadow: 0 0 0 6px var(--blue-50);
}
.step:last-child .step__icon { background: var(--red-500); border-color: var(--red-500); color: var(--white); }
.step__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.step__label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 8px;
}
.step__title { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.step__body > p:not(.step__label) { color: var(--muted); font-size: 15.5px; }

.step__visual {
    margin-top: auto;
    padding: 14px;
    background: #F7F9FD;
    border: 1px solid #EDF0F7;
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.step__body > p + .step__visual { margin-top: 24px; }
.viz-field, .viz-option, .viz-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.viz-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.viz-otp span {
    position: relative;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.viz-otp span:nth-child(-n+3)::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue-800);
}
.viz-otp span:nth-child(4) { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(41, 82, 188, .12); }
.viz-option--active { border-color: var(--blue-500); color: var(--blue-500); background: var(--blue-50); font-weight: 500; }
.viz-row { padding: 8px 12px 8px 8px; }
.viz-row .icon { color: var(--blue-500); }
.viz-thumb { width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; background: var(--red-50); border: 1px solid var(--red-100); }
.viz-thumb--blue { background: var(--blue-50); border-color: var(--blue-100); }
.viz-lines { flex: 1; display: grid; gap: 6px; }
.viz-lines span { height: 6px; border-radius: 3px; background: #E3E7EF; }
.viz-lines span:last-child { width: 60%; background: #EDF0F5; }

/* Application preview – gallery (genuine screenshots) */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    list-style: none;
}
.gallery__item { width: 260px; }
.gallery--3 .gallery__item:nth-child(2) { transform: translateY(-24px); }
.gallery__caption { margin-top: 24px; text-align: center; }
.gallery__caption strong { display: block; font-family: var(--font-head); font-size: 17px; }
.gallery__caption span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* Application preview – split (no screenshots supplied) */
.preview-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 72px;
}
.checklist { margin-top: 36px; list-style: none; }
.checklist li {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: 1px solid var(--border); }
.checklist__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--red-50);
    color: var(--red-500);
}
.checklist strong { display: block; font-family: var(--font-head); font-size: 16.5px; font-weight: 700; }
.checklist span:not(.checklist__icon) { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.preview-split__media { margin: 0; }
.preview-split__media img {
    width: 100%;
    aspect-ratio: 5 / 5.2;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: var(--blue-50);
}
.preview-split__media figcaption { margin-top: 12px; font-size: 13px; color: var(--subtle); }

/* Locations */
.location-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
}
.location-card {
    position: relative;
    padding: 24px 24px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.location-card::after {
    /* faint coordinate grid */
    content: "";
    position: absolute;
    right: -1px; top: -1px;
    width: 120px; height: 120px;
    background-image:
        linear-gradient(to right, rgba(41, 82, 188, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(41, 82, 188, .08) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at top right, #000 0%, transparent 70%);
    pointer-events: none;
}
.location-card__pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-500);
}
.location-card__state {
    margin-top: 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.location-card__city {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--blue-800);
}
.location-card__coords {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.location-card--more { background: var(--surface); border-style: dashed; border-color: var(--border-strong); }
.location-card--more::after { display: none; }
.location-card--more .location-card__pin { background: var(--white); border: 1px solid var(--border); color: var(--text-2); }
.location-card--more .location-card__city { font-size: 20px; line-height: 1.25; color: var(--text); }

/* Download CTA */
.download {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 48px;
    padding: 72px 72px 0;
    background-color: var(--navy-900);
    border-radius: 28px;
    overflow: hidden;
    color: var(--white);
}
.download__content { padding-bottom: 72px; }
.download__logo {
    display: inline-flex;
    padding: 10px 14px;
    background: var(--white);
    border-radius: 14px;
    margin-bottom: 32px;
}
.download__logo img { width: 96px; }
.download__title {
    max-width: 560px;
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--white);
}
.download__lead {
    max-width: 520px;
    margin-top: 16px;
    font-size: 18px;
    color: #B9C3DB;
}
.download__points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 14.5px;
    color: #D3DAEA;
    list-style: none;
}
.download__points li { display: inline-flex; align-items: center; gap: 8px; }
.download__points .icon { color: #8FA9EC; }
.download__visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.phone--download { width: 270px; margin-bottom: -140px; }

/* Google Play badge */
.play-badge { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 32px; }
a.play-badge { border-radius: 10px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
a.play-badge:hover { transform: translateY(-2px); }
.play-badge__img { width: 200px; height: auto; margin: -9px -12px; }
.play-badge__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.play-badge--dark .play-badge__note { color: #AEB9D3; }
.play-badge--dark .play-badge__note .icon { color: #8FA9EC; }

/* ---------- 9. Footer ---------- */
.site-footer {
    padding: 72px 0 32px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 15px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.3fr);
    gap: 48px;
}
.site-footer__brand p { margin-top: 20px; max-width: 340px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.site-footer__title {
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.site-footer__col ul { list-style: none; display: grid; gap: 12px; }
.site-footer__col a { color: var(--text-2); transition: color .15s var(--ease); }
.site-footer__col a:hover { color: var(--red-500); }
.site-footer address { display: grid; gap: 12px; }
.site-footer address p, .site-footer address a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.site-footer address .icon { color: var(--subtle); }
.site-footer address a:hover .icon { color: var(--red-500); }
.site-footer__company { font-family: var(--font-head); font-weight: 700; color: var(--text) !important; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--muted);
}
.site-footer__disclaimer { display: flex; gap: 8px; max-width: 640px; }
.site-footer__disclaimer .icon { margin-top: 2px; color: var(--subtle); }

/* ---------- 10. Inner page hero (contact / 404) ---------- */
.page-hero, .legal-hero {
    padding: 48px 0 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.page-hero--center { padding: 96px 0 112px; text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
}
.page-hero__title {
    font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.page-hero__lead { max-width: 560px; font-size: 18px; color: var(--muted); line-height: 1.65; }
.page-hero--center .page-hero__lead { margin-top: 16px; }

.breadcrumb { margin-bottom: 28px; font-size: 13.5px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--red-500); }

/* ---------- 11. Contact ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 48px;
}
.contact-methods { display: grid; gap: 16px; }
.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.contact-method:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-method__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
}
.contact-method__icon--red { background: var(--red-50); color: var(--red-500); }
.contact-method__icon--blue { background: var(--blue-50); color: var(--blue-500); }
.contact-method__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.contact-method__label { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-method__value { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.contact-method__hint { font-size: 14px; color: var(--muted); }
.contact-method__arrow { color: var(--subtle); transition: transform .2s var(--ease), color .2s var(--ease); }
.contact-method:hover .contact-method__arrow { color: var(--red-500); transform: translateX(3px); }

.company-card {
    margin: 8px 0 0;
    padding: 4px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.company-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.company-card div:last-child { border-bottom: 0; }
.company-card dt { font-size: 14px; color: var(--muted); }
.company-card dd { margin: 0; font-size: 14.5px; font-weight: 600; text-align: right; }

.support-panel { padding: 40px; background: var(--blue-50); border-radius: 20px; }
.support-panel__title { font-size: 24px; font-weight: 800; }
.support-panel__lead { margin-top: 10px; color: var(--muted); }
.support-list { margin-top: 28px; list-style: none; }
.support-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid #DCE3F3; }
.support-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--white);
    color: var(--blue-500);
    border: 1px solid var(--blue-100);
}
.support-list h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.support-list p { font-size: 15px; color: var(--muted); }
.support-list a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. Legal documents ---------- */
.legal-hero__title {
    font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.legal-hero__intro { margin-top: 16px; max-width: 760px; font-size: 18px; color: var(--muted); line-height: 1.65; }
.legal-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--text-2);
}
.meta-chip .icon { color: var(--subtle); }

.legal-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 850px);
    justify-content: center;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 96px;
}
.legal-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
}
.toc__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    list-style: none;
    pointer-events: none;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__chev { display: none; }
.toc__list { list-style: none; display: grid; gap: 2px; }
.toc__list a {
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-2);
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.toc__list a:hover { background: #F4F5F8; color: var(--text); }
.toc__list a.is-active { background: var(--red-50); color: var(--red-600); }
.toc__num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--subtle); }
.toc__list a.is-active .toc__num { color: var(--red-500); }

.legal-aside__other { margin-top: 24px; padding: 20px 10px 0; border-top: 1px solid var(--border); }
.legal-aside__other p { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-aside__other a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--blue-500); }
.legal-aside__other a:hover { color: var(--blue-800); }

.prose { font-size: 16.5px; line-height: 1.78; color: #2D3344; }
.prose > p, .prose section > p { margin-bottom: 16px; }
.prose__lead { font-size: 18.5px; color: var(--text); line-height: 1.7; }
.prose section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.prose__num { color: var(--red-500); margin-right: 4px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.prose ul { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin: 10px 0; padding-left: 4px; }
.prose li::marker { color: var(--red-500); }
.prose a { color: var(--blue-500); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--blue-800); }
.prose strong { color: var(--text); font-weight: 600; }

.contact-card-inline {
    margin: 20px 0;
    padding: 24px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-lg);
}
.contact-card-inline p { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.contact-card-inline .icon { color: var(--blue-500); }
.contact-card-inline__company { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); }

.legal-backtop { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-backtop a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; }

/* ---------- 13. Reveal animation (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-init { opacity: 0; transform: translateY(18px); }
    .reveal-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1180px) {
    .site-nav { gap: 12px; }
    .site-nav__link { padding: 0 10px; }
    .download { padding: 56px 56px 0; }
}

@media (max-width: 1080px) {
    /* Collapsible navigation (JS-enhanced; without JS links simply wrap) */
    .site-header.nav-enhanced .nav-toggle { display: inline-flex; }
    .site-header.nav-enhanced .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 12px var(--gutter) 24px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 32px -16px rgba(16, 24, 40, .2);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .site-header.nav-enhanced.is-open .site-nav { display: flex; }
    .site-header.nav-enhanced.is-open { border-bottom-color: var(--border); background: var(--white); }
    .site-header.nav-enhanced .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-header.nav-enhanced .site-nav__link {
        width: 100%;
        min-height: 52px;
        padding: 0 4px;
        font-size: 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .site-header.nav-enhanced .site-nav__link:hover { background: transparent; }
    .site-header.nav-enhanced .site-nav__cta { min-height: 52px; }

    .site-header:not(.nav-enhanced) .site-header__inner { flex-wrap: wrap; padding: 12px 0; }
    .site-header:not(.nav-enhanced) .site-nav { flex-wrap: wrap; }
}

@media (max-width: 1024px) {
    :root { --section-y: 88px; --gutter: 28px; }

    .hero { padding: 48px 0 88px; }
    .hero__grid { grid-template-columns: 1fr; gap: 56px; }
    .hero__content { max-width: 680px; }
    .hero__visual { max-width: 640px; width: 100%; margin-inline: auto; }

    .intro-head { grid-template-columns: 1fr; gap: 0; }
    .intro-head .section-lead { margin-top: 16px; max-width: 640px; }

    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid > :last-child { grid-column: 1 / -1; }

    .preview-split { grid-template-columns: 1fr; gap: 48px; }
    .preview-split__media img { aspect-ratio: 16 / 10; }

    .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .download { grid-template-columns: 1fr; gap: 0; padding: 56px 48px 0; }
    .download__content { padding-bottom: 48px; }
    .phone--download { width: 240px; margin-bottom: -120px; }
    .download__visual { max-height: 360px; }

    .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }

    .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; max-width: 850px; }
    .legal-aside {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .toc {
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 4px 16px;
        background: var(--white);
    }
    .toc__title { pointer-events: auto; cursor: pointer; margin: 0; min-height: 52px; color: var(--text); font-size: 13px; }
    .toc__chev { display: block; transition: transform .2s var(--ease); }
    .toc[open] .toc__chev { transform: rotate(180deg); }
    .toc[open] .toc__list { padding-bottom: 12px; }
    .legal-aside__other { display: none; }

    .page-hero__grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; gap: 20px; }
    .steps::before {
        top: 28px; bottom: 28px;
        left: 28px; right: auto;
        border-top: 0;
        border-left: 1.5px dashed #BCC9EA;
    }
    .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
    .step__body { margin-top: 0; padding: 24px; }
}

@media (max-width: 767px) {
    :root { --section-y: 72px; --gutter: 20px; --header-h: 64px; }

    body { font-size: 15.5px; }
    .brand__logo { width: 54px; }
    .brand__name { font-size: 17px; }
    .brand__sub { font-size: 9.5px; }

    .hero { padding: 36px 0 72px; }
    .hero::before { display: none; }
    .hero__lead { font-size: 17px; margin-top: 20px; }
    .hero__actions { flex-direction: column; margin-top: 28px; }
    .hero__actions .btn { width: 100%; }
    .hero__trust { font-size: 14px; }

    .hero__visual { padding-bottom: 40px; }
    .hero__photo { width: 88%; aspect-ratio: 4 / 4.4; border-radius: 20px; }
    .hero__phone { width: 44%; left: 0; }
    .hero__visual::before { left: -20px; width: 60%; height: 40%; border-radius: 0 20px 20px 0; }
    .hero__note { right: -4px; top: 20px; padding: 10px 12px 10px 10px; font-size: 12px; }
    .hero__note strong { font-size: 13px; }
    .hero__note-icon { width: 30px; height: 30px; }

    .section-head { margin-bottom: 40px; }
    .section-lead { font-size: 16.5px; }
    .intro-head { margin-bottom: 40px; }

    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px; }
    .feature-card__icon { margin-bottom: 20px; }
    .feature-card__num { top: 24px; right: 24px; }

    .step { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
    .step__icon { width: 48px; height: 48px; box-shadow: 0 0 0 5px var(--blue-50); }
    .step__icon .icon { width: 20px; height: 20px; }
    .steps::before { left: 24px; top: 24px; }
    .step__body { padding: 20px; }
    .step__title { font-size: 19px; }

    .gallery { gap: 40px; }
    .gallery__item { width: min(240px, 72vw); }
    .gallery--3 .gallery__item:nth-child(2) { transform: none; }

    .checklist { margin-top: 28px; }
    .preview-split__media img { aspect-ratio: 4 / 3; border-radius: 20px; }

    .location-grid { gap: 12px; }
    .location-card { padding: 18px 18px 22px; }
    .location-card__state { margin-top: 24px; font-size: 11px; }
    .location-card__city { font-size: 21px; }
    .location-card--more .location-card__city { font-size: 17px; }
    .location-card__coords { font-size: 12px; }
    .fine-note { font-size: 13px; text-align: left; justify-content: flex-start; }

    .section--download .container { padding-inline: 12px; }
    .download { padding: 40px 24px 0; border-radius: 24px; }
    .download__logo { margin-bottom: 24px; }
    .download__lead { font-size: 16.5px; }
    .download__points { flex-direction: column; gap: 12px; }
    .phone--download { width: 210px; margin-bottom: -110px; }
    .download__visual { max-height: 300px; }

    .site-footer { padding-top: 56px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .site-footer__col:last-child { grid-column: 1 / -1; }
    .site-footer__bottom { flex-direction: column; margin-top: 40px; }

    .page-hero, .legal-hero { padding: 32px 0 40px; }
    .page-hero--center { padding: 72px 0 88px; }
    .page-hero__lead, .legal-hero__intro { font-size: 16.5px; }
    .breadcrumb { margin-bottom: 20px; }

    .contact-method { padding: 20px; gap: 16px; align-items: flex-start; }
    .contact-method__icon { width: 44px; height: 44px; border-radius: 12px; }
    .contact-method__value { font-size: 18px; }
    .contact-method__arrow { display: none; }
    .company-card { padding: 4px 20px; }
    .company-card div { flex-direction: column; gap: 2px; }
    .company-card dd { text-align: left; }
    .support-panel { padding: 28px 20px; border-radius: 16px; }

    .prose { font-size: 16px; line-height: 1.75; }
    .prose__lead { font-size: 17px; }
    .prose section { margin-top: 36px; padding-top: 32px; }
    .contact-card-inline { padding: 20px; }
    .contact-card-inline p { align-items: flex-start; flex-wrap: wrap; }
    .contact-card-inline p .icon { margin-top: 4px; }
}

@media (max-width: 380px) {
    .brand__sub { display: none; }
    .location-grid { grid-template-columns: 1fr; }
    .hero__note { display: none; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 15. Print (legal documents) ---------- */
@media print {
    @page { margin: 18mm 16mm; }
    body { font-size: 11pt; color: #000; background: #fff; }
    .site-header, .site-footer, .skip-link, .legal-aside, .js-print, .legal-backtop, .breadcrumb { display: none !important; }
    .legal-hero, .page-hero { background: none; border: 0; padding: 0 0 12pt; }
    .legal-hero__title { font-size: 22pt; }
    .legal-hero__intro { font-size: 11pt; color: #333; }
    .meta-chip { border: 0; padding: 0; background: none; color: #333; }
    .legal-layout { display: block; padding: 0; }
    .container { max-width: none; padding: 0; }
    .prose { font-size: 11pt; line-height: 1.55; color: #000; }
    .prose section { margin-top: 18pt; padding-top: 12pt; break-inside: auto; }
    .prose h2, .prose h3 { break-after: avoid; color: #000; }
    .prose a { color: #000; text-decoration: none; }
    .prose a[href^="http"]::after, .prose a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
    .contact-card-inline { background: none; border: 1px solid #999; }
    .reveal-init { opacity: 1 !important; transform: none !important; }
}

