/*
 * Atum FX, editorial minimalist look.
 * Off-white page, near-black ink, one mint accent, one inverted dark section.
 * Pixel type for H1/H2 only, Inter for reading, DM Mono for labels, prices and metadata.
 */

@font-face {
  font-family: "Geist Pixel";
  src: url("../fonts/geist-pixel/GeistPixel-Square.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter and DM Mono are self-hosted, so no visitor data goes to Google Fonts. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono/dm-mono-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono/dm-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono/dm-mono-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono/dm-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f8f8;
  --card: #ffffff;
  --ink: #1a1a1a;
  /* #7C7C7C from the brief fails WCAG AA on #F8F8F8 for body-size text (4.0:1), so text uses a step darker. */
  --muted: #6b6b6b;
  --muted-soft: #7c7c7c;
  --line: #e8e8e8;
  --mint: #2e9e7a;
  /* #2E9E7A is 3.3:1 on the page, fine for icons and dots; small mint text uses this darker step (5.2:1). */
  --mint-ink: #1f7a5d;
  --mint-tint: #cdefe3;
  --dark: #0e0e0e;
  --on-dark: #f7f8f7;
  --on-dark-muted: #a3a8a5;
  --dark-line: #262626;

  --font-pixel: "Geist Pixel", ui-monospace, monospace;
  --font-sans: "Suisse Intl", "Inter", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-card: 16px;
  --radius-tile: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --max: 1170px;
  --gutter: 24px;
  --section: 140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dotted halftone texture: reads as chart paper, which is what a trading product lives on. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(26, 26, 26, 0.09) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.2) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--mint-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display,
.h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
}

.display {
  font-size: 56px;
  line-height: 1.1;
}

.h2 {
  font-size: 46px;
  line-height: 1.1;
}

.h3 {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint-ink);
}

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

/* ---------- Pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  border-color: #d6d6d6;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--on-dark);
  color: var(--dark);
}

.btn-light:hover {
  background: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid #dcdcdc;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--mint-tint);
  color: #155943;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 248, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The logo file is white on transparent; invert it for the light page. */
.brand img {
  height: 15px;
  width: auto;
  filter: invert(1) brightness(0.1);
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--ink);
}

.menu .menu-cta {
  margin-left: 8px;
}

.menu .menu-cta a {
  background: var(--ink);
  color: #fff;
  padding: 0 20px;
}

.menu .menu-cta a:hover {
  background: #000;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: var(--ink);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  top: 50%;
}

.nav-toggle span::before {
  top: -6px;
  left: 0;
  margin-left: 0;
}

.nav-toggle span::after {
  top: 6px;
  left: 0;
  margin-left: 0;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section) 0 0;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.section-label span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-4px);
}

.section-dark .section-label::after {
  background: var(--dark-line);
}

/* ---------- Hero ---------- */

.hero,
.page-hero {
  overflow-x: clip;
}

.hero {
  position: relative;
  padding: 72px 0 0;
  text-align: center;
  isolation: isolate;
}

/* Soft mint light behind the wordmark: the one place the accent is allowed to glow. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: min(1100px, 140vw);
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 32% 45%, rgba(205, 239, 227, 0.85), transparent),
    radial-gradient(closest-side at 70% 38%, rgba(205, 239, 227, 0.6), transparent);
  pointer-events: none;
}

.hero .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.wordmark {
  width: 100%;
  height: 240px;
  margin: 0 auto 24px;
  color: var(--ink);
}

.tech-text {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.tech-text-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero .display {
  max-width: 760px;
  margin: 0 auto;
}

.hero .lead {
  margin: 20px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.hint {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tile {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-tile);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}

.tile svg {
  width: 18px;
  height: 18px;
}

.card-title {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.3;
}

.card-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

.card p b {
  color: var(--ink);
  font-weight: 550;
}

.card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ---------- What is Atum ---------- */

.intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.intro-row .lead {
  justify-self: end;
}

/* ---------- Community ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split .lead {
  margin-top: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.channel-list {
  display: grid;
  gap: 10px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.channel:hover {
  border-color: #cfcfcf;
}

.channel .tile i {
  font-size: 17px;
}

.channel-body {
  flex: 1;
  min-width: 0;
}

.channel-body p {
  margin-top: 4px;
  font-size: 14px;
}

.channel .go {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Dark results section ---------- */

.section-dark {
  margin-top: var(--section);
  padding: 120px 0;
  background: var(--dark);
  color: var(--on-dark);
}

.section-dark .lead {
  color: var(--on-dark-muted);
}

.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.result {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card);
  background: #151515;
  color: var(--on-dark);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.result:hover {
  border-color: #4a4a4a;
}

.result h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.result p {
  margin-top: 8px;
  color: var(--on-dark-muted);
  font-size: 15px;
  max-width: 420px;
}

.term {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark-muted);
  overflow-wrap: anywhere;
}

.term .ok {
  color: #6fd3ae;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.faq-layout .lead {
  margin-top: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-row {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  transform-origin: center;
  will-change: transform;
  z-index: 1;
}

.faq-row.is-open {
  z-index: 2;
  border-color: #d9d9d9;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
}

.faq-icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.faq-row.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--mint);
}

/* Answer resolves out of blur: grid rows animate the height, filter carries the focus pull. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  filter: blur(8px);
  transition:
    grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    filter 0.4s ease;
}

.faq-row.is-open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
  filter: blur(0);
  transition:
    grid-template-rows 0.42s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.35s ease,
    filter 0.42s ease;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Plain pages (tracker, auth, steps, profile) ---------- */

.page-hero {
  position: relative;
  padding: 96px 0 0;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: min(900px, 140vw);
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side at 40% 45%, rgba(205, 239, 227, 0.7), transparent);
  pointer-events: none;
}

.page-hero .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.page-hero .display {
  max-width: 820px;
}

.page-hero .lead {
  margin-top: 20px;
}

.page-hero .hero-actions {
  justify-content: flex-start;
}

.rule-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.rule-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.rule-list li::before {
  content: "$";
  color: var(--mint-ink);
}

.note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.steps .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint-ink);
}

.steps h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
}

.steps a {
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Auth */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
  padding: 96px 0 0;
}

.auth .lead {
  margin-top: 20px;
}

.form-card {
  padding: 28px;
}

.form-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid var(--mint-ink);
  outline-offset: 0;
  border-color: transparent;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-card .btn {
  width: 100%;
  margin-top: 8px;
}

.form-foot {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.form-foot a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.form-foot-tight {
  margin-top: 0;
}

.field-hint {
  margin-left: 6px;
  color: var(--muted);
  opacity: 0.85;
}

.eyebrow-gap {
  margin-top: 18px;
}

.lead-gap {
  margin-top: 20px;
}

.alert {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.alert-error {
  background: #fdecec;
  color: #8c1d1d;
}

.alert-ok {
  background: var(--mint-tint);
  color: #12503c;
}

/* Profile */

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 28px;
}

.plan h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.plan ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.plan li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--muted);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--mint);
}

/* ---------- Guides ---------- */

.article-wrap {
  max-width: calc(760px + var(--gutter) * 2);
}

.crumbs {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a {
  color: var(--mint-ink);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.article .display {
  font-size: 46px;
}

.article-meta {
  margin-top: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.prose {
  padding-top: 8px;
  font-size: 17px;
  line-height: 1.7;
}

.prose h2 {
  margin: 44px 0 12px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.prose p,
.prose ul {
  margin: 0 0 18px;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.prose b {
  font-weight: 600;
}

.prose .formula {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 24px;
}

.article-cta p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide {
  display: block;
  padding: 22px 24px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.guide:hover {
  border-color: #cfcfcf;
}

.guide .card-title {
  margin-top: 6px;
  font-size: 19px;
}

.guide p:last-child:not(.card-sub) {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* Sister-project note on the tracker page */
.partner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.partner p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.partner .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section);
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  gap: 48px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid .footer-sub {
  margin-top: 28px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 14px;
  text-decoration: none;
}

.footer-grid li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclaimer {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.disclaimer + .disclaimer {
  margin-top: 12px;
}

.disclaimer a,
.footer-bottom a {
  color: inherit;
  text-underline-offset: 3px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-grid li a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  :root {
    --section: 120px;
  }

  .h3 {
    font-size: 40px;
  }
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-open .menu {
    display: flex;
  }

  .menu a {
    min-height: 48px;
    padding: 0 8px;
    font-size: 16px;
    color: var(--ink);
    border-radius: 10px;
  }

  .menu .menu-cta {
    margin: 12px 0 0;
  }

  .menu .menu-cta a {
    justify-content: center;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-row,
  .split,
  .faq-layout,
  .auth,
  .results {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-row {
    gap: 16px;
  }

  .intro-row .lead {
    justify-self: start;
  }

  .split,
  .faq-layout,
  .auth {
    gap: 32px;
  }

  .plan,
  .partner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section: 96px;
  }

  .display {
    font-size: 38px;
  }

  .h2 {
    font-size: 34px;
  }

  .h3 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .lead {
    font-size: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .wordmark {
    height: 150px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .section-dark {
    padding: 88px 0;
  }

  .result {
    min-height: 0;
  }

  .result h3 {
    font-size: 24px;
  }

  .steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .plan ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .article .display {
    font-size: 32px;
  }

  .prose {
    font-size: 16px;
  }

  .article-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .faq-a,
  .faq-row.is-open .faq-a,
  .faq-icon {
    transition: none;
    filter: none;
  }
}
