/* ============================================================
   Thespio theme — shared by every Thespio site and web app.
   thespio.com · tools.thespio.com · demomode.thespio.com · show.thespio.com
   (and, as they adopt it, do.thespio.com and future apps).

   LIGHT BY DEFAULT, DARK AS AN OPTION (agreed 30 Oct 2026).
   Pages open light whatever the visitor's system is set to. The sun/moon
   button in the header switches theme; thespio.js remembers the choice in
   that browser (localStorage, no cookies) and sets <html data-theme>.

   Brand: Outfit; "Thesp" near-black (light) / near-white (dark), "io" amber.
   Accent amber #C97D10 (light) / #EF9F27 (dark). The mark is the play
   triangle with three dots (geometry in brand/brand-guidelines.html).
   ============================================================ */

:root {
  --amber: #C97D10;
  --amber-hover: #A8630A;
  --amber-dim: rgba(201,125,16,.10);
  --amber-line: rgba(201,125,16,.35);
  --on-amber: #0d0e12;

  --bg: #f7f7f9;
  --bg2: #ffffff;
  --bg3: #f0f1f4;
  --border: #e2e3e8;
  --border2: #d3d5dc;
  --text: #16171c;
  --muted: #5f636e;
  --faint: #8a8e99;

  --success: #1f9d5e;
  --info: #3b7fd4;
  --danger: #c93b3b;
  --warn: #b7791f;

  --dot: #818691;
  --shadow: 0 1px 2px rgba(16,17,22,.04), 0 8px 28px rgba(16,17,22,.06);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --amber: #EF9F27;
  --amber-hover: #F5B04A;
  --amber-dim: rgba(239,159,39,.12);
  --amber-line: rgba(239,159,39,.40);
  --on-amber: #0d0e12;

  --bg: #0f1014;
  --bg2: #17181e;
  --bg3: #1f2028;
  --border: #2a2c35;
  --border2: #383a45;
  --text: #ecedf1;
  --muted: #a3a7b3;
  --faint: #7c808c;

  --success: #3ccb85;
  --info: #6aa3ef;
  --danger: #ef6b6b;
  --warn: #e7b04f;

  --dot: #9095a1;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* Older page names for the same colours (privacy, PITCH support, unsubscribe). */
:root { --text2: var(--muted); --text3: var(--faint); --accent: var(--amber); --green: var(--success); }
.btn-primary { display:inline-flex; align-items:center; justify-content:center; background:var(--amber); color:var(--on-amber);
  padding:12px 22px; border-radius:12px; border:0; font:500 16px/1.2 var(--font); cursor:pointer; }
.btn-primary:hover { background:var(--amber-hover); }
.doc .card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px 22px; }
.doc .kicker { color:var(--amber); font-size:12.5px; font-weight:600; letter-spacing:1.2px; text-transform:uppercase; }

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.th-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .th-wrap { padding: 0 16px; } }

/* ── Header ───────────────────────────────────────────── */
.th-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.th-header.scrolled { border-bottom-color: var(--border); }
.th-header .th-wrap { display: flex; align-items: center; gap: 14px; height: 64px; }

.th-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -.6px;
  white-space: nowrap;
}
.th-brand:hover { text-decoration: none; }
.th-brand svg { width: 26px; height: 26px; flex: none; }
.th-brand .io { color: var(--amber); }
.th-brand .th-sub { color: var(--muted); font-weight: 400; }

.th-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.th-nav a { color: var(--muted); }
.th-nav a:hover, .th-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 560px) {
  .th-nav { gap: 14px; font-size: 14px; }
  .th-nav .th-hide-sm { display: none; }
  .th-brand { font-size: 18px; }
}

.th-theme {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg2); color: var(--muted);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
  transition: color .15s, border-color .15s;
}
.th-theme:hover { color: var(--text); border-color: var(--border2); }
.th-theme svg { width: 18px; height: 18px; }
.th-theme .moon { display: block; }
.th-theme .sun { display: none; }
:root[data-theme="dark"] .th-theme .moon { display: none; }
:root[data-theme="dark"] .th-theme .sun { display: block; }

/* ── Type ─────────────────────────────────────────────── */
.th-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--amber);
}
.th-h1 {
  font-size: clamp(38px, 6.4vw, 66px); line-height: 1.03; letter-spacing: -2.2px;
  font-weight: 600; margin: 14px 0 18px;
}
.th-h1 em { font-style: normal; color: var(--amber); }
.th-lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 620px; margin: 0 0 30px; line-height: 1.55; }
.th-h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -1px; font-weight: 600; margin: 0 0 8px; line-height: 1.15; }
.th-sub-h { color: var(--muted); margin: 0 0 28px; max-width: 640px; font-size: 17px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.3px; margin: 0 0 6px; }

.th-section { padding: 76px 0 0; }
@media (max-width: 640px) { .th-section { padding-top: 56px; } }

/* ── Buttons ──────────────────────────────────────────── */
.th-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--amber); color: var(--on-amber);
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 500 16px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.th-btn:hover { background: var(--amber-hover); text-decoration: none; }
.th-btn.ghost { background: transparent; border-color: var(--border2); color: var(--text); }
.th-btn.ghost:hover { border-color: var(--amber); color: var(--amber); }
.th-btn.small { padding: 8px 14px; font-size: 14.5px; border-radius: 10px; }
.th-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.th-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* App Store badge (drawn, so it follows the theme) */
.th-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 9px 18px 9px 14px; border-radius: 12px; line-height: 1.1;
}
.th-store:hover { text-decoration: none; opacity: .9; }
.th-store svg { width: 22px; height: 22px; fill: currentColor; }
.th-store small { display: block; font-size: 11px; opacity: .8; }
.th-store b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.2px; }

/* ── Cards ────────────────────────────────────────────── */
.th-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.th-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.th-card:hover { text-decoration: none; border-color: var(--amber-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.th-card p { margin: 0; color: var(--muted); font-size: 15px; }
.th-card .th-more { margin-top: auto; padding-top: 12px; color: var(--amber); font-size: 14.5px; font-weight: 500; }
.th-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber-dim); color: var(--amber); margin-bottom: 8px; flex: none;
}
.th-icon svg { width: 22px; height: 22px; }

.th-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase;
  color: var(--amber); border: 1px solid var(--amber-line); border-radius: 99px; padding: 2px 9px;
}
.th-tag.quiet { color: var(--muted); border-color: var(--border2); }

/* ── Notes / panels ───────────────────────────────────── */
.th-panel {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.th-try {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--amber);
  border-radius: var(--radius-lg); padding: 20px 22px; margin: 56px 0 0;
}
.th-try p { margin: 0; color: var(--muted); }
.th-try b { color: var(--text); font-weight: 600; }

/* ── Forms ────────────────────────────────────────────── */
.th-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border2); background: var(--bg2); color: var(--text);
  font: 400 16px/1.3 var(--font);
}
.th-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }

/* ── Footer ───────────────────────────────────────────── */
.th-footer { margin-top: 88px; border-top: 1px solid var(--border); }
.th-footer .th-wrap {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  padding-top: 28px; padding-bottom: 48px; font-size: 14px; color: var(--muted);
}
.th-footer a { color: var(--muted); }
.th-footer a:hover { color: var(--text); text-decoration: none; }
.th-footer .th-copy { margin-right: auto; }

/* ── Prose (legal/support pages) ──────────────────────── */
.th-prose { max-width: 720px; }
.th-prose h1 { font-size: clamp(30px, 4.4vw, 40px); letter-spacing: -1.2px; line-height: 1.1; margin: 48px 0 6px; }
.th-prose h2 { font-size: 21px; letter-spacing: -.4px; margin: 34px 0 8px; }
.th-prose p, .th-prose li { color: var(--muted); }
.th-prose strong, .th-prose b { color: var(--text); font-weight: 600; }
.th-prose .updated { color: var(--faint); font-size: 14px; margin: 0 0 24px; }
