/* Semvo's website: look D, "light and layered", as the owner chose it (PropMan-ui-audit reviews/website-v2.md).
   Semvo blue carries the page: a blue-washed top, washed bands, one Semvo-blue pilot band. Product pictures sit in
   frames and run off a card only at the bottom, never at the side. Light and dark follow the visitor's system
   setting: a switch would need storage to remember, and the site stores nothing. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #0b1220;
  --ink-2: #33415c;
  --muted: #55627a;
  --line: rgba(0, 60, 110, 0.12);
  --field: #6b7890;
  --brand: #005c9b;
  --brand-2: #1a74b8;
  --brand-deep: #004a7d;
  --wash: #eaf3fb;
  --wash-2: #dcebf8;
  --page: #f5f9fd;
  --card: #ffffff;
  --head: rgba(220, 235, 248, 0.86);
  --btn: #005c9b;
  --btn-ink: #ffffff;
  --btn-hover: #004a7d;
  --focus: #005c9b;
  --ok-ink: #1f7a45;
  --ok-tint: #e8f5ec;
  --danger-ink: #a3242b;
  --danger-tint: #fbeaea;
  --shadow: 0 50px 100px -30px rgba(0, 45, 85, 0.4), 0 20px 40px -20px rgba(0, 92, 155, 0.3);
  --glow-1: rgba(0, 92, 155, 0.12);
  --glow-2: rgba(154, 214, 255, 0.55);
  --grid: rgba(0, 92, 155, 0.09);
  /* Darker than the mock's #1a74b8 on purpose: its pale text needs 4.5:1 (tests/site.test.mjs checks it). */
  --pilot-1: #0b5a92;
  --pilot-2: #004a7d;
  --chip: #eaf3fb;
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f8;
    --ink-2: #c5d0dc;
    --muted: #a3b2c3;
    --line: rgba(154, 214, 255, 0.14);
    --field: #7f8ea3;
    --brand: #9ad6ff;
    --brand-2: #c4e6ff;
    --brand-deep: #9ad6ff;
    --wash: #122233;
    --wash-2: #0f1e2e;
    --page: #0c1620;
    --card: #142231;
    --head: rgba(15, 30, 46, 0.86);
    --btn: #9ad6ff;
    --btn-ink: #0b1220;
    --btn-hover: #c4e6ff;
    --focus: #9ad6ff;
    --ok-ink: #9fdcb2;
    --ok-tint: #173323;
    --danger-ink: #ffb3b0;
    --danger-tint: #3a1a1c;
    --shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.6), 0 20px 40px -20px rgba(0, 92, 155, 0.45);
    --glow-1: rgba(26, 116, 184, 0.22);
    --glow-2: rgba(26, 116, 184, 0.3);
    --grid: rgba(154, 214, 255, 0.06);
    --pilot-1: #0b4a76;
    --pilot-2: #07304f;
    --chip: rgba(154, 214, 255, 0.14);
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding: an in-page link lands its section below the sticky header, not under it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.5 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, p, ol, ul, figure, address { margin: 0; }
h1, h2 { text-wrap: balance; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* The header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--head); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.01em; line-height: 1; min-height: 44px; }
.brand svg { width: 21px; height: 21px; flex: none; }
.site-nav ul { display: flex; align-items: center; gap: 8px 30px; list-style: none; padding: 0; margin: 0; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; display: inline-block; padding: 10px 0; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 10px;
  background: var(--btn); color: var(--btn-ink); border: 2px solid transparent; font: 700 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 92, 155, 0.6); }
.btn:hover { background: var(--btn-hover); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--wash); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* The top */
.hero { position: relative; overflow: hidden; padding: 52px 0 100px; text-align: center; background: linear-gradient(180deg, var(--wash-2) 0%, var(--wash) 45%, var(--page) 100%); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background: radial-gradient(46% 52% at 50% 40%, var(--glow-1), transparent 70%), radial-gradient(30% 40% at 80% 10%, var(--glow-2), transparent 70%), radial-gradient(26% 34% at 14% 18%, var(--glow-2), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 45% at 50% 22%, #000, transparent 75%); mask-image: radial-gradient(60% 45% at 50% 22%, #000, transparent 75%); }
.hero .wrap { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 0.875rem; color: var(--ink-2); text-decoration: none; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px rgba(31, 157, 85, .15); }
.pill b { font-weight: 700; color: var(--brand); padding: 4px 10px; border-radius: 999px; background: var(--chip); }
h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.5rem); line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; margin: 20px auto 18px; }
h1 span { display: block; background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { h1 span { background: none; color: CanvasText; } }
.lede { font-size: 1.25rem; color: var(--ink-2); max-width: 720px; margin: 0 auto; text-wrap: pretty; }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

.stage { position: relative; margin: 44px auto 0; max-width: 1140px; }
.frame { border-radius: 16px; padding: 8px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.float { position: absolute; right: -40px; bottom: -64px; width: 520px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: #0b1220;
  box-shadow: 0 30px 60px -20px rgba(0, 45, 85, 0.45); text-align: left; }
.float .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(0, 60, 110, 0.12); font-size: 0.8125rem; font-weight: 700; }
.float .bar span { color: #1f7a45; background: #e8f5ec; border-radius: 999px; padding: 2px 9px; font-size: 0.75rem; }
.float img { width: 100%; height: auto; }

/* The three promises, on a washed band */
.promises-band { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 40px; list-style: none; margin: 0 auto; }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); }
.promise h3 { font-size: 1.0625rem; letter-spacing: 0; line-height: 1.35; margin: 0; max-width: none; }
.promise p { color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }

/* What Semvo does */
.section { padding: 80px 0 88px; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.section h2, .pilot h2, .contact h2 { font-size: clamp(2rem, 1.3rem + 2vw, 2.875rem); line-height: 1.08; letter-spacing: -0.03em; margin: 10px 0 36px; max-width: 18ch; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; list-style: none; padding: 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 0; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-size: 1.3125rem; letter-spacing: -0.01em; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tile p { color: var(--muted); font-size: 0.96875rem; margin-bottom: 22px; text-wrap: pretty; }
.tile p.soon { display: flex; align-items: center; gap: 8px; margin: -12px 0 22px; font-size: 0.875rem; color: var(--ink-2); }
.tile .shot { margin-top: auto; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; overflow: hidden; background: #fff; box-shadow: 0 -10px 30px -18px rgba(0, 45, 85, .3); }
.tile .shot img { width: 100%; height: auto; }
.t-bank { grid-column: span 4; }
.t-comp { grid-column: span 2; }
.t-arrears, .t-deposit { grid-column: span 3; }
/* The statement takes two rows beside arrears and deposits, its picture filling the card from the top. */
.t-statement { grid-column: span 3; grid-row: span 2; }
.t-statement .shot { flex: 1 1 0; min-height: 300px; position: relative; }
.t-statement .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.t-repairs { grid-column: span 4; }
.t-repairs .shot { background: #f7f7f9; padding: 16px 0 0 20px; }
.t-coming { grid-column: span 2; padding-bottom: 28px; background: transparent; border-style: dashed; }
.t-coming p { margin: 0; }
.tag { font-size: 0.75rem; font-weight: 700; color: var(--brand); background: var(--chip); border-radius: 999px; padding: 2px 9px; }

/* The pilot, on the one Semvo-blue band */
.pilot { background: radial-gradient(70% 130% at 50% 0%, var(--pilot-1), var(--pilot-2) 75%); color: #ffffff; padding: 80px 0; }
.pilot .eyebrow { color: #dcefff; }
.pilot h2 { color: #ffffff; margin-bottom: 12px; }
.pilot .intro { color: #e3f1fc; font-size: 1.125rem; max-width: 600px; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffffff; color: #005c9b; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.steps p { color: #e3f1fc; font-size: 0.9375rem; text-wrap: pretty; }

/* Contact us: the form */
.contact { padding: 80px 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact .aside p:not(.eyebrow) { color: var(--ink-2); font-size: 1.125rem; }
.contact .aside p + p { margin-top: 14px; }
.contact .aside a { color: var(--brand); text-underline-offset: 3px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 20px 40px -24px rgba(0, 45, 85, .25); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9375rem; margin-bottom: 6px; }
.field input, .field textarea { display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--page); border: 1.5px solid var(--field); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger-ink); }
.field .error { display: flex; gap: 6px; color: var(--danger-ink); font-weight: 700; font-size: 0.9375rem; margin-top: 6px; }
.field .error::before { content: "!" / ""; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--danger-ink); color: var(--card); font-size: 0.8125rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; min-height: 50px; margin-top: 4px; }
.form-message { background: var(--danger-tint); color: var(--danger-ink); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 700; font-size: 0.9375rem; }
.form-foot { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.form-foot a { color: var(--brand); }
.noscript { background: var(--wash); border-radius: 10px; padding: 12px 14px; }
.noscript a { color: var(--brand); }
.thanks h2:focus { outline: none; }
.thanks h2 { font-size: 1.75rem; margin: 0 0 10px; }
.thanks p { color: var(--ink-2); }

/* The footer */
.site-footer { background: var(--wash); border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.site-footer .brand { font-size: 1.125rem; margin-bottom: 10px; }
.site-footer .brand svg { width: 18px; height: 18px; }
.legal span + span::before { content: " · "; }
.legal a { color: var(--brand); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; align-content: flex-start; list-style: none; padding: 0; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; color: var(--ink-2); }

/* Plain pages: the privacy policy, thanks, the 404 */
.page { padding: 40px 0 80px; }
.prose { max-width: 44em; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); margin: 8px 0 20px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose h3 { font-size: 1.125rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose address { color: var(--ink-2); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose address { font-style: normal; margin-top: 12px; }
.prose a { color: var(--brand); }
.prose .meta { color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 1260px) { .float { right: 16px; width: 440px; } }
@media (min-width: 761px) and (max-width: 1040px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile { grid-column: auto !important; grid-row: auto !important; }
  .t-bank, .t-statement, .t-repairs { grid-column: 1 / -1 !important; }
  .t-statement, .t-arrears, .t-deposit, .t-repairs { order: 1; }
  /* Certificates and the Coming card share the last row, so the Coming card comes after every ready card. */
  .t-comp, .t-coming { order: 2; }
  .t-statement .shot { flex: none; height: 420px; }
  .contact .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-nav li:not(:last-child) { display: none; }
  .site-header .btn { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
  .hero { padding: 28px 0 48px; }
  .hero::before { background: radial-gradient(90% 35% at 50% 35%, var(--glow-1), transparent 70%), radial-gradient(60% 30% at 85% 8%, var(--glow-2), transparent 70%); }
  .pill { min-height: 44px; }
  .pill b { display: none; }
  .pill::after { content: "→"; color: var(--brand); font-weight: 700; }
  h1 { margin: 16px auto 12px; }
  .lede { font-size: 1rem; }
  .cta { flex-direction: column; align-items: stretch; padding: 0 8px; margin-top: 22px; }
  .cta .btn { min-height: 50px; }
  .stage { margin-top: 28px; }
  .frame { max-width: 300px; margin: 0 auto; border-radius: 30px; padding: 8px; }
  .frame img { border-radius: 22px; }
  .float { display: none; }
  .promises { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
  .section, .pilot, .contact { padding: 56px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile { grid-column: auto !important; grid-row: auto !important; }
  .t-statement .shot { flex: none; height: auto; }
  .t-statement .shot img { position: static; height: auto; }
  /* The repair picture's ground is its card's own, so on a wider phone it keeps its size rather than stretching soft. */
  .t-repairs .shot img { width: auto; max-width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; gap: 24px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .legal span { display: block; }
  .legal span + span::before { content: none; }
  .footer-links { justify-content: flex-start; }
}

@media (forced-colors: active) {
  .brand, .promise svg { color: CanvasText; }
  .steps li::before { forced-color-adjust: none; background: CanvasText; color: Canvas; }
}

@media print {
  .site-header nav, .stage, .form-card, .skip { display: none; }
  body { background: #fff; color: #000; }
}
