/* Static marketing and help pages. Deliberately hand-written CSS with no build
   step: this content changes far more often than the app, and a page you can
   edit and upload beats one that needs a toolchain to change a sentence.
   The palette matches the app so the two do not look like different products. */

:root {
  --bg:      #0d0d0d;
  --surface: #161616;
  --border:  #2a2a2a;
  --text:    #d4d4d4;
  --heading: #ffffff;
  --dim:     #8a8a8a;
  --green:   #26a69a;
  --red:     #ef5350;
  --yellow:  #f0b90b;
  --accent:  #2196f3;
  --maxw:    780px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ── header ─────────────────────────────────────────────────────────── */
header.top {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(13,13,13,.92);
  backdrop-filter: blur(8px); z-index: 10;
}
header.top .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  height: 58px;
}
.brand { color: var(--heading); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
header.top nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; font-size: .93rem; }
header.top nav a { color: var(--dim); }
header.top nav a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .5rem 1rem; border-radius: 5px; font-size: .93rem; font-weight: 550;
}
.btn:hover { background: #1b82db; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
/* The plain door to the product: not a button, but not buried among the
   informational links either. */
.nav-app { color: var(--text) !important; font-weight: 550; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── content ────────────────────────────────────────────────────────── */
main { padding: 3rem 0 4rem; }
h1 { color: var(--heading); font-size: 2.1rem; line-height: 1.2; letter-spacing: -.02em; margin-bottom: .85rem; }
h2 { color: var(--heading); font-size: 1.3rem; margin: 2.5rem 0 .75rem; letter-spacing: -.01em; }
h3 { color: var(--heading); font-size: 1.02rem; margin: 1.75rem 0 .4rem; }
p  { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.35rem; }
li { margin-bottom: .4rem; }
.lead { font-size: 1.15rem; color: var(--text); margin-bottom: 1.5rem; }
.dim { color: var(--dim); }
small, .small { font-size: .88rem; color: var(--dim); }
code { background: var(--surface); padding: .1rem .35rem; border-radius: 3px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* The hero holds the image and, on a wide screen, the live iframe that
   replaces it. The aspect ratio is reserved by the image's width/height
   attributes, so swapping in the frame moves nothing on the page. */
.hero { position: relative; margin: 1.75rem 0 2rem; }
.hero-img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: 8px;
}
.hero-cap { margin: .5rem 0 0; }
.hero-live {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 1px solid var(--border); border-radius: 8px;
  opacity: 0; transition: opacity .25s ease;
}
/* Set only once the frame reports a successful load: a broken embed leaves
   the image showing rather than a black rectangle. */
.hero.is-live .hero-live { opacity: 1; }
.hero.is-live .hero-img  { visibility: hidden; }

.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.75rem 0; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: .85rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .85rem; margin: 1.5rem 0; }

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); }
th { color: var(--heading); font-weight: 600; }

/* A seven-column table does not fit a phone. It scrolls inside its own box so
   the page body never scrolls sideways — a horizontally scrolling document is
   the single most annoying thing a site can do on a touch screen. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x table { min-width: 34rem; margin-bottom: .5rem; }
.scroll-x td, .scroll-x th { white-space: nowrap; }

.pill {
  display: inline-block; font-size: .78rem; padding: .12rem .5rem;
  border-radius: 999px; border: 1px solid var(--border); color: var(--dim);
  margin: 0 .3rem .35rem 0;
}
.pill.up   { color: var(--green);  border-color: rgba(38,166,154,.4); }
.pill.down { color: var(--red);    border-color: rgba(239,83,80,.4); }
.pill.pend { color: var(--yellow); border-color: rgba(240,185,11,.4); }

.note {
  border-left: 2px solid var(--border); padding-left: 1rem;
  color: var(--dim); font-size: .95rem; margin: 1.5rem 0;
}

details {
  border-bottom: 1px solid var(--border); padding: .9rem 0;
}
details summary {
  cursor: pointer; color: var(--heading); font-weight: 550; list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; color: var(--dim); }
details[open] summary::before { content: "− "; }
details > *:not(summary) { margin-top: .7rem; }

/* ── footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 2rem 0 3rem;
  font-size: .9rem; color: var(--dim);
}
footer .links { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1rem; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

/* Nav links must never wrap: the bar has a fixed height, so a link breaking
   over two lines pushes the button out of it. */
header.top nav a { white-space: nowrap; }

@media (max-width: 700px) {
  h1 { font-size: 1.65rem; }
  header.top nav { gap: .9rem; font-size: .88rem; }
  /* At this width three links plus a button do not fit. Everything dropped
     here is reachable from the footer of every page; what stays is the one
     thing a visitor came to do. */
  header.top nav a.hide-sm { display: none; }
  header.top nav a[href="/how-it-works"] { display: none; }
  /* What survives on a phone: the way into the product, and the way to buy
     it. Sign-in is one tap further, from the app's own screen. */
  .btn { padding: .45rem .8rem; }
}
