/* The public website at thesmartapp.co.uk. A light, product-led layout: navy hero with the app on a
   laptop and phone, then photos of the work, features with real screens, pricing and questions. */
:root {
  --navy-950: #061424;
  --navy-900: #0a1f36;
  --navy-800: #102b4a;
  --brand: #0b4f8a;
  --brand-600: #0a4477;
  --brand-50: #eef5fc;
  --brand-100: #d9e8f7;
  --accent: #ffc83d;       /* UK number plate yellow */
  --accent-600: #f2b70f;
  --ink: #0e1b2a;
  --text: #3b4a5c;
  --muted: #5d6b7e;
  --line: #e3e9f0;
  --soft: #f5f8fb;
  --white: #ffffff;
  --good: #0f7b55;
  --good-50: #e8f6ef;
  --warn: #9a4d00;
  --warn-50: #fff3e0;
  --bad: #b3261e;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 42, .06), 0 1px 3px rgba(14, 27, 42, .08);
  --shadow: 0 2px 6px rgba(14, 27, 42, .05), 0 12px 32px rgba(14, 27, 42, .10);
  --shadow-lg: 0 24px 60px rgba(6, 20, 36, .35);
  --head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.nowrap { white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.01em; word-spacing: .04em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: var(--white); }
.btn.primary:hover { background: var(--brand-600); }
.btn.accent { background: var(--accent); color: var(--navy-950); }
.btn.accent:hover { background: var(--accent-600); }
.btn.outline { border-color: #cdd6e1; color: var(--ink); background: var(--white); }
.btn.outline:hover { border-color: var(--brand); color: var(--brand); }
.btn.outline-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn.outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn .icon { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.15rem/1 var(--head); letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 960px) { .site-nav { display: none; } }
/* Only the header's own button makes way on small phones; the menu keeps its "Book a demo". */
@media (max-width: 520px) { .header-actions > .btn.primary { display: none; } .brand { font-size: 1.05rem; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.soft { background: var(--soft); }
.section.tight-top { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 88px); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; display: grid; gap: 14px; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow { display: inline-block; font: 700 .8125rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: 1.1875rem; color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #c9d6e6; background:
  radial-gradient(900px 500px at 85% 10%, rgba(41, 121, 199, .45), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(11, 79, 138, .55), transparent 60%),
  linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%); mask-image: linear-gradient(180deg, #000 30%, transparent 90%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr); gap: clamp(32px, 4.5vw, 56px); align-items: center; padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 104px); }
.hero h1 { color: var(--white); }
.hero h1 .highlight { color: var(--accent); }
.hero .lead { color: #c9d6e6; max-width: 34em; }
.hero-text { display: grid; gap: 24px; min-width: 0; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e3ecf6; font-size: .875rem; font-weight: 500; }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--navy-950); display: grid; place-items: center; }
.pill .dot .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: .9375rem; color: #a9bbd0; }
.hero-assure li { display: inline-flex; align-items: center; gap: 7px; }
.hero-assure .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Devices: a laptop showing the office website and a phone showing the app */
.devices { position: relative; padding-bottom: 6%; padding-right: 9%; }
.laptop { position: relative; }
.laptop-screen { background: #0d1117; border-radius: 14px 14px 4px 4px; padding: 2.2% 2.2% 2.6%; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12); }
.laptop-base { height: 14px; margin: 0 -6%; background: linear-gradient(180deg, #cfd8e3, #93a1b3); border-radius: 0 0 16px 16px; box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
.laptop-base::after { content: ""; display: block; width: 16%; height: 5px; margin: 0 auto; background: rgba(0, 0, 0, .18); border-radius: 0 0 8px 8px; }
.phone { position: relative; border-radius: 36px; padding: 9px; background: #0b0f14; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a313b; }
.phone img { width: 100%; height: auto; border-radius: 28px; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: 31%; border-radius: 28px; padding: 7px; }
.devices .phone img { border-radius: 22px; }

/* The office website, drawn small: sized from its own width so it scales with the laptop */
.board { container-type: inline-size; background: #f4f6f9; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; font-family: var(--body); color: #18202a; line-height: 1.3; }
.board-inner { font-size: 1.32cqw; height: 100%; display: flex; flex-direction: column; }
.b-top { background: var(--brand); color: #fff; display: flex; align-items: center; gap: 1em; padding: .9em 1.4em; white-space: nowrap; }
.b-top strong { font-weight: 700; font-size: 1.15em; margin-right: .6em; }
.b-search { flex: 0 1 34em; padding: .4em .8em; border-radius: .4em; background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78); font-size: .9em; overflow: hidden; text-overflow: ellipsis; }
.b-body { flex: 1; display: flex; min-height: 0; }
.b-side { flex: 0 0 13%; display: flex; flex-direction: column; gap: .15em; padding: .9em .6em; background: #fff; border-right: 1px solid #dde3ea; white-space: nowrap; font-size: .95em; }
.b-side span { padding: .4em .6em; border-radius: .4em; color: #3a4552; }
.b-side span.on { background: var(--brand-100); color: #0b2440; font-weight: 600; }
.b-side span.gap { margin-top: .9em; }
.b-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.b-bar { display: flex; align-items: center; gap: .8em; padding: 1em 1.4em .4em; }
.b-bar b { font-size: 1.45em; color: #18202a; letter-spacing: -.01em; margin-right: auto; }
.b-bar b small { font-size: .62em; font-weight: 500; color: #5b6673; letter-spacing: 0; margin-left: .4em; }
.b-btn { padding: .45em .9em; border-radius: .5em; border: 1px solid #dde3ea; background: #fff; font-weight: 600; font-size: .95em; }
.b-btn.blue { background: var(--brand); color: #fff; border-color: var(--brand); }
.b-cols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; padding: .8em 1.4em 1.4em; min-height: 0; }
.b-col { background: #fff; border: 1px solid #dde3ea; border-radius: .8em; padding: .9em; display: grid; gap: .7em; align-content: start; overflow: hidden; }
.b-col.assign { border-color: #9cc2e8; }
.b-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.05em; }
.b-head small { color: #5b6673; font-weight: 500; font-size: .9em; }
.b-sub { color: #5b6673; font-size: .85em; margin-top: -.4em; }
.b-job { border: 1px solid #dde3ea; border-radius: .6em; padding: .65em .7em; display: grid; gap: .35em; background: #fbfcfd; }
.b-row { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.b-plate { background: var(--accent); color: #111; font: 700 .9em/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: .25em .45em; border-radius: .3em; border: 1px solid rgba(0, 0, 0, .35); }
.b-tag { font-size: .8em; font-weight: 600; padding: .15em .55em; border-radius: 99em; background: #eef1f5; color: #5b6673; }
.b-tag.time { background: var(--brand-100); color: #0b2440; }
.b-tag.warn { background: var(--warn-50); color: var(--warn); }
.b-tag.ok { background: var(--good-50); color: var(--good); }
.b-name { font-weight: 600; font-size: .95em; }
.b-meta { color: #5b6673; font-size: .8em; }

/* Strip of reassurances under the hero */
.assurance { border-bottom: 1px solid var(--line); background: var(--white); }
.assurance ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.assurance li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.assurance .icon { color: var(--brand); width: 22px; height: 22px; }
@media (max-width: 860px) { .assurance ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .assurance ul { grid-template-columns: minmax(0, 1fr); } }

/* Kinds of SMART work */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.work { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-900); box-shadow: var(--shadow); margin: 0; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.04); }
.work figcaption { position: absolute; inset: auto 0 0 0; padding: 72px 20px 20px; background: linear-gradient(180deg, transparent, rgba(6, 20, 36, .9) 55%); color: #dbe5f0; display: grid; gap: 4px; font-size: .9375rem; line-height: 1.45; }
.work figcaption strong { color: var(--white); font: 700 1.2rem/1.2 var(--head); }
.work figcaption span { min-height: 2.9em; }
@media (max-width: 480px) { .work { aspect-ratio: 4 / 3; } }
.work-note { text-align: center; margin-top: 28px; color: var(--muted); }

/* Benefits */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow-sm); }
.icon-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.icon-badge .icon { width: 24px; height: 24px; }

/* Feature rows: picture one side, words the other */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 120px); }
.feature.flip .feature-media { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature.flip .feature-media { order: 0; } }
.feature-text { display: grid; gap: 18px; }
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.checks li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--good-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7b55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 2px; }
.checks strong { color: var(--ink); font-weight: 600; }
.feature-media { position: relative; min-width: 0; }
.photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; left: -4%; bottom: -8%; width: min(330px, 80%); background: var(--white); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 8px; }
.float-card .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.float-card .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--good-50); color: var(--good); display: grid; place-items: center; flex: none; }
.float-card .tick .icon { width: 17px; height: 17px; stroke-width: 2.8; }
.float-card strong { color: var(--ink); font-size: .9375rem; }
.float-card .small { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.plate { display: inline-block; background: var(--accent); color: #111; font: 700 .8125rem/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: 4px 7px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .35); white-space: nowrap; }
@media (max-width: 900px) { .float-card { left: 4%; } .feature-media.has-float { margin-bottom: 36px; } }
.phone-stage { position: relative; border-radius: 24px; background: linear-gradient(160deg, var(--brand-50), var(--brand-100)); padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 72px) 0; overflow: hidden; display: flex; justify-content: center; max-height: 588px; }
.phone-stage .phone { width: min(300px, 100%); border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; align-self: flex-start; }
.phone-stage .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Everything else, in a grid */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: minmax(0, 1fr); } }
.mini { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.mini .icon { color: var(--brand); width: 26px; height: 26px; margin-bottom: 6px; }
.mini h3 { font-size: 1.0625rem; }
.mini p { font-size: .9375rem; color: var(--muted); }

/* Getting started */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font: 800 1.05rem/1 var(--head); margin-bottom: 6px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.price-card { position: relative; background: var(--white); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 40px); display: grid; gap: 20px; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brand), #2a86d4); }
.price-card .tag { justify-self: start; font-size: .8125rem; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); }
.price .amount { font: 800 3.5rem/1 var(--head); letter-spacing: -.03em; }
.price .per { color: var(--muted); font-weight: 500; }
.price-card .checks { margin: 0; }
.price-card .fine { font-size: .875rem; color: var(--muted); text-align: center; }
.price-card .btn { width: 100%; }

/* Questions */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 1.0625rem/1.4 var(--body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 22px; height: 22px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4f8a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--text); }

/* Closing call to action */
.cta { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(36px, 6vw, 72px); background: radial-gradient(600px 300px at 90% 0%, rgba(41, 121, 199, .5), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: #c9d6e6; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.cta h2 { color: var(--white); }
.cta p { margin-top: 12px; font-size: 1.125rem; }
.cta .hero-actions { justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta .hero-actions { justify-content: flex-start; } }

/* Footer */
.site-footer { background: var(--navy-950); color: #9fb0c4; padding: 64px 0 28px; font-size: .9375rem; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1080px) { .site-footer .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } .site-footer .about { grid-column: 1 / -1; } }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: var(--white); }
.site-footer .foot-head { color: var(--white); font: 700 .8125rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9d6e6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .about { display: grid; gap: 14px; max-width: 30em; align-content: start; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .social .icon { width: 20px; height: 20px; color: var(--accent); }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .875rem; }
/* Footer links reach into the space around them, so they're easier to hit without moving. */
.site-footer ul a, .site-footer .legal a, .site-footer .legal button.link, .site-footer .about a[href^="mailto"] { display: inline-block; padding: 5px 0; margin: -5px 0; }
.site-footer .social a { padding: 5px 0; margin: -5px 0; }
/* On phones the lists open out to thumb-sized rows. */
@media (max-width: 860px) {
  .site-footer ul { gap: 2px; }
  .site-footer ul a { padding: 11px 0; margin: 0; }
}

/* Pages other than the home page */
.page-hero { background: linear-gradient(180deg, var(--brand-50), var(--white)); padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.page-hero .section-head { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.page-body { padding-bottom: clamp(56px, 8vw, 96px); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 18px; }
.form-card label { display: grid; gap: 7px; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.form-card .optional { font-weight: 400; color: var(--muted); }
.form-card input, .form-card select, .form-card textarea { font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--white); border: 1px solid #cdd6e1; border-radius: 10px; padding: 11px 14px; min-height: 48px; width: 100%; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 560px) { .form-card .two { grid-template-columns: minmax(0, 1fr); } }
.form-card .fine { font-size: .875rem; color: var(--muted); }
.form-card .btn { justify-self: start; }
.side { display: grid; gap: 18px; }
.side .card { padding: 26px; }
.side .card .icon-badge { margin-bottom: 2px; }
.card-title { font-size: 1.2rem; }
.side .email { font: 700 1.15rem/1.3 var(--head); overflow-wrap: anywhere; text-decoration: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message { border-radius: 12px; padding: 16px 18px; font-weight: 600; margin-bottom: 18px; }
.message.ok { background: var(--good-50); color: var(--good); border: 1px solid #b6e2cd; }
.message.bad { background: #fdecea; color: var(--bad); border: 1px solid #f3c2bd; }

/* Log in */
.login-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
@media (max-width: 720px) { .login-cards { grid-template-columns: minmax(0, 1fr); } }
.login-cards .card { padding: clamp(26px, 4vw, 36px); box-shadow: var(--shadow); }
.login-cards h2 { font-size: 1.6rem; }
.login-cards .btn { justify-self: start; margin-top: 8px; }
.help-note { max-width: 960px; margin: 28px auto 0; text-align: center; color: var(--muted); }

/* Privacy */
.prose { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.prose h2 { font-size: 1.4rem; margin-top: 22px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Phone and tablet menu: the header links fold into a panel */
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid #cdd6e1; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--brand); color: var(--brand); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 4px; }
.menu-panel a:not(.btn) { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:not(.btn):hover { background: var(--soft); }
.menu-panel .btn { width: 100%; margin-top: 6px; }
@media (max-width: 960px) { .menu { display: block; } }

@media (max-width: 900px) {
  .float-card { position: relative; left: auto; bottom: auto; margin: -40px auto 0; width: calc(100% - 32px); }
  .feature-media.has-float { margin-bottom: 0; }
}
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Company code boxes on the Log in page */
.code-form { display: grid; gap: 14px; margin-top: 6px; }
.code-form label { display: grid; gap: 7px; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.code-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.code-row input { font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--white); border: 1px solid #cdd6e1; border-radius: 10px; padding: 11px 14px; min-height: 48px; flex: 1 1 10rem; min-width: 0; }
.code-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.code-domain { color: var(--muted); font-weight: 400; }
.code-form .btn { justify-self: start; }

/* Pages for each kind of work, and guides */
.page-hero .hero-actions { justify-content: center; margin-top: 8px; }
.page-hero .section-head.left .hero-actions { justify-content: flex-start; }
.prose h3 { font-size: 1.15rem; margin-top: 8px; }
.prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose .note { background: var(--brand-50); border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--soft); }
.table-scroll { overflow-x: auto; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .related { grid-template-columns: minmax(0, 1fr); } }
.related a { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.related a:hover { border-color: var(--brand); transform: translateY(-1px); }
.related strong { color: var(--ink); font: 700 1.05rem/1.3 var(--head); }
.related span { font-size: .9375rem; }
.work figcaption a { color: var(--accent); font-weight: 600; font-size: .875rem; text-decoration: none; }
.work figcaption a::after { content: ""; position: absolute; inset: 0; }
.work figcaption a:hover { text-decoration: underline; }
.work figcaption a:focus-visible { outline-color: var(--accent); }

/* Asking before any analytics cookie is set */
.consent { position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; display: grid; gap: 14px; font-size: .9375rem; line-height: 1.5; }
.consent strong { color: var(--ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { flex: 1 1 auto; }
.site-footer button.link { background: none; border: 0; padding: 0; font: inherit; color: #c9d6e6; cursor: pointer; }
.site-footer button.link:hover { color: var(--white); text-decoration: underline; }
