/* Graph Tracer — landing site styles
   Palette and type follow class.graphtracer.app (Space Grotesk + IBM Plex Mono,
   paper ground, navy ink, app blue). Skill colors match the in-app highlight colors. */

:root {
  --paper: #f5f4ee;
  --paper-2: #ecebe4;
  --surface: #ffffff;
  --ink: #1d2433;
  --ink-2: #4f5666;
  --ink-3: #6f7686;
  --line: #dcdce0;
  --grid: rgba(52, 98, 201, 0.075);
  --grid-strong: rgba(52, 98, 201, 0.16);
  --primary: #3462c9;
  --primary-hover: #2a53ae;
  --on-primary: #ffffff;
  --brand-blue: #1f6be1;
  --brand-green: #45e240;
  --green-text: #1d7f2c;
  --board: #0e1522;
  --board-grid: #1f2a3c;
  --board-axis: #8b95a8;
  --curve: #f2f0e8;

  /* characteristic colors, matched to the app */
  --domain: #b35900;
  --range: #8a3aa8;
  --increasing: #1f7a33;
  --decreasing: #c0283a;
  --positive: #0a6f8f;
  --negative: #5a3fc0;

  --shadow-card: 0 1px 2px rgba(29, 36, 51, .06), 0 8px 24px -12px rgba(29, 36, 51, .18);
  --shadow-device: 0 40px 80px -30px rgba(14, 21, 34, .45), 0 12px 24px -12px rgba(14, 21, 34, .3);

  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #092231;
    --paper-2: #0d2837;
    --surface: #122f40;
    --ink: #eef6f5;
    --ink-2: #a9c1c7;
    --ink-3: #7f9aa3;
    --line: #314c5c;
    --grid: rgba(113, 220, 214, 0.06);
    --grid-strong: rgba(113, 220, 214, 0.14);
    --primary: #71dcd6;
    --primary-hover: #8fe6e1;
    --on-primary: #092231;
    --green-text: #71dcd6;
    --domain: #f2a13a;
    --range: #d67bd6;
    --increasing: #4fd27e;
    --decreasing: #f2645a;
    --positive: #3fd0e0;
    --negative: #9c8cf5;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-device: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 12px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #092231;
  --paper-2: #0d2837;
  --surface: #122f40;
  --ink: #eef6f5;
  --ink-2: #a9c1c7;
  --ink-3: #7f9aa3;
  --line: #314c5c;
  --grid: rgba(113, 220, 214, 0.06);
  --grid-strong: rgba(113, 220, 214, 0.14);
  --primary: #71dcd6;
  --primary-hover: #8fe6e1;
  --on-primary: #092231;
  --green-text: #71dcd6;
  --domain: #f2a13a;
  --range: #d67bd6;
  --increasing: #4fd27e;
  --decreasing: #f2645a;
  --positive: #3fd0e0;
  --negative: #9c8cf5;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-device: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 12px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}
.mono { font-family: var(--font-mono); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.g-mark { width: 20px; height: 20px; flex: none; background: #fff; border-radius: 50%; padding: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.brand em { font-style: italic; color: var(--primary); }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.login-link { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 10px; }
.login-link:hover { color: var(--primary); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(40px, 5vw, 62px); font-weight: 700; letter-spacing: -0.03em; }
.hero h1 .trace-word { position: relative; white-space: nowrap; }
.hero h1 .trace-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em;
  background: var(--brand-green); border-radius: 4px; z-index: -1;
  transform-origin: left; animation: underline 1.1s .5s cubic-bezier(.6,.1,.2,1) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.lede strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; }
.hero-note .free { font-weight: 600; color: var(--ink); }
.hero-note a { color: var(--primary); font-weight: 600; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- device carousel ---------- */
.showcase { display: grid; gap: 16px; min-width: 0; }
.carousel { position: relative; }
.track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 8px 4px 36px; /* room for device shadow */
}
.track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }
.slide { flex: 0 0 100%; scroll-snap-align: center; min-width: 0; display: grid; gap: 14px; margin: 0; }

.ipad {
  position: relative;
  background: linear-gradient(145deg, #2b303a, #15181e);
  border-radius: clamp(18px, 3vw, 34px);
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: var(--shadow-device), inset 0 0 0 1.5px #3b414c, inset 0 0 0 3px #0b0d11;
}
.ipad::before { /* front camera, landscape = long edge top */
  content: ""; position: absolute; top: calc(clamp(10px, 1.6vw, 18px) / 2 - 3px); left: 50%;
  width: 6px; height: 6px; border-radius: 50%; background: #0b0d11; box-shadow: inset 0 0 0 1.5px #2a3140;
  transform: translateX(-50%);
}
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 2360 / 1640; /* iPad landscape screen */
  max-width: 100%;
  border-radius: clamp(8px, 1.4vw, 16px);
  background: var(--board);
}
.screen video, .screen .demo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { display: flex; align-items: baseline; gap: 10px; justify-content: center; text-align: center; font-size: 15px; color: var(--ink-2); padding-inline: 8px; }
.slide figcaption b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.carousel-controls[hidden] { display: none !important; }
.arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer;
  box-shadow: var(--shadow-card);
}
.arrow:hover { border-color: var(--ink-3); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.dot[aria-current="true"] { width: 26px; background: var(--primary); }

/* demo board (SVG placeholder until real video lands) */
.demo text { font-family: var(--font-sans); }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 12px; max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.band { background: var(--paper-2); }

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skill {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 10px; align-content: start;
}
.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skill h3 { font-size: 20px; font-weight: 700; }
.skill p { color: var(--ink-2); font-size: 16px; }
.notation {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 4px 10px; border-radius: 8px; justify-self: start;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--c);
}
.mini { width: 100%; height: 64px; }
.mini .axis { stroke: var(--ink-3); stroke-width: 1.5; }
.mini .curve { stroke: var(--ink); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.mini .hl { stroke: var(--c); stroke-width: 6; stroke-linecap: round; fill: none; }
.mini .fillhl { fill: var(--c); opacity: .28; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.steps h3 { font-size: 21px; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 8px 10px;
  padding: 14px 18px; margin-bottom: 20px;
  border: 1.5px dashed var(--primary); border-radius: var(--radius-sm);
  font-size: 16px;
}
.promo code { font-family: var(--font-mono); font-weight: 600; background: var(--primary); color: var(--on-primary); padding: 3px 10px; border-radius: 6px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px;
}
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-card); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name h3 { font-size: 22px; }
.tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.plan.featured .tag { background: var(--primary); color: var(--on-primary); }
.price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.price strong { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--green-text); }
.plan-foot { margin-top: auto; display: grid; gap: 12px; }
.plan-foot small { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* testimonials */
.quotes .track { padding-bottom: 12px; gap: 20px; }
.quote {
  flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin: 0; display: flex; flex-direction: column; gap: 18px;
}
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.quote blockquote::before { content: "“"; display: block; font-size: 48px; line-height: .6; color: var(--primary); margin-bottom: 8px; }
.quote figcaption { margin-top: auto; display: grid; gap: 2px; font-size: 15px; }
.quote figcaption b { font-weight: 700; }
.quote figcaption span { color: var(--ink-2); }
.quote.placeholder { border-style: dashed; background: transparent; }
.quote.placeholder blockquote { color: var(--ink-3); }
.quotes .carousel-controls { margin-top: 8px; }
@media (max-width: 900px) { .quote { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .quote { flex-basis: 88%; } }

/* privacy promise */
.promise { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.promise-list li { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.promise-list b { font-size: 17px; }
.promise-list span { color: var(--ink-2); font-size: 15px; }
.promise .section-head { margin-bottom: 0; }
.promise .section-head a { color: var(--primary); font-weight: 600; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .promise-list { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 50rem; display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 42rem; display: grid; gap: 10px; }
.faq .answer a { color: var(--primary); font-weight: 600; }

/* final cta */
.final { text-align: center; }
.final-box {
  background: var(--board); color: #f2f0e8; border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px);
  display: grid; justify-items: center; gap: 18px; position: relative; overflow: hidden;
}
.final-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.final-box > * { position: relative; }
.final-box h2 { font-size: clamp(30px, 4.4vw, 48px); }
.final-box p { color: #b3bac7; max-width: 36rem; }
.final-box .btn-primary { background: #7a9cf5; color: #0e1522; }
.final-box .btn-primary:hover { background: #93b0fa; }
.final-box .btn-ghost { color: #f2f0e8; border-color: #3a4558; }
.final-box .btn-ghost:hover { border-color: #8b95a8; }
.final-box .bookmark { font-size: 15px; color: #b3bac7; }
.final-box .bookmark a { color: #f2f0e8; font-weight: 600; }

/* ---------- footer (matches the app footer) ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 22px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-weight: 600; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--primary); }
.footer-meta { color: var(--ink-2); }

/* ---------- legal + support pages ---------- */
.doc { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc article, .doc .doc-inner { max-width: 46rem; margin-inline: auto; display: grid; gap: 16px; }
.doc .back { font-weight: 600; text-decoration: none; color: var(--primary); font-size: 15px; }
.doc header { display: grid; gap: 8px; margin-block: 12px 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc header p:first-child { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.doc header p:last-child { color: var(--ink-2); font-size: 15px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 22px; margin-top: 18px; }
.doc h3 { font-size: 17px; margin-top: 6px; }
.doc section { padding: 0; display: grid; gap: 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.doc address { font-style: normal; color: var(--ink-2); line-height: 1.8; }
.doc a:not(.back) { color: var(--primary); font-weight: 600; }

/* support form */
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-status { font-size: 15px; color: var(--ink-2); }
.form-status.ok { color: var(--green-text); font-weight: 600; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); }
.email-line code { font-family: var(--font-mono); color: var(--ink); background: var(--paper-2); padding: 4px 10px; border-radius: 8px; user-select: all; }
.copy-btn { font: 600 14px var(--font-sans); background: transparent; color: var(--primary); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .trace-word::after { animation: none; }
}

/* ---------- three modes ---------- */
.modes { display: grid; gap: clamp(40px, 6vw, 72px); }
.mode { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.mode:nth-child(even) .mode-copy { order: 2; }
.mode-copy { display: grid; gap: 14px; }
.mode-copy h3 { font-size: clamp(22px, 2.4vw, 28px); }
.mode-copy > p:not(.mode-tag) { color: var(--ink-2); }
.mode-tag {
  justify-self: start; font-weight: 700; font-size: 15px; color: var(--c);
  border: 2px solid var(--c); border-radius: 999px; padding: 4px 16px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--green-text); border-bottom: 2.5px solid var(--green-text); transform: rotate(-45deg); }
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: #f5f4ee; }
.shot figcaption { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) {
  .mode { grid-template-columns: 1fr; }
  .mode:nth-child(even) .mode-copy { order: 0; }
}

/* ---------- graph library ---------- */
.glib { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 8px 12px; display: grid; gap: 6px; align-content: start; }
.gcard svg { width: 100%; height: auto; border-radius: 6px; border: 1px solid #e6e7ea; }
.gmeta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding-inline: 4px; flex-wrap: wrap; }
.gcard h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.gcard p { font-size: 13px; color: var(--ink-2); padding-inline: 4px; line-height: 1.4; }
.badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.badge.free { color: var(--on-primary); background: var(--primary); padding: 2px 7px; border-radius: 99px; }
@media (max-width: 1000px) { .glib { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .glib { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- in class ---------- */
.class-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(28px, 4vw, 44px); align-items: start; }
.tip { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--ink-2); max-width: 48rem; }
.tip strong { color: var(--ink); }
@media (max-width: 760px) { .class-shots { grid-template-columns: 1fr; } }
