/* Energy Cost Planner landing. "Copper and enamel": enamel white, soot black, one copper
   accent, indigo for anything off-peak. Barlow Semi Condensed for headings and figures, Barlow for text. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-400.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-500.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-600.ttf") format("truetype"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-600.ttf") format("truetype"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-700.ttf") format("truetype"); }

:root {
  --enamel: #f4f2ec;
  --card: #ffffff;
  --sunken: #eae7df;
  --soot: #1a1917;
  --soot-raised: #2d2a27;
  --soot-line: #45413c;
  --slate: #57606a;
  --ink-soft: #3d3b37;
  --line: #ddd9cf;
  --copper: #a8551f;
  --copper-deep: #853f14;
  --copper-tint: #f6e6d8;
  --copper-bright: #e9945a;
  --night: #2e3470;
  --night-bright: #a9b1f0;
  --good: #1d6b47;
  --good-tint: #dceee3;
  --on-dark-muted: #b9b4aa;

  --text: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;
  --gutter: 32px;
}

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

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

body {
  margin: 0;
  background: var(--enamel);
  color: var(--soot);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; }
h1, h2, h3 { text-wrap: balance; }
.nw { white-space: nowrap; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--copper); }

a { color: var(--copper-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--soot); }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.meter :focus-visible, .plain :focus-visible, .foot :focus-visible, .night :focus-visible { outline-color: var(--copper-bright); }
.get :focus-visible { outline-color: #fff; }

code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; background: var(--sunken); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }

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

.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--soot); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- small parts ---------- */

.label {
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.label--bright { color: var(--copper-bright); }
.label--night { color: var(--night-bright); }
.label--slate { color: var(--slate); }

.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: 36em; }

/* The socket mark */
.mark { width: 36px; height: 36px; flex: none; }
.mark__plate { fill: var(--soot); }
.mark__earth { fill: var(--copper-bright); }
.mark__pin { fill: var(--enamel); }
.mark--copper .mark__plate { fill: var(--copper); }
.mark--copper .mark__earth { fill: var(--soot); }

/* The register: one cell per digit, pence in copper */
.reg { display: inline-flex; align-items: center; gap: 0.07em; font-family: var(--display); font-weight: 700; line-height: 1; white-space: nowrap; }
.reg__cell { display: grid; place-items: center; width: 0.8em; height: 1.22em; border-radius: 0.1em; background: var(--soot); color: #fff; }
.reg__cell--p { background: var(--copper); }
.reg__sym { margin-right: 0.06em; }
.reg__dot { width: 0.15em; height: 0.15em; border-radius: 2px; background: currentColor; align-self: flex-end; margin: 0 0.02em 0.2em; }
.reg--no { font-size: 2.25rem; gap: 4px; }
.reg--no .reg__cell { border-radius: 6px; }

/* The rating plate: white enamel, soot outline, four rivets */
.plate { position: relative; background: var(--card); color: var(--soot); border: 3px solid var(--soot); border-radius: 18px; padding: 34px 34px 30px; }
.plate::before {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--soot) 0 3.5px, transparent 4px) left top / 9px 9px no-repeat,
    radial-gradient(circle, var(--soot) 0 3.5px, transparent 4px) right top / 9px 9px no-repeat,
    radial-gradient(circle, var(--soot) 0 3.5px, transparent 4px) left bottom / 9px 9px no-repeat,
    radial-gradient(circle, var(--soot) 0 3.5px, transparent 4px) right bottom / 9px 9px no-repeat;
}
.plate__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.plate__head > span:last-child { flex: 1; min-width: 0; display: grid; }
.plate__head b { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-deep); padding-bottom: 7px; border-bottom: 3px solid var(--soot); }
.plate__head i { font-style: normal; font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); padding-top: 7px; }
.plate__head .mark { width: 50px; height: 50px; }

.spec > div { display: grid; grid-template-columns: 8.2em 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.spec > div:last-child { padding-bottom: 0; }
.spec dt { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); padding-top: 4px; }
.spec dd { font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.spec > .spec__full { grid-template-columns: 1fr; gap: 2px; }

.chip { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 6px; background: var(--good-tint); color: var(--good); font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.chip--night { background: transparent; color: #fff; border: 2px solid var(--night-bright); }

.ticks li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 9px; border-radius: 2px; background: var(--copper); }
.ticks--dot li { border-top: 0; padding-block: 5px; }
.ticks--dot li::before { top: 0.8em; }

.more-link { display: inline-block; margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: 1.125rem; }
.more-link::after { content: " →"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--play { background: var(--copper); color: #fff; }
.btn--play:hover { background: var(--copper-deep); color: #fff; }
.btn--pending { border: 2px dashed var(--soot); color: var(--soot); cursor: default; }
.btn--line { border-color: var(--soot); color: var(--soot); }
.btn--line:hover { background: var(--soot); color: #fff; }
.cta__note { margin-top: 12px; font-size: 0.9375rem; color: var(--slate); max-width: 26em; }
.cta--compact .btn { min-height: 42px; padding: 0 18px; font-size: 1.0625rem; }
.cta--compact .btn svg { width: 14px; height: 14px; }
.cta--dark .btn--play { background: var(--soot); color: #fff; }
.cta--dark .btn--play:hover { background: #000; }
.cta--dark .btn--pending { border-color: #fff; color: #fff; }
.cta--dark .cta__note { color: #fff; }

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

.top { border-bottom: 3px solid var(--soot); background: var(--enamel); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--soot); margin-right: auto; min-width: 0; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--light { color: #fff; }
.brand--light:hover { color: var(--copper-bright); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--soot); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 8px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--copper); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 2px solid var(--soot); border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 16px; height: 10px; border-block: 2px solid var(--soot); }
.menu[open] summary { background: var(--soot); color: #fff; }
.menu[open] summary::after { border-color: #fff; }
.menu__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; min-width: 220px; background: var(--card); border: 3px solid var(--soot); border-radius: 14px; padding: 8px; display: grid; }
.menu__list a { padding: 12px 14px; border-radius: 8px; color: var(--soot); text-decoration: none; font-weight: 500; }
.menu__list a:hover, .menu__list a[aria-current] { background: var(--copper-tint); }

/* ---------- hero ---------- */

.hero { padding: 76px 0 72px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: 72px; align-items: end; }
.hero h1 { font-size: clamp(2.75rem, 6.3vw, 5.75rem); line-height: 0.94; margin: 18px 0 26px; }
.hero .cta { margin-top: 32px; }
.hero__plate { box-shadow: 14px 14px 0 var(--copper); margin: 0 14px 14px 0; }

/* ---------- the meter band ---------- */

.meter { background: var(--soot); color: #fff; padding: 60px 0 64px; border-top: 6px solid var(--copper); }
.meter__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.meter h2 { font-family: var(--text); letter-spacing: 0.16em; margin-bottom: 20px; }
.reg--hero { font-size: clamp(4.25rem, 9.4vw, 8.5rem); }
.reg--hero .reg__cell { background: var(--soot-raised); }
.reg--hero .reg__cell--p { background: var(--copper); }
.meter__parts { display: flex; flex-wrap: wrap; gap: 14px 52px; margin-top: 30px; }
.meter__parts dt, .tiles dt { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.meter__parts dd { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.2; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tiles > div { border: 2px solid var(--soot-line); border-radius: 12px; padding: 12px 12px 10px; min-width: 0; }
.tiles dd { font-family: var(--display); font-weight: 700; font-size: 1.3125rem; line-height: 1.3; white-space: nowrap; }
.tiles .is-on { background: var(--copper-tint); border-color: var(--copper-bright); color: var(--soot); }
.tiles .is-on dt { color: var(--copper-deep); }
.meter__note { margin-top: 22px; font-size: 0.9375rem; line-height: 1.5; color: var(--on-dark-muted); }
.meter__note b { color: #fff; font-weight: 600; }

/* ---------- section headings ---------- */

.sec { margin-bottom: 48px; }
.sec h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); margin-top: 14px; max-width: 16em; }
.sec > p:not(.label) { margin-top: 18px; color: var(--ink-soft); max-width: 34em; }
.sec--split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.sec--split > p:not(.label) { margin: 0 0 6px; }
.sec--light h2 { color: #fff; }
.sec--light h2 em { color: var(--copper-bright); }

/* ---------- how it works ---------- */

.how { padding: 104px 0 96px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--soot); counter-reset: none; }
.steps li { position: relative; padding: 0 40px 0 0; }
.steps li + li { padding-left: 40px; border-left: 1px solid var(--line); }
.steps .reg { transform: translateY(-50%); background: var(--enamel); padding-right: 12px; }
.steps li + li .reg { margin-left: -12px; padding-left: 12px; }
.steps h3 { font-size: 1.75rem; margin: 2px 0 12px; }
.steps p { color: var(--ink-soft); }

.sum.plate { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.sum > div { padding: 40px 44px; }
.sum__rule { background: var(--soot); color: #fff; display: grid; align-content: center; gap: 14px; }
.sum__rule .label { color: var(--copper-bright); }
.sum__formula { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.05; }
.sum__formula i { font-style: normal; color: var(--copper-bright); padding: 0 0.08em; }
.sum__line { margin-top: 10px; font-size: 1.125rem; color: var(--ink-soft); }
.sum__line b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; color: var(--soot); margin-bottom: 4px; }
.sum__out { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.sum__out strong { background: var(--copper); color: #fff; padding: 4px 12px; border-radius: 6px; }
.sum__arrow { color: var(--copper); }
.sum__out small { flex-basis: 100%; font-family: var(--text); font-weight: 400; font-size: 0.9375rem; color: var(--slate); }
.sum.plate::before { display: none; }

/* ---------- the six screens ---------- */

.screens { padding: 0 0 104px; }
.swipe { display: none; }
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 44px; }
.poster { display: flex; flex-direction: column; border-bottom: 4px solid var(--soot); overflow: hidden; isolation: isolate; }
.poster__plate { flex: 1 1 auto; }
.poster h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); margin-bottom: 14px; }
.poster__plate > p:not(.plate__head):not(.chip) { color: var(--ink-soft); font-size: 1rem; }

.screen { position: relative; margin: 30px 34px 0 16px; aspect-ratio: 720 / 800; background: var(--enamel); border: 4px solid var(--soot); border-bottom: 0; border-radius: 24px 24px 0 0; }
.screen::before { content: ""; position: absolute; z-index: -1; top: 14px; right: -22px; bottom: 0; left: 18px; background: var(--copper); border-radius: 24px 24px 0 0; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 20px 20px 0 0; }

/* ---------- day and night ---------- */

.night { background: var(--night); color: #fff; padding: 76px 0; }
.night__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 72px; align-items: start; }
.night h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 14px; line-height: 1.06; }
.night__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.night__list li { border-top: 3px solid var(--night-bright); padding-top: 18px; }
.night__list h3 { font-size: 1.4375rem; margin-bottom: 10px; line-height: 1.1; }
.night__list p { color: #dfe2fa; font-size: 1rem; }

/* ---------- the rest of the specification ---------- */

.more { padding: 104px 0; }
.more__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 88px; align-items: start; }
.spec--wide > div { grid-template-columns: 13em 1fr; gap: 24px; padding: 18px 0; border-top-color: var(--soot); }
.spec--wide > div:last-child { padding-bottom: 18px; border-bottom: 1px solid var(--soot); }
.spec--wide dt { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: 0; text-transform: none; color: var(--soot); padding: 0; line-height: 1.15; }
.spec--wide dd { font-weight: 400; color: var(--ink-soft); line-height: 1.5; }
.more__shot { isolation: isolate; padding: 0 22px 14px 0; position: sticky; top: 32px; }
.screen--tall { margin: 0; aspect-ratio: 720 / 1180; border-bottom: 4px solid var(--soot); border-radius: 24px; }
.screen--tall::before { border-radius: 24px; bottom: -14px; }
.screen--tall img { border-radius: 20px; }
.more__shot figcaption { margin-top: 30px; font-size: 0.875rem; color: var(--slate); }

/* ---------- said plainly ---------- */

.plain { background: var(--soot); color: var(--enamel); padding: 96px 0 104px; }
.plain__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
.plain__col h3 { margin-bottom: 14px; }
.tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1; padding: 8px 14px; border-radius: 6px; }
.tag--is { background: var(--copper-bright); color: var(--soot); }
.tag--not { border: 2px solid var(--enamel); color: var(--enamel); padding: 6px 12px; }
.plain__col li { padding: 16px 0; border-top: 1px solid var(--soot-line); line-height: 1.5; }
.plain__col li:last-child { border-bottom: 1px solid var(--soot-line); }
.plain__privacy { border-color: var(--copper-bright); }

/* ---------- questions ---------- */

.faq { padding: 104px 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
.qa details { border-top: 3px solid var(--soot); }
.qa details:last-child { border-bottom: 3px solid var(--soot); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 20px 56px 20px 0; font-family: var(--display); font-weight: 600; font-size: 1.4375rem; line-height: 1.2; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0; top: 14px; width: 34px; height: 40px; display: grid; place-items: center; background: var(--soot); color: #fff; border-radius: 6px; font-weight: 700; font-size: 1.5rem; }
.qa details[open] summary::after { content: "−"; background: var(--copper); }
.qa details > p { padding: 0 56px 24px 0; color: var(--ink-soft); max-width: 42em; }

/* ---------- download band ---------- */

.get { background: var(--copper); color: #fff; padding: 72px 0; }
.get__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 44px; align-items: center; }
.get__mark .mark { width: 112px; height: 112px; }
.get h2 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 15em; }
.get p { margin-top: 12px; max-width: 34em; }
.get .cta__note { max-width: 19em; }

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

.foot { background: var(--soot); color: var(--on-dark-muted); padding: 64px 0 36px; font-size: 0.9375rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
.foot__brand p { margin-top: 16px; max-width: 26em; }
.foot__col { display: grid; gap: 8px; align-content: start; }
.foot h2 { font-family: var(--text); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-bright); margin-bottom: 6px; }
.foot a { color: #fff; overflow-wrap: anywhere; }
.foot a:hover { color: var(--copper-bright); }
.foot__plate { border: 2px solid var(--soot-line); border-radius: 12px; padding: 4px 16px; align-self: start; }
.foot__plate > div { display: grid; grid-template-columns: 6em 1fr; gap: 10px; padding: 9px 0; }
.foot__plate > div + div { border-top: 1px solid var(--soot-line); }
.foot__plate dt { font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.foot__plate dd { color: #fff; font-weight: 500; }
.foot__legal { margin-top: 44px; }
.foot__legal p { border-top: 1px solid var(--soot-line); padding-top: 22px; font-size: 0.875rem; max-width: none; }

/* ---------- document pages: privacy, support, changelog ---------- */

.doc__head { padding: 68px 0 52px; border-bottom: 3px solid var(--soot); }
.doc__head h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 0.97; margin: 16px 0 22px; max-width: 14em; }
.doc__date { margin-top: 22px; font-size: 0.9375rem; color: var(--slate); }
.doc__grid { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 88px; padding-block: 64px 112px; align-items: start; }
.doc__grid--support { grid-template-columns: 400px minmax(0, 1fr); }
.doc__side { position: sticky; top: 24px; }
.doc__side .plate { box-shadow: 12px 12px 0 var(--copper); margin: 0 12px 12px 0; }
.toc { margin-top: 36px; }
.toc ol { counter-reset: toc; border-top: 1px solid var(--line); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; padding: 8px 0; color: var(--soot); text-decoration: none; font-size: 0.9375rem; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--display); font-weight: 700; color: var(--copper); min-width: 1.6em; }
.toc a:hover { color: var(--copper-deep); }

.doc__body { max-width: 760px; }
.doc__body > section + section { margin-top: 56px; }
.doc__body section { scroll-margin-top: 24px; }
.doc__body h2 { display: flex; align-items: center; gap: 16px; font-size: 1.875rem; line-height: 1.1; margin-bottom: 18px; }
.num { flex: none; display: grid; place-items: center; min-width: 2.1em; height: 1.5em; padding: 0 0.3em; border-radius: 6px; background: var(--soot); color: #fff; font-size: 1.25rem; }
.doc__body > section:nth-of-type(even) .num { background: var(--copper); }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p, .doc__body .table + p, .doc__body p + .table { margin-top: 14px; }
.doc__body ul:not(.ticks) { display: grid; gap: 10px; }
.doc__body ul:not(.ticks) li { position: relative; padding-left: 22px; }
.doc__body ul:not(.ticks) li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 2px; background: var(--copper); }

.table { border: 3px solid var(--soot); border-radius: 14px; background: var(--card); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; }
thead th { background: var(--soot); color: #fff; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; }
tbody th { font-weight: 500; width: 46%; }
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody td { color: var(--ink-soft); }

.contact__mail { display: block; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; overflow-wrap: anywhere; margin-bottom: 20px; }
.contact p { font-size: 1rem; }
.contact__small { margin-top: 14px; font-size: 0.9375rem !important; color: var(--slate); }
.doc__aside-link { margin-top: 18px; }
.doc__body--faq > section + section { margin-top: 64px; }
.doc__body--faq .qa summary { font-size: 1.3125rem; }

.log { max-width: 820px; padding-block: 64px 112px; margin-inline: auto; }
.log__item { box-shadow: 12px 12px 0 var(--copper); margin: 0 12px 12px 0; }
.log__ver { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1; background: var(--soot); color: #fff; padding: 10px 14px; border-radius: 6px; }
.log__cta { margin-top: 56px; }

.lost { padding: 104px 0 128px; }
.reg--lost { font-size: clamp(5rem, 16vw, 9rem); margin: 22px 0 30px; }
.lost h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 18px; }
.lost__links { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.lost__links .more-link { margin-top: 0; }

/* ---------- medium widths ---------- */

@media (max-width: 1180px) {
  .top__cta { display: none; }
  .hero__grid, .meter__grid { gap: 48px; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night__grid { grid-template-columns: 1fr; gap: 40px; }
  .plain__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plain__privacy { grid-column: 1 / -1; }
  .more__grid { gap: 56px; }
  .doc__grid, .doc__grid--support { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; }
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .hero__plate { max-width: 560px; }
  .meter__grid { grid-template-columns: 1fr; gap: 36px; }
  .sec--split { grid-template-columns: 1fr; gap: 16px; }
  .night__list { gap: 24px; }
}

/* ---------- phones and small tablets ---------- */

@media (max-width: 860px) {
  :root { --gutter: 18px; }
  body { font-size: 1rem; }
  .lede { font-size: 1.125rem; }

  .top__in { min-height: 62px; gap: 12px; }
  .nav { display: none; }
  .menu { display: block; }
  .brand__name { font-size: 1.25rem; }
  .mark { width: 32px; height: 32px; }

  .hero { padding: 40px 0 44px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { margin: 14px 0 20px; }
  .hero .cta { margin-top: 26px; }
  .btn { font-size: 1.125rem; min-height: 52px; padding: 0 22px; }

  .plate { padding: 28px 24px 24px; border-radius: 16px; }
  .plate::before { inset: 9px; }
  .spec > div { grid-template-columns: 7.4em 1fr; gap: 10px; }

  .meter { padding: 40px 0 44px; }
  .meter__grid { grid-template-columns: 1fr; gap: 32px; }
  .reg--hero { font-size: clamp(3.4rem, 17.5vw, 7rem); }
  .meter__parts { gap: 10px 30px; margin-top: 22px; }
  .meter__parts dd { font-size: 1.375rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sec { margin-bottom: 32px; }
  .sec--split { grid-template-columns: 1fr; gap: 14px; }

  .how { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 0 0 26px 0; border-left: 0; border-top: 3px solid var(--soot); }
  .steps li + li .reg { margin-left: 0; padding-left: 0; }
  .steps .reg { transform: none; margin: 18px 0 14px; padding: 0; }
  .steps h3 { font-size: 1.5rem; margin-top: 0; }
  .sum.plate { margin-top: 20px; grid-template-columns: 1fr; padding: 0; }
  .sum > div { padding: 30px 26px; }

  .screens { padding-bottom: 64px; }
  .swipe { display: flex; justify-content: space-between; margin-top: -8px; margin-bottom: 14px; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
  .swipe span { color: var(--copper-deep); }
  .wrap--rail { padding-inline: 0; }
  .posters { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 14px; -webkit-overflow-scrolling: touch; }
  .poster { flex: 0 0 84%; scroll-snap-align: start; }
  .poster h3 { font-size: 1.75rem; }
  .screen { margin: 22px 28px 0 10px; aspect-ratio: 720 / 700; border-radius: 20px 20px 0 0; }
  .screen::before { right: -18px; left: 14px; border-radius: 20px 20px 0 0; }
  .screen img { border-radius: 16px 16px 0 0; }

  .night { padding: 52px 0; }
  .night__list { grid-template-columns: 1fr; gap: 22px; }

  .more { padding: 64px 0; }
  .more__grid { grid-template-columns: 1fr; gap: 40px; }
  .spec--wide > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .more__shot { max-width: 300px; position: static; }
  .screen--tall { margin: 0; aspect-ratio: 720 / 900; border-radius: 20px; }
  .screen--tall::before { border-radius: 20px; }
  .screen--tall img { border-radius: 16px; }

  .plain { padding: 60px 0 64px; }
  .plain__grid { grid-template-columns: 1fr; gap: 36px; }

  .faq { padding: 64px 0; }
  .faq__grid { grid-template-columns: 1fr; gap: 8px; }
  .qa summary { font-size: 1.25rem; padding: 16px 50px 16px 0; }
  .qa summary::after { top: 10px; }
  .qa details > p { padding-right: 0; }

  .get { padding: 52px 0; }
  .get__grid { grid-template-columns: 1fr; gap: 24px; }
  .get__mark .mark { width: 72px; height: 72px; }

  .foot { padding: 48px 0 28px; }
  .foot__in { grid-template-columns: 1fr; gap: 32px; }

  .doc__head { padding: 40px 0 34px; }
  .doc__grid, .doc__grid--support { grid-template-columns: 1fr; gap: 44px; padding-block: 36px 72px; }
  .doc__side { position: static; }
  .toc { display: none; }
  .doc__body h2 { font-size: 1.5rem; gap: 12px; }
  .num { font-size: 1.0625rem; }
  .doc__body > section + section { margin-top: 44px; }
  .contact__mail { font-size: 1.5rem; }

  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, tbody th, tbody td { display: block; width: 100%; }
  tbody tr { padding: 14px 16px; }
  tbody tr + tr { border-top: 1px solid var(--line); }
  tbody tr + tr > * { border-top: 0; }
  tbody th, tbody td { padding: 0; }
  tbody th { margin-bottom: 6px; }
  tbody td:nth-child(2)::before { content: "From: "; font-weight: 600; color: var(--soot); }
  tbody td:nth-child(3)::before { content: "Kept: "; font-weight: 600; color: var(--soot); }

  .log { padding-block: 36px 72px; }
  .lost { padding: 56px 0 80px; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 1.125rem; }
  .menu summary { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .top, .get, .foot, .toc, .menu { display: none; }
  body { background: #fff; }
}
