/* OilHound website styles
   Mobile first. Desktop layout starts at 960px.
   Colours and type follow the OilHound website brief (section 3). */

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

:root {
  --navy: #0F2A44;
  --orange: #E8681A;        /* brand orange: graphics and accents only */
  --cream: #F6F1E7;
  --cta: #C2500F;           /* CTA orange: buttons with white type */
  --cta-dark: #A6400A;
  --white: #FFFFFF;
  --muted: #4A5A6E;         /* secondary text, 6:1 on cream */
  --line: #E3D9C6;
  --line-strong: #D8CDB8;
  --tint: #FBE9DC;
  --error: #B0200C;
  --error-bg: #FCEBE7;
  --on-navy-muted: #C7D0DA;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --pad-x: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--navy); }
a:hover { color: var(--cta); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
svg { flex: none; }

.sr-only {
  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: 12px; top: -80px; z-index: 10; padding: 12px 16px;
  background: var(--navy); color: var(--white); border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--pad-x); }
.wrap--narrow { max-width: 820px; }

/* Bracketed facts still waiting on OilHound */
.ph { padding: 0 5px; background: var(--tint); color: var(--cta-dark); border-radius: 4px; font-weight: 700; }

/* Test build notices: delete these elements before launch */
.test-banner {
  padding: 6px var(--pad-x); background: var(--navy); color: var(--white);
  font-size: 16px; line-height: 1.4; text-align: center;
}

/* ------------------------------------------------------------ header */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px; padding: 10px 8px 10px 16px;
}
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { width: auto; height: 40px; }
.site-header__actions { display: flex; align-items: center; }
.header-link {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.header-link--account { padding: 0 8px; }
.header-link--account .header-link__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.header-link--account[aria-current="page"] { color: var(--cta); }
.menu-button {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  padding: 0; background: transparent; border: 0; border-radius: var(--radius); cursor: pointer;
}
.secure-note { display: flex; align-items: center; gap: 6px; padding-right: 8px; font-size: 16px; font-weight: 700; color: var(--muted); }

.site-nav { display: none; order: 3; flex-basis: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; padding: 0 4px 8px; }
.site-nav a {
  display: flex; align-items: center; min-height: 52px; border-top: 1px solid var(--line);
  font-size: 18px; font-weight: 700; text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--cta); }

@media (min-width: 960px) {
  .site-header__inner { padding: 12px var(--pad-x); column-gap: 32px; }
  .site-header__logo { min-height: 52px; }
  .site-header__logo img { height: 52px; }
  .site-nav { display: block; order: 0; flex-basis: auto; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 0; }
  .site-nav a { position: relative; min-height: 48px; padding: 0 14px; border-top: 0; }
  .site-nav a[aria-current="page"] { color: var(--navy); }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
    height: 3px; background: var(--orange); border-radius: 2px;
  }
  .menu-button, .header-link--contact { display: none; }
  .header-link--account { padding: 0 10px; font-size: 18px; }
  .header-link--account .header-link__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 359px) {
  .site-header__logo img { height: 34px; }
  .header-link { padding: 0 6px; }
}

/* ------------------------------------------------------------ buttons and links */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--radius);
  font-size: 19px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.button--primary { background: var(--cta); color: var(--white); }
.button--primary:hover { background: var(--cta-dark); color: var(--white); }
.button--primary:disabled,
.button--primary[aria-disabled="true"] { background: var(--cream); color: var(--muted); border-color: var(--line-strong); }
.button--primary:disabled { cursor: not-allowed; }
.button--primary[aria-busy="true"] { cursor: progress; }
.button--secondary { min-height: 54px; font-size: 18px; background: var(--white); color: var(--navy); border-color: var(--navy); }
.button--secondary:hover { background: var(--navy); color: var(--white); }
.button--on-navy { min-height: 54px; font-size: 18px; background: transparent; color: var(--white); border-color: var(--white); }
.button--on-navy:hover { background: var(--white); color: var(--navy); }
.button--block { display: flex; width: 100%; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 700; }
.text-button {
  min-height: 44px; padding: 0; background: none; border: 0; color: var(--navy);
  font-size: 17px; font-weight: 700; text-align: left; text-decoration: underline; cursor: pointer;
}
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }

/* ------------------------------------------------------------ form controls */

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0 0 8px; font-size: 17px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 17px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.input {
  width: 100%; height: 56px; padding: 0 16px; background: var(--white);
  border: 2px solid var(--navy); border-radius: var(--radius); font-size: 18px; font-weight: 600;
}
.input[aria-invalid="true"] { border-color: var(--error); }
select.input { padding: 0 12px; }
textarea.input { height: auto; min-height: 104px; padding: 12px 16px; line-height: 1.4; resize: vertical; }
.input--postcode { font-size: 20px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.input--postcode::placeholder { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); }
.hint { font-size: 16px; line-height: 1.45; color: var(--muted); }
.field-error { font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--error); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--cta); }

/* Chips: radio buttons drawn as buttons */
.chips { display: grid; gap: 8px; }
.chips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip { position: relative; display: flex; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.chip label {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 4px 6px;
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius);
  font-size: 17px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer;
}
.chips--3 .chip label { min-height: 56px; font-size: 16px; }
.chip input:checked + label { background: var(--navy); color: var(--white); }
.chip input:focus-visible + label { outline: 3px solid var(--cta); outline-offset: 2px; }

/* Delivery window rows */
.options { display: flex; flex-direction: column; gap: 8px; }
.option { position: relative; display: flex; }
.option input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.option label {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 8px 14px; background: var(--white); border: 2px solid var(--navy);
  border-radius: var(--radius); cursor: pointer;
}
.option input:checked + label { background: var(--navy); color: var(--white); }
.option input:focus-visible + label { outline: 3px solid var(--cta); outline-offset: 2px; }
.option__text { display: flex; flex-direction: column; }
.option__name { font-size: 17px; line-height: 1.25; font-weight: 700; }
.option__by { font-size: 16px; line-height: 1.3; }
.option__total { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Range slider */
.range { display: flex; flex-direction: column; gap: 4px; }
.range label { font-size: 18px; font-weight: 700; }
.range input { width: 100%; height: 44px; margin: 0; accent-color: var(--cta); }
.range__ends { display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); }

/* ------------------------------------------------------------ hero and quote */

/* Mobile: the headline sits on the photo, and the price card and quote form
   follow as one panel, so the postcode field is on the first screen. */
.hero { padding: 12px 0 36px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__intro {
  grid-area: 1 / 1; align-self: start; position: relative; z-index: 1;
  height: 230px; height: clamp(196px, calc(100svh - 412px), 260px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 16px 18px; color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, rgba(15, 42, 68, 0) 28%, rgba(15, 42, 68, 0.8) 58%, rgba(15, 42, 68, 0.94) 100%);
}
.hero__title {
  font-size: clamp(25px, 7.2vw, 34px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em;
  text-wrap: balance; text-shadow: 0 1px 3px rgba(15, 42, 68, 0.45);
}
.hero__lede { font-size: 17px; line-height: 1.35; font-weight: 600; text-wrap: pretty; text-shadow: 0 1px 3px rgba(15, 42, 68, 0.45); }
.hero__media { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.hero__photo {
  width: 100%; height: 230px; height: clamp(196px, calc(100svh - 412px), 260px);
  object-fit: cover; object-position: 30% 6%; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.price-card {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px 12px; background: var(--white);
  border: 2px solid var(--navy); border-top: 0; border-bottom: 0;
}
.price-card__label { font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--muted); }
.price-card__line { font-size: 17px; line-height: 1.35; font-weight: 600; }
.price-card__total { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; margin: 2px 0; line-height: 1; }
.price-card__amount {
  font-size: clamp(38px, 11.5vw, 54px); font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--cta);
}
.price-card__vat { font-size: 17px; line-height: 1.4; font-weight: 700; }
.price-card__sub { font-size: 16px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }

.quote-card {
  display: flex; flex-direction: column; gap: 14px; padding: 14px 18px 18px; background: var(--white);
  border: 2px solid var(--navy); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--line);
}
.quote-card__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.coverage-ok { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.coverage-ok svg { color: var(--cta); }

/* The hound answering the question people have at this point */
.hound-note { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.hound-note img { flex: none; width: 40px; height: 40px; border: 2px solid var(--orange); border-radius: 50%; }

.out-of-area { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--cream); border-radius: var(--radius); }
.out-of-area__title { font-size: 18px; line-height: 1.4; font-weight: 700; }

.advanced { display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced__toggle {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; background: transparent; border: 0; font-size: 18px; font-weight: 700; text-align: left; cursor: pointer;
}
.advanced__label { display: flex; flex-direction: column; gap: 2px; }
.advanced__summary { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.advanced__toggle svg { transition: transform 0.2s ease; }
.advanced__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.advanced__panel { display: flex; flex-direction: column; gap: 20px; padding: 4px 0 20px; }
.advanced__group { display: flex; flex-direction: column; gap: 10px; }

.tank-help { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: var(--cream); border-radius: var(--radius); }
.tank-help__intro { display: flex; align-items: flex-start; gap: 12px; }
.tank-help__intro img { flex: none; width: 52px; height: 52px; border: 2px solid var(--orange); border-radius: 50%; }
.tank-help__intro p { font-size: 17px; line-height: 1.45; }
.tank-help__group legend { font-size: 16px; }
.tank-help__result { font-size: 17px; line-height: 1.45; font-weight: 700; }

@media (min-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: "intro intro" "media form";
    gap: 28px 32px; align-items: start;
  }
  .hero__intro {
    grid-area: intro; height: auto; padding: 0; gap: 10px;
    color: var(--navy); background: none; border-radius: 0;
  }
  .hero__title { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.03em; text-shadow: none; }
  .hero__lede { max-width: 62ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 500; text-shadow: none; }
  .hero__media {
    grid-area: media; position: sticky; top: 24px;
    height: clamp(460px, calc(100vh - 140px), 600px); overflow: hidden; border-radius: 24px;
  }
  .hero__photo { position: absolute; inset: 0; height: 100%; border-radius: 0; object-position: 22% 40%; }
  .price-card {
    position: absolute; right: 20px; bottom: 20px; width: min(380px, calc(100% - 40px));
    gap: 4px; padding: 18px 20px; border: 2px solid var(--navy); border-radius: 16px;
  }
  .quote-card {
    grid-area: form; padding: 24px;
    border-top: 2px solid var(--navy); border-radius: var(--radius-lg); box-shadow: none;
  }
  .quote-card__title {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em;
  }
}

/* ------------------------------------------------------------ home sections */

.section { padding: 40px 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section__title { font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.section--navy .section__title { color: var(--white); }
.section__intro { max-width: 46ch; color: var(--muted); text-wrap: pretty; }
.section__head { display: flex; flex-direction: column; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 24px; }

.trust__title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.trust__item { display: flex; flex-direction: column; gap: 8px; line-height: 1.35; font-weight: 600; }
.trust__item svg { color: var(--cta); }

.steps { display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 14px; }
.step__num {
  flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: var(--cta); color: var(--white); border-radius: 50%; font-size: 16px; font-weight: 800; line-height: 1;
}
.step__body { display: flex; flex-direction: column; gap: 2px; }
.step__title { padding-top: 4px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.step__text { color: var(--muted); }

.checker { display: grid; grid-template-areas: "head" "chart" "live"; gap: 20px; }
.checker__head { grid-area: head; }
.checker__chart { grid-area: chart; }
.checker__chart svg { display: block; width: 100%; height: auto; }
.checker__live { grid-area: live; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--cream); border-radius: 16px; }
.checker__live h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }

.hound { display: flex; flex-direction: column; gap: 20px; }
.hound__intro { display: flex; align-items: center; gap: 16px; }
.hound__avatar { flex: none; width: 92px; height: 92px; background: var(--white); border: 3px solid var(--orange); border-radius: 50%; }
.hound__figure { display: none; }
.hound__content { display: flex; flex-direction: column; gap: 20px; }

.faq { border-bottom: 1px solid var(--line-strong); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0;
  font-size: 18px; line-height: 1.35; font-weight: 700; list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { max-width: 62ch; padding: 0 0 18px; color: var(--muted); text-wrap: pretty; }

.cta-band { display: flex; flex-direction: column; gap: 18px; }
.cta-band p { color: var(--on-navy-muted); }

@media (min-width: 960px) {
  .section { padding: 80px 0; }
  .section__title { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.025em; }
  .trust { padding: 56px 0; }
  .trust__title { font-size: clamp(24px, 2.4vw, 32px); }
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
  .trust__item { flex-direction: row; align-items: flex-start; gap: 14px; font-size: 20px; }
  .trust__item span { padding-top: 6px; }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { flex-direction: column; gap: 12px; }
  .step__num { width: 40px; height: 40px; font-size: 18px; }
  .step__title { padding-top: 0; font-size: 22px; }
  .checker { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-template-areas: "head chart" "live chart"; gap: 24px 64px; align-items: center; }
  .checker__head { align-self: end; }
  .checker__live { align-self: start; padding: 20px; }
  .hound { flex-direction: row; align-items: flex-start; gap: 64px; }
  .hound__figure { display: block; flex: 1 1 300px; max-width: 420px; padding: 24px 24px 0; background: var(--white); border-radius: 24px; }
  .hound__avatar { display: none; }
  .hound__content { flex: 1.6 1 440px; min-width: 0; }
  .faq summary { font-size: 20px; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .cta-band p { font-size: 20px; }
  .cta-band .button { flex: 0 0 260px; min-height: 62px; font-size: 20px; }
}

/* ------------------------------------------------------------ footer */

.site-footer { padding: 32px 0 40px; background: var(--cream); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.site-footer__brand img { align-self: flex-start; width: auto; height: 40px; }
.site-footer__brand p { font-weight: 600; }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.site-footer__nav a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.site-footer__bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.site-footer__bottom p { font-size: 17px; line-height: 1.45; }
.site-footer__legal { display: flex; flex-wrap: wrap; column-gap: 20px; }
.site-footer__legal a { display: flex; align-items: center; min-height: 44px; font-size: 16px; }

@media (min-width: 960px) {
  .site-footer { padding: 48px 0 40px; }
  .site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 64px; }
  .site-footer__brand img { height: 52px; }
  .site-footer__nav { flex: 1 1 420px; max-width: 620px; }
  .site-footer__nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .site-footer__bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; }
}

/* ------------------------------------------------------------ checkout */

.checkout { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.checkout__head { display: flex; flex-direction: column; gap: 6px; }
.back-link { align-self: flex-start; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 17px; font-weight: 700; text-decoration: none; }
.page-title { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.checkout__form { display: flex; flex-direction: column; }

/* Where you are in the journey: Quote > Details > Payment > Confirmed */
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 2px; }
.progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; line-height: 1.2; font-weight: 700; color: var(--muted); text-align: center; }
.progress li + li::before {
  content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 3px;
  background: var(--line-strong); z-index: 0;
}
.progress li.is-done + li::before { background: var(--orange); }
.progress__dot {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  background: var(--white); border: 2px solid #7A8494; border-radius: 50%; font-size: 15px; font-weight: 800; color: var(--muted);
}
.progress li.is-done { color: var(--navy); }
.progress li.is-done .progress__dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.progress li[aria-current="step"] { color: var(--navy); }
.progress li[aria-current="step"] .progress__dot { background: var(--cta); border-color: var(--cta); color: var(--white); }

.panel { display: flex; flex-direction: column; gap: 18px; margin-inline: calc(var(--pad-x) * -1); padding: 32px var(--pad-x) 36px; }
.panel--white { background: var(--white); }
.panel__head { display: flex; align-items: center; gap: 12px; }
.panel__title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }

.summary { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius-lg); }
.summary__top { display: flex; flex-direction: column; gap: 4px; padding: 18px; line-height: 1.35; }
.summary__product { font-weight: 700; }
.summary__rows { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-top: 1px solid var(--line); }
.summary__rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary__rows strong { font-variant-numeric: tabular-nums; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; border-top: 2px solid var(--navy); }
.summary__total p { font-weight: 700; }
.summary__total strong { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--cta); }

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--error-bg); border: 2px solid var(--error); border-radius: var(--radius); }
.alert svg { margin-top: 1px; color: var(--error); }
.alert__body { display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.alert__title { font-weight: 700; color: var(--error); }
.notice { padding: 14px 16px; background: var(--tint); border-radius: var(--radius); font-size: 16px; line-height: 1.45; }
.pay-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.pay-actions .button { min-height: 60px; font-size: 20px; }
.pay-same { font-size: 17px; line-height: 1.4; font-weight: 600; text-align: center; }
.pay-terms { font-size: 16px; line-height: 1.45; color: var(--muted); text-align: center; }

.simple-footer { padding: 28px 0 36px; background: var(--white); border-top: 1px solid var(--line); }
.simple-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.simple-footer p { line-height: 1.45; }

@media (min-width: 960px) {
  .checkout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    grid-template-areas: "head summary" "form summary"; gap: 24px 48px; align-items: start; padding-block: 32px 64px;
  }
  .checkout__head { grid-area: head; }
  .checkout__summary { grid-area: summary; position: sticky; top: 24px; }
  .checkout__form { grid-area: form; gap: 24px; }
  .panel { margin: 0; padding: 32px; background: var(--white); border-radius: var(--radius-lg); }
  .page-title { font-size: clamp(32px, 3.2vw, 44px); }
}

/* ------------------------------------------------------------ tracking */

.status { padding: 24px 0 30px; background: var(--navy); color: var(--white); }
.status .wrap { display: flex; flex-direction: column; gap: 10px; }
.status__order { font-size: 16px; font-weight: 700; color: var(--on-navy-muted); }
.status__title { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--white); text-wrap: balance; }
.status__sub { line-height: 1.45; color: var(--on-navy-muted); text-wrap: pretty; }
.status .button { align-self: flex-start; margin-top: 8px; }

.timeline li { display: flex; gap: 16px; }
.timeline__rail { flex: none; display: flex; flex-direction: column; align-items: center; width: 34px; }
.timeline__dot {
  flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: var(--white); border: 2px solid #7A8494; border-radius: 50%; color: var(--white);
}
.timeline__line { flex: 1; width: 4px; background: var(--line); }
.timeline__line.is-filled { background: var(--orange); }
.timeline__now { width: 12px; height: 12px; background: var(--white); border-radius: 50%; }
.is-done .timeline__dot { background: var(--navy); border-color: var(--navy); }
.is-now .timeline__dot { background: var(--cta); border-color: var(--cta); }
.timeline__body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 24px; }
.timeline li:last-child .timeline__body { padding-bottom: 0; }
.timeline__title { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; padding-top: 3px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.is-todo .timeline__title { color: var(--muted); }
.badge { padding: 2px 10px; background: var(--cta); color: var(--white); border-radius: 999px; font-size: 15px; line-height: 1.4; font-weight: 700; }
.timeline__time { font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.timeline__text { line-height: 1.45; color: var(--muted); text-wrap: pretty; }

.card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--white); border-radius: 16px; }
.card h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.card p { color: var(--muted); }
.test-tools { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--tint); border-radius: var(--radius); font-size: 16px; line-height: 1.45; }

@media (min-width: 960px) {
  .status { padding: 48px 0 52px; }
  .status__title { font-size: clamp(32px, 3.6vw, 48px); }
}

/* ------------------------------------------------------------ simple pages */

.stub { padding: 48px 0 72px; }
.stub .wrap { display: flex; flex-direction: column; gap: 16px; }
.stub p { max-width: 60ch; }
.stub .button { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
