/* TeeTrip website: one stylesheet for every page. Colours match the app. */
:root {
  --bg: #0e1110;
  --bg-raised: #161a18;
  --bg-card: #1b201d;
  --line: #2a312d;
  --text: #eef2ef;
  --text-soft: #a8b3ad;
  --text-faint: #75817a;
  --green: #2fbf5b;
  --green-bright: #00ff41;
  --green-ink: #06210f;
  --gold: #d9a93f;
  --danger: #ff6b6b;
  --radius: 14px;
  --max: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-bright); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(14, 17, 16, 0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--text-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-soft); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); }
h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 18px 0 16px; }
.lead { color: var(--text-soft); font-size: 19px; max-width: 34em; margin: 0 0 28px; }
.hero-icon { justify-self: center; width: min(320px, 70vw); aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); }
.hero-icon img { width: 100%; height: 100%; transform: scale(1.02); }

/* Waitlist form and buttons */
.signup { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.signup input { flex: 1 1 220px; min-width: 0; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--text); padding: 0 14px; font-size: 16px; }
.signup input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; border: 0; background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-bright); color: var(--green-ink); }
.btn:disabled { opacity: 0.7; cursor: default; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: var(--green); color: var(--text); }
.form-note { font-size: 14px; color: var(--text-faint); margin: 10px 0 0; min-height: 1.5em; }
.form-note.ok { color: var(--green); }
.form-note.err { color: var(--danger); }

/* Sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(47, 191, 91, 0.12); display: grid; place-items: center; color: var(--green); }
.icon svg { width: 22px; height: 22px; }

.pro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.pro ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pro li { display: flex; gap: 12px; color: var(--text-soft); }
.pro li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--gold); }
.pro li strong { color: var(--text); font-weight: 600; }

/* Text pages (privacy, terms, support) */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(32px, 4.6vw, 44px); margin: 0 0 8px; }
.updated { color: var(--text-faint); font-size: 15px; margin: 0 0 32px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; }
.page h3 { font-size: 18px; margin: 24px 0 8px; }
.page p, .page li { color: var(--text-soft); }
.page strong { color: var(--text); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.summary { background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.summary p { margin: 6px 0; }
.toc { columns: 2; column-gap: 32px; padding-left: 20px; font-size: 15.5px; }
.contact-box { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.contact-box .big { font-size: 22px; font-weight: 700; color: var(--text); word-break: break-all; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--line); color: var(--green); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
table.providers { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
table.providers th, table.providers td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.providers th { color: var(--text); font-weight: 600; white-space: nowrap; }
table.providers td { color: var(--text-soft); }
.table-scroll { overflow-x: auto; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--text-faint); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; }

/* Join page */
.join-card { max-width: 480px; margin: 0 auto; text-align: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; }
.join-card img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 16px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 30px; letter-spacing: 0.18em; font-weight: 700; color: var(--text); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 16px; display: inline-block; margin: 8px 0 20px; }
.join-card .btn { width: 100%; margin-top: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { padding: 40px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-icon { order: -1; width: 150px; justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .pro { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .nav { gap: 14px; font-size: 14px; }
}

@media (max-width: 640px) {
  table.providers thead { display: none; }
  table.providers tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.providers th, table.providers td { display: block; border: 0; padding: 2px 0; white-space: normal; }
  table.providers th { font-size: 16px; margin-bottom: 2px; }
  table.providers td:nth-of-type(1)::before { content: "What it does: "; color: var(--text-faint); }
  table.providers td:nth-of-type(2)::before { content: "What it receives: "; color: var(--text-faint); }
}

@media (max-width: 420px) {
  .nav a.hide-sm { display: none; }
}
