/* TradingTwo marketing site: one stylesheet for every page. Built by site/build.mjs from site/src.
   Design record: site/DESIGN.md. Ink Edge tokens copied from app/src/skin.ts; amber is the logo's own pair
   (brand/make_logo.py): #F5A524 on dark, #C26A0A on light. The site has no candles, so no green or red.
   Light follows the visitor's system setting. */
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400 700; font-style: normal; font-display: swap; src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2'); }

:root {
  --page: #01060e;
  --stage: #030810;
  --glow: rgb(9 21 33 / 55%);
  --glass: rgb(13 23 33 / 78%);
  --raise: #0a1420;
  --hair: rgb(174 192 208 / 10%);
  --hair-strong: rgb(174 192 208 / 22%);
  --ink: #daeefe;
  --ink-2: rgb(168 186 204);
  --ink-grey: rgb(128 146 164);
  --brand: #F5A524;
  --accent: #F5A524;
  --accent-text: #F5A524;
  --accent-wash: rgb(245 165 36 / 7%);
  --rim-a: rgb(245 165 36 / 75%);
  --rim-d: rgb(245 165 36 / 30%);
  --cta-bg: #F5A524;
  --cta-bg-hover: #FFB84A;
  --cta-fg: #241502;
  --seg-on: rgb(255 255 255 / 9%);
  --field: #060d17;
  --bad: #ff8f8f;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 68ch;
}
@media (prefers-color-scheme: light) {
  :root {
    --page: #ffffff;
    --stage: #f6f7f9;
    --glow: rgb(255 255 255 / 0%);
    --glass: #ffffff;
    --raise: #ffffff;
    --hair: rgb(15 27 45 / 10%);
    --hair-strong: rgb(15 27 45 / 22%);
    --ink: #0f1b2d;
    --ink-2: #4a5a6e;
    --ink-grey: #5b6b7e;
    --brand: #C26A0A;
    --accent: #C26A0A;
    --accent-text: #A85A06;
    --accent-wash: rgb(194 106 10 / 8%);
    --rim-a: rgb(194 106 10 / 60%);
    --rim-d: rgb(194 106 10 / 25%);
    --cta-bg: #B05C05;
    --cta-bg-hover: #9A5004;
    --cta-fg: #ffffff;
    --seg-on: rgb(15 27 45 / 8%);
    --field: #ffffff;
    --bad: #b3261e;
  }
}
* { box-sizing: border-box; }
html { background: var(--page); color-scheme: dark light; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; font-size: 1.0625rem;
  background: radial-gradient(1300px 720px at 50% -10%, var(--glow), transparent 70%), var(--stage);
  -webkit-font-smoothing: antialiased;
}
.num, td, th, .price, input, output { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--cta-bg); color: var(--cta-fg); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* the edge light: a 1px ring, amber top-left, gone by a third, faint return at the far corner */
.rim { position: relative; border-radius: 20px; background: var(--glass); }
.rim::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(115deg, var(--rim-a), var(--hair) 33%, var(--hair) 78%, var(--rim-d));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--stage) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html { scroll-padding-top: 118px; }
.apps { border-bottom: 1px solid var(--hair); font-size: .85rem; }
.apps .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.apps-t { color: var(--ink-2); }
.app-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border: 1px solid var(--hair-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
a.app-chip:hover { background: var(--seg-on); }
.app-chip.soon { border-style: dashed; color: var(--ink-2); font-weight: 500; }
.ico { width: 15px; height: 15px; fill: currentColor; flex: none; }
.store-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.store-row .gp-badge img { height: 54px; width: auto; display: block; }
.store-row .app-chip { padding: 9px 16px; font-size: .95rem; }
.soon-text { color: var(--ink-2); }
.rows .ico { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.15rem; text-decoration: none; flex: none; }
.brand b { font-weight: 800; color: var(--brand); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: .97rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 12px; border: 0; font: 600 1rem var(--font); cursor: pointer; text-decoration: none;
  background: var(--cta-bg); color: var(--cta-fg);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { background: var(--cta-bg-hover); transform: translateY(-1px); }
.nav a.btn, .nav a.btn:hover { color: var(--cta-fg); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair-strong); }
.btn.ghost:hover { background: var(--seg-on); }
@media (max-width: 760px) { .nav .opt { display: none; } }
@media (max-width: 520px) { .nav a.pr { display: none; } .nav { gap: 14px; } }

/* hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(28px, 4vw, 56px); display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero.split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.06; max-width: 22ch; }
h1 .quiet { color: var(--ink-2); }
.lede { margin-top: 18px; max-width: 58ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.fine { color: var(--ink-2); font-size: .95rem; }
.hero-note { margin-top: 10px; max-width: 70ch; color: var(--ink-2); font-size: .88rem; }

/* product shot in a glass frame */
.shot { margin: 0; padding: 8px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 13px; }
.shot figcaption { padding: 10px 6px 4px; color: var(--ink-2); font-size: .9rem; }
.shot.phone { max-width: 300px; }
.shot.narrow { max-width: 520px; margin-inline: auto; }

/* page head for inner pages */
.head { padding: clamp(18px, 3vw, 40px) 0 clamp(12px, 2vw, 24px); }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.head h1 { max-width: 24ch; font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.answer { margin-top: 18px; max-width: 62ch; font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.55; }
.meta { margin-top: 12px; color: var(--ink-grey); font-size: .9rem; }

/* sections */
section.band { padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--hair); }
section.band > h2, .prose h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 14px; }
.prose { max-width: var(--measure); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose table + p, .prose p + table { margin-top: 14px; }
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; letter-spacing: -0.01em; }
.prose ul, .prose ol { padding-left: 1.25rem; } .prose li + li { margin-top: 6px; }
.prose a { color: var(--accent-text); }
.prose a.btn { color: var(--cta-fg); text-decoration: none; }
.prose code, .formula { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; background: var(--seg-on); padding: 1px 6px; border-radius: 5px; }
.formula { display: block; padding: 10px 14px; margin: 10px 0; white-space: pre-wrap; border-radius: 8px; }
.callout { border: 1px solid var(--hair-strong); border-left: 0; border-radius: 12px; padding: 16px 18px; background: var(--accent-wash); }
.split-2 { display: grid; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* lists of facts and of links */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.rows li:first-child { padding-top: 0; }
.rows .k { color: var(--ink-2); }
.rows .v { font-weight: 600; text-align: right; }
.rows .v.big { color: var(--accent-text); }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.links li { border-top: 1px solid var(--hair); }
.links li:last-child { border-bottom: 1px solid var(--hair); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; text-decoration: none; }
.links a:hover .t { color: var(--accent-text); }
.links .t { font-weight: 600; } .links .d { color: var(--ink-2); font-size: .95rem; max-width: 52ch; text-align: right; }
@media (max-width: 640px) { .links a { flex-direction: column; gap: 4px; } .links .d { text-align: left; } }

/* plan block */
.plan { display: grid; gap: 0; }
@media (min-width: 860px) { .plan { grid-template-columns: minmax(260px, 0.8fr) 1.4fr; } }
.plan > div { padding: clamp(18px, 2.4vw, 30px); }
.plan .buy { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 860px) { .plan .buy { border-right: 1px solid var(--hair); } }
@media (max-width: 859px) { .plan .buy { border-bottom: 1px solid var(--hair); } }
.seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--hair-strong); border-radius: 12px; align-self: flex-start; }
.seg button { font: 500 .95rem var(--font); color: var(--ink-2); background: transparent; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); }
.price { font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1.1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 6px; }
.price-note { color: var(--ink-2); min-height: 1.55em; }
.foot { margin-top: 18px; color: var(--ink-2); font-size: .92rem; max-width: 62ch; } .foot b { color: var(--ink); font-weight: 600; }

/* "no" list */
.nots-list { display: grid; margin-top: 8px; border-top: 1px solid var(--hair); }
@media (min-width: 861px) { .nots-list { grid-template-columns: repeat(3, 1fr); } .nots-list > div + div { padding-left: 28px; border-left: 1px solid var(--hair); } }
.nots-list > div { padding: 24px 24px 8px 0; } .nots-list h3 { font-size: 1.4rem; } .nots-list p { margin-top: 10px; color: var(--ink-2); max-width: 32ch; }
@media (max-width: 860px) { .nots-list > div { padding: 20px 0; } .nots-list > div + div { border-top: 1px solid var(--hair); } }

/* comparison tables */
.tablewrap { margin-top: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
.cmp { min-width: 760px; }
th, td { padding: 14px 14px; text-align: right; border-bottom: 1px solid var(--hair); font-weight: 500; }
th:first-child, td:first-child { text-align: left; color: var(--ink-2); font-weight: 400; position: sticky; left: 0; background: var(--stage); z-index: 1; padding-left: 0; min-width: 190px; }
thead th { border-bottom: 0; padding-bottom: 6px; vertical-align: bottom; }
.band-row th { padding: 0 14px 10px; font-size: 1.05rem; font-weight: 600; text-align: center; color: var(--ink); }
.band-row .tv { border-bottom: 2px solid var(--ink); }
.band-row .us { color: var(--accent-text); border-bottom: 2px solid var(--accent); }
.plans-row th { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding-top: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--hair-strong); }
.plans-row th.us { color: var(--ink); background: var(--accent-wash); border-top-left-radius: 12px; border-top-right-radius: 12px; }
td.us { background: var(--accent-wash); color: var(--ink); font-weight: 600; }
tr:last-child td.us { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.key th:first-child, .key td:first-child { color: var(--ink); font-weight: 600; }
.key td { font-size: 1.1rem; padding-top: 20px; padding-bottom: 20px; } .key td.us { color: var(--accent-text); font-size: 1.35rem; }
.no { color: var(--ink-grey); }
.honest { margin-top: 24px; color: var(--ink-2); max-width: 70ch; }
.src { margin-top: 12px; color: var(--ink-grey); font-size: .88rem; max-width: 70ch; }
.simple { min-width: 0; margin-top: 18px; }
.simple th:first-child, .simple td:first-child { position: static; background: transparent; min-width: 0; }
.simple th, .simple td { text-align: left; }
@media (max-width: 760px) {
  .tablewrap { overflow: visible; }
  .cmp { min-width: 0; display: block; } .cmp thead { display: none; } .cmp tbody { display: block; }
  .cmp tbody tr { display: flex; flex-direction: column; padding: 20px 0; border-bottom: 1px solid var(--hair-strong); }
  .cmp tbody th[scope="row"] { order: -3; position: static; padding: 0 0 12px; border: 0; background: transparent; color: var(--ink); font-weight: 600; min-width: 0; }
  .cmp tbody td { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border: 0; text-align: right; }
  .cmp tbody td::before { content: attr(data-label); color: var(--ink-2); font-weight: 400; text-align: left; }
  .cmp tbody td.us { order: -2; background: var(--accent-wash); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
  .cmp tbody td.us::before { color: var(--accent-text); font-weight: 600; }
  .cmp .key td { font-size: 1.05rem; padding-top: 7px; padding-bottom: 7px; } .cmp .key td.us { font-size: 1.3rem; padding: 12px 14px; }
}

/* FAQ */
.faq details { border-top: 1px solid var(--hair); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-text); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }

/* tools */
.tool { padding: clamp(18px, 2.4vw, 30px); display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fields { display: grid; gap: 14px; align-content: start; }
.field label, .field .lab { display: block; font-size: .92rem; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px; font: 500 1rem var(--font); color: var(--ink);
  background: var(--field); border: 1px solid var(--hair-strong); border-radius: 10px;
}
.field input[aria-invalid="true"] { border-color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field .hint { margin-top: 6px; font-size: .85rem; color: var(--ink-grey); }
.out { align-content: start; }
.out .rows .v { font-size: 1.05rem; }
.out .headline { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; color: var(--accent-text); line-height: 1.1; }
.out .headline small { display: block; font-size: .95rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-bottom: 6px; }
.err { color: var(--bad); font-size: .95rem; min-height: 1.4em; }
.out-cta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: .95rem; }
.out-cta a { color: var(--accent-text); font-weight: 600; }
.levels { width: 100%; margin-top: 8px; } .levels td, .levels th { padding: 10px 8px; text-align: right; } .levels th:first-child, .levels td:first-child { position: static; background: transparent; min-width: 0; text-align: left; padding-left: 0; }

/* footer */
footer { border-top: 1px solid var(--hair); padding: 40px 0 56px; color: var(--ink-grey); font-size: .93rem; margin-top: 24px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
footer h2 { font-size: .95rem; color: var(--ink); margin-bottom: 10px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.sr { position: absolute; left: -9999px; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede { animation: rise 700ms var(--ease) both; }
  .hero .lede { animation-delay: 90ms; }
  @keyframes rise { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* indicator list */
.idx { margin: 0; } .idx > div { display: grid; gap: 2px 24px; padding: 11px 0; border-top: 1px solid var(--hair); }
@media (min-width: 760px) { .idx > div { grid-template-columns: minmax(200px, 0.8fr) 1.6fr; } }
.idx dt { font-weight: 600; } .idx dd { margin: 0; color: var(--ink-2); }
.rows.soon .v { font-weight: 500; }
.out .headline { margin-bottom: 14px; }
.phones { display: flex; gap: 16px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.phones .shot.phone { flex: 1 1 160px; max-width: 260px; }

/* click-to-enlarge lightbox (#313) */
.js-zoom .shot img { cursor: zoom-in; }
.js-zoom .shot img:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#lightbox[open] { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 0; border: none; background: transparent; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; }
#lightbox:not(:modal)[open] { background: rgb(1 6 14 / 55%); }
#lightbox::backdrop { background: rgb(1 6 14 / 55%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#lightbox img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; border-radius: 13px; cursor: default; }
html.zoom-open { overflow: hidden; }
.lightbox-cap { margin: 0; color: #c8d0de; font-size: .9rem; text-align: center; }
.lightbox-cap a { color: inherit; text-decoration: underline; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-strong); background: var(--glass); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--raise); }
.lightbox-close:focus-visible, .lightbox-cap a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgb(1 6 14 / 70%); }
