/* Shared look for the app pages under shawnbierman.com: the home page's slate,
   serif headings and muted ink, with each app's own accent set in --accent. */
:root {
  --bg: #26303C; --panel: #2E3947; --line: #45515F;
  --ink: #E4E7E2; --muted: #B9C0C4; --chip: #33404E;
  --accent: #B9C0C4; --accent-ink: #1B232C;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 18px/1.65 var(--sans);
  padding-inline: 20px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--muted); outline-offset: 4px; border-radius: 4px; }

.page { max-width: 1080px; margin-inline: auto; padding-block: 28px 40px; display: grid; gap: 80px; }
.narrow { max-width: 760px; gap: 40px; }

.back { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 600; }
.back:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: 22px; color: var(--muted); }

.chip {
  display: inline-block;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }

/* App page hero and feature rows */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 18px; justify-items: start; }
.hero-icon { width: 112px; height: 112px; border-radius: 22.5%; box-shadow: 0 16px 22px rgba(0, 0, 0, .35); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.shots { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
/* Captures sit in Apple's bezels; the shadow follows the device outline. */
.shot-phone, .shot-watch { height: auto; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .45)); }
.shot-phone { width: min(100%, 280px); }
.shot-watch { width: min(100%, 190px); }

/* Full-screen sections: each one fills the window, content centered, gentle snap. */
html:has(.panel) { scroll-snap-type: y proximity; }
.panel {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: 72px;
  margin-inline: -20px;
  padding-inline: 20px;
  scroll-snap-align: start;
  position: relative;
}
.panel.alt { background: var(--panel); }
.panel > .inner { max-width: 1080px; width: 100%; margin-inline: auto; display: grid; gap: 48px; }
.panel .top { position: absolute; top: 28px; left: max(20px, calc((100% - 1080px) / 2)); }
/* Scroll cue: a chevron at the bottom of the first screen that says there's more below. */
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  transition: opacity .4s ease;
}
.scroll-cue svg { width: 28px; height: 28px; animation: cue-bob 2.4s ease-in-out infinite; }
.scroll-cue:hover { color: var(--ink); }
.scroll-cue.gone { opacity: 0; pointer-events: none; }
@keyframes cue-bob { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

.panel-head { display: grid; gap: 12px; text-align: center; justify-items: center; }
.panel-head p { color: var(--muted); max-width: 34em; font-size: 20px; }

/* Feature pills under a heading: short, scannable facts with a small icon each. */
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.panel-head .facts { justify-content: center; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--chip); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Apple's App Store badge: unmodified, 52 px tall, clear space a quarter of its height. */
.download-badge { display: inline-block; margin: 13px 0; }
.download-badge img { height: 52px; width: auto; display: block; }

.row { display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.row figure { margin: 0; display: grid; gap: 14px; justify-items: center; flex: 0 1 auto; min-width: 0; }
.row figcaption { color: var(--muted); font-size: 16px; font-weight: 600; text-align: center; }
.row .shot-watch { width: min(100%, 220px); }
.row .shot-phone { width: min(100%, 250px); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text { display: grid; gap: 14px; max-width: 30em; }
.feature-text p { color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.35em + 5px);
  width: 8px; height: 5px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink);
  transform: rotate(-45deg);
}

/* Text pages: privacy and support */
.doc { display: grid; gap: 28px; }
.doc section { display: grid; gap: 10px; border-top: 1.5px solid var(--line); padding-top: 22px; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .updated { color: var(--muted); font-size: 16px; }
.email { font-weight: 700; font-size: 22px; user-select: all; }
.faq details { border-top: 1.5px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; }
.faq details p, .faq details ol { margin-top: 10px; color: var(--muted); }

.site-footer {
  border-top: 1.5px solid var(--line);
  padding-top: 18px;
  display: grid; gap: 6px; justify-items: center; text-align: center;
  color: var(--muted); font-size: 15px;
}
.site-footer p { margin: 0; }
.site-footer .legal { font-size: 13px; max-width: 46em; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .page { gap: 64px; }
  .hero, .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .shot-phone { width: min(60%, 260px); }
  .shot-watch { width: min(38%, 170px); }
  .panel { padding-block: 88px 56px; }
  /* Rows of devices become a sideways swipe on phones. */
  .row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -20px; padding-inline: 20px; }
  .row figure { flex: 0 0 auto; scroll-snap-align: center; }
  .row .shot-watch { width: 56vw; max-width: 220px; }
  .row .shot-phone { width: 62vw; max-width: 250px; }
}

/* Comparison table: StepWatcher's column tinted with the accent; scrolls sideways on phones. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare-wrap { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; }
.compare { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.45; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 700 17px/1.25 var(--serif); color: var(--ink); border-bottom-width: 2px; vertical-align: bottom; }
.compare tbody th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare .us { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); font-weight: 700; }
.compare thead .us { color: var(--accent); border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child .us { border-radius: 0 0 12px 12px; }
.compare-note { color: var(--muted); font-size: 14px; max-width: 60em; justify-self: center; text-align: center; }
.compare-note a { color: var(--muted); }

/* Top menu: pinned, translucent, with the section in view marked. */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(20px, calc((100% - 1080px) / 2)) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topnav .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--serif); }
.topnav .brand img { width: 28px; height: 28px; border-radius: 22.5%; }
.topnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.topnav ul a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.topnav ul a:hover { color: var(--ink); }
.topnav ul a[aria-current="true"] { color: var(--ink); background: var(--chip); }
/* Sections fill the window below the menu, and links land below it. */
html:has(.topnav) { scroll-padding-top: 56px; }
body:has(.topnav) main { padding-top: 56px; }
body:has(.topnav) .panel { min-height: calc(100svh - 56px); }
@media (max-width: 560px) {
  .topnav .brand span, .topnav .wide { display: none; }
  .topnav ul a { padding: 6px 9px; font-size: 14px; }
}
