/* ClearLevy: the one look every page shares (site redesign, 30 Oct 2026).
   Loaded first by every page: the front page, the LSL page and the check, the DEX pages, the Vic construction
   pages, the guides and the privacy notice. It holds the fonts, the colour and spacing tokens, the type, the
   header, the footer, the buttons, the cards, the "first-screen box" and the price line.
   The marketing pages add assets/style.css; the two tools add their own styles.css for the tool parts only.
   Plain CSS, no build step, nothing loaded from outside this site. */

/* The two fonts, served from this site (Thomas, 28 Oct 2026: faster on phones, and no request to Google).
   Latin subsets as Google Fonts served them on 28 Oct; SIL Open Font Licence, in fonts/COPYING. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --cream: #FFF9F0;
  --cream-2: #F7EEDF;
  --paper: #FFFFFF;
  --ink: #0d0d0d;
  --ink-2: #2b2723;
  --muted: #55504a;            /* 7:1 on cream */
  --line: #E6DAC8;
  --control: #7d746a;          /* form borders: 4:1 against cream and white */
  --yellow: #FFE45C;           /* the front page's slogan highlight only */
  --orange: #F26B3A;           /* the accent: dots, bars and the logo, never text */
  --on-dark: #FFF9F0;
  --on-dark-muted: #CDC4B6;
  --dark-line: rgba(255, 249, 240, .22);
  --ok: #1d6b34;
  --ok-bg: #E4F3E6;
  --err: #B3261E;
  --err-bg: #FDECEA;
  --warn: #7a5200;
  --warn-bg: #fff4dc;

  /* The tools' names for the same colours (lsl/styles.css, dex/styles.css) */
  --bg: var(--cream);
  --panel: var(--paper);
  --accent: var(--ink);
  --accent-ink: var(--cream);
  --error: var(--err);
  --error-bg: var(--err-bg);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 13, 13, .05), 0 4px 14px rgba(13, 13, 13, .04);
  --header-h: 60px;            /* jump links and sticky parts sit below the header */
  --space-section: clamp(36px, 5.5vw, 72px);

  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1240px) { :root { --gutter: 40px; } }
@media (min-width: 1000px) { :root { --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 700; }

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--yellow); }

.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 {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.small { font-size: .93rem; }
.muted { color: var(--muted); }

/* Pieces that only make sense with or without the script */
html:not(.has-app) .js-only { display: none !important; }
.has-app .nojs-only { display: none !important; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Buttons: black pills, one style everywhere ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.35em;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(13, 13, 13, .07); border-color: var(--ink); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--sm { min-height: 44px; padding: .45em 1.1em; font-size: .95rem; }
.btn--lg { min-height: 52px; padding: .7em 1.6em; font-size: 1.05rem; }
@media (max-width: 359px) { .btn--lg { font-size: 1rem; padding-inline: .8em; } .btn--lg .arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } .btn:hover .arrow { transform: none; } }

/* ---------- Header: one slim row on every page ----------
   Wide screens: logo and name, the three tabs, Contact and the page's main button.
   Tablets: logo and name, the tabs, a mail icon. Phones: the logo and the tabs (the page's own first screen
   names ClearLevy). Under 350px: the tabs only (they lead to each tab's page; the footer leads home). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(13, 13, 13, .06); }
.site-header__inner {
  display: flex; align-items: center; gap: 10px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 5px var(--gutter);
}
.site-header__inner > * { min-width: 0; }

.brandmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none;
  color: var(--ink); text-decoration: none;
}
.brandmark__logo {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink);
}
.brandmark__logo::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--orange);
}
.brandmark__logo::after {
  content: ""; position: absolute; left: 13px; top: 9px; width: 5px; height: 10px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}
.brandmark__text { display: grid; line-height: 1.05; }
.brandmark__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; }
.brandmark__note { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-top: 3px; }
.brandmark:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 10px; }

/* The three tabs: one pill each, the current one filled */
.services {
  display: flex; gap: 2px; padding: 2px; margin-inline: auto;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
}
.services::-webkit-scrollbar { display: none; }
.services a {
  flex: 1 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  color: var(--ink-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.services a:hover { background: rgba(255, 255, 255, .95); color: var(--ink); }
.services a[aria-current="page"] { background: var(--ink); color: var(--cream); }
/* The strip scrolls when it must, which would clip an outer ring, so the ring is drawn inside: ink, with a cream
   line that still shows on the current (black) tab. The transparent outline shows in Windows high-contrast mode. */
.services a:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--cream), inset 0 0 0 6px var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px;
  font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.hdr-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.hdr-link svg { width: 20px; height: 20px; flex: none; }
.hdr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--cream);
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.hdr-btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.hdr-link:focus-visible, .hdr-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (max-width: 999px) {
  .brandmark__note, .hdr-btn { display: none; }
  .hdr-link { font-size: 0; gap: 0; }
  .hdr-link svg { width: 22px; height: 22px; }
  .services a { padding: 0 11px; font-size: .84rem; }
}
@media (max-width: 599px) {
  .site-header__inner { gap: 8px; padding-inline: 10px; }
  .brandmark__text, .site-header__actions { display: none; }
  .services { margin-inline: 0 auto; flex: 1 1 auto; }
  .services a { padding: 0 8px; font-size: .8rem; }
}
@media (max-width: 400px) { .services a { padding: 0 6px; font-size: .74rem; } }
@media (max-width: 349px) {
  .site-header__inner { padding-inline: 8px; }
  .brandmark { display: none; }
  .services a { padding: 0 5px; font-size: .7rem; }
}
@media print { .site-header { position: static; box-shadow: none; } .services, .site-header__actions { display: none !important; } }

/* ---------- Eyebrow: the small line above a heading, with the orange dot ---------- */
.eyebrow {
  position: relative; display: block; padding-left: 1.25em;
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5;
  margin: 0 0 .7rem; color: var(--ink);
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .65em; height: .65em; border-radius: 50%; background: var(--orange);
}

/* ---------- The first-screen box: what it does, the price line, the main button, trust points ---------- */
.fs { padding-block: clamp(18px, 3.5vw, 48px) clamp(28px, 4vw, 56px); }
.fs__grid { display: grid; gap: 18px 48px; align-items: start; }
@media (min-width: 900px) {
  .fs__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .fs__grid > .offer, .fs__grid > .fs__side { grid-column: 2; grid-row: 1 / span 2; }
  .fs__grid > :not(.offer):not(.fs__side) { grid-column: 1; }
}
.fs__title { font-size: clamp(1.7rem, 1.2rem + 2.3vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; }
.fs__lede { margin: 12px 0 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
@media (max-width: 359px) { .fs { padding-top: 14px; } .fs__lede { margin-top: 8px; font-size: .95rem; line-height: 1.45; } }
.fs__side { display: grid; gap: 16px; }

.offer {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 16px;
}
@media (min-width: 600px) { .offer { padding: 22px 24px 20px; } }
.offer .btn { width: 100%; margin-top: 12px; padding-inline: 1em; }
@media (min-width: 600px) { .offer .btn { width: auto; } }
.offer__more { margin: 10px 0 0; font-size: .95rem; }
.offer__more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* The price line: says what's free, the price and whether it's one-off or monthly */
.price-line {
  margin: 0; padding-left: 12px; border-left: 4px solid var(--orange);
  font-size: 1rem; line-height: 1.45; color: var(--ink);
}
.price-line strong { font-weight: 800; }

/* Trust points: short ticked lines */
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .95rem; line-height: 1.4; }
.trust li { position: relative; padding-left: 26px; }
.trust li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
}
.trust li::after {
  content: ""; position: absolute; left: 6.5px; top: calc(.12em + 3.5px); width: 4.5px; height: 8.5px;
  border-right: 2px solid var(--cream); border-bottom: 2px solid var(--cream); transform: rotate(45deg);
}

/* ---------- Sections, cards and fold-outs ---------- */
.section { padding-block: var(--space-section); }
.section--alt { background: var(--cream-2); }
.section-head { max-width: 760px; margin-bottom: clamp(20px, 3vw, 36px); }
.section-head .lede { margin-top: .8rem; }
.section-title { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; }
.lede { font-size: clamp(1.02rem, .97rem + .3vw, 1.15rem); line-height: 1.5; color: var(--ink-2); max-width: 40em; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 20px 22px;
}
@media (min-width: 600px) { .card { padding: 24px 24px 26px; } }
.card > h3 { margin: 0 0 8px; }
.card > p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

/* Questions and long reference content fold away behind a clear heading */
.fold { border-bottom: 1px solid var(--line); }
.fold details { border-top: 1px solid var(--line); margin: 0; }
.fold summary {
  position: relative; list-style: none; cursor: pointer;
  display: flex; align-items: center; min-height: 52px; padding: 12px 48px 12px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.3;
  color: var(--ink);
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: none; }
.fold summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; margin-top: -15px;
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
}
.fold details[open] > summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, var(--cream-2); }
.fold summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.fold .answer, .fold details > p, .fold details > ol, .fold details > ul { margin: 0 0 18px; max-width: 42em; color: var(--ink-2); }

/* ---------- Footer: the same on every page ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding-block: 40px 36px; margin-top: 0; }
.footer a:not(.btn) { color: inherit; }
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 20px; border-bottom: 1px solid var(--dark-line); margin-bottom: 20px;
}
.footer__line { font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.footer__small { color: var(--on-dark-muted); font-size: .9rem; max-width: 56em; margin: 0 0 8px; }
.footer__small:last-child { margin-bottom: 0; }
.footer .link-btn, .footer button.link { color: var(--on-dark); }
/* A row of footer links and text buttons: they wrap as whole items, with no separator left hanging */
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

.wordmark {
  display: inline-flex; align-items: center; gap: .38em; min-height: 44px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.035em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.wordmark__mark {
  position: relative; flex: none;
  width: 1.02em; height: 1.02em; border-radius: 50%; background: var(--orange);
}
.wordmark__mark::after {
  content: ""; position: absolute; left: .36em; top: .2em;
  width: .25em; height: .48em;
  border-right: .12em solid var(--ink); border-bottom: .12em solid var(--ink);
  transform: rotate(45deg);
}
.wordmark--light { color: var(--cream); }

/* A text-style button (e.g. "Forget what this computer has saved") */
.link-btn, button.link {
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em;
  cursor: pointer;
}

@media print {
  .skip, .footer__top .btn { display: none !important; }
  .footer { background: #fff !important; color: #000 !important; }
}
