/* Loaded only by the standalone iOS pages, never by the portfolio or map. */
@font-face {
  font-family: 'Source Sans 3 Variable';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
}

.ios-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3 Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.ios-page *, .ios-page *::before, .ios-page *::after { box-sizing: border-box; }
.ios-page :is(h1, h2, h3, h4, p, ul, ol) { margin: 0; }
.ios-page :is(h1, h2, h3, h4, strong) { color: var(--ink); }
.ios-page p, .ios-page li { color: var(--muted-strong); }
.ios-page a { color: var(--accent); text-underline-offset: 0.2em; }
.ios-page a:hover { color: var(--accent-hover); }
.ios-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ios-page ::selection { background: var(--accent); color: var(--accent-contrast); }
.ios-page svg { display: block; }

.ios-page .ios-skip {
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--paper);
}
.ios-page .ios-skip:focus { transform: none; }
.ios-page .ios-header { background: var(--canvas); border-bottom: 1px solid var(--line-soft); }
.ios-page .ios-header-inner {
  max-width: 80rem;
  min-height: 5rem;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.ios-page .ios-header a { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.ios-page .ios-home { color: var(--ink); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.ios-page .ios-home::before { content: ''; width: 0.75rem; height: 0.75rem; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.ios-page .ios-back { color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }

.ios-page.app-product #app-main { max-width: 64rem; margin: auto; padding: 0 1.5rem 4rem; }
.ios-page.app-product :is(.hero, #app-main > header) { padding: 5rem 0 3.5rem; }
.ios-page h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 620; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; max-width: 24ch; }
.ios-page .ios-kicker, .ios-page .eyebrow { display: block; margin-bottom: 1rem; color: var(--accent); font-size: 0.9375rem; font-weight: 600; }
.ios-page :is(.subtitle, .tagline) { margin-top: 1.5rem; max-width: 42rem; font-size: 1.25rem; line-height: 1.6; }
.ios-page :is(.no-sub, .price) { display: block; margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }
.ios-page .hero > br { display: none; }
.ios-page :is(.app-store-badge, .cta) { display: inline-flex; align-items: center; max-width: 100%; margin-top: 1.75rem; }
.ios-page .app-store-badge img { display: block; height: 3.25rem; max-width: 100%; }
.ios-page .cta, .ios-page .app-store-badge:not(:has(img)) {
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}
.ios-page .cta:hover, .ios-page .app-store-badge:not(:has(img)):hover { background: var(--accent-hover); }

.ios-page h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 620; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.ios-page :is(h3, h4) { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.ios-page #app-main > section:not(.hero), .ios-page.app-product .container > section { margin-top: 3.5rem; }
.ios-page #app-main > .features, .ios-page.app-product .container > section:first-child { margin-top: 0; }
.ios-page .feature-grid, .ios-page .container .features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; margin-top: 1.75rem; }
.ios-page :is(.feature-card, .feature) { min-width: 0; border-top: 1px solid var(--line); padding: 1.75rem 0; }
.ios-page .feature-card .icon { width: 1.5rem; height: 1.5rem; margin-bottom: 1rem; color: var(--accent); }
.ios-page .icon svg { width: 100%; height: 100%; }
.ios-page :is(.feature-card, .feature) p { margin-top: 0.65rem; }
.ios-page :is(.how-it-works, .symptoms, .pdf-spotlight, .support, .privacy-strip) { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.ios-page .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.ios-page .step { min-width: 0; }
.ios-page .step .num { color: var(--accent); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.75rem; }
.ios-page :is(.support, .privacy-strip) h2, .ios-page .privacy-strip h3 { margin-bottom: 1rem; }
.ios-page :is(.support, .privacy-strip) p + p { margin-top: 0.5rem; }
.ios-page :is(.links, nav) { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.ios-page .links { margin-top: 1.25rem; }
.ios-page .tag-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.ios-page .tag { border: 1px solid var(--line); border-radius: 0.375rem; padding: 0.25rem 0.75rem; color: var(--muted-strong); font-size: 0.9375rem; }
.ios-page .wedge { max-width: 44rem; padding-bottom: 2.5rem; }
.ios-page .pdf-spotlight > p { max-width: 44rem; margin-top: 1.25rem; }
.ios-page .pdf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin-top: 2rem; }
.ios-page .pdf-card { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.ios-page .pdf-card p { margin-top: 0.5rem; font-size: 1rem; }
.ios-page.app-product .container > section > p, .ios-page.app-product .container > section > ul { margin-top: 1rem; }
.ios-page ul, .ios-page ol { padding-left: 1.5rem; }
.ios-page li + li { margin-top: 0.5rem; }
.ios-page :is(.requirements, .disclaimer, .contact-card) { border-left: 2px solid var(--line); padding: 0.25rem 0 0.25rem 1.25rem; margin-top: 2.5rem; }
.ios-page :is(.requirements, .disclaimer, .more-apps) { color: var(--muted); font-size: 1rem; }
.ios-page footer { border-top: 1px solid var(--line); padding: 2rem 1.5rem; font-size: 0.9375rem; color: var(--muted); }
.ios-page > footer { background: var(--canvas); text-align: center; }
.ios-page footer a { display: inline-block; margin: 0.25rem 0.5rem; }

.ios-page.app-legal .container { width: min(100% - 3rem, 48rem); margin: auto; padding: 4rem 0; overflow-wrap: anywhere; }
.ios-page.app-legal h1 { margin-bottom: 1.25rem; font-size: clamp(2.25rem, 5vw, 3rem); }
.ios-page.app-legal h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.ios-page.app-legal h3 { margin: 1.75rem 0 0.5rem; }
.ios-page.app-legal p + p, .ios-page.app-legal ul + p, .ios-page.app-legal p + ul { margin-top: 1rem; }
.ios-page.app-legal :is(.subtitle, .updated, .muted, .sub, .meta, .app-name) { font-size: 1rem; color: var(--muted); }
.ios-page.app-legal :is(nav, .links, .back) { margin-bottom: 2rem; }
.ios-page.app-legal .back { display: inline-block; }
.ios-page.app-legal .card { border-top: 1px solid var(--line); padding: 1rem 0; margin-top: 1.5rem; }
.ios-page.app-legal .card > :is(h2, h3):first-child { margin-top: 0; }
.ios-page.app-legal footer { padding-inline: 0; margin-top: 3rem; }
.ios-page code { background: var(--canvas); padding: 0.1rem 0.3rem; border-radius: 0.25rem; }

@media (max-width: 640px) {
  .ios-page .ios-header-inner { padding-inline: 1.5rem; gap: 1rem; }
  .ios-page .ios-home { max-width: 10rem; }
  .ios-page.app-product :is(.hero, #app-main > header) { padding: 3.5rem 0; }
  .ios-page :is(.feature-grid, .container .features, .pdf-cards) { grid-template-columns: minmax(0, 1fr); }
  .ios-page .steps { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .ios-page .step { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 1rem; }
  .ios-page .step .num { margin: 0; }
}
