/* ============================================================
   AISTIV — Design tokens
   Palette:  --red (brand, sparing/high-impact use only)
             --ink (near-black text), --paper (bg), --paper-alt (section bg)
             --line (hairline), --muted (secondary text)
   Type:     Space Grotesk (display/geometric, angular, echoes the wordmark)
             Manrope (body/UI, humanist-geometric companion)
   Signature: angular "cut" motif (clip-path chevrons) echoing the logo's
             sliced A / zig-zag S / plus-sign T — used as dividers & accents.
   ============================================================ */

:root {
  --red: #b90d15;
  --red-dim: #8f0a10;
  --ink: #141414;
  --paper: #ffffff;
  --paper-alt: #f7f5f3;
  --line: #e6e2dc;
  --muted: #6a6560;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo {
  height: 28px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--red); }
.nav-links a:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 3px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--red) !important; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--paper); flex-direction: column;
    padding: 32px var(--gutter); gap: 22px; transform: translateX(100%); transition: transform .25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: .2s;
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
}
.hero .eyebrow::before {
  content: ""; width: 16px; height: 2px; background: var(--red); display: inline-block;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.94;
  color: var(--ink);
}
.hero h1 .cut {
  color: var(--red);
}
.hero .lede {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  margin-top: 26px;
  line-height: 1.55;
}
.hero .actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

/* angular corner accent, echoes the logo cut */
.hero::after {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 46%; height: 130%;
  background: var(--paper-alt);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: -1;
}

/* ---------- Section chrome ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-alt); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px; display: block;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* chevron divider — signature element */
.chevrons {
  display: flex; height: 10px; margin: 0 auto;
}
.chevrons span {
  flex: 1; height: 100%;
  clip-path: polygon(0 0, 60% 0, 100% 100%, 40% 100%);
  background: var(--line);
}
.chevrons span:nth-child(3n+1) { background: var(--red); opacity: .6; }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  padding: 36px 30px;
  position: relative;
  transition: background .18s ease;
}
.card:hover { background: var(--paper-alt); }
.card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--red);
  letter-spacing: .06em;
}
.card h3 { font-size: 20px; margin-top: 16px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .mark {
  position: absolute; top: 30px; right: 30px;
  width: 20px; height: 20px;
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  background: var(--line);
}

/* ---------- Company strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2,1fr); } }
.strip .cell {
  padding: 28px var(--gutter);
  border-left: 1px solid var(--line);
}
.strip .cell:first-child { border-left: none; }
.strip .cell .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; display:block; }
.strip .cell .value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px,8vw,96px) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(28px,4vw,44px); }
.cta-band p { color: #c9c5c0; max-width: 520px; margin: 18px auto 32px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #b9b5b0;
  padding: 56px 0 28px;
  font-size: 14px;
}
footer.light { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 28px; width: auto; display: block; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
footer.light .footer-col h4 { color: var(--ink); }
.footer-col a { display: block; color: #b9b5b0; text-decoration: none; margin-bottom: 8px; font-size: 14.5px; }
footer.light .footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 24px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.light .footer-bottom { border-top-color: var(--line); }

/* ============================================================
   Terms & Conditions page
   ============================================================ */
.legal-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.legal-header .kicker { margin-bottom: 10px; }
.legal-header h1 { font-size: clamp(32px, 5vw, 52px); }
.legal-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 22px; font-size: 14px; color: var(--muted);
}
.legal-meta strong { color: var(--ink); }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
}

.toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.toc-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 2px; }
.toc a {
  display: block; text-decoration: none; font-size: 14px; color: var(--muted);
  padding: 7px 10px 7px 0; border-left: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.toc a:hover, .toc a.active { color: var(--red); border-color: var(--red); }
.toc a::before { content: counter(toc) "  "; color: var(--red); font-weight: 700; font-family: 'Space Grotesk',sans-serif; font-size: 12px; }

.legal-body { min-width: 0; }
.legal-body section { padding: 0 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; scroll-margin-top: 96px; }
.legal-body section:last-child { border-bottom: none; }
.legal-body h2 {
  font-size: 24px;
  margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 12px;
}
.legal-body h2 .n { color: var(--red); font-size: 18px; }
.legal-body h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-body p { margin: 0 0 14px; color: #2c2c2c; }
.legal-body p strong.lead { color: var(--ink); }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 10px; color: #2c2c2c; }
.legal-body .note {
  background: var(--paper-alt);
  border-left: 3px solid var(--red);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin: 18px 0;
}
.legal-caps { font-size: 15px; }

.back-top {
  position: fixed; right: 28px; bottom: 28px;
  width: 46px; height: 46px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 3px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, background .2s;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--red); }

::selection { background: var(--red); color: #fff; }
