/* UASA idMe Autofill page. Self-contained; does not depend on the homepage stylesheet.
   Also styles /tools/uasa-autofill/privacy/ (which keeps using --green, --green-dark, --mint, --paper, --surface, --line, --muted). */
:root {
  color-scheme: light;
  --navy-950: #071634;
  --navy-900: #0a1f4a;
  --navy-800: #0f2a5e;
  --blue: #1d5cff;
  --blue-dark: #1646c9;
  --cyan: #22d3ee;
  --cyan-ink: #0b6f86;
  --paper: #f4f7fd;
  --surface: #ffffff;
  --ink: #0b1b3a;
  --muted: #455379;
  --line: #d4def2;
  /* Names kept for the privacy page and older rules */
  --green: var(--blue-dark);
  --green-dark: #0f3aa8;
  --mint: #e1f6fb;
  --amber-bg: #fff3d6;
  --amber-line: #e7c36a;
  --amber-ink: #6b4300;
  --blue-bg: #e8f0fd;
  --blue-line: #b7cbf0;
  --blue-ink: #14388a;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--font); color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0; font-weight: 750; letter-spacing: -.02em; }
p { margin: 0 0 .9em; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: #e6edfb; padding: .1em .4em; border-radius: 5px; }
kbd { background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .1em .45em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .hub-card :focus-visible, .privacy-band :focus-visible, .app-card-all:focus-visible { outline-color: #8ff0ff; }

.wrap { width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(244 247 253 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand img { height: 36px; width: auto; }
.site-header nav { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; padding: .45rem .75rem; border-radius: 999px; font-size: .95rem; font-weight: 600; }
.site-header nav a:hover { background: var(--mint); }
.site-header nav a.nav-back { color: var(--muted); font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 10px; border: 2px solid transparent; font: 650 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--blue-dark); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-bg); color: var(--blue-dark); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--mint); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 55%); }
.btn-outline-light:hover { background: rgb(255 255 255 / 12%); color: #fff; border-color: #fff; }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.05rem; text-align: center; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  background: radial-gradient(90% 120% at 90% -10%, rgb(29 92 255 / 55%) 0%, rgb(29 92 255 / 0%) 60%), linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(140 180 255 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(140 180 255 / 7%) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-text { max-width: 46rem; }
.free-badge { display: inline-block; margin: 0 0 1.1rem; padding: .3rem .9rem; background: rgb(34 211 238 / 14%); color: #8ff0ff; border: 1px solid rgb(34 211 238 / 50%); border-radius: 999px; font-weight: 700; font-size: .93rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 1.1rem; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: clamp(1.03rem, 2vw, 1.2rem); color: #cddcff; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.75rem 0 0; }
.btn-store { box-shadow: 0 10px 28px -12px rgb(34 211 238 / 70%); }
.step-cta { margin: 1rem 0 0; }
.btn-hub { background: rgb(34 211 238 / 14%); color: #8ff0ff; border-color: rgb(34 211 238 / 60%); }
.btn-hub:hover { background: rgb(34 211 238 / 26%); color: #fff; border-color: #8ff0ff; }
.hero-art { margin: clamp(1.5rem, 4vw, 2.25rem) 0 0; }
.hero-art img { width: 100%; border-radius: 18px; border: 1px solid rgb(143 190 255 / 35%); box-shadow: 0 30px 70px -30px rgb(2 8 28 / 85%); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.section h2, .section-band h2, .privacy-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.03em; margin-bottom: .6rem; }
.section-intro { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }

/* Features */
.features { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; }
.features svg { width: 44px; height: 44px; padding: 10px; margin-bottom: .85rem; border-radius: 12px; background: var(--navy-900); color: var(--cyan); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.features p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Steps */
.section-band { background: var(--surface); border-block: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem); display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.step-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .7rem; }
.step-head h3, .step-head h4 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.step-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 750; font-size: 1.1rem; }
.step p:last-child { margin-bottom: 0; }
.step-tip { background: var(--mint); border-radius: var(--radius-sm); padding: .6rem .85rem; font-size: .95rem; }
.plain { margin: 0 0 1rem; padding-left: 1.2rem; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.shot figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.step .shot { margin-top: .25rem; }

/* Gallery */
.gallery { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.gallery .shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .6rem .9rem; height: 100%; box-shadow: 0 14px 30px -24px rgb(10 31 74 / 55%); }
.gallery .shot figcaption { padding: 0 .4rem; font-weight: 650; color: var(--ink); font-size: .98rem; }
.demo-note { margin: 1.25rem 0 0; padding: .7rem 1rem; border-left: 4px solid var(--cyan); background: var(--mint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy-900); font-weight: 600; font-size: .95rem; }

/* Tutorial video (click-to-load) */
.video-card { margin-top: 1.75rem; padding: clamp(.6rem, 1.5vw, .9rem); border-radius: 22px; background: linear-gradient(150deg, var(--navy-950), var(--navy-800)); border: 1px solid rgb(143 190 255 / 30%); box-shadow: 0 30px 60px -36px rgb(7 22 52 / 90%); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy-950); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--navy-950); color: #fff; font: 700 1rem/1.2 var(--font); }
.video-play[hidden] { display: none; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .38; }
.video-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 22 52 / 20%), rgb(7 22 52 / 70%)); }
.video-play-icon { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(64px, 12vw, 92px); height: clamp(64px, 12vw, 92px); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgb(34 211 238 / 28%), 0 18px 40px -12px rgb(0 0 0 / 70%); transition: transform .15s; }
.video-play-icon svg { width: 46%; height: 46%; margin-left: 6%; fill: #fff; }
.video-play:hover .video-play-icon { transform: scale(1.06); }
.video-play:disabled { cursor: progress; }
.video-play-label { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(.7rem, 3vw, 1.3rem); text-align: center; font-size: clamp(.95rem, 2.4vw, 1.15rem); }
.video-status { position: absolute; z-index: 2; left: .75rem; right: .75rem; bottom: .75rem; margin: 0; padding: .6rem .85rem; border-radius: var(--radius-sm); background: rgb(7 22 52 / 88%); color: #fff; font-size: .93rem; line-height: 1.4; }
.video-status.is-error { background: #7a1f1f; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding: .85rem .4rem .3rem; }
.video-note { margin: 0; flex: 1 1 22rem; color: #c3d4fa; font-size: .9rem; line-height: 1.5; }
.video-card :focus-visible { outline-color: #8ff0ff; }

/* Privacy band */
.privacy-band { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; margin-top: clamp(2rem, 5vw, 3rem); }
.privacy-band h2 { color: #fff; margin-bottom: 1.1rem; }
.privacy-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
.privacy-list li { background: rgb(255 255 255 / 7%); border: 1px solid rgb(143 190 255 / 28%); border-radius: var(--radius); padding: 1rem 1.1rem; color: #d5e2ff; }
.privacy-list strong { display: block; color: #fff; margin-bottom: .15rem; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 0; }
.privacy-links .by { color: #b9cdf5; }
.privacy-links .by a { color: #8ff0ff; font-weight: 650; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 1rem 1.25rem; border: 1px solid; }
.callout ul { margin: 0; padding-left: 1.2rem; }
.callout-warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.callout-info { background: var(--blue-bg); border-color: var(--blue-line); color: var(--blue-ink); margin-bottom: 1.25rem; }

/* Layout (FAQ, feedback) */
.layout { max-width: 52rem; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem); }
.block { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.block:last-child { margin-bottom: 0; }
.block > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.block-intro { color: var(--muted); max-width: 62ch; }

/* FAQ */
.faq { margin-top: 1.25rem; display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: .9rem 2.8rem .9rem 1rem; font-weight: 650; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: .7rem; font-size: 1.4rem; line-height: 1; color: var(--blue-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: .85rem 1rem 1rem; color: var(--muted); max-width: 70ch; }

/* Feedback */
.rating-summary { display: flex; align-items: center; gap: 1.25rem; margin: 1rem 0; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rating-score { font-size: 2.6rem; font-weight: 750; color: var(--muted); min-width: 2ch; text-align: center; }
.rating-summary p { margin: 0; color: var(--muted); }
.stars-static .on { color: #d99a1c; }
.stars-static { color: #c5d0e8; font-size: 1.4rem; letter-spacing: .1em; line-height: 1.2; }
.reviews { margin-bottom: 1rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 1.25rem; color: var(--muted); text-align: center; margin: 0; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .6rem; }
.review-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); }
.review-stars { color: #b7791f; letter-spacing: .08em; }
.review p { margin: .4rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.feedback { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.5rem); }
.feedback h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 650; margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1.5px solid #8fa3cf; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.hint { font-size: .88rem; color: var(--muted); margin: .3rem 0 0; }
.feedback > .hint { margin: 0 0 1rem; }
.stars-input { border: 0; padding: 0; margin: 0 0 1rem; }
.stars-input legend { font-weight: 650; padding: 0; margin-bottom: .3rem; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-row label { font-size: 2.4rem; line-height: 1; color: #c5d0e8; cursor: pointer; padding: .1rem .2rem; border-radius: 6px; }
.stars-row label:hover, .stars-row label:hover ~ label, .stars-row input:checked ~ label { color: #d99a1c; }
.stars-row input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-widget { margin: 0 0 1rem; min-height: 65px; }
.form-error, .form-success { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-weight: 600; }
.form-error { background: #fdecec; border-color: #e3a3a3; color: #7a1f1f; }
.form-success { background: var(--mint); border-color: #8fd3e3; color: var(--navy-900); }
.feedback.is-sent > :not(h3):not(.form-success) { display: none; }
.btn[aria-busy="true"] { cursor: progress; }
.review-date { color: var(--muted); font-size: .85rem; margin-left: .5rem; }
.rd-meta { color: var(--muted); font-size: .92rem; margin: 0 0 .75rem; }
.rd-actions { margin-top: 1rem; text-align: center; }
.retry-row { text-align: center; }
.retry-row p { margin-bottom: .6rem; }

/* Reviews dialog */
.reviews-dialog { width: min(92vw, 640px); max-height: 85vh; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); color: var(--ink); }
.reviews-dialog::backdrop { background: rgb(7 22 52 / 60%); }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.rd-head h2 { font-size: 1.4rem; }

/* My-RPH Hub promotion (directly after the hero) */
.hub-promo { padding: clamp(1rem, 2vw, 1.25rem) 0 0; }
.hub-card { position: relative; overflow: hidden; display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); align-items: center; padding: clamp(1.25rem, 3.5vw, 2rem); border-radius: 20px; color: #fff;
  background: radial-gradient(70% 140% at 100% 0%, rgb(34 211 238 / 38%) 0%, rgb(34 211 238 / 0%) 60%), linear-gradient(120deg, var(--blue) 0%, #1238a8 45%, var(--navy-900) 100%);
  border: 1px solid rgb(143 240 255 / 45%); box-shadow: 0 28px 60px -34px rgb(10 31 74 / 90%), inset 0 1px 0 rgb(255 255 255 / 18%); }
.hub-mark { width: 64px; height: 64px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -12px rgb(2 8 28 / 70%); }
.hub-eyebrow { margin: 0 0 .35rem; font-weight: 800; font-size: .95rem; letter-spacing: .14em; color: #8ff0ff; }
.hub-text h2 { font-size: clamp(1.4rem, 3.2vw, 2.05rem); letter-spacing: -.03em; margin: 0 0 .6rem; text-wrap: balance; }
.hub-copy { margin: 0; max-width: 56ch; color: #dbe7ff; font-size: clamp(1rem, 1.8vw, 1.1rem); }
.hub-cta { font-weight: 750; }

/* App discovery */
.apps-grid { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.apps-grid li { min-width: 0; }
.app-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.app-card:hover { border-color: var(--blue); box-shadow: 0 16px 30px -22px rgb(10 31 74 / 70%); color: var(--ink); }
.app-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--navy-900); }
.app-info { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem .85rem; line-height: 1.3; }
.app-info strong { font-size: 1rem; }
.app-info small { color: var(--muted); font-size: .85rem; }
.app-card-all { justify-content: center; background: linear-gradient(150deg, var(--navy-950), var(--navy-800)); border-color: var(--navy-800); color: #fff; }
.app-card-all:hover { color: #fff; border-color: var(--cyan); }
.app-all-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; line-height: 1.3; }
.app-all-body small { color: #c3d4fa; font-size: .85rem; }
.app-all-go { margin-top: .5rem; color: #8ff0ff; font-weight: 700; font-size: .95rem; }

/* Zoomable screenshots and lightbox */
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); text-align: left; }
.zoom-hint { display: inline-block; margin-top: .45rem; background: var(--mint); color: var(--navy-900); font-size: .85rem; font-weight: 650; padding: .25rem .75rem; border-radius: 999px; pointer-events: none; }
.lightbox { width: min(96vw, 1500px); max-height: 94vh; padding: 3.5rem .75rem .75rem; border: 0; border-radius: var(--radius); background: var(--navy-950); color: #fff; overflow: auto; }
.lightbox::backdrop { background: rgb(3 10 28 / 82%); }
.lightbox img { width: 100%; height: auto; border-radius: 6px; background: #fff; }
.lb-cap { margin: .6rem .25rem 0; font-size: .95rem; color: #dbe6ff; }
.lb-close { position: absolute; top: .6rem; right: .75rem; min-height: 44px; padding: .5rem 1rem; border-radius: 10px; border: 2px solid #fff; background: #fff; color: var(--ink); font: 700 1rem var(--font); cursor: pointer; }
.lb-close:hover { background: var(--mint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: .92rem; background: #eaf0fb; }
.site-footer p { max-width: 70ch; }

@media (min-width: 640px) {
  .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .hub-card { grid-template-columns: auto minmax(0, 1fr); }
  .hub-cta { grid-column: 1 / -1; justify-self: start; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features li:last-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery li:last-child { grid-column: 1 / -1; }
  .privacy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:has(.shot) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; }
  .step:has(.shot):nth-of-type(even) .shot { order: -1; }
}
@media (min-width: 1024px) {
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .hero-art { margin: 0; }
  .hub-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.75rem; }
  .hub-cta { grid-column: auto; justify-self: end; }
  .hub-mark { width: 84px; height: 84px; }
  .apps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery li { grid-column: span 2; }
  .gallery li:nth-child(1), .gallery li:nth-child(2) { grid-column: span 3; }
  .gallery li:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  :root { --header-h: 92px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: .1rem; padding: .5rem 0 .3rem; min-height: var(--header-h); }
  .site-header nav { flex-wrap: nowrap; width: 100%; overflow-x: auto; justify-content: flex-start; margin-inline: -.5rem; padding-bottom: .2rem; }
  .site-header nav a { padding: .5rem .65rem; font-size: .9rem; white-space: nowrap; }
  .brand img { height: 28px; }
  .hero { padding: 1.6rem 0 1.75rem; }
  .hero-art { display: none; }
  .free-badge { margin-bottom: .8rem; }
  .hero h1 { margin-bottom: .8rem; }
  .cta-row { margin-top: 1.1rem; gap: .75rem; }
  .hub-promo { padding-top: 1rem; }
  .hub-card { gap: .8rem; padding: 1.1rem; }
  .hub-mark { width: 48px; height: 48px; padding: 4px; border-radius: 12px; }
  .btn-primary, .btn-outline-light, .btn-hub, .btn-lg, .video-meta .btn { width: 100%; }
  .app-info strong { font-size: .95rem; }
  }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
