/*
  The iOS app page (/ios/, _shared/source/templates/default/ios.jinja).

  Ported on 2026-09-24 from the prototype at ~/Documents/ChatGPT/AccelaStudy.com
  Redesign/exports/accelastudy-ios-showcase (site/style.css, source commit a942e2f):
  every rule is scoped under .ios-page so nothing reaches the rest of the site; the
  prototype's own header, footer, fonts and theme switch are gone (the site's header,
  footer, Plus Jakarta Sans and .dark class serve instead); its colors map onto the
  site's theme tokens so the page follows the site in light and dark; the lock
  screen's gradient is lighter so its navy text keeps 4.5:1; and the scroll story
  pins below the site's 64px sticky header.

  The device frames are Apple's bezels as supplied: nothing here crops, tilts,
  shadows, reflects or moves them. Only the screen content inside them changes.
*/

.ios-page {
  --color-accent: hsl(var(--accent));
  --color-text: hsl(var(--foreground));
  --color-muted: hsl(var(--muted-foreground));
  --color-bg: hsl(var(--background));
  --color-border: hsl(var(--border));
  --surface: hsl(var(--card));
  --tint: hsl(var(--muted));
  --blue-tint: hsl(var(--accent) / 0.14);
  --shadow: rgba(15, 23, 42, 0.12);
  --band: #1b2a4a;
  --band-text: #f8fafc;
  --ios-header: 64px;
  display: block;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}
.dark .ios-page { --shadow: rgba(0, 0, 0, 0.35); }
html.ios-dialog-open { overflow: hidden; }

/* Coming soon: the first thing the hero and the closing say. Never uppercased: "iOS" would read "IOS", Cisco's name. */
.ios-page .ios-soon { display: inline-flex; align-items: center; gap: 9px; margin: 0 auto 18px; padding: 7px 16px; border: 1px solid hsl(var(--accent) / 0.35); border-radius: 999px; background: hsl(var(--accent) / 0.1); color: var(--color-accent); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.01em; }
.ios-page .ios-soon__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ios-page .closing .ios-soon { margin-bottom: 14px; }
.ios-page .closing-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 32px; }
.ios-page .closing-actions .primary-button { margin-top: 0; }
.ios-page .ios-about { padding-block: 56px 72px; border-top: 1px solid var(--color-border); }
.ios-page .ios-about h2 { font-size: 1.375rem; letter-spacing: -0.03em; margin-bottom: 14px; }
.ios-page .ios-about p { color: var(--color-muted); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 10px; }
.ios-page .ios-about .text-link { margin-top: 6px; font-size: 0.875rem; }
.ios-page .native-side { display: flex; flex-direction: column; min-height: 0; }
.ios-page .native-side-action { padding: 0 4cqw 2cqw; }
.ios-page .noscript { padding: 24px; text-align: center; }

/* The prototype, scoped. */
.ios-page button,
.ios-page input,
.ios-page select { font: inherit; }
.ios-page button,
.ios-page a,
.ios-page select { -webkit-tap-highlight-color: transparent; }
.ios-page button { cursor: pointer; color: inherit; }
.ios-page a { color: inherit; text-decoration: none; }
.ios-page button { border: 0; background: none; padding: 0; }
.ios-page button:disabled { cursor: default; }
.ios-page h1,
.ios-page h2,
.ios-page h3,
.ios-page p { margin: 0; }
.ios-page h1,
.ios-page h2 { font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.ios-page h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; }
.ios-page p { max-width: 70ch; }
.ios-page img { display: block; max-width: 100%; }
.ios-page button:focus-visible,
.ios-page a:focus-visible,
.ios-page select:focus-visible,
.ios-page [tabindex]:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 5px; }
.ios-page button:disabled { opacity: 0.55; }
.ios-page [hidden] { display: none !important; }
.ios-page .section-width { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.ios-page .icon-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 1.875rem; line-height: 1; }
.ios-page .icon-button:hover { background: var(--tint); }
.ios-page .ios-hero { padding: 70px 24px 36px; text-align: center; overflow: hidden; }
.ios-page .hero-copy { position: relative; z-index: 2; }
.ios-page .product-line { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; margin-inline: auto; }
.ios-page .ios-hero h1 { font-size: clamp(3.75rem, 7.1vw, 6.375rem); margin: 20px 0 22px; }
.ios-page .hero-description { font-size: 1.1875rem; color: var(--color-muted); line-height: 1.65; margin-inline: auto; }
.ios-page .text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--color-accent); font-size: 0.9375rem; font-weight: 600; padding: 4px 0; line-height: 1.5; }
.ios-page .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ios-page .ios-hero .text-link { margin-top: 20px; }
.ios-page .hero-devices { position: relative; width: min(1040px, 100%); height: clamp(320px, 47vw, 540px); margin: 58px auto 10px; }
.ios-page .hero-open { position: absolute; width: 76%; left: 0; top: 0; }
.ios-page .hero-closed { position: absolute; width: 30%; right: 0; bottom: 0; }
.ios-page .image-caption { font-size: 0.75rem; color: var(--color-muted); margin: 22px auto 0; }
.ios-page .device { position: relative; width: 100%; isolation: isolate; }
.ios-page .device--open { aspect-ratio: 3093/2247; }
.ios-page .device--closed { aspect-ratio: 1574/2194; }
.ios-page .device__frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.ios-page .device__screen { position: absolute; overflow: hidden; background: var(--color-bg); container-type: inline-size; z-index: 1; }
.ios-page .device__slides { position: absolute; inset: 0; display: flex; transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.ios-page .device__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; container-type: inline-size; }
.ios-page .device--open .device__screen { left: 3.88%; top: 5.34%; width: 92.24%; height: 89.319%; border-radius: 5.2%/7.4%; }
.ios-page .device--closed .device__screen { left: 5.591%; top: 3.692%; width: 88.819%; height: 92.616%; border-radius: 10.3%/7.1%; }
.ios-page .screen-capture { width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--color-bg); }
.ios-page .introduction { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; padding-block: 140px 160px; align-items: center; }
.ios-page .introduction > p:first-child { font-size: clamp(1.875rem, 3.3vw, 2.75rem); font-weight: 600; letter-spacing: -0.055em; line-height: 1.2; }
.ios-page .intro-detail { font-size: 1.3125rem; color: var(--color-muted); line-height: 1.8; }
.ios-page .story { height: 270vh; position: relative; background: var(--surface); }
.ios-page .story-sticky { height: calc(100vh - var(--ios-header)); min-height: 690px; position: sticky; top: var(--ios-header); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding-block: 60px; }
.ios-page .chapter-kicker { font-size: 0.9375rem; font-weight: 600; color: var(--color-muted); letter-spacing: -0.01em; margin-bottom: 22px; }
.ios-page .story h2 { font-size: clamp(3rem, 5.3vw, 4.625rem); }
.ios-page .chapter-texts { margin-top: 34px; min-height: 165px; }
.ios-page .chapter h3 { font-size: 1.3125rem; margin-bottom: 13px; }
.ios-page .chapter p { font-size: 1.0625rem; color: var(--color-muted); line-height: 1.8; max-width: 410px; }
.ios-page .story-steps { display: grid; gap: 5px; margin: 24px 0; }
.ios-page .story-steps button { display: flex; align-items: center; gap: 13px; min-height: 40px; text-align: left; font-size: 0.875rem; color: var(--color-muted); padding: 3px 0; }
.ios-page .story-steps button span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--color-border); border-radius: 50%; font-size: 0.75rem; }
.ios-page .story-steps button[aria-pressed="true"] { color: var(--color-text); font-weight: 600; }
.ios-page .story-steps button[aria-pressed="true"] span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.ios-page .section-note { font-size: 0.75rem; line-height: 1.7; color: var(--color-muted); margin-top: 17px; }
.ios-page .story-visual { width: 100%; max-width: 450px; margin: auto; text-align: center; }
.ios-page .story-device { width: min(100%, 40vh + 100px); margin: auto; }
.ios-page .device-caption { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.5; margin: 24px auto 0; }
.ios-page .story-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--color-border); }
.ios-page .story-progress span { display: block; height: 100%; width: 100%; background: var(--color-accent); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.ios-page .expand-section { padding: 140px 0 110px; background: var(--band); color: var(--band-text); }

.ios-page .expand-heading { text-align: center; }
.ios-page .expand-heading .chapter-kicker { color: #94a3b8; }
.ios-page .expand-heading h2 { font-size: clamp(2.75rem, 5.1vw, 4.75rem); }
.ios-page .expand-heading > p:last-child { font-size: 1.1875rem; color: #e2e8f0; margin: 28px auto 0; line-height: 1.8; }
.ios-page .expanded-device { width: min(940px, calc(100% - 64px)); margin: 65px auto 55px; color: var(--color-text); }
.ios-page .expand-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; max-width: 1060px; }
.ios-page .expand-details h3 { font-size: 1.25rem; margin-bottom: 15px; }
.ios-page .expand-details p { color: #e2e8f0; font-size: 0.9375rem; line-height: 1.8; }
.ios-page .inside-section { padding: 145px 0 120px; }
.ios-page .inside-heading { display: flex; justify-content: space-between; gap: 80px; align-items: flex-end; }
.ios-page .inside-heading h2 { font-size: clamp(2.75rem, 4.7vw, 4.125rem); }
.ios-page .inside-heading > p { max-width: 335px; font-size: 1.125rem; color: var(--color-muted); margin-bottom: 5px; line-height: 1.85; }
.ios-page .tour-tabs { display: flex; justify-content: center; gap: 8px; margin: 64px auto 42px; width: max-content; max-width: calc(100% - 32px); border-bottom: 1px solid var(--color-border); }
.ios-page .tour-tabs button { font-size: 0.875rem; font-weight: 600; padding: 15px 20px 19px; white-space: nowrap; color: var(--color-muted); border-bottom: 2px solid transparent; }
.ios-page .tour-tabs button[aria-selected="true"] { border-color: var(--color-accent); color: var(--color-accent); }
.ios-page .tour-device { width: min(1040px, calc(100% - 64px)); margin: auto; }
.ios-page .tour-caption { text-align: center; max-width: 660px; padding-inline: 24px; margin: 28px auto 0; }
.ios-page .tour-caption h3 { font-size: 1.5625rem; }
.ios-page .tour-caption p { font-size: 1.0625rem; color: var(--color-muted); margin: 12px 0 15px; }
.ios-page .inside-section .section-note { text-align: center; margin-inline: auto; padding-inline: 20px; }
.ios-page .closing { text-align: center; padding: 110px 0 135px; border-top: 1px solid var(--color-border); }
.ios-page .closing img { margin: 0 auto 24px; border-radius: 18px; }
.ios-page .closing h2 { font-size: clamp(2.75rem, 5vw, 4.375rem); margin: 22px 0 25px; }
.ios-page .closing > p:not(.product-line) { color: var(--color-muted); margin-inline: auto; font-size: 1.125rem; }
.ios-page .primary-button { display: inline-flex; align-items: center; gap: 14px; border-radius: 999px; background: var(--color-accent); color: var(--color-bg); padding: 15px 25px; font-weight: 600; font-size: 0.9375rem; margin-top: 32px; }
.ios-page.motion-reduced { scroll-behavior: auto; }
.ios-page.motion-reduced * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
.ios-page.motion-reduced .story { height: auto; }
.ios-page.motion-reduced .story-sticky { position: relative; height: auto; min-height: 800px; }
.ios-page.motion-reduced .story-progress { display: none; }
.ios-page .ios-dialog { border: 1px solid var(--color-border); border-radius: 22px; color: var(--color-text); background: var(--color-bg); padding: 24px; width: min(1200px, calc(100% - 32px)); max-height: 92dvh; box-shadow: 0 20px 100px var(--shadow); }
.ios-page .ios-dialog::backdrop { background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(12px); }
.ios-page .dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.ios-page .dialog-top h2 { font-size: 1.4375rem; letter-spacing: -0.04em; line-height: 1.3; }
.ios-page .dialog-top .icon-button { flex-shrink: 0; }
.ios-page .dialog-intro { font-size: 0.875rem; color: var(--color-muted); margin-bottom: 20px; }
.ios-page .ios-media-content { aspect-ratio: 1.42; background: var(--surface); position: relative; container-type: inline-size; overflow: hidden; border-radius: 10px; }
.ios-page .ios-media-content > img { width: 100%; height: 100%; object-fit: contain; }
.ios-page [data-ios-media-note] { margin-top: 12px; }
.ios-page .ios-review-dialog { width: min(520px, calc(100% - 24px)); }
.ios-page .ios-review-stage { aspect-ratio: 1398/2032; container-type: inline-size; position: relative; background: var(--surface); border-radius: 24px; overflow: hidden; }
.ios-page .native { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif; background: var(--color-bg); color: var(--color-text); font-size: 4cqw; line-height: 1.4; text-align: left; overflow: hidden; }
.ios-page .native-status { display: flex; justify-content: space-between; align-items: center; font-size: 3.1cqw; font-weight: 600; padding: 4.3cqw 7cqw 2.5cqw; }
.ios-page .native-status svg { width: 10cqw; height: 3.5cqw; }
.ios-page .native-home { height: 0.9cqw; width: 27%; background: currentColor; border-radius: 20px; margin: 2cqw auto 2.8cqw; opacity: 0.65; flex-shrink: 0; }
.ios-page .native-lock { background: linear-gradient(155deg, #dbeafe 0%, #b9c7d8 55%, #86abcc 100%); color: #1b2a4a; }
.ios-page .native-date { text-align: center; font-size: 4.5cqw; margin-top: 10cqw; font-weight: 600; }
.ios-page .native-clock { text-align: center; font-size: 24cqw; line-height: 1.1; font-weight: 600; letter-spacing: -1.1cqw; margin: 0 0 14cqw; }
.ios-page .notification { margin: 0 4.5cqw; background: rgba(248, 250, 252, 0.85); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 5cqw; padding: 4.4cqw; box-shadow: 0 3cqw 8cqw rgba(27, 42, 74, 0.08); text-align: left; color: #1b2a4a; }
.ios-page .notice-brand { display: flex; align-items: center; gap: 2cqw; font-size: 3cqw; margin-bottom: 3cqw; }
.ios-page .notice-brand img { width: 7cqw; height: 7cqw; border-radius: 1.5cqw; }
.ios-page .notice-brand span:last-child { margin-left: auto; color: #5a6577; font-size: 2.7cqw; }
.ios-page .notification strong { display: block; font-size: 4.6cqw; letter-spacing: -0.08cqw; line-height: 1.3; margin-bottom: 1.4cqw; }
.ios-page .notice-detail { display: block; font-size: 3.7cqw; line-height: 1.45; }
.ios-page .notice-action { display: block; color: #2e6b9e; font-weight: 600; font-size: 3.8cqw; margin-top: 3cqw; }
.ios-page .lock-hint { margin: auto auto 4cqw; font-size: 3cqw; opacity: 0.8; padding-top: 8cqw; }
.ios-page .native-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 2.5cqw 5cqw 3.3cqw; border-bottom: 1px solid var(--color-border); }
.ios-page .native-toolbar strong { font-size: 4.2cqw; font-weight: 600; }
.ios-page .native-toolbar span { font-size: 3cqw; color: var(--color-accent); }
.ios-page .native-main { padding: 5cqw; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ios-page .native-meta { font-size: 3cqw; color: var(--color-muted); display: flex; justify-content: space-between; margin-bottom: 2.5cqw; }
.ios-page .native-meter { height: 0.8cqw; background: var(--color-border); border-radius: 1cqw; margin-bottom: 5.5cqw; overflow: hidden; }
.ios-page .native-meter span { display: block; width: 34%; height: 100%; background: var(--color-accent); }
.ios-page .native-question { font-size: 5cqw; font-weight: 600; line-height: 1.43; letter-spacing: -0.08cqw; margin-bottom: 5cqw; }
.ios-page .native-choices { display: grid; gap: 2.5cqw; }
.ios-page .native-choice { display: flex; align-items: center; gap: 2.5cqw; width: 100%; padding: 3.3cqw; border: 1px solid var(--color-border); border-radius: 2.8cqw; background: var(--surface); font-size: 3.9cqw; line-height: 1.35; text-align: left; min-height: 11cqw; }
.ios-page .native-choice span:first-child { font-size: 3cqw; color: var(--color-muted); }
.ios-page .native-choice[aria-pressed="true"],
.ios-page .native-choice[data-selected="true"] { background: var(--blue-tint); border-color: var(--color-accent); }
.ios-page .native-feedback { font-size: 3.5cqw; margin-top: 3cqw; line-height: 1.55; }
.ios-page .native-feedback strong { display: block; color: var(--color-accent); margin-bottom: 1cqw; }
.ios-page .native-primary { display: block; background: var(--color-accent); color: var(--color-bg); padding: 3.7cqw; width: 100%; border-radius: 3cqw; text-align: center; font-size: 4cqw; font-weight: 600; line-height: 1.4; }
.ios-page .native-footer { padding: 2cqw 5cqw 3cqw; margin-top: auto; }
.ios-page .native-complete { text-align: center; align-items: center; justify-content: center; }
.ios-page .native-check { width: 18cqw; height: 18cqw; display: grid; place-items: center; border-radius: 50%; background: var(--blue-tint); color: var(--color-accent); font-size: 8cqw; margin-bottom: 6cqw; }
.ios-page .native-complete h3 { font-size: 8cqw; font-weight: 600; line-height: 1.12; letter-spacing: -0.35cqw; }
.ios-page .native-complete p { font-size: 4cqw; color: var(--color-muted); margin-top: 4cqw; line-height: 1.6; }
.ios-page .native-complete .native-topic { margin-top: 8cqw; padding: 4cqw; border-block: 1px solid var(--color-border); width: 100%; font-size: 3.8cqw; }
.ios-page .native-expanded .native-status { font-size: 1.6cqw; padding: 2cqw 4cqw 1cqw; }
.ios-page .native-expanded .native-status svg { width: 5cqw; height: 1.7cqw; }
.ios-page .native-expanded .native-toolbar { padding: 1.3cqw 4cqw 2cqw; }
.ios-page .native-expanded .native-toolbar strong { font-size: 2.5cqw; }
.ios-page .native-expanded .native-toolbar span { font-size: 1.8cqw; }
.ios-page .native-workspace { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 0; }
.ios-page .native-lesson { padding: 4cqw; border-right: 1px solid var(--color-border); background: var(--surface); }
.ios-page .native-lesson .native-label { font-size: 1.7cqw; color: var(--color-accent); font-weight: 600; margin-bottom: 2.5cqw; }
.ios-page .native-lesson h3 { font-size: 4.4cqw; letter-spacing: -0.18cqw; margin-bottom: 3cqw; line-height: 1.1; }
.ios-page .native-lesson p { font-size: 2.15cqw; line-height: 1.75; }
.ios-page .native-example { margin-top: 3cqw; padding: 2.5cqw; border-left: 0.4cqw solid var(--color-accent); background: var(--color-bg); font-size: 1.9cqw; line-height: 1.8; }
.ios-page .native-expanded .native-main { padding: 4cqw; }
.ios-page .native-expanded .native-question { font-size: 2.7cqw; margin-bottom: 3cqw; }
.ios-page .native-expanded .native-meta { font-size: 1.6cqw; }
.ios-page .native-expanded .native-meter { height: 0.4cqw; margin-bottom: 3.5cqw; }
.ios-page .native-expanded .native-choices { gap: 1.8cqw; }
.ios-page .native-expanded .native-choice { padding: 1.8cqw; min-height: 6cqw; font-size: 2cqw; gap: 1.4cqw; border-radius: 1.5cqw; }
.ios-page .native-expanded .native-choice span:first-child { font-size: 1.5cqw; }
.ios-page .native-expanded .native-primary { padding: 1.6cqw; border-radius: 1.5cqw; font-size: 2cqw; margin-top: 3cqw; }
.ios-page .native-expanded .native-home { width: 14%; height: 0.45cqw; margin: 1.5cqw auto; }
.ios-page .native-plan { padding: 4cqw; }
.ios-page .native-plan h3 { font-size: 5.3cqw; letter-spacing: -0.2cqw; margin-bottom: 2cqw; }
.ios-page .native-plan > p { font-size: 2cqw; color: var(--color-muted); margin-bottom: 4cqw; }
.ios-page .plan-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5cqw; }
.ios-page .plan-feature { background: var(--surface); border: 1px solid var(--color-border); border-radius: 2cqw; padding: 3cqw; }
.ios-page .plan-feature h4 { font-size: 3cqw; line-height: 1.3; margin: 1cqw 0 2cqw; }
.ios-page .plan-feature p,
.ios-page .plan-row { font-size: 2cqw; line-height: 1.7; }
.ios-page .plan-row { padding: 2cqw 0; border-bottom: 1px solid var(--color-border); }
.ios-page .plan-row span { display: block; color: var(--color-muted); font-size: 1.7cqw; }
.ios-page .plan-feature .native-primary { font-size: 2cqw; margin-top: 3cqw; padding: 1.5cqw; border-radius: 1.3cqw; }
.ios-page .progress-bars { display: grid; gap: 3cqw; margin-top: 4cqw; }
.ios-page .progress-row { font-size: 2cqw; }
.ios-page .progress-track { height: 1.4cqw; background: var(--color-border); border-radius: 2cqw; margin-top: 1cqw; }
.ios-page .progress-track i { display: block; height: 100%; background: var(--color-accent); border-radius: 2cqw; }
.ios-page .review-dialog-screen .native-main { overflow-y: auto; }
.ios-page .review-dialog-screen .native-question { font-size: 4.7cqw; }
.ios-page .review-dialog-screen .native-choices { gap: 2cqw; }
.ios-page .review-dialog-screen .native-choice { font-size: 3.8cqw; padding: 3cqw; }
.ios-page .review-dialog-screen .native-footer { flex-shrink: 0; }
@media (min-width: 1500px) {
  .ios-page .ios-hero { padding-top: 82px; }
  .ios-page .hero-devices { margin-top: 64px; }
  .ios-page .story-sticky { gap: 140px; }
}
@media (max-width: 1000px) {
  .ios-page .section-width { width: calc(100% - 64px); }
  .ios-page .story-sticky { gap: 44px; }
  .ios-page .story h2 { font-size: 3.4375rem; }
  .ios-page .chapter-texts { min-height: 205px; }
  .ios-page .story-device { width: 100%; }
  .ios-page .story-visual { max-width: 350px; }
  .ios-page .inside-heading { gap: 32px; }
  .ios-page .inside-heading > p { max-width: 290px; font-size: 1rem; }
  .ios-page .expand-details { gap: 28px; }
  .ios-page .hero-devices { height: 48vw; }
  .ios-page .introduction { gap: 40px; padding-block: 100px; }
  .ios-page .intro-detail { font-size: 1.125rem; }
}
@media (max-width: 700px) {
  .ios-page .section-width { width: calc(100% - 40px); }
  .ios-page .ios-hero { padding: 56px 14px 30px; }
  .ios-page .product-line { font-size: 0.9375rem; }
  .ios-page .ios-hero h1 { font-size: clamp(2.875rem, 10vw, 4.125rem); margin-block: 23px; }
  .ios-page .hero-description { font-size: 1rem; }
  .ios-page .ios-hero .text-link { font-size: 0.875rem; margin-top: 22px; }
  .ios-page .hero-devices { width: 100%; height: 55vw; margin-top: 48px; }
  .ios-page .hero-open { width: 83%; left: -3%; }
  .ios-page .hero-closed { width: 33%; right: -1%; }
  .ios-page .image-caption { font-size: 0.6875rem; margin-top: 28px; }
  .ios-page .introduction { grid-template-columns: 1fr; gap: 28px; padding: 78px 0 88px; }
  .ios-page .introduction > p:first-child { font-size: 2.0625rem; }
  .ios-page .intro-detail { font-size: 1.0625rem; line-height: 1.7; }
  .ios-page .story { height: 260vh; }
  .ios-page .story-sticky { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: 28px; height: calc(100svh - var(--ios-header)); min-height: 640px; }
  .ios-page .story-copy { width: 100%; }
  .ios-page .chapter-kicker { font-size: 0.75rem; margin-bottom: 12px; }
  .ios-page .story h2 { font-size: 2.375rem; }
  .ios-page .story h2 br { display: initial; }
  .ios-page .chapter-texts { margin-top: 14px; min-height: 104px; }
  .ios-page .chapter h3 { font-size: 1.0625rem; margin-bottom: 7px; }
  .ios-page .chapter p { font-size: 0.875rem; line-height: 1.6; max-width: 100%; }
  .ios-page .story-steps { display: flex; justify-content: flex-start; gap: 16px; margin: 16px 0 0; }
  .ios-page .story-steps button { font-size: 0.6875rem; gap: 6px; min-height: 35px; }
  .ios-page .story-steps button span { width: 20px; height: 20px; font-size: 0.625rem; }
  .ios-page .try-reminder { font-size: 0.8125rem; margin-top: 6px; }
  .ios-page .story-copy .section-note { margin-top: 5px; font-size: 0.625rem; }
  .ios-page .story-visual { max-width: 245px; }
  .ios-page .story-device { width: min(245px, 37svh); }
  .ios-page .device-caption { display: none; }
  .ios-page .expand-section { padding: 85px 0 70px; }
  .ios-page .expand-heading h2 { font-size: 2.4375rem; }
  .ios-page .expand-heading > p:last-child { font-size: 0.9375rem; margin-top: 23px; }
  .ios-page .expand-heading > p:last-child br { display: none; }
  .ios-page .expanded-device { width: calc(100% - 20px); margin: 38px auto; }
  .ios-page .expand-details { grid-template-columns: 1fr; gap: 27px; padding-inline: 10px; }
  .ios-page .expand-details h3 { font-size: 1.125rem; margin-bottom: 7px; }
  .ios-page .expand-details p { font-size: 0.875rem; }
  .ios-page .inside-section { padding: 85px 0; }
  .ios-page .inside-heading { display: block; }
  .ios-page .inside-heading h2 { font-size: 2.4375rem; }
  .ios-page .inside-heading > p { font-size: 1rem; max-width: 100%; margin-top: 24px; }
  .ios-page .tour-tabs { display: grid; grid-template-columns: 1fr 1fr; width: calc(100% - 40px); margin: 28px auto; gap: 0; border: 0; }
  .ios-page .tour-tabs button { font-size: 0.75rem; padding: 12px 5px; border-bottom: 1px solid var(--color-border); }
  .ios-page .tour-tabs button[aria-selected="true"] { border-bottom: 2px solid var(--color-accent); }
  .ios-page .tour-device { width: calc(100% - 16px); }
  .ios-page .tour-caption { margin-top: 22px; }
  .ios-page .tour-caption h3 { font-size: 1.375rem; }
  .ios-page .tour-caption p { font-size: 0.9375rem; }
  .ios-page .closing { padding-block: 70px 80px; }
  .ios-page .closing h2 { font-size: 2.5rem; }
  .ios-page .closing > p:not(.product-line) { font-size: 1rem; }
  .ios-page.motion-reduced .story-sticky { min-height: 720px; }
  .ios-page .ios-dialog { padding: 17px; border-radius: 17px; }
  .ios-page .dialog-top h2 { font-size: 1.25rem; }
  .ios-page .ios-media-content { aspect-ratio: auto; min-height: 60vh; overflow: auto; }
  .ios-page .ios-media-content > img { width: 1000px; max-width: none; height: auto; }
  .ios-page .ios-media-content > .native { min-width: 700px; height: 510px; position: relative; }
}
@media (max-height: 730px) and (min-width: 701px) {
  .ios-page .story-sticky { min-height: 640px; }
  .ios-page .story h2 { font-size: 3.125rem; }
  .ios-page .chapter-texts { margin-top: 22px; min-height: 150px; }
  .ios-page .story-steps { margin-block: 16px; }
  .ios-page .story-device { max-width: 335px; }
  .ios-page .device-caption { font-size: 0.9375rem; margin-top: 15px; }
}
.ios-page .device--closed .device__screen { border-radius: 2.2% 15.8% 15.8% 2.2% / 1.5% 10.9% 10.9% 1.5%; }
.ios-page .native-status { padding-right: 15cqw; }
.ios-page .native-expanded .native-status { padding-right: 4cqw; }
.ios-page .native-expanded .native-main { padding: 2.8cqw; }
.ios-page .native-expanded .native-meta { margin-bottom: 1.7cqw; }
.ios-page .native-expanded .native-meter { margin-bottom: 2.2cqw; }
.ios-page .native-expanded .native-question { font-size: 2.35cqw; line-height: 1.4; margin-bottom: 2cqw; }
.ios-page .native-expanded .native-choices { gap: 1.2cqw; }
.ios-page .native-expanded .native-choice { min-height: 5.5cqw; font-size: 1.8cqw; padding: 1.3cqw; }
.ios-page .native-expanded .native-primary { margin-top: 0; }
.ios-page .native-choice:disabled { opacity: 1; }
html.ios-dialog-open { overflow: hidden; }
.ios-page.story-static .story { height: auto; }
.ios-page.story-static .story-sticky { position: relative; height: auto; min-height: 0; padding-block: 80px; }
.ios-page.story-static .story-progress { display: none; }
.ios-page h1,
.ios-page h2,
.ios-page h3 { overflow-wrap: anywhere; }
.ios-page .native { container-type: inline-size; }
@media (max-width: 700px) {
  .ios-page .story-steps { flex-wrap: wrap; gap: 5px 14px; }
  .ios-page .story-steps button { font-size: 0.75rem; }
}
@media (max-width: 700px) {
  .ios-page .tour-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ios-page .tour-tabs button { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
}

/* Beyond the prototype: the live reminder is a button, and an enlarged capture is a <picture>. */
.ios-page button.notification { display: block; width: calc(100% - 9cqw); cursor: pointer; }
.ios-page .ios-media-content picture { display: block; width: 100%; height: 100%; }
.ios-page .ios-media-content img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) {
  .ios-page .ios-media-content picture, .ios-page .ios-media-content img { width: 1000px; max-width: none; height: auto; }
}

/* The home page's section (partials/_ios_teaser.jinja): the hero's two devices, sized to a column. */
.ios-teaser__soon { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 6px 14px; border: 1px solid hsl(var(--accent) / 0.35); border-radius: 999px; background: hsl(var(--accent) / 0.1); color: hsl(var(--accent)); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; }
.ios-teaser__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ios-page.ios-teaser__visual { background: transparent; }
.ios-page.ios-teaser__visual .hero-devices { width: 100%; height: auto; aspect-ratio: 1.3; margin: 0; }
