/* Compounded Technologies — shared styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --ink: #0b1b24;
  --ink-soft: #52636d;
  --ink-faint: #8a99a2;
  --line: #e4e9ec;
  --card: #ffffff;
  --accent: #0e8f7e;
  --accent-strong: #0a7466;
  --accent-tint: #e3f5f1;
  --glow: rgba(14, 143, 126, .16);
  --panel: #0b1b24;
  --panel-ink: #e8f1f0;
  --shadow: 0 1px 2px rgba(11, 27, 36, .04), 0 8px 24px -8px rgba(11, 27, 36, .10), 0 32px 64px -24px rgba(11, 27, 36, .18);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080f13;
    --bg-soft: #0d171d;
    --ink: #eef4f5;
    --ink-soft: #a0b0b8;
    --ink-faint: #6c7d86;
    --line: #1d2b33;
    --card: #0f1b21;
    --accent: #2fc4ae;
    --accent-strong: #5ad6c3;
    --accent-tint: rgba(47, 196, 174, .12);
    --glow: rgba(47, 196, 174, .14);
    --panel: #10232a;
    --panel-ink: #e8f1f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { width: 26px; height: 25px; flex: none; color: var(--ink); }
.brand-mark circle { fill: var(--accent); }
.site-nav { display: flex; gap: .25rem; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 500;
  padding: .45rem .85rem; border-radius: 8px; transition: color .15s, background-color .15s;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 7.5rem) clamp(4rem, 8vw, 6.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px;
  right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.5rem;
  padding: .35rem .85rem .35rem .65rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11, 27, 36, .04);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1; letter-spacing: -.045em; font-weight: 700;
  margin: 0 0 1.5rem; max-width: 13ch;
}
.hero p.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; margin: 0 0 2.25rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 1.35rem; border-radius: 10px;
  font-weight: 600; font-size: .97rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background-color .15s, box-shadow .15s, border-color .15s;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1px 2px rgba(11, 27, 36, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(11, 27, 36, .35); }
.btn-quiet { color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink-faint); }

/* Tracker card */
.tracker {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow);
}
.tracker-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.tracker-head strong { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.chip {
  font-size: .78rem; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-tint); padding: .25rem .65rem; border-radius: 999px;
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 1.25rem 2.25rem; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card);
}
.steps li::after { content: ""; position: absolute; left: 8.25px; top: 1.55rem; bottom: .1rem; width: 1.5px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li.done::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--accent);
}
.steps li.done::after { background: var(--accent); }
.steps li.now::before { border: 5px solid var(--accent); box-shadow: 0 0 0 5px var(--accent-tint); }
.steps b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.steps span { color: var(--ink-soft); font-size: .86rem; }
.steps li:not(.done):not(.now) b { color: var(--ink-faint); font-weight: 500; }
.steps li:not(.done):not(.now) span { color: var(--ink-faint); }
@media (prefers-reduced-motion: no-preference) {
  .steps li.now::before { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 9px var(--accent-tint); } }
}

/* Sections */
section.band { padding-block: clamp(4rem, 9vw, 6.5rem); }
section.band h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 700; margin: 0 0 1rem; max-width: 22ch; }
section.band .intro { color: var(--ink-soft); font-size: 1.08rem; max-width: 56ch; margin: 0 0 3rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.split > div {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.split h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 1.25rem; }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { position: relative; padding-left: 1.85rem; margin-bottom: .85rem; color: var(--ink-soft); }
.split li:last-child { margin-bottom: 0; }
.split li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230e8f7e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

#how-it-works { background: var(--bg-soft); border-block: 1px solid var(--line); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: flow; }
.flow li {
  counter-increment: flow; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem;
}
.flow li::before {
  content: counter(flow); display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px; margin-bottom: 1.1rem;
  font-weight: 600; font-size: .9rem; color: var(--accent-strong); background: var(--accent-tint);
}
.flow b { display: block; font-weight: 600; letter-spacing: -.01em; margin-bottom: .35rem; }
.flow span { color: var(--ink-soft); font-size: .93rem; }

/* CTA */
.cta-band .wrap {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  background: var(--panel); color: var(--panel-ink);
  border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem);
}
.cta-band .wrap::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 196, 174, .35), transparent 65%); pointer-events: none;
}
.cta-band h2 { color: var(--panel-ink); }
.cta-band p { margin: 0; color: rgba(232, 241, 240, .72); max-width: 50ch; }
.cta-band .btn-primary { position: relative; background: #ffffff; color: #0b1b24; }

/* Document pages */
.doc { padding-block: clamp(3rem, 7vw, 5rem) 5rem; }
.doc article { max-width: 70ch; margin-inline: auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); letter-spacing: -.04em; line-height: 1.05; font-weight: 700; margin: 0 0 .75rem; }
.doc .meta { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.doc h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin: 2.75rem 0 .75rem; }
.doc h3 { font-size: 1.02rem; font-weight: 600; margin: 1.75rem 0 .4rem; }
.doc p, .doc li { color: var(--ink-soft); line-height: 1.7; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.doc li::marker { color: var(--accent); }
.doc article a { color: var(--accent-strong); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.doc article a:hover { text-decoration-color: currentColor; }
.note { background: var(--accent-tint); border-radius: 12px; padding: 1.1rem 1.25rem; margin: 2rem 0; color: var(--ink-soft); }

.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 2.5rem; box-shadow: var(--shadow);
}
.doc .contact-card a.email {
  font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -.035em;
  color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 2px;
}
.doc .contact-card a.email:hover { color: var(--accent-strong); }
.contact-card p { margin: 1rem 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.25rem; font-size: .9rem; color: var(--ink-faint); margin-top: clamp(2rem, 5vw, 4rem); }
.cta-band + .site-footer, main:has(.cta-band) + .site-footer { margin-top: 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: min(1160px, 100% - 2rem); }
  .flow { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; }
  .cta-band .btn { width: 100%; }
}
@media (prefers-color-scheme: dark) { .cta-band .wrap { border: 1px solid var(--line); } }
