/* App Commander — site styles. One file for all pages. Light/dark follow the visitor's system. */

:root {
  --bg: #F4F5F6;
  --surface: #FFFFFF;
  --surface-2: #E3E6E8;          /* the app's "silver" */
  --text: #1C1D1F;
  --text-2: #5D6268;
  --line: #D5D9DD;
  --accent: #23A866;             /* green: the "tapped" tile */
  --accent-ink: #FFFFFF;
  --charcoal: #4A4A4A;
  --pewter: #6E8191;
  --radius: 22px;
  --max: 1080px;
  --rim: #141517;                /* phone edge around screenshots */
  --link: #0A66D8;               /* links: traditional blue */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1F21;
    --surface: #2A2B2E;
    --surface-2: #36383B;
    --text: #F2F3F4;
    --text-2: #A8ADB3;
    --line: #3D4044;
    --accent: #2FBF71;
    --rim: #55595F;
    --link: #5AA7FF;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1F21;
  --surface: #2A2B2E;
  --surface-2: #36383B;
  --text: #F2F3F4;
  --text-2: #A8ADB3;
  --line: #3D4044;
  --accent: #2FBF71;
  --rim: #55595F;
  --link: #5AA7FF;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header / footer ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 48px; color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-2); }
.site-footer .copy { margin-left: auto; }

/* ---------- Buttons ---------- */

.store-button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 12px 22px; border-radius: 12px; font-weight: 600;
}
.store-button:hover { text-decoration: none; opacity: 0.9; }
.store-button svg { width: 22px; height: 22px; fill: currentColor; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.02em; margin: 0 0 10px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 20px; color: var(--text-2); margin: 0 0 28px; max-width: 32em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { color: var(--text-2); font-size: 14px; margin-top: 14px; }

/* Hero image: iPad and iPhone, transparent background. */
.hero-shot { width: 100%; max-width: 560px; height: auto; margin-left: auto; }

/* A device drawn in CSS (no longer used on the home page). */
.device {
  aspect-ratio: 3 / 4;
  max-width: 440px; width: 100%; margin-left: auto;
  background: var(--charcoal);
  border: 10px solid #111;
  border-radius: 42px;
  padding: 26px 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
}
.device .title { color: #fff; font-weight: 700; text-align: center; font-size: 20px; margin-bottom: 18px; }
.device .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.device .tile { aspect-ratio: 1; border-radius: 23%; background: #7d8790; }
.device .tile.c1 { background: #3D8BFD; } .device .tile.c2 { background: #34C759; }
.device .tile.c3 { background: #FF9F0A; } .device .tile.c4 { background: #AF52DE; }
.device .tile.c5 { background: #FF375F; } .device .tile.c6 { background: #5AC8FA; }
.device .tile.c7 { background: #FFD60A; } .device .tile.c8 { background: #64D2FF; }
.device .tile.tap { position: relative; background: var(--accent); }
.device .tile.tap::after {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 0 0 7px rgba(255,255,255,0.25);
}
.device .dots { margin-top: auto; display: flex; gap: 8px; justify-content: center; }
.device .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.device .dots i:first-child { background: #fff; }

/* ---------- Sections ---------- */

section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
section .sub { color: var(--text-2); margin: 0 0 32px; max-width: 40em; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 14px 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--text-2); }
.icon-chip {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.icon-chip svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; max-width: 760px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 66px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.steps li strong { display: block; margin-bottom: 2px; }
.steps li span { color: var(--text-2); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shot { margin: 0; text-align: center; }
/* A slim dark rim, like a phone's edge, so light screenshots don't melt into the page. */
.shot img {
  width: 100%; height: auto; display: block;
  border: 6px solid var(--rim); border-radius: 34px; box-sizing: border-box;
  box-shadow: 0 14px 30px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.10);
  background: var(--rim);
}
.shot figcaption { margin-top: 12px; font-size: 15px; color: var(--text-2); }

.faq { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--text-2); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

.closing { text-align: center; }
.closing .sub { margin-left: auto; margin-right: auto; }

/* ---------- Document pages (privacy, support, setup) ---------- */

.doc { max-width: 760px; padding-top: 48px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; letter-spacing: -0.02em; }
.doc .meta { color: var(--text-2); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.doc .callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.doc .figure { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 14px; padding: 28px; text-align: center; color: var(--text-2); font-size: 14px; margin: 14px 0 22px; }
.doc code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .device { margin: 0 auto; max-width: 340px; }
  .hero-shot { margin: 0 auto; max-width: 440px; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .site-footer .copy { margin-left: 0; }
}

/* The app's gear button, drawn inline in instructions ("⚙︎ → Shortcut Setup"). */
.gear { width: 1.1em; height: 1.1em; vertical-align: -0.18em; margin-right: 0.08em; }
