/* ==========================================================================
   LetResolve — website styles (index, terms, privacy, 404)
   Brand tokens from brand/palette/brand.css · Nunito for display, Inter for body
   No inline styles anywhere, so the Content-Security-Policy can stay strict.
   ========================================================================== */

/* Brand fonts, self-hosted so no visitor request ever leaves letresolve.com.
   Latin subsets from Google Fonts, SIL Open Font License 1.1 (see assets/fonts/LICENSE.txt). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
}

:root {
  /* Brand palette */
  --navy: #012B5D;
  --blue: #018DC5;
  --blue-deep: #00509B;
  --teal: #017681;
  --green: #039762;
  --green-bright: #19D84A;
  --cloud: #F3F8FC;
  --white: #FFFFFF;
  --slate: #46617F;

  /* Status colours (brand extension, see docs/brand.md) */
  --red: #BC2C22;
  --amber: #CE9412;
  --amber-ink: #86600B;
  --green-ink: #00704A;

  /* Semantic */
  --ink: var(--navy);
  --ink-soft: #213E60;
  --muted: var(--slate);
  --line: #D9E4EF;
  --line-soft: #E8EFF6;
  --tint-blue: #E7F4FB;
  --tint-teal: #E2F2F3;
  --tint-green: #E3F5EC;
  --tint-red: #FBEAE8;
  --tint-amber: #FCF3DF;
  --tint-navy: #E6ECF4;

  --grad-brand: linear-gradient(90deg, #012B5D 0%, #018DC5 40%, #017681 72%, #039762 100%);
  --grad-word: linear-gradient(90deg, #018DC5 0%, #017681 55%, #039762 100%);
  --grad-cta: linear-gradient(135deg, #00509B 0%, #017681 100%);

  --font-display: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgb(1 43 93 / .06), 0 2px 8px rgb(1 43 93 / .05);
  --shadow: 0 1px 2px rgb(1 43 93 / .05), 0 14px 34px -14px rgb(1 43 93 / .25);
  --shadow-lg: 0 2px 6px rgb(1 43 93 / .06), 0 36px 70px -24px rgb(1 43 93 / .38);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--navy);
  text-wrap: balance;
}
h2 { font-size: clamp(1.95rem, 3.8vw, 2.85rem); }
h3 { font-size: 1.3125rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
s { text-decoration-thickness: 1.5px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: translate .15s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 0; }
.btn-primary {
  color: #fff; background: var(--grad-cta);
  box-shadow: 0 8px 20px -10px rgb(0 80 155 / .7), inset 0 1px 0 rgb(255 255 255 / .18);
}
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #01458A 0%, #01646F 100%);
  box-shadow: 0 12px 26px -10px rgb(0 80 155 / .75), inset 0 1px 0 rgb(255 255 255 / .18);
}
.btn-secondary { color: var(--navy); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--navy); border-color: #A9C6DE; }
.btn-white { color: var(--navy); background: #fff; box-shadow: 0 12px 28px -12px rgb(0 0 0 / .5); }
.btn-white:hover { color: var(--navy); background: #F3F8FC; }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .06); }
.btn-outline-light:hover { color: #fff; background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .75); }
.btn-sm { --pad-y: .6rem; --pad-x: 1.05rem; font-size: .9375rem; }
.btn-lg { --pad-y: 1rem; --pad-x: 1.6rem; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .84);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 8px 24px -20px rgb(1 43 93 / .45); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { height: 38px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--navy); font-weight: 500; font-size: .96875rem; text-decoration: none;
  transition: background .15s;
}
.site-nav a:hover { background: var(--tint-blue); }
.site-nav a[aria-current="page"] { background: var(--tint-blue); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .js .nav-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  }
  .js .site-nav.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px var(--gutter) 18px;
  }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 13px 14px; font-size: 1.0625rem; border-radius: 12px; }
}
@media (max-width: 380px) {
  .brand img { height: 32px; }
}

/* ---------- Shared section furniture ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 124px); }
.section-alt { background: var(--cloud); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .8125rem/1.2 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow .icon { width: 16px; height: 16px; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--muted); line-height: 1.65; }
.section-head .lead { margin-inline: auto; max-width: 40em; }
.grad-text {
  background: var(--grad-word);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Icon tiles */
.ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ic .icon { width: 24px; height: 24px; }
.ic.sm { width: 34px; height: 34px; border-radius: 10px; }
.ic.sm .icon { width: 18px; height: 18px; }
.ic-blue { background: var(--tint-blue); color: var(--blue-deep); }
.ic-teal { background: var(--tint-teal); color: var(--teal); }
.ic-green { background: var(--tint-green); color: var(--green-ink); }
.ic-navy { background: var(--tint-navy); color: var(--navy); }
.ic-red { background: var(--tint-red); color: var(--red); }

/* Status chips & priority badges, as used in the app */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap; line-height: 1.4;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-open { background: var(--tint-blue); color: var(--blue-deep); }
.chip-progress { background: var(--tint-teal); color: var(--teal); }
.chip-hold { background: #EEF1F5; color: var(--slate); }
.chip-resolved { background: var(--tint-green); color: var(--green-ink); }
.prio {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  font-size: .6875rem; font-weight: 700; flex: none;
}
.prio-h { background: var(--tint-red); color: var(--red); border: 1px solid #F1C4BF; }
.prio-m { background: var(--tint-amber); color: var(--amber-ink); border: 1px solid #EED9A6; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 6vw, 84px) clamp(72px, 9vw, 120px);
  background:
    radial-gradient(900px 520px at 88% 6%, rgb(1 141 197 / .16), transparent 62%),
    radial-gradient(760px 520px at 6% 96%, rgb(3 151 98 / .11), transparent 60%),
    linear-gradient(180deg, #F5F9FD 0%, #FFFFFF 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(1 43 93 / .09) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000 0%, transparent 72%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0), #fff);
}
.hero-copy { max-width: 640px; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 1099px) {
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-ctas, .trust { justify-content: center; }
  .stage { max-width: 700px; margin-inline: auto; width: 100%; }
}
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 6px 14px 6px 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .875rem; font-weight: 500; color: var(--navy);
}
.pill-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-green); }
.pill-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(3 151 98 / .45); }
  70% { box-shadow: 0 0 0 8px rgb(3 151 98 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(3 151 98 / 0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.03; letter-spacing: -0.028em;
  margin: 22px 0 22px;
}
.hero .lead { font-size: clamp(1.09rem, 1.7vw, 1.25rem); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9375rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--green); width: 18px; height: 18px; stroke-width: 2.5; }

/* Hero scene: browser window + phone + audit card + toast */
.stage { position: relative; padding: 18px 0 30px; }
.stage::before {
  content: ""; position: absolute; inset: 4% -6% 0 6%; z-index: 0;
  background: radial-gradient(closest-side, rgb(1 141 197 / .22), rgb(3 151 98 / .08) 60%, transparent);
  filter: blur(8px);
}
@media (min-width: 640px) { .stage { padding: 112px 0 64px 96px; } }

.window {
  position: relative; z-index: 1;
  container-type: inline-size;
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: 13px; line-height: 1.4;
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #F7FAFD; border-bottom: 1px solid var(--line-soft); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D3DEEA; }
.url {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  max-width: 260px; margin-inline: auto; padding: 4px 12px;
  border-radius: 8px; background: #fff; border: 1px solid var(--line-soft);
  color: var(--muted); font-size: 11.5px;
}
.url .icon { width: 11px; height: 11px; color: var(--green); }
.bar-spacer { width: 42px; flex: none; }

.app { display: grid; grid-template-columns: 52px 1fr; }
.app-side {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0; border-right: 1px solid var(--line-soft); background: #fff;
}
.app-side img { width: 30px; height: 30px; margin-bottom: 8px; }
.side-item { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #7D93AB; }
.side-item .icon { width: 17px; height: 17px; }
.side-item.is-active { background: var(--tint-blue); color: var(--blue-deep); }
.app-main { padding: 14px 16px 16px; background: var(--cloud); min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.app-top small { display: block; color: var(--muted); font-size: 10.5px; }
.app-top b { font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.app-btn { background: var(--blue); color: #fff; font-weight: 600; font-size: 11px; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tile {
  background: #fff; border-radius: 10px; padding: 8px 10px;
  border: 1px solid var(--line-soft); border-left: 3px solid var(--c, var(--blue));
  min-width: 0;
}
.tile-red { --c: var(--red); }
.tile-teal { --c: var(--teal); }
.tile-green { --c: var(--green); }
.tile small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.list { background: #fff; border-radius: 12px; border: 1px solid var(--line-soft); overflow: hidden; }
.list-head { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.list-head b { font-family: var(--font-display); font-size: 13.5px; }
.list-head span { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px 86px; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-bottom: 1px solid var(--line-soft); border-left: 3px solid transparent;
  transition: border-color .6s ease;
}
.row:last-child { border-bottom: 0; }
.row.is-h { border-left-color: var(--red); }
.row.is-m { border-left-color: var(--amber); }
.ref { color: var(--blue-deep); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12px; }
.sum { min-width: 0; }
.sum b { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chip { font-size: 10.5px; padding: 2px 8px; }
.row .prio { width: 20px; height: 20px; font-size: 10.5px; }
.row > :last-child { justify-self: end; }

/* the "watch it get resolved" moment */
.swap { display: inline-grid; }
.tile .swap { display: grid; }
.swap > * { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s ease; }
.row .swap > * { justify-self: end; }
.swap .after { opacity: 0; transform: translateY(8px) scale(.92); }
.is-resolved .swap .before { opacity: 0; transform: translateY(-8px) scale(.92); }
.is-resolved .swap .after { opacity: 1; transform: none; }
.is-resolved .row-anim { border-left-color: var(--green); animation: rowflash 1.8s ease; }
@keyframes rowflash { 0% { background: transparent; } 25% { background: var(--tint-green); } 100% { background: transparent; } }

@container (max-width: 430px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 26px minmax(0, 1fr) 20px 78px; }
  .list-head span { display: none; }
}

.float-audit {
  position: absolute; z-index: 3; top: 0; right: -8px; width: 248px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 12px 14px 4px; font-size: 12px; line-height: 1.4;
  animation: floaty 9s ease-in-out infinite;
}
.fa-head { display: flex; align-items: center; gap: 7px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.fa-head .icon { width: 15px; height: 15px; color: var(--teal); }
.fa-head b { font-family: var(--font-display); font-size: 13px; }
.fa-head span { margin-left: auto; color: var(--muted); font-size: 11px; }
.fa-entry { display: grid; grid-template-columns: 26px 1fr; gap: 9px; padding: 9px 0; }
.fa-entry + .fa-entry { border-top: 1px dashed var(--line); }
.fa-entry small { color: var(--muted); font-size: 10.5px; }
.fa-new { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .5s ease .1s; }
.fa-new > div { overflow: hidden; }
.fa-new .fa-entry { border-bottom: 1px dashed var(--line); }
.is-resolved .fa-new { grid-template-rows: 1fr; opacity: 1; }
.av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #fff; background: var(--blue-deep);
}
.av-teal { background: var(--teal); }
.av-navy { background: var(--navy); }
.diff {
  margin-top: 6px; background: var(--cloud); border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 5px 8px; display: grid; gap: 2px; font-size: 11px;
}
.diff s { color: var(--muted); }
.diff ins { text-decoration: none; color: var(--green-ink); font-weight: 600; }

.float-phone { position: absolute; z-index: 2; left: 0; bottom: 0; width: 168px; animation: floaty 8s ease-in-out -3s infinite; }
.phone { background: #0D1F36; border-radius: 30px; padding: 7px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .1); }
.phone-screen { position: relative; background: #fff; border-radius: 24px; overflow: hidden; font-size: 10.5px; line-height: 1.35; padding-top: 14px; }
.phone-screen::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 44px; height: 11px;
  transform: translateX(-50%); background: #0D1F36; border-radius: 10px;
}
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px 8px; border-bottom: 1px solid var(--line-soft); }
.ph-top b { font-family: var(--font-display); font-size: 12px; }
.ph-back { color: var(--muted); font-size: 15px; line-height: 1; }
.ph-save { color: var(--blue-deep); font-weight: 700; }
.ph-body { display: grid; gap: 3px; padding: 8px 11px 12px; }
.ph-label { font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-top: 4px; }
.ph-field { border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-weight: 500; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ph-seg span { text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 3px 0; font-weight: 700; color: var(--muted); }
.ph-seg .on { background: var(--tint-red); border-color: #F1C4BF; color: var(--red); }
.ph-photo { position: relative; display: block; height: 96px; border-radius: 9px; overflow: hidden; }
.ph-photo .photo-art { position: absolute; inset: 0; }
.ph-meta {
  position: absolute; left: 5px; right: 5px; bottom: 5px; display: grid; gap: 1px;
  background: rgb(1 43 93 / .86); color: #fff; border-radius: 6px; padding: 4px 6px; font-size: 8.5px;
}
.ph-meta span { display: flex; align-items: center; gap: 4px; }
.ph-meta .icon { width: 9px; height: 9px; color: var(--green-bright); stroke-width: 2.5; }

.toast {
  position: absolute; z-index: 4; left: 50%; bottom: 0;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--navy); color: #fff; font-size: .875rem; font-weight: 500;
  padding: 10px 16px 10px 12px; border-radius: 12px; box-shadow: 0 18px 40px -14px rgb(1 43 93 / .6);
  opacity: 0; transform: translate(-50%, 14px); transition: opacity .45s ease .25s, transform .45s ease .25s;
}
.toast .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgb(25 216 74 / .18); color: var(--green-bright); }
.toast .tick .icon { width: 13px; height: 13px; stroke-width: 3; }
.is-resolved .toast { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 640px) { .toast { left: 60%; bottom: 18px; } }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 639px) {
  .float-phone, .float-audit { display: none; }
  .toast { bottom: -6px; font-size: .8125rem; }
}

/* The CSS-painted "photo": a damp patch under a bay window */
.photo-art {
  position: relative;
  background:
    /* mould speckles just under the sill */
    radial-gradient(circle at 28% 58%, rgb(34 40 30 / .55) 0 1.2%, transparent 1.7%),
    radial-gradient(circle at 36% 62%, rgb(34 40 30 / .5) 0 1.6%, transparent 2.2%),
    radial-gradient(circle at 44% 56.5%, rgb(34 40 30 / .45) 0 1%, transparent 1.5%),
    radial-gradient(circle at 52% 64%, rgb(34 40 30 / .5) 0 1.4%, transparent 2%),
    radial-gradient(circle at 61% 58.5%, rgb(34 40 30 / .4) 0 .9%, transparent 1.4%),
    radial-gradient(circle at 33% 70%, rgb(34 40 30 / .45) 0 1.1%, transparent 1.6%),
    radial-gradient(circle at 47% 72%, rgb(34 40 30 / .4) 0 1.3%, transparent 1.9%),
    radial-gradient(circle at 57% 69%, rgb(34 40 30 / .35) 0 .8%, transparent 1.3%),
    /* grey-green bloom hugging the sill */
    radial-gradient(ellipse 24% 9% at 42% 56%, rgb(58 68 50 / .42), transparent 80%),
    radial-gradient(ellipse 15% 11% at 56% 62%, rgb(68 76 56 / .34), transparent 80%),
    radial-gradient(ellipse 13% 13% at 31% 66%, rgb(68 76 56 / .30), transparent 80%),
    /* soft damp staining running down the wall */
    radial-gradient(ellipse 36% 26% at 43% 64%, rgb(150 138 100 / .30), transparent 75%),
    radial-gradient(ellipse 20% 30% at 63% 78%, rgb(150 138 100 / .20), transparent 75%),
    radial-gradient(ellipse 16% 24% at 25% 82%, rgb(150 138 100 / .18), transparent 75%),
    linear-gradient(180deg, #F2EDE4 0%, #E5DCCB 100%);
}
.photo-art::before {
  content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 42%;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), #FBFAF7 calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(180deg, #BADAF0 0%, #E2F0F9 100%);
  border: 6px solid #FBFAF7; border-top: 0;
}
.photo-art::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 42%; height: 7%;
  background: #FCFBF8; border-radius: 2px; box-shadow: 0 3px 5px rgb(0 0 0 / .13);
}

/* ---------- Problem: chaos → one record ---------- */
.messy-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 980px) { .messy-grid { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 32px; } }
.bubbles { display: flex; flex-direction: column; gap: 14px; max-width: 520px; width: 100%; margin-inline: auto; }
.bubble {
  align-self: flex-start; max-width: 88%;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--blue));
  border-radius: 16px; padding: 10px 16px 11px; box-shadow: var(--shadow-sm);
}
.bubble p { margin: 0; font-size: .96875rem; color: var(--ink-soft); }
.bubble-src {
  display: flex; align-items: center; gap: 6px;
  font-size: .71875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 2px;
}
.bubble-src .icon { width: 14px; height: 14px; color: var(--c, var(--blue)); }
.b-sms { --c: var(--blue); rotate: -1.5deg; }
.b-wa { --c: var(--green); align-self: flex-end; rotate: 1.2deg; }
.b-mail { --c: var(--slate); rotate: -.6deg; margin-left: 6%; }
.b-vm { --c: var(--teal); align-self: flex-end; rotate: 1.8deg; }
.b-xls { --c: var(--amber); rotate: -1deg; }
.bubble em { color: var(--muted); }
.funnel { display: grid; place-items: center; }
.funnel span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-cta); color: #fff; box-shadow: 0 14px 30px -12px rgb(0 80 155 / .7);
}
.funnel .icon { width: 28px; height: 28px; stroke-width: 2.5; }
@media (max-width: 979px) { .funnel .icon { rotate: 90deg; } }

.issue-card {
  max-width: 520px; width: 100%; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 24px 24px 20px; position: relative; overflow: hidden;
}
.issue-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.ic-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ic-ref { font-weight: 700; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.issue-card h3 { font-size: 1.375rem; margin-bottom: 4px; }
.ic-addr { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9375rem; margin-bottom: 12px; }
.ic-addr .icon { width: 16px; height: 16px; }
.ic-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--cloud); border: 1px solid var(--line-soft); font-size: .8125rem; font-weight: 500; color: var(--ink-soft);
}
.tag .icon { width: 14px; height: 14px; color: var(--teal); }
.timeline { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 26px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--blue), var(--teal), var(--green));
}
.timeline li { position: relative; display: grid; padding: 0 0 14px 32px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.timeline li:nth-child(2)::before { border-color: #0182A8; }
.timeline li:nth-child(3)::before { border-color: var(--teal); }
.timeline li.done::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px var(--tint-green); }
.tl-when { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-what { font-weight: 600; font-size: .96875rem; color: var(--navy); }
.tl-who { display: flex; align-items: center; gap: 5px; font-size: .84375rem; color: var(--muted); }
.tl-who .icon { width: 13px; height: 13px; color: var(--teal); }
.ic-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: .9375rem; font-weight: 600; color: var(--green-ink);
}
.ic-foot .icon { width: 18px; height: 18px; stroke-width: 2.5; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; position: relative; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .steps::before {
    content: ""; position: absolute; top: 56px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, #B9CEE1 0 8px, transparent 8px 16px);
  }
}
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: #fff;
  background: var(--grad-cta); box-shadow: 0 10px 22px -10px rgb(0 80 155 / .7);
}
.step:nth-child(3) .step-num { background: linear-gradient(135deg, #017681, #039762); box-shadow: 0 10px 22px -10px rgb(3 151 98 / .7); }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--muted); }
.step-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--cloud); border: 1px solid var(--line-soft); font-size: .84375rem; font-weight: 600; color: var(--ink-soft);
}
.step-tag .icon { width: 15px; height: 15px; color: var(--teal); }

/* ---------- Benefits bento ---------- */
.bento { display: grid; gap: 18px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } .span-2 { grid-column: span 2; } }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: translate .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { translate: 0 -3px; box-shadow: var(--shadow); border-color: #C6D8E9; }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-feature {
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, #F1F8FD 0%, #EEF8F3 100%) padding-box,
    var(--grad-brand) border-box;
  display: grid; gap: 22px; align-content: center;
}
@media (min-width: 1024px) { .card-feature { grid-template-columns: 1.15fr 1fr; align-items: center; padding: 34px; } }
.card-feature h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 14px; }
.card-feature p { color: var(--ink-soft); }
.no-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.no-list li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line-soft); font-weight: 600; font-size: .96875rem; box-shadow: var(--shadow-sm);
}
.no-list .icon { color: var(--red); width: 18px; height: 18px; }
.value-strip { display: flex; gap: 8px; margin-top: 18px; }
.value-strip span {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 12px; background: var(--cloud);
  font-size: .75rem; color: var(--muted); font-weight: 600; line-height: 1.3;
}
.value-strip b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); }
.devices { display: flex; align-items: flex-end; gap: 12px; margin-top: 18px; color: var(--blue-deep); }
.devices .icon { width: 28px; height: 28px; stroke-width: 1.75; }
.devices .icon.lg { width: 38px; height: 38px; }
.devices span { margin-left: auto; font-size: .78125rem; color: var(--muted); font-weight: 600; text-align: right; line-height: 1.35; }

/* ---------- Feature spotlights ---------- */
.spot { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.spot + .spot { margin-top: clamp(72px, 10vw, 120px); }
@media (min-width: 960px) {
  .spot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .spot.flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .spot.flip .spot-copy { order: 2; }
}
.spot-copy h3 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
.spot-copy > p { color: var(--muted); font-size: 1.09375rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-green); color: var(--green-ink); margin-top: 1px; }
.tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.visual {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(420px 260px at 100% 0%, rgb(1 141 197 / .14), transparent 70%),
    radial-gradient(420px 260px at 0% 100%, rgb(3 151 98 / .12), transparent 70%),
    linear-gradient(150deg, #EAF4FB 0%, #EEF7F3 100%);
}
.section-alt .visual { background-color: #fff; }

/* audit history card */
.hist { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.hist-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: .875rem; }
.hist-head .icon { color: var(--teal); width: 18px; height: 18px; }
.hist-head b { font-family: var(--font-display); font-size: 1rem; }
.hist-head span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-list { list-style: none; margin: 0; padding: 6px 18px 14px; }
.hist-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; }
.hist-item:last-child { border-bottom: 0; }
.hist-item .av { width: 34px; height: 34px; font-size: .75rem; }
.hist-item .av .icon { width: 17px; height: 17px; }
.hist-time { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.hist-item .diff { font-size: .84375rem; padding: 7px 10px; margin-top: 8px; }
.hist-item.admin {
  margin: 8px -10px 4px; padding: 12px 10px; border: 1px solid rgb(1 118 129 / .28); border-radius: 14px;
  background: linear-gradient(90deg, rgb(1 118 129 / .08), rgb(1 118 129 / .02));
}
.tag-admin {
  display: inline-flex; align-items: center; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
  font-size: .65625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
  color: var(--teal); background: #fff; border: 1px solid rgb(1 118 129 / .35);
}
.hist-reason { font-size: .875rem; color: var(--ink-soft); margin-top: 4px; }

/* photo card */
.photo-card { display: grid; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 560px) { .photo-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.photo { min-height: 250px; }
.photo-chip, .photo-gps {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: .78125rem; font-weight: 600;
}
.photo-chip { left: 12px; bottom: 12px; background: rgb(1 43 93 / .85); color: #fff; }
.photo-gps { right: 12px; top: 12px; background: #fff; color: var(--green-ink); box-shadow: var(--shadow-sm); }
.photo-chip .icon, .photo-gps .icon { width: 14px; height: 14px; }
.photo-meta { padding: 18px; display: grid; gap: 14px; align-content: center; }
.meta-row { display: flex; gap: 12px; align-items: center; font-size: .875rem; white-space: nowrap; color: var(--navy); font-variant-numeric: tabular-nums; }
.meta-row small { display: block; color: var(--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mini-map {
  position: relative; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft);
  background:
    linear-gradient(112deg, transparent 47%, #fff 47% 51%, transparent 51%),
    linear-gradient(24deg, transparent 63%, #fff 63% 66%, transparent 66%),
    linear-gradient(0deg, transparent 30%, #fff 30% 34%, transparent 34%),
    linear-gradient(90deg, transparent 21%, #fff 21% 24%, transparent 24%),
    linear-gradient(160deg, transparent 72%, #CBE4F4 72% 80%, transparent 80%),
    radial-gradient(ellipse 28% 42% at 86% 18%, #CDE7D1, transparent 72%),
    #EEF3EC;
}
.pin {
  position: absolute; left: 56%; top: 24%; width: 24px; height: 24px;
  border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--grad-cta);
  box-shadow: -3px 6px 10px -3px rgb(1 43 93 / .45);
}
.pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.mini-map::after {
  content: ""; position: absolute; left: calc(56% - 4px); top: calc(24% + 22px); width: 30px; height: 10px;
  border-radius: 50%; background: rgb(0 80 155 / .2);
}

/* AI chat card */
.chat { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 14px; font-size: .9375rem; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.chat-head b { font-family: var(--font-display); font-size: 1rem; }
.chat-scope { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--teal); background: var(--tint-teal); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.msg-q {
  justify-self: end; max-width: 86%; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--grad-cta); color: #fff;
}
.msg-a {
  justify-self: start; max-width: 94%; padding: 12px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--cloud); border: 1px solid var(--line-soft); color: var(--ink-soft);
}
.msg-a p { margin: 0 0 8px; }
.msg-a .ai-foot { margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.ai-label { display: flex; align-items: center; gap: 6px; font-size: .71875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.ai-label .icon { width: 14px; height: 14px; }
.ref-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px;
  padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .875rem;
}
.ref-chip b { color: var(--blue-deep); margin-right: 4px; }
.ref-chip .days { flex: none; font-weight: 700; color: var(--red); font-size: .8125rem; }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--muted); }
.chat-input .icon { color: var(--blue-deep); width: 18px; height: 18px; }
.chat-note { margin: -4px 0 0; text-align: center; font-size: .75rem; color: var(--muted); }

/* also included */
.also { margin-top: clamp(72px, 10vw, 112px); }
.also-title { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 28px; }
.also-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .also-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.also-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.also-grid b { display: block; margin-bottom: 2px; }
.also-grid p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Security band ---------- */
.security {
  overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 520px at 92% -12%, rgb(1 141 197 / .38), transparent 60%),
    radial-gradient(820px 520px at -6% 112%, rgb(3 151 98 / .32), transparent 60%),
    var(--navy);
}
.security::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 75%);
}
.security .wrap { position: relative; }
.security h2 { color: #fff; }
.security .lead { color: rgb(255 255 255 / .82); }
.security .eyebrow { color: var(--green-bright); }
.seal {
  width: 96px; height: 96px; border-radius: 28px; background: #fff; display: grid; place-items: center;
  margin: 0 auto 26px;
  box-shadow: 0 0 0 9px rgb(255 255 255 / .07), 0 0 0 20px rgb(255 255 255 / .035), 0 24px 50px -12px rgb(0 0 0 / .55);
}
.seal img { width: 66px; height: auto; }
.sec-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec-item {
  padding: 26px; border-radius: 20px;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12);
  transition: background .2s, border-color .2s;
}
.sec-item:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); }
.sec-item h3 { color: #fff; font-size: 1.1875rem; margin: 16px 0 6px; }
.sec-item p { color: rgb(255 255 255 / .78); margin: 0; font-size: .96875rem; }
.sec-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgb(25 216 74 / .12); color: var(--green-bright); border: 1px solid rgb(25 216 74 / .28);
}
.sec-ic .icon { width: 22px; height: 22px; }
.sec-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 44px 0 0; }
.sec-links a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration-color: rgb(255 255 255 / .4); }
.sec-links a:hover { color: var(--green-bright); }
.sec-links .icon { width: 18px; height: 18px; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 34px 28px 28px;
  box-shadow: var(--shadow-sm);
}
.plan-featured {
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad-brand) border-box;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .plan-featured { margin-block: -14px; padding-block: 48px 42px; } }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--grad-cta); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  box-shadow: 0 8px 18px -8px rgb(0 80 155 / .7);
}
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: .96875rem; margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 22px; }
.price b { font-family: var(--font-display); font-size: 3.4rem; font-weight: 900; line-height: 1; letter-spacing: -0.035em; }
.price span { color: var(--muted); font-weight: 500; }
.allow { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.allow li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--cloud); border-radius: 14px; color: var(--ink-soft); font-size: .96875rem; }
.allow b { color: var(--navy); font-size: 1.0625rem; }
.allow small { display: block; color: var(--muted); font-size: .8125rem; }
.plan .btn { margin-top: auto; width: 100%; }
.included {
  margin-top: clamp(40px, 6vw, 56px); padding: 28px 30px; border-radius: 24px;
  background: var(--cloud); border: 1px solid var(--line-soft);
}
.included h3 { font-size: 1.125rem; margin: 0; }
.included ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px 24px; }
@media (min-width: 560px) { .included ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .included ul { grid-template-columns: repeat(4, 1fr); } }
.included li { display: flex; align-items: center; gap: 10px; font-size: .96875rem; color: var(--ink-soft); }
.included .tick { width: 22px; height: 22px; margin: 0; }
.price-notes { display: grid; gap: 14px 28px; margin-top: 28px; }
@media (min-width: 900px) { .price-notes { grid-template-columns: repeat(3, 1fr); } }
.price-notes b { display: block; margin-bottom: 4px; }
.price-notes p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 24px;
  transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: #C6D8E9; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--blue-deep), var(--blue-deep)) center / 12px 2px no-repeat,
    linear-gradient(var(--blue-deep), var(--blue-deep)) center / 2px 12px no-repeat,
    var(--tint-blue);
  transition: rotate .25s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:focus-visible { outline-offset: 6px; }
.faq-body { padding-bottom: 22px; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Founder note ---------- */
.note {
  max-width: 920px; margin: 0 auto; display: grid; gap: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.note::after {
  content: "\201C"; position: absolute; right: 28px; top: -28px;
  font-family: var(--font-display); font-size: 14rem; line-height: 1; color: var(--tint-blue); pointer-events: none;
}
@media (min-width: 760px) { .note { grid-template-columns: auto minmax(0, 1fr); gap: 40px; } }
.note-mark { width: 88px; height: 88px; border-radius: 24px; background: var(--cloud); display: grid; place-items: center; border: 1px solid var(--line-soft); }
.note-mark img { width: 60px; height: auto; }
.note-body { position: relative; z-index: 1; }
.note blockquote { margin: 0 0 22px; font-size: clamp(1.09rem, 1.6vw, 1.21875rem); line-height: 1.7; color: var(--ink-soft); }
.sig { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.sig-name { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--navy); }
.sig-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .875rem; color: var(--muted); }

/* ---------- Final CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding-block: clamp(80px, 11vw, 132px);
  background:
    radial-gradient(700px 420px at 12% 0%, rgb(25 216 74 / .22), transparent 60%),
    radial-gradient(800px 520px at 100% 100%, rgb(1 141 197 / .45), transparent 60%),
    linear-gradient(120deg, #012B5D 0%, #00509B 55%, #016E79 100%);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / .1); pointer-events: none;
  left: 50%; top: 50%; translate: -50% -50%;
}
.cta-band::before { width: 620px; height: 620px; }
.cta-band::after { width: 940px; height: 940px; border-color: rgb(255 255 255 / .06); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.cta-band p { color: rgb(255 255 255 / .86); font-size: clamp(1.0625rem, 1.8vw, 1.25rem); margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cloud); border-top: 1px solid var(--line-soft); padding: 64px 0 32px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); gap: 48px; } }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { color: var(--muted); max-width: 30em; margin: 16px 0 18px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.fbadge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; color: var(--ink-soft);
}
.fbadge .icon { width: 14px; height: 14px; color: var(--teal); }
.footer-h { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--navy); text-decoration: none; }
.footer-col a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero {
  padding-block: clamp(40px, 6vw, 76px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(820px 420px at 92% 0%, rgb(1 141 197 / .13), transparent 60%),
    radial-gradient(620px 360px at 0% 100%, rgb(3 151 98 / .09), transparent 60%),
    linear-gradient(180deg, #F5F9FD, #FFFFFF);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.legal-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.028em; margin-bottom: 14px; }
.legal-hero .lead { max-width: 42em; margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.meta span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--ink-soft);
}
.meta .icon { width: 15px; height: 15px; color: var(--teal); }

.legal-layout { display: grid; gap: 28px; padding-block: clamp(36px, 6vw, 72px) clamp(64px, 8vw, 100px); }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }

.toc { align-self: start; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--navy);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { transition: rotate .2s; color: var(--muted); }
.toc[open] summary .icon { rotate: 180deg; }
.toc-inner { padding: 4px 10px 14px; }
@media (max-width: 1023px) { .toc-label { display: none; } }
.toc-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: 0 0 10px 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 1px; }
.toc ol a {
  display: flex; gap: 10px; padding: 7px 12px; border-radius: 10px; text-decoration: none;
  color: var(--slate); font-size: .90625rem; line-height: 1.35;
}
.toc ol a::before { content: counter(toc); counter-increment: toc; min-width: 1.3em; font-weight: 600; color: #8DA2B8; font-variant-numeric: tabular-nums; }
.toc ol a.toc-plain::before { content: "\2605"; counter-increment: none; color: var(--green); }
.toc ol a:hover { background: var(--cloud); color: var(--navy); }
.toc ol a.is-active { background: var(--tint-blue); color: var(--navy); font-weight: 600; }
.toc ol a.is-active::before { color: var(--blue-deep); }
.toc-switch {
  display: flex; align-items: center; gap: 8px; margin: 14px 12px 0; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: .90625rem; font-weight: 600; color: var(--blue-deep); text-decoration: none;
}
.toc-switch .icon { width: 16px; height: 16px; }
@media (min-width: 1024px) {
  .toc {
    position: sticky; top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px); overflow: auto;
    border: 0; background: transparent;
  }
  .toc summary { display: none; }
  .toc-inner { padding: 0; }
}

.legal { max-width: 760px; min-width: 0; }
.legal section { margin-bottom: 52px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-bottom: 16px; }
.legal h2 .num {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1rem; font-weight: 800; color: var(--blue-deep); background: var(--tint-blue);
}
.legal h3 { font-size: 1.1875rem; margin: 26px 0 10px; }
.legal p, .legal li, .legal dd { color: var(--ink-soft); }
.legal ul, .legal ol.list { padding-left: 1.3em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; }
.legal li::marker { color: var(--teal); }
.in-short {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(90deg, var(--tint-green), #F4FAF7); border: 1px solid #CBEAD9; color: var(--navy);
}
.in-short .icon { width: 20px; height: 20px; color: var(--green-ink); margin-top: 2px; }
.in-short strong { color: var(--green-ink); }
.summary {
  position: relative; overflow: hidden; margin-bottom: 60px; padding: clamp(24px, 4vw, 36px);
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.summary::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.summary h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); margin-bottom: 6px; }
.summary > p { color: var(--muted); }
.legal .promises { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .legal .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; } }
.promises li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.promises .ic { width: 40px; height: 40px; border-radius: 12px; }
.promises .ic .icon { width: 20px; height: 20px; }
.promises b { display: block; color: var(--navy); margin-bottom: 2px; }
.promises span { color: var(--muted); font-size: .9375rem; }
.callout { margin: 20px 0 24px; padding: 18px 20px; border-radius: 16px; background: var(--cloud); border: 1px solid var(--line-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout-teal { background: var(--tint-teal); border-color: #BCDFE2; }
.callout-head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.callout-head .icon { color: var(--teal); }
.two-up { display: grid; gap: 16px; margin: 20px 0 24px; }
@media (min-width: 640px) { .two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.role-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.role-card h3 { margin: 14px 0 6px; font-size: 1.125rem; }
.role-card p { margin: 0; font-size: .96875rem; }
.role-tag { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; font-size: .78125rem; font-weight: 700; }
.role-tag.us { background: var(--tint-blue); color: var(--blue-deep); }
.role-tag.you { background: var(--tint-green); color: var(--green-ink); }
.table-scroll { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.data-table th { text-align: left; background: var(--cloud); font-weight: 600; color: var(--navy); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; color: var(--navy); }
.never-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
@media (min-width: 640px) { .never-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.never-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.never-list .ic { width: 32px; height: 32px; border-radius: 9px; }
.never-list .ic .icon { width: 16px; height: 16px; }
.ms-links { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.ms-links li { margin: 0; }
.ms-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--navy); font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.ms-links a:hover { border-color: #A9C6DE; box-shadow: var(--shadow-sm); }
.ms-links small { display: block; font-weight: 400; color: var(--muted); font-size: .84375rem; }
.ms-links .icon { color: var(--blue-deep); width: 18px; height: 18px; }
mark.todo {
  background: #FFF0B3; color: #5A4300; padding: 1px 6px; border-radius: 5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; font-weight: 500;
}
.legal-contact {
  display: grid; gap: 18px; align-items: center; margin-top: 12px; padding: 28px; border-radius: 24px;
  background: linear-gradient(135deg, #EAF5FC, #E9F6F0); border: 1px solid var(--line-soft);
}
@media (min-width: 720px) { .legal-contact { grid-template-columns: minmax(0, 1fr) auto; } }
.legal-contact h3 { font-size: 1.375rem; margin: 0 0 6px; }
.legal-contact p { margin: 0; color: var(--ink-soft); }
.legal-contact .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound .seal { background: var(--cloud); box-shadow: 0 0 0 9px var(--tint-blue), 0 0 0 20px rgb(231 244 251 / .5); }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.025em; }
.notfound p { color: var(--muted); max-width: 32em; margin-inline: auto; }
.notfound .cta-actions { margin-top: 28px; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .cta-band, .legal-contact .btns, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .legal-layout { display: block; padding: 0; }
  .legal { max-width: none; }
  .legal-hero { background: none; padding: 0 0 16px; }
  .summary, .callout, .in-short { box-shadow: none; break-inside: avoid; }
  .legal section { break-inside: avoid-page; }
  a { color: inherit; }
}
