/* Assurex Futureworks
   Road vernacular: asphalt hero, lane-marking yellow, condition colours taken from the app. */
:root {
  --ink: #0d1b2e;
  --navy: #001833;
  --muted: #4d5b6e;
  --soft: #6f7b8c;
  --paper: #f2f3f7;
  --surface: #ffffff;
  --line: #dde1e8;
  --blue: #0066cc;
  --blue-hover: #00509f;
  --asphalt: #1c232d;
  --asphalt-2: #262e39;
  --asphalt-line: #3a424d;
  --on-dark: #f3f5f8;
  --on-dark-muted: #aab3c0;
  --marking: #f5b800;
  --good: #2e9d5a;
  --fair: #e8871a;
  --poor: #d63a2f;
  --l3: #17897b;
  --l4: #7b8798;
  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; font-weight: 800; }
p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--marking); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: calc(var(--wrap) + 40px);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Small text styles */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--blue); }
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--marking); }
.label { font-size: 14px; font-weight: 700; color: var(--blue); }
.small { font-size: 14.5px; color: var(--soft); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 6px; width: 44px; height: 40px; cursor: pointer; color: var(--ink); }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.btn { margin-top: 16px; border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 14px 22px; border: 1.5px solid var(--ink); border-radius: 6px;
  background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 100px); }
.alt { background: var(--paper); }
.dark { background: var(--asphalt); color: var(--on-dark); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.section-head p { color: var(--muted); font-size: 19px; max-width: 640px; }
.dark .section-head p { color: var(--on-dark-muted); }

/* Home hero */
.hero { background: var(--asphalt); color: var(--on-dark); padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 56px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: var(--on-dark); }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.03em; color: #fff; margin-top: 22px; max-width: 15ch; }
.hero-lede { color: var(--on-dark-muted); font-size: 19.5px; max-width: 33em; margin-top: 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-shots { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1.3; justify-self: end; }
.hero-shots img { position: absolute; width: 56%; height: auto; filter: drop-shadow(0 28px 48px rgba(0, 0, 0, .5)); }
.hero-shots .front { left: 0; bottom: 0; z-index: 2; }
.hero-shots .back { right: 0; top: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots { justify-self: center; max-width: 380px; }
}

/* Condition by chainage strip (hero signature) */
.chainage { margin-top: clamp(44px, 6vw, 72px); }
.ch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.ch-head strong { font-size: 16px; color: #fff; }
.ch-legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-muted); }
.ch-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark-muted); }
.ch-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.ch-legend .g::before { background: var(--good); }
.ch-legend .f::before { background: var(--fair); }
.ch-legend .p::before { background: var(--poor); }
.ch-track {
  position: relative; display: flex; gap: 4px; height: 48px;
  background:
    repeating-linear-gradient(90deg, var(--marking) 0 16px, transparent 16px 30px) 0 23px / 100% 2px no-repeat,
    linear-gradient(var(--asphalt-line), var(--asphalt-line)) 0 10px / 100% 28px no-repeat;
}
.ch-track span { position: relative; flex: 1 1 0; animation: paint .5s ease both; animation-delay: calc(var(--i) * 90ms + 350ms); }
.ch-track span::before, .ch-track span::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; border-radius: 2px; background: currentColor; }
.ch-track span::before { top: 0; }
.ch-track span::after { bottom: 0; }
.ch-track::after {
  content: ""; position: absolute; top: 19px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(0, 123, 229, .45); opacity: 0;
  animation: drive 1.5s cubic-bezier(.45, 0, .55, 1) .3s both;
}
.ch-vals { display: flex; gap: 4px; margin-top: 8px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-vals span { flex: 1 1 0; text-align: center; animation: show .4s ease both; animation-delay: calc(var(--i) * 90ms + 500ms); }
.ch-track .last, .ch-vals .last { flex-grow: .8; }
.ch-vals .g { color: #5cc98a; }
.ch-vals .f { color: #f4a447; }
.ch-vals .p { color: #ff7a6e; }
.g { color: var(--good); }
.f { color: var(--fair); }
.p { color: var(--poor); }
.ch-km { position: relative; height: 20px; margin-top: 6px; font-size: 13px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.ch-km span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ch-km span:first-child { transform: none; }
.ch-km span:last-child { left: auto !important; right: 0; transform: none; }
.ch-note { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }
@keyframes paint { from { color: var(--asphalt-line); } }
@keyframes show { from { opacity: 0; } }
@keyframes drive { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@media (max-width: 560px) { .ch-vals { font-size: 12px; gap: 2px; } .ch-track { gap: 2px; } .ch-km span:nth-child(even) { display: none; } }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.problems > div { display: grid; gap: 12px; align-content: start; }
.problems > div::before { content: ""; width: 48px; height: 6px; border-radius: 2px; background: var(--poor); margin-bottom: 8px; }
.problems h3 { font-size: 24px; }
.problems p { color: var(--muted); }
@media (max-width: 800px) { .problems { grid-template-columns: 1fr; } }

/* What the AI looks for */
.scene { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.scene img { width: 100%; height: auto; }
.scene figcaption { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.priority { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.priority span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.priority span::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.priority .l1::before { background: var(--poor); }
.priority .l2::before { background: var(--fair); }
.priority .l3::before { background: var(--l3); }
.priority .l4::before { background: var(--l4); }
.detect-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.detect-groups h3 { font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.detect-groups ul { list-style: none; padding: 0; }
.detect-groups li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .detect-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .detect-groups { grid-template-columns: 1fr; } }

/* Steps along a road, with kilometre stones as markers */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 14px; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, var(--marking) 0 14px, transparent 14px 26px) 0 6px / 100% 2px no-repeat,
    var(--asphalt-line);
}
.step { display: grid; gap: 12px; align-content: start; }
.stone {
  position: relative; z-index: 1; width: 46px; height: 60px; margin-bottom: 12px;
  border: 2px solid var(--ink); border-radius: 23px 23px 6px 6px;
  background: linear-gradient(var(--marking) 0 44%, #fff 44%);
  display: grid; place-items: end center; padding-bottom: 6px;
  font-weight: 800; font-size: 19px; line-height: 1;
}
.step h3 { font-size: 24px; }
.step p { color: var(--muted); font-size: 16.5px; }
.steps-note { margin-top: 40px; padding: 18px 22px; border-radius: 10px; background: var(--paper); color: var(--muted); max-width: 760px; }
.steps-note strong { color: var(--ink); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* App tour */
.tour { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tour figure { display: grid; gap: 10px; align-content: start; }
.tour img { width: 100%; max-width: 250px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .45)); }
.tour h3 { font-size: 21px; color: #fff; }
.tour p { color: var(--on-dark-muted); font-size: 16px; }
.tour-note { margin-top: 40px; font-size: 14px; color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .tour {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 64%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; gap: 24px;
  }
  .tour figure { scroll-snap-align: start; }
}

/* Split layout: text beside a picture */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { font-size: clamp(32px, 4.2vw, 50px); }
.split .lede { color: var(--muted); font-size: 19px; margin-top: 18px; }
.split .btn { margin-top: 32px; }
.ticks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.paper-shot { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px rgba(0, 24, 51, .14); aspect-ratio: 1 / 1.08; }
.paper-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-caption { margin-top: 14px; font-size: 14px; color: var(--soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Module cards */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module { display: grid; gap: 14px; align-content: start; padding: clamp(26px, 3.4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.module h3 { font-size: clamp(24px, 2.6vw, 30px); }
.module p { color: var(--muted); }
.module a.more { font-weight: 700; color: var(--blue); text-decoration: none; margin-top: 4px; }
.module a.more:hover { text-decoration: underline; }
@media (max-width: 760px) { .modules { grid-template-columns: 1fr; } }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 5px 12px 4px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-first { background: #e3f3ea; color: #1d6e3e; }
.chip-next { background: #fcefdc; color: #8f4f06; }
.chip-planned { background: #eceef2; color: #4d5b6e; }

/* Audience and reasons */
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cols-4 > div { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.cols-4 h3 { font-size: 21px; }
.cols-4 p { color: var(--muted); font-size: 16.5px; }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cols-4 { grid-template-columns: 1fr; } }

/* Closing call to action */
.cta { position: relative; background: var(--asphalt); color: var(--on-dark); padding-bottom: clamp(96px, 12vw, 148px); }
.cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: clamp(32px, 4vw, 48px); height: 30px;
  background:
    repeating-linear-gradient(90deg, var(--marking) 0 40px, transparent 40px 72px) 0 14px / 100% 3px no-repeat,
    var(--asphalt-line);
}
.cta .eyebrow { color: var(--on-dark); }
.cta h2 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.03em; color: #fff; max-width: 16ch; margin-top: 20px; }
.cta p { color: var(--on-dark-muted); font-size: 19px; max-width: 560px; margin-top: 22px; }
.cta .hero-ctas { margin-top: 32px; }
.cta .btn:not(.btn-primary) { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cta .btn:not(.btn-primary):hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Inner page hero */
.page-hero { background: var(--asphalt); color: var(--on-dark); padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px); }
.page-hero .eyebrow { color: var(--on-dark); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -0.03em; color: #fff; margin-top: 20px; max-width: 18ch; }
.page-hero p { color: var(--on-dark-muted); font-size: 19px; max-width: 660px; margin-top: 22px; }

/* Solutions page */
.solution { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.solution:last-child { border-bottom: 0; }
.solution-intro { display: grid; gap: 18px; align-content: start; position: sticky; top: 104px; }
.solution-intro h2 { font-size: clamp(30px, 3.8vw, 44px); }
.solution-intro p { color: var(--muted); font-size: 18px; }
.solution-intro img { width: min(240px, 60%); height: auto; margin-top: 12px; filter: drop-shadow(0 22px 36px rgba(0, 24, 51, .25)); }
.solution-body { display: grid; gap: 36px; min-width: 0; }
.block { display: grid; gap: 14px; }
.block h3 { font-size: 21px; }
.block > p { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.checklist li { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; transform: translateY(-2px); }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; }
.flow span { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 6px 12px 5px; }
.flow i { font-style: normal; color: var(--soft); }
.note { border-left: 4px solid var(--marking); border-radius: 2px; padding: 4px 0 4px 18px; color: var(--ink); font-size: 16px; }
@media (max-width: 860px) {
  .solution { grid-template-columns: 1fr; }
  .solution-intro { position: static; }
}
@media (max-width: 520px) { .checklist { grid-template-columns: 1fr; } }

/* Platform table */
.stack { border-top: 2px solid var(--ink); }
.stack-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stack-row h3 { font-size: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 4px; color: var(--muted); background: var(--surface); }
@media (max-width: 700px) { .stack-row { grid-template-columns: 1fr; gap: 12px; } }

/* About */
.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.prose { display: grid; gap: 20px; font-size: 18.5px; color: var(--muted); max-width: 66ch; }
.prose strong { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: clamp(24px, 3vw, 34px); }
.row p { color: var(--muted); max-width: 520px; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 8px; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cell { padding: clamp(26px, 3.4vw, 40px); display: grid; gap: 12px; align-content: start; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cell h3 { font-size: clamp(22px, 2.4vw, 28px); }
.cell p { color: var(--muted); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.band { background: var(--asphalt); color: var(--on-dark); }
.band .eyebrow { color: var(--on-dark); }
.band h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; color: #fff; margin-top: 20px; }
.band .lede { font-size: 19px; color: var(--on-dark-muted); max-width: 640px; margin-top: 22px; }

/* Company facts (About) */
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 15px; font-weight: 700; color: var(--soft); padding-top: 2px; }
.facts dd { margin: 0; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.facts a { color: var(--blue); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
@media (max-width: 700px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); }
form.contact { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { font-size: 15px; font-weight: 700; color: var(--ink); }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 6px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--blue) 30%, transparent); outline-offset: 0; border-color: var(--blue); }
textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.consent a { color: var(--blue); }
.form-status { font-size: 15px; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--blue); background: var(--paper); }
.details { display: grid; gap: 24px; align-content: start; padding: 28px; border-radius: 12px; background: var(--paper); }
.details div { display: grid; gap: 4px; }
.details p { font-size: 17px; overflow-wrap: anywhere; }
.details a { color: var(--blue); text-decoration: none; }
.details a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Legal */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); padding-block: clamp(48px, 7vw, 80px); }
.legal nav { position: sticky; top: 104px; align-self: start; display: grid; gap: 10px; }
.legal nav a { text-decoration: none; color: var(--muted); font-size: 15.5px; }
.legal nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.legal article { max-width: 72ch; display: grid; gap: 18px; min-width: 0; }
.legal h2 { font-size: 26px; margin-top: 24px; }
.legal h3 { font-size: 19px; margin-top: 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal [id] { scroll-margin-top: 96px; }
.legal a { color: var(--blue); }
.legal ol.toc { margin: 0; padding: 18px 20px 18px 40px; background: var(--paper); border-radius: 10px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal ol.toc li { break-inside: avoid; padding: 2px 0; }
.legal ol.toc a { text-decoration: none; }
.legal ol.toc a:hover { text-decoration: underline; }
.legal .entity { font-size: 15px; border-left: 4px solid var(--marking); padding: 4px 0 4px 16px; }
.legal .updated { font-size: 14px; font-weight: 700; color: var(--soft); }
@media (max-width: 560px) { .legal ol.toc { columns: 1; } }
@media (max-width: 760px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; background: var(--paper); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-top p { color: var(--muted); font-size: 15.5px; max-width: 340px; margin-top: 16px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .label { color: var(--ink); }
.foot-col a { text-decoration: none; color: var(--muted); font-size: 15.5px; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand img { height: 44px; }
.foot-contact { font-style: normal; display: grid; gap: 4px; margin-top: 20px; font-size: 15.5px; color: var(--muted); }
.foot-contact strong { color: var(--ink); font-weight: 700; }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-bottom .label { font-weight: 400; color: var(--soft); }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 24px; }
.notfound h1 { font-size: clamp(48px, 9vw, 104px); letter-spacing: -0.04em; }
