/* ============================================================
   Harlow Letting Agents — landing page
   Concept: "The Ledger" — architect's drafting film meets a
   private bank statement. Structure is visible; nothing hidden.
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
/* Montserrat и Inter лежат у нас, а не грузятся с fonts.googleapis.com.
   Кук Google Fonts не ставит, но раскрывает IP каждого посетителя Google
   в США — это обработка, которую пришлось бы обосновывать и описывать в
   политике конфиденциальности. Положить файлы к себе дешевле.
   Оба файла вариативные (ось wght 100–900), поэтому одного файла на
   семейство хватает на все начертания: у Montserrat это 600 и 700,
   у Inter — 400, 500 и 600.
   latin-ext объявлен отдельно и скачивается только если на странице
   появится символ из его диапазона. Обычный посетитель тянет только latin. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/montserrat-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Brand palette — docs/history/sources/2026-07-27-brand-guidelines.md */
  --navy:   #111E2E;
  --copper: #D48B46;
  --sage:   #4A6B5D;
  --slate:  #2C3539;
  --paper:  #F8F9FA;
  --white:  #FFFFFF;

  --ink:        var(--navy);
  --ink-soft:   #5A6673;
  --ink-invert: #E8EBEF;
  --line:       rgba(17, 30, 46, .14);
  --line-soft:  rgba(17, 30, 46, .07);
  --line-dark:  rgba(232, 235, 239, .16);

  --display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --text:    "Inter", ui-sans-serif, system-ui, sans-serif;

  --measure: 62ch;
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --maxw:    1280px;
  --band-y:  clamp(4.5rem, 10vw, 9rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

body {
  font-family: var(--text);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.5;                 /* brand guideline */
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Container ─────────────────────────────────────────────── */
/* The ledger character is carried by the § numbering, the register rows,
   the statement card and the hairlines between blocks. There is deliberately
   no background linework: a fixed overlay could not scroll with the content,
   was occluded at random by the opaque bands, and never lined up with the
   3-column content grids — see QA-2026-08-13-0413. */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--navy);
  color: var(--paper);
  padding: .75rem 1.25rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.75rem); }
h2 { font-size: clamp(1.875rem, 1.1rem + 3.2vw, 3.25rem); }
h3 { font-size: clamp(1.125rem, 1rem + .55vw, 1.4375rem); letter-spacing: -.02em; line-height: 1.2; }
em { font-style: normal; color: var(--copper); }

p { max-width: var(--measure); }

.eyebrow, .sec-tag, .mark-sub, .stm-title, .form-title {
  font-family: var(--text);
  font-weight: 600;
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ── Section tag ───────────────────────────────────────────── */
/* No trailing filler rule: a hairline that just runs out of the tag to the
   edge of the band reads as a leftover fragment, not as structure. The copper
   § number carries the marker on its own. */
.sec-tag {
  display: flex;
  align-items: baseline;
  gap: .875rem;
  color: var(--ink-soft);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  max-width: none;
}
.sec-no { color: var(--copper); letter-spacing: .12em; }

/* ── Header ────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 250, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: 72px;
}

.mark { display: flex; align-items: center; gap: .6875rem; text-decoration: none; color: var(--navy); }
.mark-glyph { width: 28px; height: 28px; color: var(--copper); flex: none; }
.mark-type { display: grid; gap: 1px; }
.mark-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1;
}
.mark-sub { font-size: .5rem; letter-spacing: .3em; color: var(--ink-soft); line-height: 1; }

.head-nav { display: none; gap: 1.75rem; margin-left: auto; }
@media (min-width: 1060px) { .head-nav { display: flex; } }
.head-nav a {
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--slate);
  display: flex;
  align-items: baseline;
  gap: .4375rem;
  padding-block: .375rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
/* the section you are reading — set by main.js as an attribute, never inline,
   so that :hover below still wins the cascade */
.head-nav a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--copper); }
.head-nav a:hover { color: var(--navy); border-bottom-color: var(--copper); }

.head-act { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
/* Сбрасываем auto-отступ только когда рядом действительно есть навигация:
   на юридических страницах её нет, и без этого условия кнопка «Back to the
   site» прилипала бы к логотипу вместо правого края. */
@media (min-width: 1060px) { .head-nav + .head-act { margin-left: 0; } }
/* Two offices, two numbers (ticket #41): stacked, each with a small label. */
.tel {
  display: none;
  font-size: .8125rem;
  line-height: 1.35;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tel a { display: block; text-decoration: none; text-align: right; }
.tel a:hover { color: var(--copper); }
.tel span { margin-right: .35em; color: var(--ink-soft); font-weight: 400; }
@media (min-width: 680px) { .tel { display: block; } }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .01em;
  padding: 1.0625rem 1.75rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  cursor: pointer;
  /* copper wipes up from the baseline — no pseudo, no stacking traps */
  background-image: linear-gradient(var(--copper), var(--copper));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 0%;
  transition: background-size .32s var(--ease), border-color .25s var(--ease);
}
.btn:hover, .btn:focus-visible { border-color: var(--copper); background-size: 100% 100%; }
.btn-sm { padding: .6875rem 1.125rem; font-size: .8125rem; }

/* На телефонах (≤480px) шапке не хватает ширины для логотипа и кнопки
   рядом: кнопка сжимается флексом, текст переносится в две строки, и
   плашка выходит заметно тяжелее и крупнее, чем остальная шапка. Плотнее
   и без переноса — кнопка умещается в одну строку и выглядит соразмерно
   логотипу. Правило точечное: только кнопка в шапке (Free Valuation,
   Back to the site), другие .btn-sm вне шапки не трогает. */
@media (max-width: 480px) {
  .head-act .btn-sm { padding: .5625rem .75rem; font-size: .75rem; white-space: nowrap; }
}
.btn-block { width: 100%; margin-top: .5rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5625rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  padding: 1.0625rem 0;
  border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.btn-ghost:hover { border-bottom-color: var(--copper); gap: .875rem; }
.btn-ghost span { color: var(--copper); }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(3.5rem, 9vw, 8rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  isolation: isolate;               /* keeps the atmosphere layer below inside */
}

/* The entry screen reads as a sheet of good paper on a desk: depth comes from
   light and a cool shadow, never from a colour wash. It is the only decorated
   surface on the page — the mask fades it out before § 01, so everything below
   stays flat and strict.

   Deliberately NO copper field here, and please do not add one back. A warm
   tint over this much of the hero cost more than it gave:
     · a field of the accent colour cancels the accent — "For Landlords.",
       the rule and the § numbers are what copper is for;
     · on a document metaphor an unexplained warm patch reads as a stain on
       the paper rather than as light, which is a poor subliminal for a page
       whose promise is that nothing is hidden;
     · the buyer is handing over a large asset after a bad agency experience.
       Screen one has to be composed, and the background can only lose that
       trust, never win it — the fee statement and the compliance register win it.
   Owner reviewed this against three alternatives and chose the neutral one.

   Drawn by a pseudo-element inside the hero's own stacking context, so unlike
   the fixed overlay this replaces, it cannot leak over another section. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    /* 1. tooth of the paper stock */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E"),
    /* 2. the sheet lifted towards the light — luminance, not hue */
    radial-gradient(78% 52% at 62% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 68%),
    /* 3. cool weight settling into the near corner */
    radial-gradient(60% 52% at 2% 100%, rgba(17, 30, 46, .075), rgba(17, 30, 46, 0) 70%),
    /* 4. a breath of sage far from the copy — the palette's "all in order" colour */
    radial-gradient(46% 40% at 100% 96%, rgba(74, 107, 93, .06), rgba(74, 107, 93, 0) 72%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 180px 180px, 100% 100%, 100% 100%, 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}
.eyebrow { color: var(--ink-soft); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.hero-rule {
  width: clamp(80px, 14vw, 168px);
  height: 2px;
  background: var(--copper);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  transform-origin: left;
}
/* Лид-абзац: подзаголовок hero и первый абзац § 01, размер у них общий.
   Второй селектор нужен только затем, чтобы перебить `.split-body p`. */
.lede, .split-body .lede {
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  line-height: 1.55;
}
.lede { color: var(--slate); max-width: 54ch; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
}
@media (min-width: 720px) {
  /* Close the band at the bottom too. With a rule on top, dividers between the
     columns and nothing underneath, the block hung open into the white and read
     as unfinished. Ruled top and bottom it reads as a row of a statement. */
  .stats { border-bottom: 1px solid var(--line); }
  .stat { border-bottom: 0; padding-inline: clamp(1rem, 2.5vw, 2rem); }
  .stat:first-child { padding-left: 0; }
  .stat + .stat { border-left: 1px solid var(--line); }
}
.stat-fig {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat-fig i { font-style: normal; color: var(--copper); font-size: .5em; letter-spacing: 0; }
.stat dt { font-size: .8125rem; color: var(--ink-soft); letter-spacing: .01em; }

/* ── Bands ─────────────────────────────────────────────────── */
.band { padding-block: var(--band-y); }
/* anchors must clear the sticky header (72px) — on narrow screens the band
   padding alone is smaller than the header and hid the section tag */
main [id], #top { scroll-margin-top: 6rem; }
.band + .band { border-top: 1px solid var(--line); }
.band-tint { background: rgba(74, 107, 93, .05); }
.band-dark, .band-cta {
  background: var(--navy);
  color: var(--ink-invert);
  border-top: 0;
}
.band-dark .sec-tag, .band-cta .sec-tag { color: rgba(232, 235, 239, .55); }
.band-dark h2, .band-cta h2 { color: var(--white); }
.band-dark p, .band-cta p { color: rgba(232, 235, 239, .74); }

/* Split heading + body */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); } }
.split-body { display: grid; gap: 1.25rem; }
.split-body p { color: var(--slate); font-size: clamp(1rem, .97rem + .2vw, 1.125rem); }
.band-dark .split-body p, .band-cta .split-body p { color: rgba(232, 235, 239, .74); }
/* Лид колонки — в цвет заголовка и плотнее, чтобы главное читалось первым.
   pretty не оставляет одно слово на последней строке; где свойство не
   поддерживается, перенос просто обычный. */
.split-body .lede { color: var(--ink); font-weight: 500; text-wrap: pretty; }

/* ── 6 pillars as a register ───────────────────────────────── */
.register { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line-dark); }
.reg-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  isolation: isolate;
}

/* Hover tint. It sits exactly on the row box, so its edges line up with the
   row rules — bleeding it wider left the rules stopping short of the tint and
   the block appeared to start in two different places.
   The fill fades out at both ends instead, so there is no hard vertical edge
   for "01" to butt against and nothing that can visibly fail to meet a rule.
   Only where hover exists — on touch this would never be seen anyway. */
@media (hover: hover) {
  .reg-row::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg,
      rgba(212, 139, 70, 0) 0,
      rgba(212, 139, 70, .055) 4%,
      rgba(212, 139, 70, .055) 96%,
      rgba(212, 139, 70, 0) 100%);
    opacity: 0;
    transition: opacity .3s var(--ease);
  }
  .reg-row:hover::before { opacity: 1; }
}
@media (min-width: 980px) {
  .reg-row { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
}
.reg-no {
  font-family: var(--display);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  padding-top: .3em;
  transition: transform .3s var(--ease);
}
.reg-row:hover .reg-no { transform: translateX(4px); }
.reg-row h3 { color: var(--white); grid-column: 2; }
.reg-claim {
  grid-column: 2;
  color: var(--copper) !important;
  font-size: 1rem;
  font-weight: 500;
  margin-top: .5rem;
}
.reg-body { grid-column: 2; margin-top: .875rem; font-size: .9688rem; }
@media (min-width: 980px) {
  .reg-row h3 { grid-column: 2; }
  .reg-claim { grid-column: 2; }
  .reg-body { grid-column: 3; grid-row: 1 / span 3; margin-top: .25rem; }
}

/* ── Statement of charges ──────────────────────────────────── */
/* Fees: copy and the statement sit side by side, like a document on the desk */
.fees-grid { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 960px) { .fees-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.fees-copy h2 { margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.fees-copy p { color: var(--slate); font-size: clamp(1rem, .97rem + .2vw, 1.125rem); }

/* No drop shadow: a shadow makes this a floating UI card, and the whole point
   is that it reads as a document lying flat on the page. */
.statement {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.stm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.stm-title { color: var(--ink-soft); }
.stm-primary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}
.stm-label { font-family: var(--display); font-weight: 600; font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); letter-spacing: -.02em; }
/* The rate is evidence, not the headline. It used to be the largest object on
   the card, so a fast reader carried away "8%" — a rate, not a price, and this
   audience's whole grievance is that the quoted rate was never the real cost.
   The pounds figure below is the hero now. Leading with the VAT-inclusive
   number is also what CRA 2015 s.83 requires. */
.stm-rate {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.375rem);
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stm-rate i { font-style: normal; font-size: .38em; letter-spacing: .04em; color: var(--ink-soft); }
.stm-note { font-size: .875rem; color: var(--ink-soft); margin-top: .75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

/* A column head turns a bulleted list into a table, and tables read as records
   rather than as claims. One line, and the five zeros below stop floating. */
.stm-cols {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stm-lines { padding-top: 1rem; display: grid; gap: .8125rem; }
.stm-lines li { display: flex; align-items: baseline; font-size: 1rem; }
/* the label carries the value here — renewal, maintenance markup and the exit
   fee are the charges this reader has personally paid — so it is set as the
   strong element and the amount stays quiet */
.stm-lines li > span { flex: 1 1 auto; display: flex; align-items: baseline; color: var(--ink); font-weight: 500; min-width: 0; }
.stm-lines li > span::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--line-soft);
  margin: 0 .625rem;
  transform: translateY(-.25em);
  min-width: 1.5rem;
}
.stm-lines b { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--sage); }
/* On narrow screens the longer labels wrap and the leader is left as a stub
   between the two, which reads as a broken line. Drop it and let the value
   sit hard right instead. */
@media (max-width: 520px) {
  .stm-lines li > span::after { display: none; }
  .stm-lines li { justify-content: space-between; gap: 1rem; }
}

/* ── Statement: the year summary ───────────────────────────── */
.stm-worked { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 2px solid var(--navy); }

/* the assumption is stated before the figures, as in any illustration */
.stm-basis {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Two rows differing only in their value: the eye subtracts for free. Set as
   peers in one column, not as an us-versus-them table — a comparison matrix is
   the most recognisable artefact of agency marketing and this audience reads it
   as a sales deck instantly. */
.stm-compare { display: grid; gap: .75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.stm-compare li { display: flex; align-items: baseline; gap: 1rem; font-size: .9375rem; }
.stm-compare li > span { flex: 1 1 auto; min-width: 0; }
.stm-compare b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); }
.stm-them { color: var(--ink-soft); }
.stm-them b { font-weight: 500; color: var(--ink-soft); }

.stm-diff-label {
  margin-top: 1.25rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* Sage, not copper: sage already means "in order" on every zero above, so it
   inherits the meaning instead of spending the accent. */
.stm-diff {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--sage);
  margin-top: .375rem;
}

.stm-bench { margin-top: 1rem; font-size: .875rem; color: var(--slate) !important; }
.stm-foot { margin-top: .75rem; font-size: .75rem; color: var(--ink-soft) !important; }
.stm-cond { margin-top: .625rem; font-size: .75rem; color: var(--ink-soft); }

/* ── Statement: additional fees ────────────────────────────── */
/* Платежи, которые бывают только если что-то пошло не так (таблица Gary,
   A27–A28). Тот же ряд с выносной линией, что у пяти нулей, но сумма не sage:
   sage на карточке значит «в порядке, ноль», а здесь — настоящие деньги. */
.stm-extra { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
/* max-width: none — мера в ch от мелкого кегля уже карточки (project-gotchas,
   «Мера абзаца в ch…»), как у .stm-schemes p. */
.stm-extra-title { font-size: .9375rem; font-weight: 600; color: var(--ink); max-width: none; }
.stm-lines-extra { padding-top: .75rem; gap: .625rem; }
/* Кегль и начертание — как у .stm-cond («Of project value…»): так попросил
   Gary 13.10 (тикет #24). Цвет остаётся основным: строки — сами платежи,
   а не сноска, и серым остаётся только условие под ними. */
.stm-lines-extra li { font-size: .8125rem; flex-wrap: wrap; row-gap: .125rem; }
.stm-lines-extra li > span,
.stm-lines-extra b { font-weight: 400; }
.stm-lines-extra b { color: var(--ink); }
/* С flex-wrap подпись с основой auto уходила на свою строку, а сумма — под неё.
   Основа 0: подпись переносится внутри себя, сумма остаётся справа на той же строке. */
.stm-lines-extra li > span { flex-basis: 0; }
/* Условие платежа — второй строкой под названием, а не в колонке суммы:
   «12% of project value» в колонке на 375 px ломалось в три строки. */
.stm-cond { flex: 0 0 100%; font-size: .8125rem; color: var(--ink-soft); }
.stm-extra-note { margin-top: .875rem; font-size: .8125rem; color: var(--ink-soft); max-width: none; }

/* Обязательные заявления о схемах. Живут внутри карточки-выписки, потому что
   CRA 2015 s.83(6)–(7) требует их рядом со списком комиссий, а не где-нибудь
   на странице. Линейка сверху — та же, что отделяет worked example: это третий
   смысловой блок выписки, а не сноска к предыдущему. */
.stm-schemes { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
/* Мера 62ch от кегля 12 px — это 496 px, уже карточки: строке она только
   мешает, как у .foot-co (project-gotchas, «Мера абзаца в ch…»). */
.stm-schemes p { font-size: .75rem; line-height: 1.6; color: var(--ink-soft) !important; max-width: none; }
/* Часть строки переносится целиком; внутри рвётся, только если сама шире карточки. */
.stm-part { display: inline-block; max-width: 100%; }
.stm-keep { white-space: nowrap; }

/* Ссылка на сертификат CMP — в карточке § 03 и в футере. Цвет — от строки
   (светлая карточка и тёмный футер), подчёркивание показывает, что это
   ссылка; наведение — медь, как у остальных ссылок. */
.cert-link { color: inherit; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
.cert-link:hover, .cert-link:focus-visible { color: var(--copper); }

/* ── Compliance register ───────────────────────────────────── */
.certs {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .certs { grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); } }
@media (min-width: 1000px) { .certs { grid-template-columns: repeat(4, 1fr); } }
.certs li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: 1.0625rem;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 500;
}
.certs li i { font-style: normal; color: var(--ink-soft); font-size: .75rem; letter-spacing: .08em; }
.tick {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--sage);
  border-radius: 2px;
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--sage);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(43deg);
}

/* ── Tech features ─────────────────────────────────────────── */
.features {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .features li { border-bottom: 0; padding-inline: clamp(1.25rem, 3vw, 2.5rem); }
  .features li:first-child { padding-left: 0; }
  .features li + li { border-left: 1px solid var(--line); }
}
.feat-no {
  font-family: var(--display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .14em;
  color: var(--copper);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.125rem;
}
.features h3 { margin-bottom: .75rem; }
.features p { color: var(--slate); font-size: .9375rem; }

/* ── Quotes ────────────────────────────────────────────────── */
.quotes {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
/* Колонок столько, сколько высказываний: было три цитаты, стало два
   высказывания основателей, и третья пустая колонка не нужна. */
@media (min-width: 900px) { .quotes { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.quote {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .quote { border-bottom: 0; padding-inline: clamp(1.25rem, 3vw, 2.5rem); }
  .quote:first-child { padding-left: 0; }
  .quote + .quote { border-left: 1px solid var(--line-dark); }
}
.quote blockquote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem);
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--white) !important;
  text-wrap: pretty;   /* без одного слова на последней строке, как у лида § 01 */
}
/* Цитата из нескольких абзацев (высказывание Чарли, тикет #39): кавычка
   открывает только первый абзац и закрывает только последний. Открывающую
   кавычку у следующих абзацев клиент попросил снять (тикет #54). */
.quote blockquote p:first-child::before { content: "\201C"; color: var(--copper); }
.quote blockquote p:last-child::after { content: "\201D"; color: var(--copper); }
.quote blockquote p + p { margin-top: .75em; }
.quote figcaption { margin-top: auto; display: grid; gap: .25rem; font-size: .8125rem; }
.quote figcaption b { font-weight: 600; color: var(--white); }
.quote figcaption span { color: rgba(232, 235, 239, .55); }

/* ── Areas we cover ────────────────────────────────────────── */
/* Два списка мест: с 27.10 восемь и десять (тикет #34). Строки разделены
   волосяными линиями, как в реестре сертификатов § 04: это тот же «реестр»,
   только мест. Названия короткие, поэтому по две колонки в группе держатся
   и на 320 px. */
.areas {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: clamp(2.25rem, 5vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
}
@media (min-width: 900px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area-group h3 { margin-bottom: 1rem; }
.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.area-list li {
  padding-block: 1.0625rem;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 500;
}

/* ── CTA + form ────────────────────────────────────────────── */
.band-cta { border-top: 1px solid var(--line-dark); }
/* two navy bands in a row would otherwise stack 2× padding into one void.
   Сейчас не срабатывает: между тёмными § 06 и § 08 стоит светлый § 07.
   Оставлено намеренно — блок районов черновой, и если клиент его снимет,
   две тёмные полосы снова встанут рядом. */
.band-dark + .band-cta { padding-top: clamp(3rem, 6vw, 5rem); }
.cta-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.cta-copy h2 { margin-bottom: 1.5rem; }

.contact { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact li {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: .9375rem;
}
.contact li > span {
  flex: none;
  width: 5rem;
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(232, 235, 239, .5);
  padding-top: .3em;
}
.contact a { text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: border-color .2s var(--ease); }
.contact a:hover { border-bottom-color: var(--copper); }
.contact-tel { display: grid; gap: .35rem; justify-items: start; }

.form {
  background: var(--paper);
  color: var(--navy);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 2px;
  border-top: 3px solid var(--copper);
  display: grid;
  gap: .375rem;
}
/* the form sits on paper inside a navy band — beat `.band-cta p` on specificity */
.form .form-title { color: var(--ink-soft); margin-bottom: 1rem; }
.form label { font-size: .8125rem; font-weight: 500; color: var(--slate); margin-top: .875rem; }
.form input {
  width: 100%;
  padding: .8125rem .875rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .2s var(--ease);
}
.form input:hover { border-color: rgba(17, 30, 46, .3); }
.form input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(212, 139, 70, .18); }
.form input[aria-invalid="true"] { border-color: #B3462F; }
/* Форма стоит на светлой карточке внутри тёмной секции, поэтому цвет задаётся
   через !important — иначе выигрывает `.band-cta p`. Тот же приём, что у .form-msg. */
.form .form-privacy { font-size: .75rem; line-height: 1.55; margin-top: 1.25rem; margin-bottom: .25rem; color: var(--ink-soft) !important; }
.form .form-privacy a { color: var(--slate); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.form .form-privacy a:hover, .form .form-privacy a:focus-visible { color: var(--copper); }

/* Поле-ловушка для ботов (тикет #33): за краем экрана, как .skip, а не display: none —
   часть ботов пропускает невидимые поля и тогда в ловушку не попадает. */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { font-size: .8125rem; margin-top: .875rem; min-height: 1.2em; color: var(--sage) !important; }
.form-msg[data-state="error"] { color: #B3462F !important; }

/* ── Footer ────────────────────────────────────────────────── */
.site-foot { background: var(--navy); color: rgba(232, 235, 239, .6); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line-dark); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; }
.mark-foot { color: var(--white); }
.mark-foot .mark-sub { color: rgba(232, 235, 239, .5); }
.foot-meta { font-size: .875rem; margin-left: auto; }

/* Two auto margins, so the free space splits evenly and the row reads as three
   spaced marks rather than a logo with everything else crowded to the right. */
.foot-social { display: flex; flex-wrap: wrap; gap: .125rem; margin-left: auto; }
.foot-social a {
  display: block;
  padding: .625rem;                 /* 18px glyph + padding = 38px tap target */
  color: rgba(232, 235, 239, .55);
  transition: color .2s var(--ease);
}
.foot-social a:hover, .foot-social a:focus-visible { color: var(--copper); }
.foot-social svg { width: 1.125rem; height: 1.125rem; }

/* Once the row wraps, `auto` would right-align each orphan line under a
   left-aligned logo. Stack them all to the left instead. */
@media (max-width: 720px) {
  .foot-social, .foot-meta { margin-left: 0; }
}

/* Юридическая половина футера. Отделена линейкой, а не просто отступом:
   верхняя строка — это бренд и контакт, нижняя — юридические ссылки,
   схемы и строка о компании. Разная природа, поэтому разные полосы.

   На широком экране — две колонки: схемы и строка о компании слева,
   ссылки справа. Так нижняя полоса повторяет ритм верхней (логотип слева,
   контакт справа) и не оставляет половину футера пустой. Ссылки в разметке
   идут первыми, потому что для навигации с клавиатуры и скринридера они
   важнее сноски; колонки расставлены явно, чтобы порядок чтения от этого
   не зависел. */
.foot-legal {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .foot-legal { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 3rem; align-items: start; }
  .foot-links { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .foot-legal-body { grid-column: 1; grid-row: 1; }
}

.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; font-size: .8125rem; }
.foot-links a {
  display: inline-block;
  padding-block: .375rem;           /* держит тап-таргет на мобильном */
  color: rgba(232, 235, 239, .72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot-links a:hover, .foot-links a:focus-visible {
  color: var(--copper);
  border-bottom-color: rgba(212, 139, 70, .5);
}

@media (min-width: 900px) {
  /* В колонку: четыре ссылки в строку справа отняли бы ширину у реквизитов. */
  .foot-links { flex-direction: column; gap: 0; }
}

.foot-legal-body { display: grid; gap: .75rem; max-width: 60ch; }

/* Членство в схемах читается чуть ярче реквизитов: для арендодателя это
   сигнал доверия, а не строка мелким шрифтом. Всегда по строке на схему:
   в одну строку они не помещаются ни на одной разумной ширине, а от
   переноса разделитель уезжал в начало второй строки.
   Без маркеров и без отступа слева: строки стоят вровень с реквизитами и
   остальным текстом футера. Медные точки сняты по просьбе Gary от 21.09
   (тикет #12); системных маркеров нет и так — `list-style` снят в reset.
   Зазор между схемами заметно больше межстрочного: без точек только он
   показывает, что перенесённая строка — продолжение, а не третья схема. */
.foot-schemes { display: grid; gap: .5rem; font-size: .8125rem; color: rgba(232, 235, 239, .62); }

/* Строка о компании тише строк о схемах, но не тише, чем позволяет
   WCAG AA: при 12 px нужен контраст 4.5:1. Альфа .55 даёт 5.13:1 на navy
   (было .42 — 3.55:1) и оставляет строку тусклее строк о схемах (.62).
   Общий `p { max-width: var(--measure) }` при 12 px — это 496 px, а строке
   Gary в одну строку нужно 498: на десктопе номер уезжал бы вниз. Ширину
   держит колонка `.foot-legal-body`, мера абзаца одной строке не нужна. */
.foot-co { font-size: .75rem; line-height: 1.65; color: rgba(232, 235, 239, .55); max-width: none; }

/* ── Legal pages ───────────────────────────────────────────── */
/* privacy / cookies / terms / complaints. Одна колонка сплошного текста,
   поэтому здесь свои размеры: дисплейный h1 в 5.75rem с главной на такой
   странице читался бы как заголовок рекламы, а не документа. */
.legal-wrap { padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-block: .625rem 1.75rem; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); margin-bottom: .75rem; }
.legal section { margin-top: clamp(2rem, 4vw, 2.75rem); }
.legal p { margin-bottom: .875rem; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: var(--line); transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.legal a:hover, .legal a:focus-visible { color: var(--copper); text-decoration-color: var(--copper); }

/* Глобальный reset снимает маркеры со всех списков — на странице сплошного
   текста они нужны обратно, иначе перечисление читается как абзац. */
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: .875rem; }
.legal li { margin-bottom: .375rem; }
.legal li::marker { color: var(--copper); }

.legal-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); color: var(--slate); }
.legal-updated { font-size: .8125rem; color: var(--ink-soft); }

.legal-table { width: 100%; border-collapse: collapse; margin-bottom: .875rem; font-size: .9375rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--line-soft); }
.legal-table th { font-family: var(--display); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); border-bottom-color: var(--line); }
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 560px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr { padding-block: .75rem; border-bottom: 1px solid var(--line-soft); }
  .legal-table td { border: none; padding: 0 0 .25rem; }
  .legal-table td:last-child { font-size: .875rem; color: var(--ink-soft); }
}

/* ── Reveal ────────────────────────────────────────────────── */
/* Gated on `.js`, set by an inline script in <head>. Without JavaScript the
   class never lands, nothing is ever hidden, and the page renders complete —
   the animation is an enhancement, never a precondition for reading. */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .hero-rule.reveal { transform: scaleX(0); }
.js .hero-rule.reveal.in { transform: scaleX(1); transition: transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-rule.reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .site-head, .form { display: none; }
  .band-dark, .band-cta, .site-foot { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
