/* ── Rynex ────────────────────────────────────────────────── */

:root {
  /* Pulled off the brand banner: a mint that goes almost white in the
     highlights and holds a soft sage in the shadow. */
  --mint:      #A8D5B8;
  --mint-2:    #C2E3CD;
  --mint-3:    #DDF0E4;
  --mint-4:    #EDF7F0;
  --paper:     #F4F9F5;
  --paper-2:   #FFFFFF;

  --ink:       #11201A;
  --ink-2:     #3F5549;
  --ink-3:     #78907F;
  --ink-4:     #9DB0A3;

  --green:     #2C7A50;
  --green-deep:#1A5134;

  --line:      rgba(17, 32, 26, .10);
  --line-2:    rgba(17, 32, 26, .06);
  --line-3:    rgba(255, 255, 255, .45);

  --up:        #2C7A50;
  --down:      #B4462F;

  --surface:   rgba(255, 255, 255, .70);
  --surface-2: rgba(255, 255, 255, .86);
  --blur:      saturate(150%) blur(16px);

  --sh-sm: 0 1px 2px rgba(17,32,26,.05), 0 3px 12px rgba(17,32,26,.05);
  --sh-md: 0 10px 34px rgba(17,45,28,.09);
  --sh-lg: 0 28px 70px rgba(17,45,28,.14);

  --r:    22px;
  --r-sm: 14px;
  --r-lg: 30px;
  --maxw: 1140px;

  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, .68, 0, 1);
}

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

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

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

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--mint); color: var(--ink); }

/* ── type ─────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.028em; margin: 0; line-height: 1.04; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
p  { margin: 0 0 1.05em; }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.62; max-width: 60ch; }

.tag {
  font-family: var(--mono);
  font-size: .685rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: .75;
}
.tag.plain::before { display: none; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num  { font-family: var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ── layout ───────────────────────────────────────────────── */

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
section { position: relative; }
.pad { padding: clamp(72px, 11vw, 140px) 0; }
.band { background: var(--mint-4); }
.band-2 { background: linear-gradient(180deg, var(--paper) 0%, var(--mint-4) 40%, var(--mint-4) 100%); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.head { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 60px); }
.head .tag { margin-bottom: 20px; }
.head h2 { margin-bottom: 22px; }

/* ── scroll progress ──────────────────────────────────────── */

#progress {
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green), var(--mint));
  z-index: 200;
  will-change: transform;
}

/* ── nav ──────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 14px; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(var(--maxw), calc(100% - 32px));
  display: flex; align-items: center; gap: 18px;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  border: 1px solid var(--line-3);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--sh-sm);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.nav.stuck .nav-inner {
  background: rgba(255,255,255,.85);
  box-shadow: var(--sh-md);
  border-color: rgba(255,255,255,.7);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.015em; font-size: 1.02rem; }
.brand .mark { width: 26px; height: 26px; color: var(--green-deep); flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: .85rem; color: var(--ink-2); padding: 7px 13px; border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { background: rgba(17,32,26,.05); color: var(--ink); }
.nav-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  color: var(--ink-2); border: 1px solid var(--line);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav-x:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-x svg { width: 14px; height: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .875rem; font-weight: 500;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper-2);
  border: 1px solid var(--ink);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: rgba(255,255,255,.75); color: var(--ink); border-color: var(--line); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 132px 0 68px;
  overflow: hidden;
  background: linear-gradient(116deg, #BCE0CA 0%, #96CBAA 38%, #A6D4B7 62%, #C9E7D3 100%);
}
.hero-art { position: absolute; inset: -10% -5%; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 190px;
  background: linear-gradient(180deg, rgba(244,249,245,0), var(--paper));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero h1 { color: #0B1710; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--green-deep); }
.hero .lede { color: #23392C; max-width: 46ch; margin-top: 26px; font-size: clamp(1.04rem, 1.5vw, 1.2rem); }
.hero-tag { color: #2A4232; }
.hero-tag::before { background: var(--green-deep); opacity: .9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn.ghost { border-color: rgba(14,28,21,.22); color: #16281E; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px; margin-top: 56px; max-width: 680px;
}
.stat {
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: var(--r-sm);
  padding: 15px 17px;
}
.stat .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #3D5747; }
.stat .v { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); color: #0E1C15; margin-top: 4px; letter-spacing: -.03em; }
.stat .s { font-size: .75rem; color: #4A6353; }

/* ── statement ────────────────────────────────────────────── */

.statement { padding: clamp(84px, 13vw, 168px) 0; }
.statement h2 { font-size: clamp(2.1rem, 5.6vw, 4rem); max-width: 17ch; }
.statement .lede { margin-top: 30px; }

/* ── method: sticky pairs ─────────────────────────────────── */

.method-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding: clamp(48px, 7vw, 86px) 0;
  border-top: 1px solid var(--line);
}
.method-row:first-of-type { border-top: 0; }
.method-copy .tag { margin-bottom: 16px; }
.method-copy h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.method-copy p { color: var(--ink-2); max-width: 48ch; }
.method-visual { position: sticky; top: 104px; }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh-sm);
}
.panel-h {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2);
}

.klist { display: grid; gap: 10px; }
.krow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.krow:last-child { border-bottom: 0; }
.krow .k { font-size: .84rem; color: var(--ink-2); }
.krow .v { font-family: var(--mono); font-size: .84rem; }
.krow .v.good { color: var(--green); }
.krow .v.bad  { color: var(--down); }

.bar { height: 8px; border-radius: 99px; background: var(--mint-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--mint)); width: 0; transition: width 1.1s var(--ease); }

/* ── figures ──────────────────────────────────────────────── */

.fig { width: 100%; height: auto; display: block; }
.fig text { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; fill: var(--ink-3); text-transform: uppercase; }
.fig .lbl-lg { font-family: var(--sans); font-size: 11px; fill: var(--ink-2); letter-spacing: 0; text-transform: none; }
.fig .axis { stroke: var(--line); stroke-width: 1; }
.fig .band-ok { fill: var(--mint-3); }
.fig .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig .ln.a { stroke: var(--ink-3); }
.fig .ln.b { stroke: var(--ink-4); }
.fig .ln.r { stroke: var(--green); stroke-width: 2.4; }
.dash { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.5s var(--ease); }
.revealed .dash { stroke-dashoffset: 0; }

/* ── compare ──────────────────────────────────────────────── */

.compare { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 8px; }
.cmp {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px 22px; box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cmp:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.cmp.lead { background: linear-gradient(165deg, #fff, var(--mint-4)); border-color: rgba(44,122,80,.22); }
.cmp .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cmp .v { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.035em; margin: 10px 0 6px; }
.cmp.lead .v { color: var(--green-deep); }
.cmp .s { font-size: .84rem; color: var(--ink-2); line-height: 1.5; }

/* ── legs strip ───────────────────────────────────────────── */

.legs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.leg {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; box-shadow: var(--sh-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.leg:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.leg img { border-radius: 6px; flex: none; }
.leg b { display: block; font-size: .88rem; font-weight: 600; letter-spacing: -.01em; }
.leg .px { font-family: var(--mono); font-size: .76rem; color: var(--ink-2); }
.leg .px.dim { color: var(--ink-4); }

/* ── markets table ────────────────────────────────────────── */

.pairlogos { display: inline-flex; margin-right: 10px; vertical-align: -6px; }
.pairlogos img { border-radius: 50%; background: #fff; border: 1px solid var(--line); padding: 2px; }
.pairlogos img:last-child { margin-left: -8px; }

.live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4); margin-left: 6px; vertical-align: 1px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.live.on { background: var(--green); box-shadow: 0 0 0 3px rgba(44,122,80,.16); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); box-shadow: var(--sh-sm); }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
thead th {
  text-align: left; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  padding: 15px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .25s var(--ease); }
tbody tr:hover { background: var(--mint-4); }
td.r, th.r { text-align: right; }
.pair { font-weight: 500; letter-spacing: -.01em; }
.pair .q { color: var(--ink-3); font-weight: 400; }
.chip {
  display: inline-block; font-family: var(--mono); font-size: .7rem;
  padding: 3px 9px; border-radius: 999px; background: var(--mint-3); color: var(--green-deep);
}
.tfoot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 16px; }
.tfoot span { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ── numbers strip ────────────────────────────────────────── */

.figures { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.figure { padding: 26px 4px; border-top: 1px solid var(--line); }
.figure .v { font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.figure .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }

/* ── faq ──────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }
.q {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  cursor: pointer;
}
.q summary {
  display: flex; align-items: flex-start; gap: 20px;
  list-style: none; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.12rem, 1.9vw, 1.42rem); letter-spacing: -.02em;
}
.q summary::-webkit-details-marker { display: none; }
.q summary .n { font-family: var(--mono); font-size: .72rem; color: var(--ink-4); padding-top: .45em; letter-spacing: .1em; }
.q summary .t { flex: 1; }
.q summary .pm {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); position: relative; margin-top: .2em;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.q summary .pm::before, .q summary .pm::after {
  content: ""; position: absolute; inset: 50% 7px auto 7px; height: 1px; background: var(--ink-2);
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.q summary .pm::after { transform: rotate(90deg); }
.q[open] summary .pm { background: var(--ink); border-color: var(--ink); transform: rotate(90deg); }
.q[open] summary .pm::before, .q[open] summary .pm::after { background: #fff; }
.q[open] summary .pm::after { transform: rotate(0deg); }
.q .a { padding: 16px 0 0 46px; color: var(--ink-2); max-width: 68ch; font-size: .95rem; }
.q .a p:last-child { margin-bottom: 0; }

/* ── closing ──────────────────────────────────────────────── */

.closing {
  background: linear-gradient(146deg, #BCE0CA 0%, #96CBAA 52%, #BFE3CD 100%);
  padding: clamp(88px, 13vw, 156px) 0;
  position: relative; overflow: hidden;
}
.closing h2 { color: #0B1710; max-width: 23ch; font-size: clamp(2.2rem, 5.6vw, 4rem); }
.closing .hero-cta { margin-top: 34px; }
.closing .btn.ghost { border-color: rgba(14,28,21,.24); color: #16281E; }

footer { background: var(--paper); padding: 54px 0 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.foot .brand .mark { color: var(--green-deep); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: .85rem; color: var(--ink-2); transition: color .25s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-note { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--ink-4); margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 78ch; line-height: 1.8; text-transform: uppercase; }

/* ── reveal ───────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].revealed { opacity: 1; transform: none; }

[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-22px); }

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 940px) {
  .nav-links { display: none; }
  .method-row { grid-template-columns: 1fr; }
  .method-visual { position: static; }
  .compare { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .legs { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 34px); }
  .hero-stats { grid-template-columns: 1fr; max-width: 340px; }
  .hero { min-height: auto; padding-top: 124px; }
  .q .a { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .dash { stroke-dashoffset: 0 !important; }
}


/* week grid */
.wk { fill: var(--mint-3); }
.wk.on { fill: var(--green); }
.wk { transition: fill .5s var(--ease), opacity .5s var(--ease); }

input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 22px; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-deep); margin-top: -7px; border: 2px solid #fff; box-shadow: var(--sh-sm);
}

/* ── the desk ─────────────────────────────────────────────── */

.deskpage { background: var(--mint-4); }
.desk-nav { position: sticky; top: 0; padding-top: 14px; }
.desk-nav .nav-inner { background: rgba(255,255,255,.86); box-shadow: var(--sh-sm); }
.deskname {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.desk-nav .nav-links { margin-left: auto; }
.pill {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  color: var(--ink-2); padding: 7px 12px; border-radius: 999px;
  background: var(--mint-3); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill.shut { background: rgba(17,32,26,.06); color: var(--ink-3); }

.desk {
  width: min(1360px, calc(100% - 40px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.col {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px; box-shadow: var(--sh-sm);
}
.col-h {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.fineprint {
  font-size: .72rem; line-height: 1.6; color: var(--ink-3);
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2);
}
.fineprint code { font-family: var(--mono); font-size: .95em; color: var(--ink-2); }

/* market list */
.mktlist { display: grid; gap: 2px; }
.mkt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 0; border-radius: 12px;
  padding: 9px 10px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink);
  transition: background .22s var(--ease);
}
.mkt:hover { background: var(--mint-4); }
.mkt.on { background: var(--mint-3); }
.mkt-name { font-size: .86rem; font-weight: 500; letter-spacing: -.01em; }
.mkt-name .q { color: var(--ink-3); font-weight: 400; }
.mkt-mark { margin-left: auto; font-size: .8rem; color: var(--ink-2); }
.mkt.on .mkt-mark { color: var(--green-deep); }

/* legs */
.leglist { display: grid; gap: 8px; }
.leglist .leg { border: 0; box-shadow: none; background: var(--mint-4); padding: 11px 12px; }
.leglist .leg:hover { transform: none; box-shadow: none; }
.leg-sub { margin-left: auto; font-size: .66rem; color: var(--ink-3); text-align: right; }

/* ticket */
.ticket-col { padding: 0; overflow: hidden; }
.ticket { padding: 20px 22px 22px; }
.ticket-h {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2);
}
.ticket-pair { display: flex; align-items: center; gap: 14px; }
.ticket-pair .pairlogos { gap: 4px; }
.ticket-pair .pairlogos img { width: 34px; height: 34px; padding: 4px; }
.ticket-pair .pairlogos img:last-child { margin-left: 0; }
.ticket-pair b { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.03em; display: block; line-height: 1.1; }
.ticket-pair .sub { font-size: .78rem; color: var(--ink-3); }
.ticket-mark { text-align: right; }
.ticket-mark .k { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ticket-mark .v { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.03em; }

.side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.sidebtn {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r-sm);
  padding: 13px 15px; cursor: pointer; text-align: left; font: inherit; color: var(--ink-2);
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.sidebtn b { display: block; font-size: .95rem; color: var(--ink); margin-bottom: 2px; }
.sidebtn span { font-size: .74rem; }
.sidebtn:hover { border-color: var(--ink-4); }
.sidebtn.on { background: var(--mint-3); border-color: rgba(44,122,80,.4); color: var(--green-deep); }
.sidebtn.on b { color: var(--green-deep); }

.field { display: block; margin-bottom: 18px; }
.field .k {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: block; margin-bottom: 8px;
}
.field .lev-k { display: flex; justify-content: space-between; align-items: baseline; }
.field .lev-k .mono { font-size: .82rem; color: var(--ink); letter-spacing: 0; text-transform: none; }
.inputwrap {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 15px;
  background: var(--paper); transition: border-color .25s var(--ease), background .25s var(--ease);
}
.inputwrap:focus-within { border-color: var(--green); background: var(--paper-2); }
.inputwrap input {
  flex: 1; border: 0; background: transparent; outline: none; min-width: 0;
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink);
}
.inputwrap em { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); font-style: normal; }
.levcap { font-size: .7rem; color: var(--ink-3); margin-top: 6px; }

.tk-out { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px 15px; background: var(--paper); }
.tk-out .krow:last-child { border-bottom: 0; }
.v.bad { color: var(--down); }

.scen { margin-top: 20px; }
.scentable { min-width: 0; }
.scentable td { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: .84rem; }
.scentable tr:last-child td { border-bottom: 0; }
.scentable .up { color: var(--up); }
.scentable .dn { color: var(--down); }

.btn.wide {
  width: 100%; justify-content: center; margin-top: 20px; padding: 15px;
  font-size: .92rem;
}
.btn.wide:disabled {
  background: rgba(17,32,26,.07); border-color: transparent; color: var(--ink-3);
  cursor: not-allowed; transform: none; box-shadow: none;
}

.desk-foot { background: transparent; padding: 30px 0 46px; }
.desk-foot .wrap { width: min(1360px, calc(100% - 40px)); }
.desk-foot .foot-note { border-top: 1px solid var(--line); max-width: none; }

@media (max-width: 1120px) {
  .desk { grid-template-columns: 260px minmax(0, 1fr); }
  .legs-col { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .desk { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .desk-nav .nav-links, .deskname { display: none; }
  .ticket-h { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ticket-mark { text-align: left; }
}

/* ── the vault panel ──────────────────────────────────────── */

.vault-intro { font-size: .8rem; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
#vaultPanel .btn.wide, #vaultLive .btn.wide { margin-top: 0; padding: 12px; font-size: .85rem; }
.vrow { display: flex; gap: 8px; margin: 14px 0 10px; }
.vrow .btn { padding: 12px 16px; font-size: .85rem; flex: none; }
.inputwrap.sm { flex: 1; padding: 8px 12px; min-width: 0; }
.inputwrap.sm input { font-size: 1.05rem; }
.vstatus {
  font-family: var(--mono); font-size: .68rem; line-height: 1.6; color: var(--ink-3);
  margin: 12px 0 0; min-height: 1.6em;
}
.vstatus.bad { color: var(--down); }
.vstatus.good { color: var(--green); }
.btn.busy { opacity: .55; pointer-events: none; }
#connect.on { background: var(--mint-3); color: var(--green-deep); border-color: transparent; }
.fineprint.warn { color: var(--down); border-top-color: rgba(180,70,47,.2); }

/* ── a market that has gone to sleep ──────────────────────── */
.stale {
  display: flex; align-items: center; gap: 16px;
  background: var(--mint-3); border-radius: var(--r-sm);
  padding: 15px 17px; margin-top: 20px;
}
.stale b { display: block; font-size: .9rem; margin-bottom: 3px; }
.stale span { font-size: .78rem; color: var(--ink-2); line-height: 1.5; }
.stale .btn { flex: none; padding: 10px 16px; font-size: .85rem; }

/* ── the wallet picker ────────────────────────────────────── */

.sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.sheet[hidden] { display: none !important; }
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(10, 22, 15, .38);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: sheetIn .25s var(--ease);
}
.sheet-card {
  position: relative;
  width: min(380px, calc(100vw - 40px));
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  padding: 20px;
  animation: cardIn .3s var(--ease);
}
@keyframes sheetIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.985) } to { opacity: 1; transform: none } }

.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-h h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.sheet-x {
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink-3);
  width: 30px; height: 30px; border-radius: 50%;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sheet-x:hover { background: rgba(17,32,26,.06); color: var(--ink); }

.sheet-list { display: grid; gap: 6px; }
.wopt {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper-2);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.wopt:hover { background: var(--mint-4); border-color: rgba(44,122,80,.3); transform: translateY(-1px); }
.wopt img, .wopt .fallback {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  object-fit: contain; background: var(--mint-3);
}
.wopt .fallback {
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; color: var(--green-deep);
}
.wopt b { font-weight: 500; font-size: .93rem; flex: 1; }
.wopt .go { color: var(--ink-4); transition: transform .25s var(--ease), color .25s var(--ease); }
.wopt:hover .go { transform: translateX(3px); color: var(--green); }

.sheet-note {
  font-size: .75rem; color: var(--ink-3); line-height: 1.5;
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2);
}

/* ── the token ────────────────────────────────────────────── */

.token {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.token-copy .tag { margin-bottom: 18px; }
.token-copy h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; }
.token-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--sh-sm);
}
.ca {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; cursor: pointer; font: inherit; color: var(--ink);
  text-align: left;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.ca:hover { border-color: rgba(44,122,80,.35); background: var(--mint-4); }
.ca-addr { flex: 1; font-size: .78rem; letter-spacing: -.01em; word-break: break-all; line-height: 1.4; }
.ca-do {
  flex: none; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-deep);
  background: var(--mint-3); padding: 6px 11px; border-radius: 999px;
}
.ca-do.done { background: var(--green); color: #fff; }
.token-card .fineprint { margin-top: 16px; }

@media (max-width: 940px) { .token { grid-template-columns: 1fr; } }

/* ── the contract address, always on screen ───────────────── */
/* No data-reveal on this one. A contract address is the last thing that
   should be waiting on an animation to become visible. */

.ca-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 16px; margin-top: 26px;
  background: var(--mint-4); border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.ca-bar .k {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.ca-mini {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--ink); text-align: left;
}
.ca-mini .mono { font-size: .76rem; word-break: break-all; line-height: 1.4; }
.ca-mini:hover .mono { color: var(--green-deep); }
.ca-mini .ca-do { flex: none; }

/* ── docs ─────────────────────────────────────────────────── */

.docspage { background: var(--paper); }
.docs {
  width: min(1140px, calc(100% - 44px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.toc { position: sticky; top: 96px; }
.toc nav { display: grid; gap: 1px; }
.toc a {
  font-size: .84rem; color: var(--ink-3); padding: 7px 12px;
  border-radius: 8px; border-left: 2px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover { color: var(--ink); background: var(--mint-4); }
.toc a.on { color: var(--green-deep); background: var(--mint-4); border-left-color: var(--green); font-weight: 500; }
.toc .fineprint { margin-top: 18px; }
.toc .fineprint a { padding: 0; color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

.doc { padding-bottom: 90px; max-width: 68ch; }
.doc-head { padding-bottom: 34px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc-head .tag { margin-bottom: 18px; }
.doc-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.doc section { padding: 38px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 92px; }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 18px; }
.doc h3 {
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: 0;
  margin: 28px 0 10px; color: var(--ink);
}
.doc p { color: var(--ink-2); line-height: 1.68; }
.doc p b, .doc li b { color: var(--ink); font-weight: 600; }
.doc .mono { font-size: .88em; color: var(--ink); background: var(--mint-4); padding: 1px 5px; border-radius: 4px; }
.doc .note { font-size: .84rem; color: var(--ink-3); }

.doclist { margin: 0 0 1.05em; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.doclist li {
  color: var(--ink-2); line-height: 1.62; padding-left: 20px; position: relative;
}
.doclist li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green); opacity: .5;
}

.callout {
  background: var(--mint-4); border-left: 2px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 18px; margin: 24px 0;
}
.callout b { display: block; margin-bottom: 6px; font-size: .92rem; }
.callout p { margin: 0; font-size: .9rem; }
.callout.warn { background: rgba(180,70,47,.06); border-left-color: var(--down); }

.doctable { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .88rem; min-width: 0; }
.doctable th {
  text-align: left; font-family: var(--mono); font-size: .62rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line);
}
.doctable td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.doctable tr:last-child td { border-bottom: 0; }
.doctable .what { color: var(--ink-2); font-size: .85rem; line-height: 1.5; }
.doctable td.mono, .doctable .mono { background: transparent; padding-left: 0; }
#paramTable { display: block; overflow-x: auto; }

.addrlist { display: grid; gap: 6px; margin: 18px 0; }
.addr {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.addr:hover { border-color: rgba(44,122,80,.3); background: var(--mint-4); }
.addr-k { font-size: .84rem; flex: 1; min-width: 140px; }
.addr .mono { font-size: .72rem; word-break: break-all; background: transparent; padding: 0; }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { border-left: 0; background: var(--mint-4); }
}
.stale.gate { background: rgba(180,70,47,.07); }
.stale.gate .btn { background: var(--ink); border-color: var(--ink); }
