/* Trinito — shared design system
   ──────────────────────────────────────────────────────────── */

:root {
  /* surfaces (warm slate, near-black) */
  --bg:        oklch(17% 0.008 60);
  --bg-deep:   oklch(14% 0.008 60);
  --surface:   oklch(21% 0.008 60);
  --surface-2: oklch(24% 0.008 60);
  --border:    oklch(30% 0.008 60);
  --border-strong: oklch(38% 0.008 60);

  /* type */
  --fg:        oklch(96% 0.005 80);
  --fg-muted:  oklch(72% 0.008 70);
  --fg-dim:    oklch(54% 0.01 70);

  /* accent — bottle green default; ox-blood / navy / burnt-orange via tweaks */
  --accent:        oklch(58% 0.10 155);
  --accent-strong: oklch(64% 0.11 155);
  --accent-soft:   oklch(58% 0.10 155 / 0.14);
  --accent-ink:    oklch(96% 0.02 155);

  /* spot colours for redaction highlights — do not theme */
  --hi-warn: oklch(75% 0.14 75);
  --hi-warn-bg: oklch(75% 0.14 75 / 0.16);

  /* type families */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;

  /* scale */
  --container: 1200px;
  --container-tight: 960px;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
}

[data-accent="oxblood"] {
  --accent:        oklch(54% 0.13 25);
  --accent-strong: oklch(60% 0.14 25);
  --accent-soft:   oklch(54% 0.13 25 / 0.16);
  --accent-ink:    oklch(96% 0.02 25);
}
[data-accent="navy"] {
  --accent:        oklch(58% 0.13 250);
  --accent-strong: oklch(64% 0.13 250);
  --accent-soft:   oklch(58% 0.13 250 / 0.16);
  --accent-ink:    oklch(96% 0.02 250);
}
[data-accent="burntorange"] {
  --accent:        oklch(66% 0.14 50);
  --accent-strong: oklch(72% 0.14 50);
  --accent-soft:   oklch(66% 0.14 50 / 0.16);
  --accent-ink:    oklch(20% 0.02 50);
}

/* reset
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* type
   ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.5vw, 3.85rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.022em; }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
.prose { font-family: var(--serif); font-size: 1.075rem; line-height: 1.65; color: var(--fg-muted); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--fg); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow.accent { color: var(--accent-strong); }

.lede {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--fg-muted);
  font-weight: 400;
  max-width: 60ch;
}

.mono { font-family: var(--mono); }

/* layout
   ──────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container.tight { max-width: var(--container-tight); }

section { padding: 96px 0; border-top: 1px solid var(--border); }
section.flush { border-top: none; }
section.pad-sm { padding: 56px 0; }
section.pad-lg { padding: 140px 0; }

.row { display: flex; gap: 16px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* header / nav
   ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--accent-strong);
}
.brand-mark svg { width: 22px; height: 22px; }
.nav {
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  color: var(--fg-muted);
  font-size: 0.92rem;
  transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; width: 100%;
  margin-top: 6px; background: var(--accent);
  border-radius: 1px;
}
.utility { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}
@media (max-width: 880px) {
  .nav-toggle-btn { display: inline-flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-toggle:checked ~ .nav-panel { display: flex; }
  .nav-panel .nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-panel .nav a { padding: 10px 0; }
  .nav-panel .utility { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
  .site-header .container { position: relative; flex-wrap: wrap; }
}
@media (min-width: 881px) {
  .nav-panel { display: contents; }
  .nav-toggle-btn { display: none !important; }
}

/* buttons
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--fg-dim); }
.btn-link {
  color: var(--fg);
  font-size: 0.92rem;
  padding: 0;
  height: auto;
  background: transparent;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
}
.btn-link:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.88rem; }

.arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .15s;
}
.arrow:hover::after { transform: translateX(3px); }

/* hero
   ──────────────────────────────────────────────────────────── */
.hero { padding: 110px 0 80px; border-top: none; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; max-width: 36ch; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta { margin-top: 36px; display: flex; gap: 24px; color: var(--fg-dim); font-size: 0.84rem; font-family: var(--mono); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

/* cards
   ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-pad-lg { padding: 36px; }
.card h3 { margin-bottom: 8px; }
.card .muted { color: var(--fg-muted); font-size: 0.96rem; }
.card .icon {
  width: 28px; height: 28px; color: var(--accent-strong);
  margin-bottom: 16px;
}

/* stat tile */
.stat {
  padding: 32px 0;
}
.stat .num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
}
.stat .num .accent { color: var(--accent-strong); }
.stat .cap {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 32ch;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-row .stat + .stat { border-left: 1px solid var(--border); padding-left: 32px; }
@media (max-width: 880px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-row .stat + .stat { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 32px; }
}

/* pills (the protection grid)
   ──────────────────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--fg-muted);
  font-family: var(--mono);
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.pill.solid {
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  color: var(--accent-strong);
}

/* comparison table
   ──────────────────────────────────────────────────────────── */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare thead th {
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
  background: transparent;
}
.compare thead th.us {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.compare tbody td:first-child {
  color: var(--fg-muted);
  font-weight: 500;
  width: 28%;
}
.compare td.us, .compare th.us {
  background: var(--accent-soft);
  color: var(--fg);
  border-left: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-right: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.compare tbody tr:last-child td.us { border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.check { color: var(--accent-strong); }
.cross { color: var(--fg-dim); }

/* section header
   ──────────────────────────────────────────────────────────── */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--fg-muted); font-size: 1.05rem; max-width: 56ch; }

/* footer
   ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 72px 0 32px;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 880px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
.site-footer h5 {
  font-size: 0.78rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin: 0 0 14px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--fg); }
.site-footer .legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--fg-dim);
  flex-wrap: wrap; gap: 12px;
}
.uk-flag { display: inline-flex; align-items: center; gap: 8px; }
.uk-flag svg { width: 18px; height: 12px; border-radius: 2px; }

/* utility
   ──────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; border: none; }
.text-muted { color: var(--fg-muted); }
.text-dim { color: var(--fg-dim); }
.text-accent { color: var(--accent-strong); }
.text-center { text-align: center; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tag.accent { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 40%, transparent); color: var(--accent-strong); }

/* faq
   ──────────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--fg-dim); font-size: 1.3rem; font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 0 22px;
  color: var(--fg-muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 70ch;
}

/* pricing
   ──────────────────────────────────────────────────────────── */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .price-cards { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.price-card.featured {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 40%);
}
.price-card .sku { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.price-card .from { font-size: 0.85rem; color: var(--fg-dim); }
.price-card .price {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card .price .unit { font-size: 0.95rem; font-weight: 400; color: var(--fg-muted); letter-spacing: 0; margin-left: 4px; }
.price-card .monthly { font-family: var(--mono); font-size: 0.85rem; color: var(--fg-muted); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: var(--fg-muted); }
.price-card ul li { display: flex; align-items: flex-start; gap: 10px; }
.price-card ul li::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  margin-top: 8px; flex-shrink: 0;
}

/* cta band
   ──────────────────────────────────────────────────────────── */
.cta-band {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.cta-band .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 18ch; }
.cta-band .row { gap: 12px; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; z-index: 100; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* selection */
::selection { background: var(--accent-soft); color: var(--accent-strong); }

/* scrollbar (chromium) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
