/* tripdesk.link (step 36d, made plainer in 36g G5): the app's own look. Black, white and the system greys, our blue only for
   links and the offer, the system font, 20px corners, one phone frame drawn here in CSS, one dark band, no gradient.
   No script, no font file, no image link: the CSP allows only this file and /img. */
:root {
  color-scheme: light dark;
  --bg: #fff; --fg: #1d1d1f; --muted: #6e6e73; --line: #e5e5ea; --accent: #1F2B8F; --on-accent: #fff; --radius: 20px;
  --tint: #f5f5f7; --panel: #f5f5f7; --card: #fff; --band: #1d1d1f; --on-band: #f5f5f7; --band-link: #c9cfff; --frame: #1d1d1f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --fg: #f5f5f7; --muted: #98989d; --line: #2c2c2e; --accent: #9AA6FF; --on-accent: #0b0e2b;
    --tint: #1c1c1e; --panel: #1c1c1e; --card: #1c1c1e; --band: #1c1c1e; --on-band: #f5f5f7; --band-link: #c9cfff; --frame: #3a3a3c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* the founding offer (DEC-032): one quiet bar above the header */
.offer { margin: 0; padding: 10px 24px; background: var(--accent); color: var(--on-accent); font-size: 15px; line-height: 1.45; text-align: center; }
.offer a { color: inherit; font-weight: 600; white-space: nowrap; }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 20px 24px 8px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); font-weight: 650; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.site-head ul { display: flex; flex-wrap: wrap; gap: 0 8px; }
.site-head a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: 15px; text-decoration: none; }
.site-head a:hover { color: var(--accent); }

/* type */
h1 { margin: 0 0 20px; font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
h2 { margin: 0 0 0.5em; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0.8em 0; }
.lead { font-size: 1.2rem; line-height: 1.5; }
.note { color: var(--muted); font-size: 0.9rem; }
.text > * { max-width: 65ch; }
.text > table { max-width: none; }
.text ul { list-style: disc; padding-left: 1.3em; }
.text li { margin: 0.5em 0; }

/* hero (G5): the words on the page itself, left-aligned; on the home page the app beside them */
.hero { padding: 56px 0 24px; }
.hero .intro { max-width: 680px; }
.hero .intro > :first-child { margin-top: 0; }
.hero .lead { color: var(--muted); }
.hero .with-art { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 64px; }
.hero .panel { padding: 0; background: none; }

/* sections: roomy, ~80px between rows */
.plain, .band { padding: 40px 0; }
.row { padding: 40px 0; }
.row .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.row .text > * { max-width: 52ch; }
.row.flip .text { order: 2; }
.panel { display: flex; justify-content: center; padding: 48px 24px; border-radius: 32px; background: var(--tint); }
.phone { margin: 0; width: 100%; max-width: 270px; border: 10px solid var(--frame); border-radius: 44px; background: var(--frame); overflow: hidden; }
.phone img { width: 100%; border-radius: 34px; }

/* the one chapter band */
.band { margin: 40px 0; background: var(--band); color: var(--on-band); }
.band { padding: 80px 0; }
.band a { color: var(--band-link); }
.band h2 { font-size: clamp(1.8rem, 4.4vw, 2.75rem); }
.band .text > * { max-width: 56ch; }

/* buttons: the badge, and blue pills */
.badge { margin: 24px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.badge img { height: 48px; width: auto; }
.badge a { display: inline-block; }
.badge a.pill, .pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.pill:hover { filter: brightness(1.12); }
.pill:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 600; }
tbody th { font-weight: 600; }

/* footer: columns of links and the badge */
.site-foot { margin-top: 64px; padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-title { margin: 0 0 8px; font-weight: 650; font-size: 15px; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--muted); font-size: 15px; text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot .badge { margin-top: 32px; }
.site-foot .badge a { min-height: 0; }

@media (max-width: 820px) {
  .row .wrap { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .text { order: 0; }
  .hero { padding-top: 32px; }
  .hero .with-art { grid-template-columns: 1fr; gap: 32px; }
  .band { padding: 56px 0; }
  .wrap, .site-head { padding-left: 16px; padding-right: 16px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  th, td { padding: 4px 0; border: 0; }
  tbody th { font-size: 1.05rem; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.8rem; }
}

/* gentle motion, only for people who allow it */
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: rise 0.7s ease-out both; }
  .pill { transition: filter 0.15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
