/* LatenZ site styles. Shared by index.html and privacy.html.
   Colours and type live in the :root block below: change them here and the whole site follows. */

@font-face {
  font-family: "Manrope";
  src: url("manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e1c36;
  --panel: #15284a;
  --band: #0a1529;
  --line: #1d3050;
  --card-line: #2a3f66;
  --input-line: #3d5480;
  --text: #e2e8f0;
  --strong: #f8fafc;
  --soft: #cbd5e1;
  --muted: #b3bfd3;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --ink: #10203b;
  --button: #f5f6f8;
  --button-hover: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

section[id], span[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--button); color: var(--ink); padding: 10px 16px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 30px; width: auto; }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--strong); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 2px solid var(--button); border-radius: 6px; background: var(--button); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Type */
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { color: var(--strong); margin: 0; text-wrap: balance; }
h1 { max-width: 900px; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: 17px; color: var(--soft); }
.small { font-size: 15px; color: var(--muted); }

/* Sections */
.section { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.section > .wrap, .stack { display: flex; flex-direction: column; gap: 28px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.hero .lead { max-width: 720px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.text-link { font-weight: 600; padding: 12px 0; }

/* Proof band */
.proof { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 32px 56px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.proof-fact { display: flex; flex-direction: column; gap: 8px; }
.proof-fact .big { font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--strong); }
.proof-fact p:last-child { color: var(--soft); }
.proof figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.proof blockquote { margin: 0; font-size: 19px; line-height: 1.5; color: var(--text); }
.proof figcaption { font-size: 14px; color: var(--muted); }

/* Grids and cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.grid-2.top { align-items: start; }
.tile { background: var(--panel); border: 1px solid var(--card-line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: 18px; font-weight: 700; }
.tile p { font-size: 15px; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--card-line); border-radius: 12px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; line-height: 1.25; font-weight: 800; }
.card > p { color: var(--soft); }
.card > p.label { color: var(--muted); }
.card > p.small { color: var(--muted); }

/* Offer cards */
.offer { gap: 16px; }
.offer.first { border: 2px solid var(--accent); }
.offer h3 { font-size: 28px; line-height: 1.2; }
.tag { align-self: flex-start; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 4px; padding: 4px 10px; }
.tag.solid { background: var(--accent); color: var(--ink); }
.tag.plain { border: 1px solid var(--input-line); color: var(--muted); padding: 3px 10px; }
.terms { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 17px; font-weight: 700; color: var(--strong); font-variant-numeric: tabular-nums; }
.terms .price { color: var(--accent); }
.offer .label { margin-top: 8px; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--accent); border-radius: 2px; }
.offer .foot { margin-top: auto; padding-top: 12px; font-size: 15px; color: var(--muted); }
.start { align-self: flex-start; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.stat { border-top: 2px solid var(--accent); background: var(--band); border-radius: 0 0 8px 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 28px; line-height: 1.1; font-weight: 800; color: var(--strong); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }

/* After the roadmap */
.after { max-width: 760px; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.after h3 { font-size: 20px; font-weight: 700; }
.after p { color: var(--soft); }

/* People */
.person { flex-direction: row; flex-wrap: wrap; gap: 20px; }
.person img { flex: none; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card-line); }
.person div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.person h3 { font-size: 22px; }
.person .role { font-size: 14px; font-weight: 700; color: var(--accent); }
.person p { color: var(--soft); }
.person a { font-size: 15px; font-weight: 600; padding: 8px 0; align-self: flex-start; }

/* Published strip */
.published { border-top: 1px solid var(--line); }
.published .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding-top: 36px; padding-bottom: 36px; }
.published p:nth-child(2) { flex: 1 1 420px; color: var(--soft); }
.published a { font-size: 15px; font-weight: 600; padding: 8px 0; }

/* Contact */
.contact { background: var(--panel); border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 40px 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 16px; }
.contact-details { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.contact-details a { font-weight: 600; padding: 6px 0; align-self: flex-start; }
.contact-details p { padding-top: 6px; }
.form { background: var(--bg); border: 1px solid var(--card-line); border-radius: 12px; padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--soft); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--input-line); background: var(--panel); color: var(--strong); font: inherit; }
.field textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.consent label { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-status { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--accent); }
.form-status.error { color: #fca5a5; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; padding-top: 36px; padding-bottom: 48px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { padding: 6px 0; }
.site-footer p { max-width: 820px; }

/* Privacy page */
.policy-head { padding-top: clamp(48px, 7vw, 80px); padding-bottom: 8px; }
.policy-head .wrap, .policy .wrap { max-width: 800px; }
.policy-head p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.policy { padding-top: 24px; padding-bottom: clamp(56px, 7vw, 88px); }
.policy h2 { font-size: 22px; margin-top: 40px; margin-bottom: 14px; }
.policy p { color: var(--soft); line-height: 1.75; margin-bottom: 16px; }
.policy ul { color: var(--soft); line-height: 1.75; margin: 0 0 16px; padding-left: 24px; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--strong); }

/* Phones: logo and call button on the first row, section links on the second */
@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; gap: 6px 16px; }
  .site-header .btn-small { order: 2; margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 4px 22px; }
  .brand img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
