/* Doma — market data pages.
 *
 * Shares its design language with allmaz.az: navy ink, gold accent, eyebrow
 * pills, large card radii, layered radial gradients in the hero, gradient-clipped
 * headline. Both sites are the same company's, so the family resemblance is
 * deliberate rather than incidental.
 *
 * Two departures, each because of what this site is:
 *
 * 1. The hero leads with figures, not a proposition. Doma's argument *is* the
 *    data, so the numbers are the headline and the prose supports them. allmaz
 *    sells capability, which reads better as a claim.
 * 2. Dark mode is supported. allmaz is light-only; these pages get shared as
 *    links and opened on phones, and a slab of tabular figures on pure white at
 *    night is a reason to close the tab.
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --ink: #0b1f3a;
  --text: #17284c;
  --muted: #6d7994;
  --line: rgba(23, 40, 76, 0.12);
  --line-strong: rgba(23, 40, 76, 0.2);
  --card: #ffffff;
  --accent: #b8892f;
  --blue: #2f5fb0;
  --warm: #b4530b;
  --ok: #2e9e6a;
  --shadow: 0 24px 70px rgba(23, 40, 76, 0.1);
  --shadow-sm: 0 2px 10px rgba(23, 40, 76, 0.05);
  --radius: 20px;
  --radius-lg: 26px;
  --hero-wash:
    radial-gradient(900px 440px at 8% -14%, rgba(47, 95, 176, 0.13), transparent 60%),
    radial-gradient(820px 420px at 96% -8%, rgba(198, 154, 52, 0.17), transparent 62%),
    linear-gradient(180deg, #eef2fb 0%, #f7f4ec 58%, #ffffff 100%);
  --h1-grad: linear-gradient(115deg, #1f3a6b 0%, #2f5fb0 44%, #c69a34 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #131922;
    --ink: #e8ecf4;
    --text: #dfe4ee;
    --muted: #93a0b8;
    --line: rgba(220, 230, 245, 0.12);
    --line-strong: rgba(220, 230, 245, 0.2);
    --card: #161d27;
    --accent: #e0b357;
    --blue: #6f9eea;
    --warm: #f0a24e;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --hero-wash:
      radial-gradient(900px 440px at 8% -14%, rgba(47, 95, 176, 0.22), transparent 60%),
      radial-gradient(820px 420px at 96% -8%, rgba(198, 154, 52, 0.13), transparent 62%),
      linear-gradient(180deg, #121a26 0%, #101620 55%, #0d1117 100%);
    --h1-grad: linear-gradient(115deg, #cfe0ff 0%, #8fb4f0 44%, #e0b357 100%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ------------------------------------------------------------------ nav */

.nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .wrap { display: flex; align-items: center; gap: 26px; min-height: 62px; }
.brand {
  font-weight: 750; font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px var(--accent);
}
.nav-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav-links a:hover { color: var(--ink); }

/* ----------------------------------------------------------------- hero */

.hero {
  padding: 76px 0 56px;
  background: var(--hero-wash);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: 13.5px; font-weight: 650;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 13px; margin-bottom: 20px; background: var(--card);
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 12px var(--ok);
}
h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08; letter-spacing: -0.033em;
  margin: 0 0 18px; max-width: 22ch;
  background: var(--h1-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: clamp(16.5px, 2vw, 19px);
  color: var(--muted); max-width: 58ch; margin: 0 0 26px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 15.5px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* The hero's actual payload. Tabular figures so columns align; the label sits
   under the number so a narrow phone never wraps mid-pair. */
.figures {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
}
.figure {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 19px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.figure::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--fig-accent, var(--blue));
}
.figure .n {
  font-size: clamp(23px, 3vw, 29px); font-weight: 700;
  letter-spacing: -0.025em; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.figure .k { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* -------------------------------------------------------------- sections */

section.band { padding: 58px 0; }
section.band.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

h2 { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -0.022em; margin: 0 0 8px; color: var(--ink); }
h3 { font-size: 17px; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.01em; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 0 0 26px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 23px; box-shadow: var(--shadow-sm);
}
.card .tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--card-accent, var(--blue)); margin-bottom: 10px;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .big {
  font-size: 27px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 4px;
}

/* ----------------------------------------------------------------- table */

.scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 11px 15px; white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { text-align: left; }
th {
  color: var(--muted); font-weight: 600; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-soft);
}
tbody tr:hover { background: var(--bg-soft); }
td a { color: var(--blue); text-decoration: none; font-weight: 600; }
td a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ misc */

.note { color: var(--muted); font-size: 14px; max-width: 68ch; }
.warm { color: var(--warm); font-weight: 650; }
a.more { color: var(--blue); text-decoration: none; font-weight: 650; font-size: 15px; }
a.more:hover { text-decoration: underline; }

.pitch {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow);
  display: grid; gap: 22px; grid-template-columns: 1.5fr 1fr; align-items: center;
}
.pitch h2 { margin-top: 0; }
.price { font-size: 31px; font-weight: 750; color: var(--ink); letter-spacing: -0.03em; }
.price small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 52px; background: var(--bg-soft); }
.footer-cols { display: flex; gap: 44px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col strong { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.footer-col a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--accent); }

/* ----------------------------------------------------------------- forms */

form { display: flex; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
input[type="password"] {
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--card); color: var(--text); font-size: 16px; min-width: 230px;
  font-family: inherit;
}
input[type="password"]:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
button {
  padding: 11px 22px; border: 0; border-radius: 999px; background: var(--ink);
  color: var(--bg); font-size: 15.5px; font-weight: 650; cursor: pointer;
  font-family: inherit;
}
.err { color: #d3453f; font-size: 14px; }

@media (max-width: 760px) {
  .hero { padding: 52px 0 40px; }
  .pitch { grid-template-columns: 1fr; }
  .nav .wrap { padding-block: 12px; flex-wrap: wrap; gap: 14px; }
  section.band { padding: 42px 0; }
}

/* Respect a reduced-motion preference: nothing here animates, but the sticky
   nav is disorienting for some, so it releases. */
@media (prefers-reduced-motion: reduce) {
  .nav { position: static; }
}
