/* Clean grid look: color bands, thin black rules, square corners, medium type, mono figures.
   Deliberately single-theme (every band sets its own background and text color). */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --hot: #ff5b1f;      /* signature band and primary action */
  --soft: #f3f2ef;     /* row hover, quiet fills */
  --muted: #5b5b5b;
  --up: #0a8a43;
  --down: #d3261a;
  --display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shell: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.shell { max-width: var(--shell); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 760px) { .shell { padding-inline: 40px; } }

.label { font-family: var(--body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- nav */
.nav { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.nav .shell { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.brand-mark { display: block; width: 15px; height: 15px; }
.brand-mark svg { display: block; }
.nav-links { display: none; gap: 28px; margin-inline: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
@media (min-width: 860px) { .nav-right { margin-left: 0; } }

/* ---------- buttons */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 600 15px/1 var(--body);
  padding: 12px 18px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.hot { background: var(--hot); border-color: var(--hot); color: var(--ink); }
.btn.hot:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.white { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.white:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.block { width: 100%; padding: 16px 20px; font-size: 16px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); color: var(--paper); }
.btn.hot:disabled:hover { background: var(--hot); color: var(--ink); border-color: var(--hot); }

/* ---------- display type */
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
.d-xl { font-size: clamp(36px, 5.2vw, 60px); }
.d-lg { font-size: clamp(28px, 3.4vw, 40px); }
.d-md { font-size: clamp(22px, 2.4vw, 28px); }

/* ---------- hero band */
.hero { background: var(--hot); color: var(--ink); padding-block: 56px 56px; border-bottom: 1px solid var(--ink); }
.hero-top { display: grid; gap: 32px; align-items: end; }
@media (min-width: 980px) { .hero-top { grid-template-columns: 1.55fr 1fr; gap: 56px; } }
.hero .display .outline { color: var(--paper); }
.hero p.lede { font-size: 17px; line-height: 1.55; margin: 0 0 22px; max-width: 44ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- basket board (tabs + stock tiles) */
.board { margin-top: 40px; background: var(--paper); border: 1px solid var(--ink); }
.board-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--ink); scrollbar-width: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tabs button {
  appearance: none; border: 0; border-right: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 600 14px/1 var(--body); padding: 14px 18px; cursor: pointer; white-space: nowrap;
}
.board-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile { padding: 16px 14px 14px; min-height: 146px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.tile:last-child { border-right: 0; }
.tile .logo { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); object-fit: contain; margin-bottom: 14px; }
.tile .ph { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 600 9px/1 var(--mono); margin-bottom: 14px; }
.tile .tk { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; }
.tile .w { font-size: 12px; opacity: 0.85; }
.tile .px { margin-top: auto; font-size: 14px; }
.tile .ch { font-size: 12px; opacity: 0.9; }
.tile.dark { color: var(--paper); }
.tile.light { color: var(--ink); }
.board-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding: 16px 18px; }
.board-foot .big { font-size: 22px; line-height: 1; }
.board-foot .meta { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

/* ---------- light sections */
section.band { padding-block: 64px; border-bottom: 1px solid var(--ink); }
.band-head { display: grid; gap: 12px; margin-bottom: 32px; align-items: end; }
@media (min-width: 900px) { .band-head { grid-template-columns: 1fr 1fr; } }
.band-head p { margin: 0; font-size: 16px; max-width: 56ch; color: #333; }

/* index list */
.ilist { border-top: 1px solid var(--ink); }
.irow { display: grid; grid-template-columns: 32px 40px minmax(0, 1fr); gap: 12px 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.irow:hover { background: var(--soft); }
.irow .n { font-size: 13px; color: var(--muted); }
.badge { width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--paper); }
.irow .name { min-width: 0; }
.irow .name .display { font-size: 21px; line-height: 1.15; }
.irow .name p { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 40ch; }
.irow .comp { grid-column: 1 / -1; min-width: 0; }
.irow .stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1000px) {
  .irow { grid-template-columns: 32px 40px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr); }
  .irow .comp, .irow .stats { grid-column: auto; }
}
.stat .label { color: var(--muted); display: block; margin-bottom: 4px; }
.stat .v { font-size: 16px; line-height: 1.2; }
.strip { display: flex; height: 10px; gap: 2px; }
.strip span { display: block; height: 100%; min-width: 4px; }
.logos { display: flex; align-items: center; margin-top: 10px; gap: 10px; }
.logos .stack { display: flex; }
.logos img, .logos .ph { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -7px; background: var(--paper); object-fit: contain; box-shadow: 0 0 0 1px #d8d8d8; }
.logos img:first-child, .logos .ph:first-child { margin-left: 0; }
.logos .ph { display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.logos .cnt { font-size: 12px; color: var(--muted); }

/* black band */
.band.black { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--paper); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 28px 0 8px; border-bottom: 1px solid #333; }
@media (min-width: 900px) { .steps li { padding: 28px 28px 8px 0; border-bottom: 0; border-right: 1px solid #333; } .steps li + li { padding-left: 28px; } .steps li:last-child { border-right: 0; } }
.steps .numeral { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--hot); display: block; margin-bottom: 10px; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; margin: 0 0 8px; }
.steps p { margin: 0 0 20px; color: #c9c9c9; max-width: 38ch; }
.facts { margin-top: 36px; display: grid; border-top: 1px solid #333; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { padding: 18px 18px 18px 0; border-bottom: 1px solid #333; }
@media (min-width: 900px) { .facts div { border-bottom: 0; } }
.facts strong { display: block; font-size: 14px; margin-bottom: 4px; }
.facts span { color: #c9c9c9; font-size: 14px; }

/* risks grid */
.rgrid { display: grid; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
@media (min-width: 760px) { .rgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rgrid { grid-template-columns: repeat(3, 1fr); } }
.rgrid div { padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.rgrid h3 { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; margin: 0 0 6px; }
.rgrid p { margin: 0; font-size: 15px; color: #2a2a2a; }

/* faq */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; max-width: 64ch; font-size: 16px; }

/* cta band */
.cta { background: var(--hot); padding-block: 48px; border-bottom: 1px solid var(--ink); }
.cta .shell { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }

footer { background: var(--ink); color: var(--paper); padding-block: 40px 56px; font-size: 14px; }
footer .shell { display: grid; gap: 24px; }
@media (min-width: 900px) { footer .shell { grid-template-columns: 1.4fr 1fr 1fr; } }
footer .brand { color: var(--paper); margin-bottom: 10px; }
footer p { margin: 0 0 8px; color: #b8b8b8; max-width: 52ch; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--paper); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- app */
.app { padding-block: 32px 72px; }
.notice { border: 1px solid var(--ink); background: var(--hot); padding: 12px 16px; font-size: 14px; margin-bottom: 24px; }
.notice strong { font-weight: 600; }
.app-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1040px) { .app-grid { grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); } }
.ptable-wrap { border: 1px solid var(--ink); overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.ptable th { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ptable td { padding: 14px; border-bottom: 1px solid #d8d8d8; vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr { cursor: pointer; }
.ptable tbody tr:hover { background: var(--soft); }
.ptable tbody tr[aria-selected="true"] { background: var(--soft); box-shadow: inset 4px 0 0 var(--ink); }
.ptable .r { text-align: right; }
.ptable .who { display: flex; align-items: center; gap: 12px; }
.ptable .who .badge { width: 32px; height: 32px; font-size: 11px; }
.ptable .who b { display: block; font-size: 15px; }
.ptable .who small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.ptable .strip { height: 8px; margin-top: 6px; width: 120px; }
.ptable .logos { margin-top: 0; }
.ptable .logos img, .ptable .logos .ph { width: 22px; height: 22px; }
.foot-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.side { border: 1px solid var(--ink); }
.side-head { padding: 18px; border-bottom: 1px solid var(--ink); }
.side-head .row1 { display: flex; align-items: center; gap: 12px; }
.side-head .badge { width: 36px; height: 36px; font-size: 12px; }
.side-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.side-head .row1 .ch { margin-left: auto; font-size: 15px; }
.side-head .strip { margin: 14px 0 12px; height: 10px; }
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 13px; }
.hgrid div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hgrid img, .hgrid .ph { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--soft); }
.hgrid .ph { display: grid; place-items: center; font-size: 7px; font-weight: 700; }
.hgrid b { font-family: var(--mono); font-weight: 600; }
.hgrid .num { margin-left: auto; }
.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.side-stats div { padding: 14px 18px; border-right: 1px solid var(--ink); }
.side-stats div:last-child { border-right: 0; }
.side-stats .label { color: var(--muted); display: block; font-size: 11px; margin-bottom: 4px; }
.side-body { padding: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); margin-bottom: 18px; }
.seg button { appearance: none; border: 0; border-right: 1px solid var(--ink); background: var(--paper); font: 600 14px/1 var(--body); padding: 12px 8px; cursor: pointer; color: var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.fld-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.fld { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); padding: 12px 14px; }
.fld:focus-within { outline: 2px solid var(--hot); outline-offset: 0; }
.fld input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 24px/1.1 var(--mono); background: transparent; color: var(--ink); }
.fld .unit { font: 600 14px/1 var(--body); }
.linkbtn { appearance: none; border: 0; background: none; font: 600 13px/1 var(--body); text-decoration: underline; cursor: pointer; padding: 0; color: var(--ink); }
.slip { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 13px; flex-wrap: wrap; }
.slip button { appearance: none; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 12px/1 var(--mono); padding: 6px 9px; cursor: pointer; }
.slip button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.quote { border: 1px solid var(--ink); margin: 0 0 16px; font-size: 14px; }
.qrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #d8d8d8; }
.qrow:last-child { border-bottom: 0; }
.qrow > span:first-child { color: var(--muted); }
.qrow .big { font-size: 17px; font-weight: 600; }
.cost-ok { color: var(--up); }
.cost-mid { color: #b06a00; }
.cost-high { color: var(--down); }
.quote details { padding: 10px 14px; }
.quote summary { cursor: pointer; font-size: 13px; font-weight: 600; font-family: var(--body); }
.btable { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.btable th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 4px 0; }
.btable td { padding: 5px 0; border-top: 1px solid #e3e3e3; }
.btable .r { text-align: right; }
.status { min-height: 22px; margin-top: 12px; font-size: 14px; }
.status.err { color: var(--down); }
.status.ok { color: var(--up); }
.fine { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.acct { font: 500 13px/1 var(--mono); }
.skeleton { color: var(--muted); }
