/* Tarmac Log brand tokens (dark theme) — source: AppColors in the app.
   Never hardcode colours below :root; always use these variables. */
:root {
  --bg: #08101A;
  --surface: #151C25;
  --surface-2: #252C35;
  --border: #313942;
  --text: #EDF2F9;
  --text-muted: #A3ACB8;
  --text-faint: #676F7A;
  --accent: #F2A618;
  --accent-ink: #190F03;
  --accent-hover: #F5B840;
  --link: #47C5D2;
  --danger: #FA6863;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 12px;

  color-scheme: dark;
}

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2');
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Nav ---------- */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  flex-wrap: wrap;
}

.nav-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links li { margin: 0; }
.nav-links a { color: var(--text-muted); font-size: 0.875rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ---------- Base content (legal / support pages) ---------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.5rem; letter-spacing: -0.02em; }

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 { font-size: 0.95rem; font-weight: 600; margin: 1.25rem 0 0.4rem; color: var(--text); }

p { color: var(--text-muted); margin-bottom: 1rem; }
ul, ol { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--text); font-weight: 600; }

.tagline { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2.5rem; max-width: 520px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.feature h3 { margin: 0 0 0.4rem; font-size: 1rem; border: none; padding: 0; }
.feature p { font-size: 0.9rem; margin: 0; }

.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.contact-box p { margin: 0; }

.steps { counter-reset: steps; list-style: none; padding: 0; margin: 1rem 0; }
.steps li {
  counter-increment: steps;
  padding: 0.85rem 0 0.85rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-box {
  background: var(--surface);
  border: 1px solid var(--danger);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.25rem 0;
}
.warning-box p { margin: 0; color: var(--text-muted); }

.effective-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
footer p { margin-bottom: 0.5rem; }
footer p:last-child { margin-bottom: 0; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }
.footer-legal { color: var(--text-muted); font-size: 0.75rem; }

/* ---------- Marketing layout ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4rem 0; border-top: 1px solid var(--border); }
.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
}
.section-lead { max-width: 640px; font-size: 1.05rem; margin-bottom: 2rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mono { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 1.75rem; }
.hero-note { font-size: 0.9rem; color: var(--text-muted); margin: 1rem 0 0; }
.hero-shot { justify-self: center; width: 100%; max-width: 300px; }
.hero-shot img {
  display: block;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* Store badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.badge-link { display: inline-flex; line-height: 0; border-radius: 8px; flex: none; }
.badge-link:hover { text-decoration: none; opacity: 0.9; }
.badge-apple { height: 48px; width: auto; }
/* The Google Play PNG has transparent padding built in; sized taller so the
   visible badge matches the Apple badge height. Negative margin trims the gap. */
.badge-google { height: 70px; width: auto; max-width: none; margin: -11px -11px; }

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.card p { margin: 0; font-size: 0.95rem; }
.card-mark {
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* Screenshot strip: scroll-snap row on mobile, grid on desktop */
.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 1rem;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}
.shots > li { flex: 0 0 72%; max-width: 260px; scroll-snap-align: start; margin: 0; }
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.shots figcaption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.45;
}
.shots figcaption strong { display: block; color: var(--text); }

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 820px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.plan-pro { border-color: var(--accent); background: var(--surface-2); }
.plan h3 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.plan-pro h3 { color: var(--accent); }
.plan-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--link);
}
.plan-pro li::before { background: var(--accent); }
.plans-note { margin-top: 1.25rem; font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; }

/* Closing CTA */
.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  margin: 0 0 4rem;
}
.cta img.cta-icon { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 1.25rem; display: block; }
.cta h2 { font-size: 1.75rem; margin: 0 0 0.5rem; padding: 0; border: none; }
.cta p { max-width: 520px; margin: 0 auto 1.5rem; }
.cta .badges { justify-content: center; }

/* Studio (root) page */
.studio { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.studio h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.studio-lead { font-size: 1.15rem; max-width: 600px; margin-bottom: 2.5rem; }
.app-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  max-width: 560px;
}
.app-card:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.app-card img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.app-card h2 { font-size: 1.25rem; margin: 0 0 0.25rem; padding: 0; border: none; }
.app-card p { margin: 0; font-size: 0.95rem; }
.app-card .app-card-link { display: inline-block; margin-top: 0.5rem; color: var(--link); font-size: 0.9rem; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.35fr 1fr; padding: 5rem 0; }
  .hero h1 { font-size: 3rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .shots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
    padding: 0;
  }
  .shots > li { max-width: none; }
}

@media (max-width: 600px) {
  nav { padding: 0.6rem 1rem; }
  .nav-links { gap: 0.25rem 1rem; }
  h1 { font-size: 1.75rem; }
  .hero h1, .studio h1 { font-size: 2rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .container { padding: 2rem 1rem 3rem; }
  .page { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .section h2, .cta h2 { font-size: 1.5rem; }
  .studio { padding: 2.5rem 1rem 3.5rem; }
  .hero-shot { max-width: 240px; }
  .app-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .features { grid-template-columns: 1fr; }
}
