/* ------------------------------------------------------------------
   Autmint platform front — the static public site served at the root.
   Self-contained: no Bootstrap, no framework. The Blazor app lives under
   /tradesentry/ and keeps its own styles.
   ------------------------------------------------------------------ */

:root {
  --pf-bg: #0a0e12;
  --pf-surface: #12181f;
  --pf-surface-2: #161d25;
  --pf-line: #232c36;
  --pf-teal: #1fd8b0;
  --pf-teal-dim: rgba(31, 216, 176, 0.14);
  --pf-gold: #e8aa3d;
  --pf-gold-dim: rgba(232, 170, 61, 0.14);
  --pf-coral: #f0654a;
  --pf-text: #f2f5f7;
  --pf-soft: #c6ced6;
  --pf-muted: #8a96a3;
  --pf-faint: #4e5a66;
  --pf-on-teal: #04211b;
  --pf-radius: 14px;
  --pf-radius-sm: 9px;
  --pf-display: 'Space Grotesk', system-ui, sans-serif;
  --pf-body: Inter, system-ui, -apple-system, sans-serif;
  --pf-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

body {
  margin: 0;
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: var(--pf-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--pf-teal);
  text-decoration: none;
}

a:hover {
  color: #6febd0;
}

h1,
h2,
h3 {
  font-family: var(--pf-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

main {
  flex: 1 1 auto;
}

.pf-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--pf-teal);
  color: var(--pf-on-teal);
  font-weight: 600;
  z-index: 50;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--pf-on-teal);
}

/* ---------------- logo ---------------- */

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--pf-teal);
  flex: none;
}

.pf-mark::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-gold);
  transform: translateX(-50%);
}

.navbar-title {
  font-family: var(--pf-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pf-text);
}

.navbar-title:hover {
  color: var(--pf-text);
}

/* ---------------- nav (class names match js/site.js) ---------------- */

.navbar-custom {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--pf-line);
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}

.navbar-scrolled {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

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

.navbar-link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--pf-radius-sm);
  color: var(--pf-soft);
  font-size: 14px;
}

.navbar-link:hover {
  color: var(--pf-text);
  background: var(--pf-surface);
}

.navbar-link[aria-current='page'] {
  background: var(--pf-teal-dim);
  color: var(--pf-teal);
  font-weight: 500;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-toggler-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
  color: var(--pf-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.navbar-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 20px;
  border-top: 1px solid var(--pf-line);
}

.navbar-mobile-menu.show {
  display: flex;
}

.navbar-mobile-menu .navbar-link {
  padding: 13px;
  font-size: 15px;
}

.navbar-mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.navbar-mobile-actions > * {
  flex: 1 1 0;
  justify-content: center;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--pf-radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pf-teal);
  color: var(--pf-on-teal);
}

.btn-primary:hover {
  color: var(--pf-on-teal);
}

.btn-ghost {
  background: var(--pf-surface);
  border-color: var(--pf-line);
  color: var(--pf-text);
}

.btn-ghost:hover {
  color: var(--pf-text);
}

.btn-sm {
  padding: 11px 16px;
  font-size: 14px;
}

.btn-plain {
  padding: 11px 15px;
  color: var(--pf-text);
  font-size: 14px;
  font-weight: 500;
}

.btn-plain:hover {
  color: var(--pf-text);
}

/* ---------------- sections ---------------- */

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 40px 0 64px;
}

.section-alt {
  background: #0c1116;
  border-top: 1px solid var(--pf-line);
  border-bottom: 1px solid var(--pf-line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
  font-size: 13px;
  color: var(--pf-soft);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pf-teal);
  flex: none;
}

.lede {
  color: var(--pf-soft);
  font-size: 18px;
  max-width: 58ch;
}

.note {
  font-size: 13px;
  color: var(--pf-muted);
}

.warn {
  color: var(--pf-gold);
  font-size: 15px;
  max-width: 58ch;
}

.card {
  padding: 26px;
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
}

.card-accent {
  border-color: var(--pf-teal);
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
}

.dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
}

.dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.dl dt {
  color: var(--pf-muted);
}

.dl dd {
  margin: 0;
  text-align: right;
}

/* ---------------- hero ---------------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 72px 0 64px;
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
}

.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 20px 0;
  max-width: 15ch;
}

.hero-title em {
  font-style: normal;
  color: var(--pf-teal);
}

.hero-orb {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.orb-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
}

.orb-container {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.orb-container canvas {
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 18px;
}

/* ---------------- venues ---------------- */

.venues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.venues li {
  font-family: var(--pf-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--pf-muted);
}

.venues li.is-pending {
  color: var(--pf-faint);
}

/* ---------------- disclosure ---------------- */

.disclosure {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
}

.disclosure .mark {
  font-family: var(--pf-display);
  font-weight: 700;
  color: var(--pf-coral);
  flex: none;
}

.disclosure p {
  font-size: 12.5px;
  color: var(--pf-muted);
  line-height: 1.7;
}

/* ---------------- steps, facts ---------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.step-num {
  font-family: var(--pf-mono);
  font-size: 13px;
  color: var(--pf-gold);
  margin-bottom: 14px;
}

.step-body {
  font-size: 13.5px;
  color: var(--pf-muted);
  line-height: 1.6;
}

.fact-label {
  font-family: var(--pf-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--pf-muted);
  margin-bottom: 10px;
}

.fact-value {
  font-family: var(--pf-display);
  font-size: 22px;
  font-weight: 700;
}

/* ---------------- table ---------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
}

table.pf {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--pf-surface);
}

table.pf caption {
  text-align: left;
  padding: 20px 24px 0;
  font-family: var(--pf-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--pf-text);
}

table.pf th,
table.pf td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--pf-line);
  vertical-align: top;
}

table.pf thead th {
  padding-bottom: 12px;
  color: var(--pf-muted);
  font-weight: 500;
  font-size: 13px;
}

table.pf tbody tr:last-child th,
table.pf tbody tr:last-child td {
  border-bottom: none;
}

table.pf td {
  color: var(--pf-soft);
}

.free {
  color: var(--pf-teal);
  font-family: var(--pf-mono);
}

.sub {
  display: block;
  font-weight: 400;
  color: var(--pf-muted);
  font-size: 13px;
  margin-top: 3px;
}

/* ---------------- checks ---------------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 11px;
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
  font-size: 14px;
  color: var(--pf-soft);
}

.checks svg {
  flex: none;
  margin-top: 2px;
}

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--pf-line);
  background: #0c1116;
  padding: 36px 0 44px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

.footer-links a {
  color: var(--pf-muted);
}

.footer-links a:hover {
  color: var(--pf-text);
}

.footer-legal {
  font-size: 11.5px;
  color: #6f7c8a;
  line-height: 1.7;
  max-width: 90ch;
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  .navbar-links,
  .navbar-actions {
    display: none;
  }

  .navbar-toggler-btn {
    display: flex;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .venues {
    gap: 24px;
  }

  .venues li {
    font-size: 15px;
  }
}

/* ==================================================================
   Landing page, second cut — the sections the plan added:
   cost band, cycle beats, proof, controls, close.
   ================================================================== */

/* The hero's risk line sits with the buttons, not adrift under them. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 32px 0 0;
}

.hero-risk {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 13px;
  color: var(--pf-gold);
  line-height: 1.5;
}

/* ---- the cost band: an interruption, not another section ---- */

.cost-band {
  background: rgba(232, 170, 61, 0.07);
  border-top: 1px solid rgba(232, 170, 61, 0.45);
  border-bottom: 1px solid rgba(232, 170, 61, 0.45);
  padding: 32px 0;
}

.cost-head {
  font-family: var(--pf-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 30ch;
}

.cost-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cost-facts li {
  padding-left: 14px;
  border-left: 2px solid var(--pf-gold);
  font-size: 14px;
  color: var(--pf-soft);
  line-height: 1.6;
}

.cost-facts b {
  display: block;
  color: var(--pf-text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---- one cycle, start to finish ---- */

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  counter-reset: beat;
}

.beat {
  position: relative;
  padding: 24px;
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
}

.beat-label {
  font-family: var(--pf-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin-bottom: 14px;
}

.beat h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.beat p {
  font-size: 13.5px;
  color: var(--pf-muted);
  line-height: 1.6;
}

.beat-figure {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pf-line);
  font-family: var(--pf-mono);
  font-size: 15px;
  color: var(--pf-text);
}

.beat-figure span {
  display: block;
  font-family: var(--pf-body);
  font-size: 12px;
  color: var(--pf-muted);
  margin-top: 4px;
}

.beat.is-close .beat-figure {
  color: var(--pf-teal);
}

/* ---- example / not-a-track-record marker ---- */

.example-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px dashed var(--pf-muted);
  font-family: var(--pf-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-muted);
  margin-bottom: 16px;
}

/* ---- the controls row ---- */

.controls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.controls h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.controls p {
  font-size: 13px;
  color: var(--pf-muted);
  line-height: 1.6;
}

/* ---- products, at unequal weight ---- */

.products-split {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}

.product-major {
  flex: 999 1 420px;
  min-width: 0;
}

.product-minor {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- the close ---- */

.close-block {
  text-align: center;
  padding: 72px 0;
}

.close-block h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.close-block .lede {
  margin: 0 auto 28px;
}

.close-risk {
  margin-top: 20px;
  font-size: 13px;
  color: var(--pf-gold);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- sticky CTA on phones ---- */

.sticky-cta {
  display: none;
}

@media (max-width: 860px) {
  .sticky-cta {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 15;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 14, 18, 0.95);
    border-top: 1px solid var(--pf-line);
    backdrop-filter: blur(10px);
  }

  .sticky-cta .btn {
    width: 100%;
  }

  .hero {
    flex-direction: column-reverse;
  }

  .orb-box {
    max-width: 280px;
  }

  .cost-band {
    padding: 28px 0;
  }
}

/* Motion is the orb's alone; everything else holds still. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Fee figures come from the API (admin-set). Until one is published the slot
   says so plainly rather than showing a bracketed placeholder. */
.fee-slot {
  color: var(--pf-muted);
}

.fee-slot[data-autmint-filled='true'] {
  color: var(--pf-text);
}

/* ==================================================================
   Landing, third cut — work savings leads. Adds the flagship card,
   the year exhibit, the rule cards and the route comparison.
   ================================================================== */

.hero-flagship {
  padding: 18px 20px;
  border-radius: 13px;
  border: 1px solid var(--pf-teal);
  background: rgba(31, 216, 176, 0.07);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-flagship-label {
  font-family: var(--pf-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-teal);
  margin-bottom: 6px;
}

/* ---- the year exhibit ---- */

.exhibit {
  padding: 32px 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--pf-line);
  background: var(--pf-surface);
}

.years {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  height: 268px;
  margin-bottom: 14px;
}

.year {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.year-bar {
  position: relative;
  width: 100%;
  border: 1px solid var(--pf-teal);
  border-radius: 6px 6px 0 0;
  background: rgba(31, 216, 176, 0.1);
}

/* The half that stayed, carried in from last year. */
.year-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 216, 176, 0.3);
}

/* The ceiling on what may leave at year end. */
.year-half {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 50%;
  border-top: 2px dashed var(--pf-gold);
}

.year-label {
  font-size: 12.5px;
  color: var(--pf-muted);
}

.exhibit-key {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--pf-line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  font-size: 13px;
  color: var(--pf-soft);
}

.exhibit-key li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-paid {
  width: 26px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--pf-teal);
  background: rgba(31, 216, 176, 0.1);
  flex: none;
}

.key-half {
  width: 26px;
  border-top: 2px dashed var(--pf-gold);
  flex: none;
}

.key-floor {
  width: 26px;
  height: 12px;
  border-radius: 3px;
  background: rgba(31, 216, 176, 0.3);
  flex: none;
}

/* ---- rule cards ---- */

.card-rule {
  border-color: rgba(232, 170, 61, 0.45);
}

.rule-label {
  font-family: var(--pf-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-gold);
  margin-bottom: 12px;
}

/* ---- the spectrum ---- */

.spectrum {
  margin-bottom: 28px;
}

.spectrum-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--pf-mono);
  font-size: 11px;
  color: var(--pf-muted);
  margin-bottom: 10px;
}

.spectrum-track {
  position: relative;
  height: 2px;
  background: var(--pf-line);
}

.spectrum-dot {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0c1116;
  border: 2px solid var(--pf-muted);
}

.spectrum-dot.is-volatile {
  background: var(--pf-gold);
  border-color: var(--pf-gold);
}

@media (max-width: 860px) {
  .years {
    gap: 10px;
    height: 220px;
  }

  .year-label {
    font-size: 11px;
  }
}
