/* ParkingTask public landing page.
   Direction: parking-garage signage. Black, signal red, painted stall lines, level markers.
   No inline styles are allowed by the page CSP, so everything lives here. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
    --black: #000;
    --ink: #111;
    --red: #d21115;
    --red-dark: #a80d10;
    --white: #fff;
    --concrete: #efefef;
    --gray: #6d6d6d;
    --gray-text: #4a4a4a;
    --gray-on-black: #b9b9b9;
    --line: #d4d4d4;
    --focus: #000;
    --gutter: 1.25rem;
    --max: 72rem;
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }

h2 { font-size: clamp(1.9rem, 5.5vw, 3.25rem); text-transform: uppercase; max-width: 20ch; }
h3 { font-size: 1.2rem; line-height: 1.2; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Skip link */
.skip {
    position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
    background: var(--white); color: var(--black); padding: 0.75rem 1rem; font-weight: 700;
    border: 3px solid var(--red);
}
.skip:focus { top: 0.75rem; outline: 3px solid var(--black); }

/* ---------- Buttons and links ---------- */
.btn {
    --focus: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 3.25rem; padding: 0.85rem 1.6rem;
    font: inherit; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
    color: var(--white); background: var(--red); border: 3px solid var(--red); border-radius: 4px;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--black); }
.btn--small { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--white:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.link-light {
    --focus: #fff;
    font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
    color: var(--white); padding: 0.5rem 0.25rem; border-bottom: 3px solid transparent;
}
.link-light:hover { border-bottom-color: var(--red); }
.link-light:focus-visible { outline-color: #fff; }

/* ---------- Header ---------- */
.top { background: var(--black); color: var(--white); --focus: #fff; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.top__nav { display: flex; align-items: center; gap: 1.1rem; }
.top__demo { display: none; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); --focus: #fff; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand img { border-radius: 8px; }

/* ---------- Plates (small sign labels) ---------- */
.plate {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--white); margin-bottom: 1.1rem;
}
.plate--dark { color: var(--black); }
.plate__sq { width: 0.8rem; height: 0.8rem; background: var(--red); flex: none; }

/* ---------- Hero ---------- */
.hero {
    --focus: #fff;
    position: relative; overflow: hidden;
    color: var(--white); background: var(--black);
    background-image: radial-gradient(circle at 85% 30%, rgba(210, 17, 21, 0.28), transparent 45%);
}
.hero__grid { display: grid; gap: 3rem; padding-block: 3rem 3.5rem; }

.hero h1 {
    font-size: clamp(2.6rem, 11.5vw, 5.75rem);
    text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em;
}
.hero__red { color: var(--red); }
.hero__sub { margin-top: 1.4rem; max-width: 34rem; font-size: 1.15rem; color: #e6e6e6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero__art { position: relative; display: grid; justify-items: center; padding-block: 1.5rem 0; }
.tile {
    position: absolute; top: 0; width: min(19rem, 78vw); aspect-ratio: 1; background: var(--red); border-radius: 12%;
    transform: rotate(-5deg);
}
.tile::after { /* the white stroke of the logo's P, echoed large */
    content: ""; position: absolute; left: 20%; top: 14%; width: 44%; height: 44%;
    border: clamp(10px, 2.4vw, 18px) solid rgba(255, 255, 255, 0.16); border-radius: 0 999px 999px 0; border-left-width: clamp(10px, 2.4vw, 18px);
}
.hero__cap { position: relative; margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-on-black); }

/* The phone */
.phone {
    position: relative; width: min(17.5rem, 76vw);
    padding: 0.6rem; background: #1b1b1b; border-radius: 2.4rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 2px #333 inset;
    transform: rotate(2deg);
}
.phone__screen { background: var(--white); color: var(--ink); border-radius: 1.9rem; overflow: hidden; padding-bottom: 1rem; }
.phone__bar { display: flex; align-items: center; gap: 0.5rem; background: var(--black); color: var(--white); padding: 1.1rem 1rem 0.8rem; font-size: 0.8rem; font-weight: 700; }
.phone__bar img { border-radius: 5px; }
.phone__title { padding: 0.9rem 1rem 0.5rem; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; }

.check { padding-inline: 0.75rem; display: grid; gap: 0.4rem; }
.check__row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.55rem 0.5rem; border: 2px solid var(--line); border-radius: 6px; font-size: 0.8rem; font-weight: 600; line-height: 1.25; }
.check__box { flex: none; width: 1.35rem; height: 1.35rem; border: 2px solid var(--ink); border-radius: 3px; display: grid; place-items: center; }
.check__text { display: grid; gap: 0.15rem; }
.check__text em { font-style: normal; font-weight: 500; font-size: 0.72rem; color: var(--gray-text); }
.is-done .check__box { background: var(--black); color: var(--white); }
.is-skip { border-color: var(--red); }
.is-skip .check__box { border-color: var(--red); color: var(--red-dark); }
.is-skip em { color: var(--red-dark); font-weight: 700; }
.is-next { border-color: var(--black); }
.check__btns { display: flex; gap: 0.4rem; margin-top: 0.35rem; }
.mini { display: inline-block; padding: 0.25rem 0.8rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border: 2px solid var(--black); border-radius: 3px; }
.mini--done { background: var(--black); color: var(--white); }

.phone__sync { display: flex; align-items: center; gap: 0.4rem; margin: 0.8rem 1rem 0; padding: 0.45rem 0.6rem; font-size: 0.7rem; font-weight: 600; background: var(--concrete); border-radius: 4px; color: var(--gray-text); }

/* Painted stall lines along the bottom of the hero */
.stalls {
    height: 4.5rem;
    border-top: 0.7rem solid var(--red);
    background:
        repeating-linear-gradient(-72deg, transparent 0 2.4rem, var(--white) 2.4rem calc(2.4rem + 0.32rem)),
        var(--ink);
}

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; }
.section--gray { background: var(--concrete); }
.section--black { background: var(--black); color: var(--white); --focus: #fff; }
.section h2 + * { margin-top: 2rem; }

/* Problem */
.problem { display: grid; gap: 2rem; }
.problem h2 { max-width: 14ch; }
.problem__body { display: grid; gap: 1.1rem; max-width: 36rem; color: var(--gray-text); }
.problem__body .lead { font-size: 1.35rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.problem__body strong { color: var(--ink); }

/* Steps: level markers */
.steps { display: grid; gap: 2.5rem; margin-top: 2.5rem; counter-reset: none; }
.step { position: relative; display: grid; gap: 0.8rem; align-content: start; }
.step p { color: var(--gray-text); max-width: 26rem; }
.level {
    display: grid; place-items: center; width: 4.75rem; height: 4.75rem;
    font-weight: 800; font-size: 3rem; line-height: 1;
    background: var(--white); color: var(--black); border: 0.4rem solid var(--black); border-radius: 0.5rem;
    box-shadow: 0.4rem 0.4rem 0 var(--red);
}

/* Features */
.section--black h2 { max-width: 18ch; }
.bento { display: grid; gap: 1rem; margin-top: 2.5rem; }
.card {
    display: grid; gap: 0.8rem; align-content: start;
    padding: 1.6rem; border: 2px solid #333; border-radius: 6px; background: #0e0e0e;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--white); }
.card p { color: var(--gray-on-black); }
.card__icon { color: var(--white); }
.card h3 { text-transform: uppercase; }
.card--red { background: var(--red); border-color: var(--red); }
.card--red p { color: var(--white); }
.card--red:hover { border-color: var(--white); }
.card--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.card--light p { color: var(--gray-text); }
.card--light .card__icon { color: var(--red-dark); }

/* Roles: a ramp that steps down level by level */
.roles { display: grid; gap: 3rem; }
.ticks { display: grid; gap: 1.1rem; margin-top: 2rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--gray-text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.4rem; width: 0.85rem; height: 0.85rem; background: var(--red); }
.ticks strong { color: var(--ink); }

.ramp { display: grid; gap: 0.5rem; align-content: start; }
.ramp__step {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.9rem 1rem; border-radius: 4px; font-size: 0.95rem; line-height: 1.35;
    background: var(--black); color: var(--white);
}
.ramp__step strong { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.ramp__n { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--white); color: var(--black); font-weight: 800; font-size: 1.3rem; border-radius: 3px; }
.ramp__step--1 { background: var(--red); }
.ramp__step--1 .ramp__n { color: var(--red-dark); }
.ramp__step--2 { margin-left: 0.75rem; background: #141414; }
.ramp__step--3 { margin-left: 1.5rem; background: #2a2a2a; }
.ramp__step--4 { margin-left: 2.25rem; background: #484848; }
.ramp__step--5 { margin-left: 3rem; background: var(--white); color: var(--ink); border: 3px solid var(--black); }
.ramp__step--5 .ramp__n { background: var(--black); color: var(--white); }

/* Trust */
.trust { display: grid; gap: 1rem; margin-top: 2.5rem; }
.trust li { display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem; background: var(--white); border-top: 0.5rem solid var(--black); border-radius: 0 0 6px 6px; }
.trust li:first-child { border-top-color: var(--red); }
.trust svg { color: var(--red-dark); }
.trust p { color: var(--gray-text); }

/* CTA */
.cta { background: var(--red); color: var(--white); padding-block: 4.5rem; --focus: #fff; }
.cta__inner { display: grid; gap: 2rem; align-items: center; }
.cta h2 { max-width: 12ch; }
.cta__price { margin-top: 1rem; font-size: 1.3rem; font-weight: 700; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta .btn--ghost:hover { color: var(--red-dark); }

/* Footer */
.foot { background: var(--black); color: var(--white); --focus: #fff; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-block: 2rem; }
.brand--foot .brand__name { font-size: 1rem; }
.foot__copy { color: var(--gray-on-black); font-size: 0.9rem; margin-right: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 520px) {
    .top__demo { display: inline-flex; }
}

@media (min-width: 720px) {
    :root { --gutter: 2rem; }
    .section, .cta { padding-block: 6rem; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .step:not(:last-child)::after { /* arrow between level markers */
        content: ""; position: absolute; top: 2.1rem; left: 5.9rem; right: 0.5rem; height: 0.35rem;
        background: repeating-linear-gradient(90deg, var(--black) 0 0.9rem, transparent 0.9rem 1.4rem);
    }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .card--wide { grid-column: 1 / -1; }
    .card { padding: 2rem; }
    .trust { grid-template-columns: repeat(2, 1fr); }
    .ramp__step--2 { margin-left: 1.5rem; }
    .ramp__step--3 { margin-left: 3rem; }
    .ramp__step--4 { margin-left: 4.5rem; }
    .ramp__step--5 { margin-left: 6rem; }
    .cta__inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
    .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-block: 5rem 6rem; gap: 2rem; }
    .hero__art { padding-block: 2.5rem; }
    .tile { top: 1rem; }
    .problem { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .roles { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
    .trust { grid-template-columns: repeat(4, 1fr); }
    .bento { grid-template-columns: repeat(6, 1fr); }
    .card { grid-column: span 3; }
    .card--wide { grid-column: span 6; }
    .card--wide p { max-width: 44rem; }
    .stalls { height: 6rem; }
}

/* ---------- Motion (only when the visitor hasn't asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .rise--1 { animation-delay: 0s; }
    .rise--2 { animation-delay: 0.06s; }
    .rise--3 { animation-delay: 0.12s; }
    .rise--4 { animation-delay: 0.18s; }
    @keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

    .tile { animation: tile-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
    @keyframes tile-in { from { opacity: 0; transform: rotate(-14deg) scale(0.9); } to { opacity: 1; transform: rotate(-5deg); } }

    .check__row { animation: row-in 0.5s ease-out both; }
    .check__row:nth-child(1) { animation-delay: 0.7s; }
    .check__row:nth-child(2) { animation-delay: 0.85s; }
    .check__row:nth-child(3) { animation-delay: 1s; }
    .check__row:nth-child(4) { animation-delay: 1.15s; }
    .check__row:nth-child(5) { animation-delay: 1.3s; }
    @keyframes row-in { from { opacity: 0; transform: translateX(-0.75rem); } to { opacity: 1; transform: none; } }

    .card:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card, .link-light { transition: none; }
}

@media (forced-colors: active) {
    .btn, .level, .card { border: 2px solid CanvasText; }
    .stalls { border-top-color: CanvasText; background: Canvas; }
}
