/* Lintel marketing site — design tokens + components.
   Implemented from the Claude Design comp "Lintel Site". GOV.UK-blue palette,
   Spline Sans / Spline Sans Mono. Responsive breakpoints replace the design's
   isMobile(760) / navWide(920) runtime conditionals. */

:root {
  --ink: #0B0C0C;
  --blue: #1D70B8;
  --blue-dark: #144E81;
  --sec: #505A5F;
  --ter: #6B7378;
  --mut: #3F474C;
  --line: #E9EBEE;
  --line2: #EFF1F4;
  --line3: #E4E7EB;
  --chipline: #DFE3E8;
  --bg2: #FAFBFC;
  --info: #F3F8FC;
  --info-line: #C8DEF0;
  --chip-bg: #E8F1F8;
  --green: #00703C;
  --amber: #B45309;
  --red: #D4351C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  font-family: 'Spline Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
::selection { background: var(--blue); color: #fff; }
h1, h2, h3 { margin: 0; }
img { max-width: 100%; display: block; }
.mono { font-family: 'Spline Sans Mono', ui-monospace, monospace; }

/* ── Layout shell ─────────────────────────────────────────────── */
.page { background: #fff; min-width: 320px; }
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }

/* Bordered vertical-line container that every section sits inside. */
.band {
  margin: 0 clamp(16px, 4.5vw, 64px);
  border-left: 1px solid var(--line2);
  border-right: 1px solid var(--line2);
}
.section { padding: clamp(56px, 7vw, 96px) clamp(16px, 5vw, 72px); }
.rule { margin: 0 clamp(16px, 4.5vw, 64px); height: 1px; background: var(--line); }

.eyebrow {
  font-family: 'Spline Sans Mono', monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--blue);
}
.h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
.lede { font-size: 16px; line-height: 1.65; color: var(--sec); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head .h2 { margin-top: 16px; }

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand span { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--sec); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-right > a.nav-plain { font-size: 14px; font-weight: 500; color: var(--sec); }
.nav-right > a.nav-plain:hover { color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; font-weight: 500; transition: background .2s, transform .15s ease; }
.btn-dark { background: var(--ink); color: #fff; font-size: 14px; padding: 9px 18px; }
.btn-dark:hover { background: var(--blue); color: #fff; }
.btn-app {
  display: inline-flex; align-items: center; gap: 11px; flex: none;
  background: var(--ink); color: #fff; padding: 13px 26px; border-radius: 12px;
  transition: background .2s, transform .15s ease;
}
.btn-app:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-app .lab { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-app .lab small { font-size: 11px; font-weight: 400; opacity: .75; }
.btn-app .lab b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.link-arrow { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 8vw, 92px) clamp(16px, 5vw, 72px) 0; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(29, 112, 184, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 112, 184, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 30%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 30%, #000, transparent 78%);
}
.plus { position: absolute; color: #9AA9B5; font-family: 'Spline Sans Mono', monospace; font-size: 15px; pointer-events: none; }
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 {
  margin: 22px 0 0; font-size: clamp(36px, 5vw, 66px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.06;
}
.hero h1 .hl { white-space: nowrap; box-shadow: inset 0 -.14em var(--info-line); }
.hero-sub { margin: 24px auto 0; max-width: 640px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: var(--sec); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 26px; margin-top: 36px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center;
  margin-top: 28px; font-family: 'Spline Sans Mono', monospace; font-size: 11.5px;
  letter-spacing: .05em; color: var(--ter);
}
.trust .sep { color: #C6CBD2; }

/* Device mockups */
.device-wrap { position: relative; max-width: 940px; margin: 56px auto 0; }
.ipad { position: relative; width: min(760px, 84%); margin: 0 auto; background: var(--ink); border-radius: 34px; padding: 18px; box-shadow: 0 28px 70px rgba(11, 12, 12, .2); }
.ipad-screen { position: relative; aspect-ratio: 2000 / 1397; border-radius: 18px; overflow: hidden; background: #F3F4F6; }
.iphone-wrap { position: relative; margin: 44px auto 0; }
.iphone { position: relative; width: min(300px, 80vw); margin: 0 auto; background: var(--ink); border-radius: 46px; padding: 10px; box-shadow: 0 22px 54px rgba(11, 12, 12, .2); }
.iphone-screen { position: relative; aspect-ratio: 924 / 2000; border-radius: 37px; overflow: hidden; background: #F3F4F6; }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 86px; height: 25px; border-radius: 13px; background: var(--ink); z-index: 2; pointer-events: none; }
.slot-img { width: 100%; height: 100%; object-fit: cover; }
.fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; z-index: 3; }
.pill {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line3); border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 500; box-shadow: 0 10px 28px rgba(11, 12, 12, .09);
}
.pill.mono { font-family: 'Spline Sans Mono', monospace; font-size: 12.5px; font-weight: 400; color: var(--mut); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ── How it works ─────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-top: clamp(36px, 5vw, 60px); }
.step { border-top: 2px solid var(--line); padding-top: 26px; transition: border-color .25s ease; }
.step:hover { border-top-color: var(--blue); }
.step-num { font-family: 'Spline Sans Mono', monospace; font-size: 13px; font-weight: 600; color: var(--blue); }
.step-title { margin-top: 12px; font-size: 19px; font-weight: 600; }
.step p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--sec); }

/* ── Features (bento) ─────────────────────────────────────────── */
.features { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.card { flex: 1 1 300px; border: 1px solid var(--line3); border-radius: 14px; padding: 28px; transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
.card:hover { border-color: #B9C4CE; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11, 12, 12, .07); }
.card.wide { flex: 2 1 520px; }
.card.full { flex: 1 1 100%; padding: 24px 28px; display: flex; align-items: center; gap: 20px; }
.card-split { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.card-split .col { flex: 1 1 260px; }
.card-thumb { flex: 1 1 220px; min-height: 170px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }
.icon-chip { width: 34px; height: 34px; border-radius: 8px; background: var(--chip-bg); display: flex; align-items: center; justify-content: center; flex: none; }
.card-title { margin: 16px 0 8px; font-size: 16.5px; font-weight: 600; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sec); }
.card.full .ct { font-size: 16.5px; font-weight: 600; }
.card.full .cp { font-size: 14.5px; color: var(--sec); }

/* ── Councils ─────────────────────────────────────────────────── */
.councils { padding-left: 0; padding-right: 0; }
.councils .section-head { padding: 0 clamp(16px, 5vw, 72px); max-width: 680px; }
.councils .section-head .lede { margin-top: 18px; }
.ticker-wrap { overflow: hidden; margin-top: clamp(32px, 4vw, 48px); position: relative; }
.ticker-fade { position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 110px); z-index: 2; pointer-events: none; }
.ticker-fade.l { left: 0; background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); }
.ticker-fade.r { right: 0; background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0)); }
.ticker-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: 'Spline Sans Mono', monospace; font-size: 14.5px; color: var(--mut); white-space: pre; }
.councils-note { text-align: center; margin-top: clamp(24px, 3vw, 36px); padding: 0 clamp(16px, 5vw, 72px); font-family: 'Spline Sans Mono', monospace; font-size: 11.5px; letter-spacing: .06em; color: var(--ter); }

/* ── Room-size checker ────────────────────────────────────────── */
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.split.top { align-items: flex-start; }
.checker-copy { flex: 1 1 320px; }
.checker-copy .h2 { margin-top: 16px; }
.checker-copy .lede { margin-top: 18px; }
.checker-note { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--ter); }
.checker-panel { flex: 1.2 1 360px; border: 1px solid var(--line3); border-radius: 16px; padding: clamp(22px, 3vw, 40px); background: #fff; box-shadow: 0 1px 3px rgba(11, 12, 12, .04); }
.checker-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.checker-row .lbl { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--ter); }
.seg { display: flex; gap: 8px; }
.seg-btn { font-family: 'Spline Sans', sans-serif; font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .18s ease; border: 1px solid var(--chipline); background: #fff; color: var(--sec); }
.seg-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.checker-mid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 26px; }
.area-num { font-family: 'Spline Sans Mono', monospace; font-size: clamp(34px, 4vw, 44px); font-weight: 600; line-height: 1; }
.area-num small { font-size: 17px; font-weight: 400; color: var(--ter); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 7px 14px; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.range-wrap { margin-top: 22px; }
input[type=range] { accent-color: var(--blue); width: 100%; cursor: pointer; margin: 0; height: 26px; }
.ticks { position: relative; height: 26px; margin-top: 2px; font-family: 'Spline Sans Mono', monospace; font-size: 10.5px; color: #8A9299; }
.ticks .end-l { position: absolute; left: 0; }
.ticks .end-r { position: absolute; right: 0; }
.ticks .mark { position: absolute; top: -6px; width: 1px; height: 10px; background: var(--amber); }
.ticks .mark-lbl { position: absolute; top: 8px; transform: translateX(-50%); color: var(--amber); }
.checker-msg { margin-top: 22px; padding: 14px 18px; border-radius: 10px; font-size: 14px; line-height: 1.6; transition: background .25s ease, color .25s ease; }

/* ── Pricing ──────────────────────────────────────────────────── */
.pricing-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.pricing-copy { flex: 1 1 380px; }
.pricing-copy .h2 { margin-top: 16px; }
.pricing-copy p { margin: 16px 0 0; max-width: 560px; font-size: 16px; line-height: 1.65; color: var(--sec); }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 4.5vw, 64px); align-items: flex-start; }
.faq-head { flex: 1 1 280px; }
.faq-head .h2 { margin-top: 16px; }
.faq-list { flex: 1.6 1 400px; border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; text-align: left; padding: 22px 4px; cursor: pointer; background: none; border: 0; font: inherit; color: inherit; transition: color .15s; }
.faq-q:hover { color: var(--blue); }
.faq-q span:first-child { font-size: 17px; font-weight: 500; }
.faq-icon { font-family: 'Spline Sans Mono', monospace; font-size: 20px; color: #9AA3AD; flex: none; line-height: 1; transition: transform .3s ease, color .2s; }
.faq-item.open .faq-icon { color: var(--blue); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4, 0, .2, 1); }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { margin: 0 0 24px; padding: 0 4px; font-size: 15px; line-height: 1.65; color: var(--sec); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { background: var(--bg2); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 60px) clamp(20px, 5vw, 64px) 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px clamp(32px, 5vw, 64px); }
.footer-brand { flex: 1 1 240px; max-width: 300px; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--sec); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 5vw, 72px); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .head { font-family: 'Spline Sans Mono', monospace; font-size: 11px; letter-spacing: .12em; color: var(--ter); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--mut); }
.footer-col a:hover { color: var(--blue); }
.disclaimer { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: flex-start; }
.disclaimer p { margin: 0; flex: 1 1 480px; max-width: 860px; font-size: 12.5px; line-height: 1.6; color: var(--ter); }
.disclaimer .copyright { font-family: 'Spline Sans Mono', monospace; font-size: 12px; color: var(--ter); white-space: nowrap; }

/* ── Legal / support pages ────────────────────────────────────── */
.legal { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; box-sizing: border-box; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 32px) 96px; }
.legal.wide { max-width: 880px; }
.legal h1 { margin: 18px 0 0; font-size: clamp(34px, 4.5vw, 48px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.legal .updated { margin-top: 14px; font-family: 'Spline Sans Mono', monospace; font-size: 12px; letter-spacing: .06em; color: var(--ter); }
.legal h2 { margin: 44px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.legal p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--mut); }
.legal ul { margin: 12px 0 0; padding-left: 22px; font-size: 15.5px; line-height: 1.8; color: var(--mut); }
.legal .intro { max-width: 600px; font-size: 16px; line-height: 1.65; color: var(--sec); }
.callout { margin-top: 40px; border: 1px solid var(--info-line); background: var(--info); border-radius: 12px; padding: 22px 26px; }
.callout .t { font-size: 15px; font-weight: 600; }
.callout p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--mut); }
.contact-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.contact-card { flex: 1 1 300px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line3); border-radius: 12px; padding: 20px 24px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.contact-card.primary { border-color: var(--info-line); background: var(--info); }
a.contact-card.primary:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29, 112, 184, .12); }
.contact-card .ic { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ic.blue { background: var(--blue); }
.contact-card .ic.tint { background: var(--chip-bg); }
.contact-card .ct { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.contact-card .cs { font-size: 13px; color: var(--sec); margin-top: 2px; }
.support-h2 { margin: 56px 0 0; font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -.015em; }
.support-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.support-card { flex: 1 1 380px; border: 1px solid var(--line3); border-radius: 14px; padding: 24px 28px; }
.support-card .t { font-size: 16px; font-weight: 600; }
.support-card p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--sec); }
.still-stuck { margin-top: 40px; border: 1px solid var(--line3); border-radius: 14px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.legal-footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 28px clamp(20px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.legal-footer .links { display: flex; flex-wrap: wrap; gap: 24px; }
.legal-footer a { font-size: 14px; color: var(--mut); }
.legal-footer a:hover { color: var(--blue); }
.legal-footer .copyright { font-family: 'Spline Sans Mono', monospace; font-size: 12px; color: var(--ter); }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fu { animation: fadeUp .6s ease both; }
.floaty { animation: floaty 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .fu, .floaty, .ticker-track { animation: none !important; }
  .fu { opacity: 1; transform: none; }
}

/* ── Responsive (replaces runtime isMobile 760 / navWide 920) ──── */
.only-desktop { display: block; }
.only-mobile { display: none; }
@media (max-width: 759px) {
  .only-desktop { display: none; }
  .only-mobile { display: block; }
}
@media (max-width: 919px) {
  .nav-links { display: none; }
}
