/* Calibrated Poker — brand tokens from Logo/Colours.txt */
:root {
  --ink: #14181F;
  --ink-2: #1A1F28;
  --slate: #262D3A;
  --line: #313949;
  --paper: #F6F5F2;
  --paper-2: #ECEAE5;
  --grey: #4A5160;
  --muted: #A3AAB8;
  --royal: #1B47B8;
  --royal-hi: #4D7CFF;   /* royal lifted for text/lines on dark */
  --warn: #E0A43A;
  --ok: #4FB286;
  --radius: 14px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--royal-hi);
  margin-bottom: 14px;
}
.accent { color: var(--royal-hi); }
.sub { color: var(--muted); max-width: 640px; margin-bottom: 36px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-primary { background: var(--royal); color: #fff; }
.btn-primary:hover { background: #2356d6; }
.btn-ghost { border-color: var(--line); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--royal-hi); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 24, 31, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand b { font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .96rem; }
.nav-links a:hover { color: var(--paper); }

/* Hero */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(27, 71, 184, .22), transparent 60%),
    linear-gradient(var(--ink), var(--ink));
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lede { font-size: 1.15rem; color: #C9CED8; max-width: 580px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.hero-proof li::before { content: "—"; color: var(--royal-hi); margin-right: 10px; }
.hero-proof b { color: var(--paper); font-weight: 600; }

/* Readout card */
.readout {
  margin: 0; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 20px 20px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.readout-head { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate); }
.readout-title { margin-left: 10px; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.readout-legend { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); margin: 14px 0 6px; }
.readout-legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.lg-base { width: 3px; height: 13px; background: var(--royal-hi); border-radius: 2px; }
.lg-you { width: 14px; height: 7px; background: var(--paper); border-radius: 3px; opacity: .85; }
.rows { display: grid; gap: 4px; }
.row { display: grid; grid-template-columns: 1.15fr 1fr 44px; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row-label { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.row-label small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.bar { position: relative; height: 8px; background: var(--slate); border-radius: 5px; }
.bar .you { position: absolute; inset: 0 auto 0 0; width: calc(var(--you) * 1%); background: var(--paper); opacity: .85; border-radius: 5px; }
.bar .base { position: absolute; top: -5px; bottom: -5px; left: calc(var(--base) * 1%); width: 3px; margin-left: -1.5px; background: var(--royal-hi); border-radius: 2px; box-shadow: 0 0 0 3px var(--ink-2); }
.delta { font-family: var(--mono); font-size: .85rem; text-align: right; }
.delta.warn { color: var(--warn); }
.delta.ok { color: var(--ok); }
.readout figcaption { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light .eyebrow { color: var(--royal); }
.section-light .sub { color: var(--grey); }

.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }

/* Method */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.method-icon { width: 48px; height: 48px; color: var(--paper); margin-bottom: 18px; }
.method p { color: #C9CED8; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--royal-hi); }
.section-light .ticks li::before { background: var(--royal); }
.pull {
  margin: 48px 0 0; padding: 26px 30px; border-left: 3px solid var(--royal-hi);
  background: linear-gradient(90deg, rgba(27,71,184,.14), transparent);
  font-size: 1.25rem; line-height: 1.5; border-radius: 0 var(--radius) var(--radius) 0;
}
.pull b { font-weight: 700; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #DCD9D2; border-radius: var(--radius); padding: 28px 24px;
}
.price-card > p { color: var(--grey); font-size: .95rem; }
.price-card .btn { margin-top: auto; }
.price { margin: 4px 0 0 !important; color: var(--grey); }
.price span { font-size: 2.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.price-alt { font-size: .85rem !important; margin-bottom: 16px !important; font-family: var(--mono); }
.req { font-size: .82rem !important; padding: 8px 10px; background: var(--paper-2); border-radius: 8px; }
.price-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 24px 50px -24px rgba(20,24,31,.6); }
.price-card.featured > p { color: #C9CED8; }
.price-card.featured .price span { color: var(--paper); }
.price-card.featured .ticks li::before { background: var(--royal-hi); }
.tag {
  position: absolute; top: -12px; left: 24px; margin: 0;
  background: var(--royal); color: #fff !important; font-family: var(--mono);
  font-size: .72rem !important; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { border-top: 2px solid var(--line); padding-top: 22px; }
.steps p { color: #C9CED8; }
.step-n { font-family: var(--mono); color: var(--royal-hi); font-size: .9rem; display: block; margin-bottom: 10px; }
.video-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.video-link .play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--royal); font-size: .8rem; padding-left: 3px; }
.video-link:hover { color: var(--royal-hi); }

/* Results */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.stat { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat-n { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.stat-l { color: var(--muted); font-size: .9rem; }

/* Software */
.soft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.soft p { color: #C9CED8; }
.soon { font-family: var(--mono); font-size: .74rem; color: var(--royal-hi); text-transform: uppercase; letter-spacing: .08em; }

/* Apply */
.apply-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.apply-grid > div > p { color: var(--grey); }
.contact-box { margin-top: 28px; padding: 20px 22px; border: 1px solid #DCD9D2; border-radius: var(--radius); background: #fff; }
.contact-box p { margin: 0 0 4px; color: var(--grey); }
.contact-box b { color: var(--ink); }
.apply-form { background: #fff; border: 1px solid #DCD9D2; border-radius: 18px; padding: 30px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apply-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.apply-form input, .apply-form select, .apply-form textarea {
  font: 500 1rem var(--font); color: var(--ink);
  padding: 11px 13px; border: 1.5px solid #D6D3CC; border-radius: 9px; background: var(--paper);
  width: 100%;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: none; border-color: var(--royal); background: #fff; }
.apply-form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.apply-form .check input { width: 18px; height: 18px; accent-color: var(--royal); }
.apply-form .invalid { border-color: #C0392B; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #1E7A52; }
.form-status.err { color: #B03A2E; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--royal-hi); }
details[open] summary::after { content: "−"; }
details p { color: #C9CED8; margin: 12px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: grid; gap: 10px; }
.footer-tag { color: var(--muted); margin: 6px 0 0; }
.footer-small { color: #6D7483; font-size: .85rem; margin: 0; }

/* ---------- Shared: nav state, section heads ---------- */
.nav-links a.active { color: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small-note { color: var(--muted); font-size: .88rem; }
.page-head { padding-top: 64px; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: 26px; }
.back:hover { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 4px 0 6px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--paper); }

/* ---------- Article cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .15s, transform .15s;
}
.page-head .article-card { background: var(--ink-2); }
.article-card:hover { border-color: var(--royal-hi); transform: translateY(-2px); }
.article-card p { color: #C9CED8; font-size: .95rem; }
.article-meta { font-family: var(--mono); font-size: .74rem !important; color: var(--muted) !important; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.read-more { margin-top: auto; color: var(--royal-hi); font-weight: 600; font-size: .92rem; }

/* ---------- Article page ---------- */
.prose-wrap { max-width: 740px; }
.article h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.article-lede { font-size: 1.2rem; color: #C9CED8; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.prose { font-size: 1.08rem; line-height: 1.75; color: #D6DAE2; }
.prose h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; color: var(--paper); }
.prose h3 { margin: 1.5em 0 .5em; color: var(--paper); }
.prose a { color: var(--royal-hi); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--royal-hi); }
.prose b, .prose strong { color: var(--paper); }
.prose code { background: var(--slate); padding: 2px 6px; border-radius: 5px; font-size: .85em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 22px; border-left: 3px solid var(--royal-hi); color: #C9CED8; }
.prose img { max-width: 100%; border-radius: 10px; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }
.article-cta { margin-top: 56px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.article-cta p { color: #C9CED8; }

/* ---------- Tool cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
  text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .15s, transform .15s;
}
.tool-card:hover { border-color: var(--royal-hi); transform: translateY(-2px); }
.tool-card p { color: #C9CED8; font-size: .95rem; margin: 0; }
.tool-ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 10px; background: var(--royal); color: #fff; font: 700 1.25rem var(--mono);
}

/* ---------- Tool pages ---------- */
.tool-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tool-form {
  position: sticky; top: 90px; display: grid; gap: 16px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.tool-form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: .88rem; font-weight: 600; }
.tool-form label > input { flex-basis: 100%; }
.tool-form .unit { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: .76rem; margin-left: 4px; }
.tool-form input[type=number] {
  font: 500 1.05rem var(--mono); color: var(--paper); background: var(--ink); width: 100%;
  border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px;
}
.tool-form input[type=number]:focus { outline: none; border-color: var(--royal-hi); }
.tool-form input[type=range] { width: 100%; accent-color: var(--royal-hi); }
.tool-out { display: grid; gap: 18px; min-width: 0; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.result { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.result.hi { border-color: var(--royal-hi); }
.r-l { color: var(--muted); font-size: .82rem; }
.r-n { font: 600 1.3rem var(--mono); letter-spacing: -0.02em; }
.r-s { color: var(--muted); font-size: .78rem; }
.chart-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.chart-card h3 { margin-bottom: 10px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.chart-head h3 { margin: 0; }
.chart-card canvas { width: 100%; height: 340px; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--muted); }
.chart-legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.lg-line { width: 16px; height: 3px; border-radius: 2px; }
.lg-line.ev { background: var(--royal-hi); }
.lg-line.best { background: var(--ok); }
.lg-line.worst { background: var(--warn); }
.lg-band { width: 14px; height: 10px; background: rgba(77,124,255,.3); border-radius: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .82rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .9rem; }
.data-table td:first-child { font-family: var(--font); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr.total td { font-weight: 700; color: var(--paper); }
.data-table tr.muted-row td { color: var(--muted); }
.split-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--slate); margin: 6px 0 14px; }
.split-bar span { display: block; height: 100%; transition: width .2s; }
.s-keep, .sw.keep { background: var(--paper); }
.s-rb, .sw.rb { background: var(--royal-hi); }
.s-rake, .sw.rake { background: var(--warn); }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.tool-notes { max-width: 760px; margin-top: 56px; }

@media (max-width: 980px) {
  .article-grid, .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-form { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .article-grid, .tool-grid, .tool-form { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .data-table { font-size: .85rem; }
  .data-table td, .data-table th { padding: 8px 6px; }
  #bm-table { display: block; overflow-x: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .apply-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .method-grid, .price-grid, .steps, .soft-grid, .field-row { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 44px; }
  .row .bar { grid-column: 1 / -1; grid-row: 2; }
  .apply-form { padding: 22px; }
  .price-card.featured { margin-top: 10px; }
}
