/* ingot site. Tokens mirror the app's StyleSheet palette. */
:root {
  --ink: #09090b;
  --surface: #18181b;
  --line: #27272a;
  --dim: #52525b;
  --soft: #71717a;
  --muted: #a1a1aa;
  --text: #fafafa;
  --orange: #f97316;
  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

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

.num { font-variant-numeric: tabular-nums; }

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

/* Wordmark: final t in orange, no period. */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.wordmark b { color: var(--orange); font-weight: inherit; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav .wordmark { font-size: 26px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--orange);
  color: #0c0a09;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease-out, background 120ms ease-out;
}
.btn:hover { background: #fb8a3c; }
.btn:active { transform: scale(0.98); }
.btn small { font-weight: 500; opacity: 0.75; font-size: 14px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(40px, 8vw, 88px);
  padding-bottom: clamp(72px, 10vw, 128px);
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 12ch;
}
.hero p {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 34ch;
}

/* The plan line, rendered the way the app renders it */
.logbook {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
}
.lb-ex { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.lb-last { color: var(--soft); font-size: 15px; margin: 0 0 26px; }
.lb-coach {
  border-left: 2px solid var(--orange);
  padding-left: 16px;
  margin-bottom: 28px;
  min-height: 3.2em;
}
.lb-remark { margin: 0; font-size: 16px; color: #e4e4e7; transition: opacity 220ms ease-out; }
.lb-plan { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.lb-weight { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: #d4d4d8; }
.lb-weight span { font-size: 18px; color: var(--soft); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.lb-targets { display: flex; gap: 14px; }
.lb-t {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dim);
  transition: color 260ms ease-out;
}
.lb-t.next { color: var(--text); }
.lb-t.hit { color: var(--orange); }
.lb-sets {
  list-style: none;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  min-height: 118px;
}
.lb-sets li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--muted);
  font-size: 15px;
  animation: set-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lb-sets li b { color: var(--text); font-weight: 600; }
.lb-sets li em { font-style: normal; display: inline-block; min-width: 2.6em; text-align: right; }
.lb-replay {
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  visibility: hidden;
}
.lb-replay:hover { color: var(--text); }
.lb-replay.show { visibility: visible; }

@keyframes set-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.rule-top { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 20ch;
}
.lede { color: var(--muted); margin: 0; max-width: 56ch; font-size: 18px; }

/* What it is like to use */
.moments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 6vw, 80px);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.m { padding: 28px 0; border-bottom: 1px solid var(--line); }
.m h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.m p { margin: 0; color: var(--muted); font-size: 16px; max-width: 40ch; }

/* Coach + analytics pair */
.pair {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}
.panel h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.panel > p { margin: 0 0 28px; color: var(--muted); font-size: 16px; max-width: 42ch; }
.pro-tag { color: var(--orange); font-weight: 600; font-size: 14px; margin-left: 8px; letter-spacing: 0; }

.chat { margin-top: auto; display: grid; gap: 16px; }
.bubble {
  justify-self: end;
  max-width: 80%;
  background: var(--line);
  border-radius: 18px 18px 6px 18px;
  padding: 11px 16px;
  font-size: 15px;
}
.reply { font-size: 15px; color: #e4e4e7; max-width: 46ch; margin: 0; }

.vol { margin-top: auto; display: grid; gap: 18px; }
.verdict { margin: 0 0 6px; font-size: 15px; color: var(--muted); }
.verdict b { display: block; color: #22c55e; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.vol-row { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 12px; font-size: 14px; }
.vol-row .name { color: var(--muted); }
.vol-row .count { text-align: right; font-weight: 600; }
.track { position: relative; height: 6px; background: #1f1f23; border-radius: 3px; }
.track::before {
  /* productive band, MEV to MAV */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--mev);
  right: calc(100% - var(--mav));
  background: var(--dim);
  opacity: 0.55;
  border-radius: 3px;
}
.track i {
  position: absolute;
  top: -3px;
  left: var(--v);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--c);
}
.under { --c: var(--orange); }
.ok { --c: #22c55e; }
.under .count { color: var(--orange); }

/* Privacy statement */
.statement { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 28px; max-width: 18ch; }
.statement span { color: var(--soft); }
.text-link { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--dim); }
.text-link:hover { text-decoration-color: var(--orange); }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.plan { padding: 32px 0 0; }
.plan + .plan { padding-left: clamp(24px, 5vw, 64px); border-left: 1px solid var(--line); }
.plan:first-child { padding-right: clamp(24px, 5vw, 64px); }
.plan h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.price { margin: 8px 0 24px; color: var(--muted); font-size: 16px; }
.price b { color: var(--text); font-size: 30px; letter-spacing: -0.03em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; color: #d4d4d8; font-size: 16px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--dim);
}
.plan.pro li::before { background: var(--orange); }
.fine { margin-top: 28px; color: var(--soft); font-size: 14px; max-width: 60ch; }

/* Closing download */
.closing { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.closing h2 { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--soft); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .wordmark { font-size: 22px; color: var(--text); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 68ch; padding-top: clamp(32px, 6vw, 64px); padding-bottom: 96px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
.legal .updated { color: var(--soft); margin: 0 0 40px; font-size: 15px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 44px 0 12px; max-width: none; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: #d4d4d8; font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { text-underline-offset: 3px; text-decoration-color: var(--dim); }
.legal .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.legal .summary p { margin: 0; color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: #d4d4d8; }
.legal th { color: var(--soft); font-weight: 500; }

/* Support form */
.form { display: grid; gap: 22px; margin-top: 8px; }
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { padding: 0; margin-bottom: 10px; color: var(--soft); font-size: 15px; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topics span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  transition: border-color 120ms ease-out, color 120ms ease-out;
}
.topics input:checked + span { border-color: var(--orange); color: var(--text); }
.topics input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--soft); font-size: 15px; }
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* 16px+ stops iOS zooming on focus */
  line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--soft); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form .btn { border: 0; cursor: pointer; font-family: inherit; }
.form .btn:disabled { background: var(--line); color: var(--soft); cursor: default; }
.legal .form-status { margin: 0; color: var(--muted); font-size: 15px; }
.legal .form-status.error { color: var(--orange); }
.legal .form .fine { margin: 0; font-size: 14px; color: var(--soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Mobile */
@media (max-width: 860px) {
  .hero, .moments, .pair, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .plan + .plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 32px; }
  .plan:first-child { padding-right: 0; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .lb-weight, .lb-t { font-size: 32px; }
  .lb-targets { gap: 10px; }
  .vol-row { grid-template-columns: 78px 1fr 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
