/* ==========================================================================
   Crystalys Capital — global styles
   Brand tokens live in :root. Change colors/fonts here, not inline.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0b0f1a;          /* near-black navy: dark sections, headings */
  --ink-2: #131a2b;        /* raised surfaces on dark */
  --ink-3: #1d2640;        /* borders on dark */
  --paper: #f7f8fb;        /* light section background */
  --white: #ffffff;
  --text: #1a2133;         /* body text on light */
  --muted: #5d6680;        /* secondary text on light */
  --muted-dark: #9aa3bd;   /* secondary text on dark */
  --line: #e3e7f0;         /* borders on light */

  --accent: #6c7cff;       /* periwinkle — primary accent */
  --accent-2: #4fd1c5;     /* aqua — secondary accent */
  --accent-3: #b794f6;     /* lilac — tertiary accent */
  --gradient: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-3) 100%);

  /* Type */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --max: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 15, 26, .04), 0 12px 32px -12px rgba(11, 15, 26, .14);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(108, 124, 255, .6);
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(108, 124, 255, .8); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  border-color: rgba(255, 255, 255, .18);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 15, 26, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, .06);
}
.site-header.light {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.site-header.light .logo { color: var(--ink); }
.logo span { font-weight: 500; opacity: .7; }
.logo svg { width: 36px; height: 36px; margin-right: -4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.site-header.light .nav-links a { color: var(--muted); }
.site-header.light .nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: .9rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--white);
}
.site-header.light .menu-toggle { color: var(--ink); }

@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-3);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--ink-3); }
  .site-header.light .nav-links a { color: rgba(255, 255, 255, .8); }
  .nav-links .btn { margin-top: 16px; width: 100%; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 168px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(closest-side, rgba(108, 124, 255, .35), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(79, 209, 197, .22), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lead {
  font-size: 1.2rem;
  color: var(--muted-dark);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--muted-dark);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--accent-2); flex-shrink: 0; }

/* Hero card */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .5;
  pointer-events: none;
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--muted-dark);
  margin-bottom: 18px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 209, 197, .12);
  color: var(--accent-2);
  font-weight: 600;
  font-size: .76rem;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.hero-card .device { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.hero-card .device-sub { color: var(--muted-dark); font-size: .9rem; margin-bottom: 24px; }
.hero-card .payment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hero-card .payment strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-card .payment span { color: var(--muted-dark); }
.hero-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
}
.hero-card dt { font-size: .75rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .08em; }
.hero-card dd { margin: 2px 0 0; font-weight: 600; }
.hero-card .fine { margin: 18px 0 0; font-size: .74rem; color: rgba(154, 163, 189, .7); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
}

/* ---------------- Strip ---------------- */
.strip {
  background: var(--ink);
  border-top: 1px solid var(--ink-3);
  color: var(--muted-dark);
  padding: 28px 0;
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.strip li { display: flex; align-items: center; gap: 10px; }
.strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gradient);
}

/* ---------------- Stages ---------------- */
.stages { background: var(--paper); }
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stage {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.stage:hover { transform: translateY(-4px); border-color: rgba(108, 124, 255, .4); }
.stage .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 124, 255, .08);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.stage p { color: var(--muted); margin-bottom: 0; }
.stage ul { margin: 18px 0 0; padding: 0; list-style: none; font-size: .94rem; }
.stage li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.stage li::before { content: "→"; color: var(--accent); }
.stage-grid.featured .stage:nth-child(1) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.stage-grid.featured .stage:nth-child(1) h3 { color: var(--white); }
.stage-grid.featured .stage:nth-child(1) p { color: var(--muted-dark); }
.stage-grid.featured .stage:nth-child(1) li { border-top-color: var(--ink-3); }
.stage-grid.featured .stage:nth-child(1) .tag { background: rgba(79, 209, 197, .12); color: var(--accent-2); }
.stage-grid.featured .stage:nth-child(1) li::before { color: var(--accent-2); }

@media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr; } }

/* ---------------- Equipment ---------------- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.equip {
  background: var(--white);
  padding: 36px 32px;
  transition: background .25s ease;
}
.equip:hover { background: var(--paper); }
.equip .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(79, 209, 197, .14), rgba(108, 124, 255, .14), rgba(183, 148, 246, .14));
  color: var(--accent);
  margin-bottom: 22px;
}
.equip p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 900px) { .equip-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .equip-grid { grid-template-columns: 1fr; } }

/* ---------------- Solutions (dark) ---------------- */
.dark {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dark h2, .dark h3 { color: var(--white); }
.dark .section-head p { color: var(--muted-dark); }
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.solution {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color .25s ease;
}
.solution:hover { border-color: rgba(108, 124, 255, .5); }
.solution .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: 16px;
  display: inline-block;
}
.solution p { color: var(--muted-dark); margin: 0; }

@media (max-width: 800px) { .solution-grid { grid-template-columns: 1fr; } }

/* ---------------- Calculator ---------------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.calc-body { padding: 32px; }
.field { margin-bottom: 26px; }
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.field label { font-weight: 600; font-size: .94rem; }
.field output {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(108, 124, 255, .35);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  cursor: pointer;
}
input[type="range"]:focus-visible { box-shadow: 0 0 0 4px rgba(108, 124, 255, .2); }
.calc-result {
  background: var(--ink);
  color: var(--white);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.calc-result small { display: block; color: var(--muted-dark); font-size: .82rem; }
.calc-result strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.calc-result strong span { font-size: 1rem; font-weight: 500; color: var(--muted-dark); }
.calc-note { font-size: .8rem; color: var(--muted); margin-top: 16px; }
.calc-points { list-style: none; padding: 0; margin: 28px 0 0; }
.calc-points li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.calc-points li:last-child { border-bottom: 1px solid var(--line); }
.calc-points svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }

@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }

/* ---------------- Process ---------------- */
.process { background: var(--paper); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  position: relative;
  padding: 28px 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- Why ---------------- */
.why-wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
}
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
}
.why-item h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.why-item h3::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--gradient);
  flex-shrink: 0;
}
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.why-wrap .section-head { margin-bottom: 0; position: sticky; top: 120px; align-self: start; }

@media (max-width: 900px) {
  .why-wrap { grid-template-columns: 1fr; gap: 40px; }
  .why-wrap .section-head { position: static; }
}
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

/* ---------------- FAQ ---------------- */
.faq { background: var(--paper); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(108, 124, 255, .45); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* ---------------- Apply ---------------- */
.apply-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.apply-info p { color: var(--muted-dark); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ink-3); }
.contact-list a { text-decoration: none; color: var(--white); }
.contact-list a:hover { color: var(--accent-2); }
.contact-list svg { color: var(--accent-2); }

.form {
  background: var(--white);
  color: var(--text);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
}
.form h3 { margin-bottom: 4px; }
.form .form-sub { color: var(--muted); font-size: .94rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(108, 124, 255, .15);
}
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); font-weight: 400; }
.form .consent input { width: auto; margin-top: 4px; }
.form .btn { width: 100%; margin-top: 8px; }
.hidden { display: none; }

@media (max-width: 900px) { .apply-wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) {
  .form { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid var(--ink-3);
  padding: 64px 0 40px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-grid .logo { margin-bottom: 16px; }
.footer-grid p { max-width: 340px; }
.disclaimer {
  border-top: 1px solid var(--ink-3);
  padding-top: 28px;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(154, 163, 189, .75);
}
.disclaimer p { margin-bottom: .6em; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------------- Legal / simple pages ---------------- */
.page { padding: 150px 0 96px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose .updated { font-size: .9rem; color: var(--muted); margin-bottom: 2.5em; }

.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  padding: 120px 16px 64px;
}
.thanks h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.thanks p { color: var(--muted-dark); max-width: 520px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- Inner page hero ---------------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 156px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(108, 124, 255, .3), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 820px; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted-dark); max-width: 640px; margin-bottom: 32px; }

/* ---------------- Resources ---------------- */
.guides-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.toc { position: sticky; top: 110px; }
.toc h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 8px 0 8px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 500;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.guide {
  padding: 0 0 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.guide:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.guide .kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  display: inline-block;
  margin-bottom: 10px;
}
.guide h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.guide > p { color: var(--muted); max-width: 720px; }
.guide .takeaway {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(79, 209, 197, .08), rgba(108, 124, 255, .08), rgba(183, 148, 246, .08));
  border: 1px solid rgba(108, 124, 255, .2);
  font-size: .95rem;
}
.guide .takeaway strong { color: var(--ink); }

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 28%; background: var(--paper); }
.compare td { color: var(--muted); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.factor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.factor {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.factor h3 { font-size: 1.02rem; margin-bottom: 6px; }
.factor p { margin: 0; color: var(--muted); font-size: .92rem; }

.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  border: 2px solid var(--accent);
  background: rgba(108, 124, 255, .08);
}
.checklist small { display: block; color: var(--muted); font-size: .82rem; }

.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 26px;
  margin: 8px 0 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.formula .op { color: var(--accent-2); font-size: 1.3rem; }
.formula .chip { padding: 8px 14px; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--ink-3); }
.formula .chip.result { background: var(--gradient); color: var(--ink); border: 0; }
.worked { color: var(--muted); font-size: .95rem; }
.worked strong { color: var(--ink); }

@media (max-width: 900px) {
  .guides-wrap { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .factor-grid, .checklist { grid-template-columns: 1fr; }
}

/* ---------------- Vendors ---------------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.benefit .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(79, 209, 197, .14), rgba(108, 124, 255, .14), rgba(183, 148, 246, .14));
  color: var(--accent);
  margin-bottom: 18px;
}
.benefit h3 { font-size: 1.08rem; }
.benefit p { color: var(--muted); font-size: .94rem; margin: 0; }
.steps.three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1000px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .steps.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }
