/* PathWanderer's site. Colours come from Sources/Theme.swift: the forest Start
   screen, sand text, the cyan accent, and the serif the app uses for titles. */

:root {
  color-scheme: dark;
  --page: #0A120E;                 /* Theme.forestDeep */
  --page-top: #163024;             /* Theme.forestMid, top of the Start screen gradient */
  --card: #19201C;                 /* Theme.surface (white 6%) over the page */
  --seam: rgba(255, 255, 255, 0.10);   /* Theme.surfaceBorder */
  --ink: #E9DFC9;                  /* Theme.sand */
  --soft: #9AA79A;                 /* Theme.sandDim */
  --accent: #22B8F0;               /* Theme.accent */
  --accent-hover: #4CC6F3;
  --paved: #DCE8F0; --shared: #6A9A94; --unpaved: #8A8272; --unknown: #4A4A4A;
  --radius: 14px;                  /* Theme.cardRadius */
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --serif: ui-serif, "New York", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: linear-gradient(180deg, var(--page-top), var(--page) 640px) no-repeat, var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
p, dd { text-wrap: pretty; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Dark text on the cyan, as on the app's Start ride button. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: var(--page); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 150ms ease, transform 120ms ease; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 32px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.soon { font-weight: 600; color: var(--accent); }   /* coming soon is a status, not a button */

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 82%, transparent); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-bottom: 1px solid var(--seam); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav nav a { color: var(--soft); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
/* the Teriannet mark links back to teriannet.com, then a bar, then the app's own name */
.nav .parent img { display: block; width: 28px; height: 26px; }
.nav .sep { width: 1px; height: 20px; margin: 0 -12px; background: var(--soft); opacity: 0.5; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; text-align: center; }
.hero-icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 22px; }
.hero h1 { max-width: 16ch; margin: 0 auto; font-size: clamp(30px, 9vw, 60px); line-height: 1.06; }
.tagline { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 23px); color: var(--accent); }
.lead { max-width: 38em; margin: 18px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 28px; }
.meta { font-size: 14px; color: var(--soft); }
.note { margin-top: 16px; font-size: 13px; color: var(--soft); }

/* ---------- an iPhone: a real screenshot in a drawn frame ---------- */
.phone { width: min(100%, 300px); margin-inline: auto; padding: 8px; border-radius: 50px; background: #1C2420; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.phone img { border-radius: 42px; }
.hero .phone { margin-top: 48px; width: min(100%, 340px); }

/* ---------- feature rows ---------- */
.features { display: grid; gap: 24px; padding-bottom: 24px; }
.row { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding: 44px; background: var(--card); border-radius: var(--radius); }
.row.flip .row-text { order: 2; }
.row h2 { font-size: 30px; line-height: 1.15; }
.row p { margin-top: 12px; color: var(--soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 15px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; }

/* ---------- grouped list ---------- */
.more { padding: 56px 0 24px; }
.section-title { font-size: 30px; line-height: 1.15; margin-bottom: 20px; }
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: var(--radius); overflow: hidden; }
.list > div { padding: 20px 24px; background: var(--card); }
.list dt { font-weight: 600; }
.list dd { margin-top: 4px; color: var(--soft); font-size: 15px; }

/* ---------- get it ---------- */
.get { padding: 56px 0 24px; }
.panel { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px 36px; border-radius: var(--radius); background: linear-gradient(160deg, var(--page-top), var(--page) 80%); }
.panel img { border-radius: 16px; }
.panel h2 { font-size: 30px; line-height: 1.15; }
.panel p { margin-top: 6px; color: var(--soft); }
.reqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.reqs > div { padding: 16px 20px; background: var(--card); }
.reqs dt { font-size: 13px; color: var(--soft); }
.reqs dd { margin-top: 2px; font-weight: 500; }

/* ---------- questions ---------- */
.faq { padding: 56px 0 64px; }
.faq-list { display: grid; gap: 2px; border-radius: var(--radius); overflow: hidden; }
.faq details { background: var(--card); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(-45deg); transition: transform 180ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 24px 18px; max-width: 62ch; color: var(--soft); }

/* ---------- privacy policy (a plain reading page) ---------- */
.doc { max-width: 720px; padding: 56px 0 64px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; }
.doc .updated { margin-top: 8px; font-size: 14px; color: var(--soft); }
.doc .summary { margin-top: 28px; padding: 20px 24px; background: var(--card); border-radius: var(--radius); }
.doc h2 { margin-top: 40px; font-size: 24px; line-height: 1.2; }
.doc p, .doc li { margin-top: 12px; color: var(--soft); }
.doc .summary p { margin-top: 0; color: var(--ink); }
.doc ul { padding-left: 20px; list-style: disc; }
.doc strong { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 24px 0 40px; border-top: 1px solid var(--seam); font-size: 13px; color: var(--soft); }
.foot .brand { font-size: 15px; }
.foot a { color: var(--soft); }
.foot span:last-child { margin-left: auto; }
/* the link back to teriannet.com, with the Teriannet Group Inc. logo, sits at the right end of the footer */
.foot .made { margin-left: auto; color: var(--soft); }
.foot .parent { margin-left: 0; }
.foot .parent img { display: block; width: 83px; height: 26px; }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  .row, .row.flip { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .row.flip .row-text { order: 0; }
  .reqs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding: 40px 0 48px; }
  .hero-icon { width: 76px; height: 76px; border-radius: 18px; }
  .row, .row.flip { padding: 22px; }
  .row h2, .section-title, .panel h2 { font-size: 25px; }
  .phone { width: min(100%, 260px); border-radius: 44px; }
  .phone img { border-radius: 36px; }
  .list { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; padding: 28px 24px; }
  .foot span:last-child { margin-left: 0; }
  .foot .made { margin-left: 0; }
}
