/* Red Fruit Comic Drama - responsive site styles */
:root {
  --brand: #E85D75;
  --brand-strong: #D93F63;
  --accent: #F2A65A;
  --ink: #332D34;
  --ink-strong: #2F2530;
  --muted: #756A73;
  --paper: #FFF9F6;
  --soft: #F8EEF0;
  --line: rgba(47, 37, 48, .12);
  --line-strong: rgba(47, 37, 48, .22);
  --white: #fff;
  --shadow-1: 0 12px 34px rgba(70, 38, 48, .08);
  --shadow-2: 0 20px 50px rgba(70, 38, 48, .13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --shell: min(1180px, calc(100% - 40px));
  --reading: 720px;
  --header-height: 78px;
  --ease: cubic-bezier(.2,.7,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body { margin: 0; min-width: 320px; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.7; background: var(--paper); color: var(--ink); text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(232, 93, 117, .22); color: var(--ink-strong); }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; border-radius: 6px; }

.skip-link { position: fixed; z-index: 9999; left: 16px; top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ink-strong); color: #fff; transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.shell { width: var(--shell); margin-inline: auto; }
main { min-height: 60vh; }
.section { padding: 96px 0; }
.section--tight { padding: 52px 0; }
.eyebrow { margin: 0 0 10px; color: var(--brand-strong); font-weight: 800; letter-spacing: .08em; font-size: .8rem; text-transform: uppercase; }
.section-heading { max-width: 790px; margin: 0 0 40px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.12; letter-spacing: -.035em; color: var(--ink-strong); }
.section-heading > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 1.06rem; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 44px; align-items: end; }
.section-heading--split > p { margin: 0 !important; max-width: 560px; justify-self: end; }
.compact-heading { margin-bottom: 24px; }
.compact-heading h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.site-header { position: sticky; top: 0; z-index: 1000; height: var(--header-height); display: flex; align-items: center; border-bottom: 1px solid rgba(47,37,48,.08); background: rgba(255,249,246,.91); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: var(--soft); }
.brand-copy { display: grid; line-height: 1.18; }
.brand-copy strong { font-size: 1.03rem; color: var(--ink-strong); }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .73rem; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { position: relative; padding: 10px 15px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 680; font-size: .94rem; transition: color .2s ease, background .2s ease, transform .2s ease; }
.site-nav a:hover { color: var(--ink-strong); background: var(--soft); transform: translateY(-1px); }
.site-nav a.is-active { color: var(--brand-strong); background: rgba(232,93,117,.11); }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; border-radius: 10px; }
.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-toggle__bars { display: grid; gap: 5px; width: 25px; }
.menu-toggle__bars i { display: block; width: 100%; height: 2px; border-radius: 99px; background: var(--ink-strong); transition: transform .22s var(--ease), opacity .22s ease; transform-origin: center; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.home-hero::before { content: ""; position: absolute; width: 520px; height: 520px; top: -210px; right: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(242,166,90,.22), rgba(242,166,90,0) 69%); pointer-events: none; }
.home-hero::after { content: ""; position: absolute; width: 440px; height: 440px; bottom: -250px; left: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(232,93,117,.14), rgba(232,93,117,0) 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 64px; align-items: center; }
.hero-copy h1 { margin: 0; max-width: 760px; color: var(--ink-strong); font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.hero-lead { max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.8; }
.hero-actions, .page-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 21px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; line-height: 1.2; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--brand-strong); color: #fff; box-shadow: 0 12px 28px rgba(217,63,99,.24); }
.button--primary:hover { background: #c93356; box-shadow: 0 16px 34px rgba(217,63,99,.3); }
.button--secondary { background: var(--ink-strong); color: #fff; }
.button--secondary:hover { background: #211920; }
.button--ghost { border-color: var(--line-strong); background: rgba(255,255,255,.58); color: var(--ink-strong); }
.button--ghost:hover { border-color: rgba(217,63,99,.35); background: #fff; }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--ink-strong); font-weight: 800; text-decoration: none; }
.text-link span { transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 44px 0 0; }
.hero-facts li { padding: 16px 0 0; border-top: 1px solid var(--line); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: var(--ink-strong); font-size: .94rem; }
.hero-facts span { margin-top: 5px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.hero-visual { position: relative; margin: 0; padding: 16px; border: 1px solid rgba(47,37,48,.08); border-radius: var(--radius-xl); background: rgba(255,255,255,.62); box-shadow: var(--shadow-2); transform: rotate(1.2deg); }
.hero-visual::before { content: ""; position: absolute; inset: -14px 18px 18px -14px; z-index: -1; border-radius: inherit; background: var(--soft); transform: rotate(-3deg); }
.hero-visual img { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; border-radius: calc(var(--radius-xl) - 10px); }
.hero-visual figcaption { padding: 14px 8px 3px; color: var(--muted); font-size: .82rem; }

.highlight-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.highlight-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 25px 24px; }
.highlight-item + .highlight-item { border-left: 1px solid var(--line); }
.highlight-item h3 { margin: 0 0 8px; color: var(--ink-strong); font-size: 1rem; line-height: 1.35; }
.highlight-item p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.highlight-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--soft); position: relative; }
.highlight-icon::before, .highlight-icon::after { content: ""; position: absolute; border: 2px solid var(--brand-strong); }
.highlight-icon[data-icon="browser"]::before { width: 22px; height: 17px; border-radius: 4px; }
.highlight-icon[data-icon="browser"]::after { width: 14px; height: 2px; border-width: 2px 0 0; top: 14px; }
.highlight-icon[data-icon="status"]::before { width: 20px; height: 20px; border-radius: 50%; }
.highlight-icon[data-icon="status"]::after { width: 6px; height: 10px; border-width: 0 2px 2px 0; transform: rotate(45deg); top: 13px; }
.highlight-icon[data-icon="devices"]::before { width: 23px; height: 16px; border-radius: 3px; top: 9px; }
.highlight-icon[data-icon="devices"]::after { width: 9px; height: 15px; border-radius: 3px; background: var(--soft); right: 7px; bottom: 8px; }

.content-stage { background: linear-gradient(180deg, transparent, rgba(248,238,240,.72) 14%, rgba(248,238,240,.72) 86%, transparent); }
.type-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.type-card { grid-column: span 4; overflow: hidden; border: 1px solid rgba(47,37,48,.09); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 8px 22px rgba(70,38,48,.055); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); }
.type-card:nth-child(1), .type-card:nth-child(2) { grid-column: span 6; display: grid; grid-template-columns: minmax(180px, .88fr) 1.12fr; }
.type-card__media { min-height: 190px; overflow: hidden; background: var(--soft); }
.type-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.type-card:hover .type-card__media img { transform: scale(1.025); }
.type-card__body { padding: 24px; }
.type-card__body h3 { margin: 0 0 10px; color: var(--ink-strong); font-size: 1.26rem; }
.type-card__body > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .93rem; }
.compact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.compact-list li { position: relative; padding-left: 18px; color: var(--ink); font-size: .84rem; }
.compact-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.feature-band { padding-top: 72px; }
.feature-band__grid { display: grid; grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.feature-band__media { margin: 0; position: relative; }
.feature-band__media::after { content: ""; position: absolute; inset: 22px -18px -18px 22px; z-index: -1; border-radius: var(--radius-xl); background: rgba(232,93,117,.12); }
.feature-band__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-1); }
.feature-band__copy h2 { margin: 0; max-width: 670px; color: var(--ink-strong); font-size: clamp(2.1rem, 4.1vw, 3.7rem); line-height: 1.08; letter-spacing: -.04em; }
.feature-band__copy > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted); font-size: 1.02rem; }
.info-pairs { margin: 28px 0; border-top: 1px solid var(--line); }
.info-pairs > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-pairs strong { color: var(--ink-strong); }
.info-pairs span { color: var(--muted); }

.reading-flow { overflow: hidden; }
.flow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.flow-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.flow-card--wide { grid-column: 1 / -1; grid-template-columns: minmax(300px, 1.05fr) .95fr; }
.flow-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.flow-card > div { padding: 30px; align-self: center; }
.flow-card > div > span { display: inline-flex; margin-bottom: 13px; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-strong); font-weight: 800; font-size: .75rem; }
.flow-card h3 { margin: 0 0 12px; color: var(--ink-strong); font-size: 1.4rem; line-height: 1.3; }
.flow-card p { margin: 0; color: var(--muted); }

.desktop-bridge { padding: 44px 0; }
.desktop-bridge__inner { display: grid; grid-template-columns: 1fr auto; gap: 38px; align-items: center; padding: 38px 42px; border: 1px solid rgba(47,37,48,.09); border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(248,238,240,.92), rgba(255,255,255,.8)); }
.desktop-bridge h2 { margin: 0; max-width: 780px; font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.15; color: var(--ink-strong); }
.desktop-bridge p:not(.eyebrow) { max-width: 800px; margin: 14px 0 0; color: var(--muted); }

.faq-section { background: rgba(248,238,240,.58); }
.faq-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-height) + 30px); margin: 0; }
.faq-heading h2 { font-size: clamp(2rem, 3.7vw, 3rem); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; color: var(--ink-strong); font-weight: 800; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 17px; height: 2px; border-radius: 99px; background: var(--brand-strong); transition: transform .2s ease; }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-answer { padding: 0 48px 22px 0; color: var(--muted); }
.faq-answer p { margin: 0; }

.breadcrumbs { padding: 26px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .83rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: rgba(117,106,115,.55); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-strong); }

.page-hero { position: relative; overflow: hidden; padding-bottom: 70px; background: linear-gradient(180deg, rgba(248,238,240,.74), transparent 92%); }
.page-hero--desktop { background: linear-gradient(180deg, rgba(242,166,90,.11), transparent 92%); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 66px; align-items: center; padding-top: 52px; }
.page-hero__grid--reverse { grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr); }
.page-hero__grid--reverse .page-hero__media { order: -1; }
.page-hero__copy h1 { margin: 0; color: var(--ink-strong); font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 1.01; letter-spacing: -.052em; }
.page-hero__copy > p:not(.eyebrow) { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 1.07rem; }
.page-hero__media { margin: 0; padding: 13px; border-radius: var(--radius-xl); background: rgba(255,255,255,.8); box-shadow: var(--shadow-1); }
.page-hero__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: calc(var(--radius-xl) - 10px); }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: steps; }
.step-item { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.step-number { color: var(--brand-strong); font-size: 1.4rem; font-weight: 850; letter-spacing: -.04em; }
.step-item h3 { margin: 0 0 10px; color: var(--ink-strong); font-size: 1.14rem; }
.step-item p { margin: 0; color: var(--muted); font-size: .94rem; }

.browser-section { background: var(--soft); }
.browser-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 58px; align-items: start; }
.browser-copy h2 { margin: 0; color: var(--ink-strong); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; }
.browser-copy > p:not(.eyebrow) { color: var(--muted); }
.inline-visual { margin: 28px 0 0; }
.inline-visual img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-lg); }
.table-wrap { overflow: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); background: #fff; }
.browser-table { width: 100%; border-collapse: collapse; min-width: 690px; }
.browser-table th, .browser-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.browser-table thead th { position: sticky; top: 0; background: #fff; color: var(--ink-strong); font-size: .82rem; letter-spacing: .04em; }
.browser-table tbody th { color: var(--ink-strong); }
.browser-table td { color: var(--muted); font-size: .9rem; }
.browser-table tr:last-child > * { border-bottom: 0; }

.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.comparison-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; }
.comparison-card img { width: 100%; aspect-ratio: 4/2.7; object-fit: cover; }
.comparison-card > div { padding: 30px; }
.comparison-card h3 { margin: 0 0 12px; color: var(--ink-strong); font-size: 1.45rem; }
.comparison-card p { margin: 0; color: var(--muted); }
.comparison-card ul { margin: 20px 0 0; padding-left: 1.15rem; color: var(--ink); }
.comparison-card li + li { margin-top: 7px; }

.troubleshooting { padding-top: 64px; }
.troubleshooting__grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: 70px; align-items: start; }
.troubleshooting h2 { margin: 0; color: var(--ink-strong); font-size: clamp(2rem, 3.8vw, 3.15rem); line-height: 1.1; }
.troubleshooting p:not(.eyebrow) { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.checklist li { display: grid; grid-template-columns: minmax(160px, .55fr) 1.45fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.checklist strong { color: var(--ink-strong); }
.checklist span { color: var(--muted); }

.note-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.note-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.note-card > span { display: block; margin-bottom: 24px; color: var(--brand-strong); font-weight: 900; font-size: 1.45rem; }
.note-card h3 { margin: 0 0 12px; color: var(--ink-strong); font-size: 1.08rem; line-height: 1.35; }
.note-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.wide-layout-demo { background: var(--soft); }
.wide-layout-demo__grid { display: grid; grid-template-columns: minmax(360px, 1.08fr) minmax(280px, .92fr); gap: 64px; align-items: center; }
.wide-layout-demo figure { margin: 0; }
.wide-layout-demo figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-1); }
.wide-layout-demo h2 { margin: 0; color: var(--ink-strong); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.12; }
.wide-layout-demo p:not(.eyebrow) { color: var(--muted); }
.feature-dl { margin: 26px 0 0; }
.feature-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line-strong); }
.feature-dl div:last-child { border-bottom: 1px solid var(--line-strong); }
.feature-dl dt { font-weight: 800; color: var(--ink-strong); }
.feature-dl dd { margin: 0; color: var(--muted); }

.keyboard-section__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 64px; align-items: center; }
.keyboard-section h2 { margin: 0; color: var(--ink-strong); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.12; }
.keyboard-section p:not(.eyebrow) { color: var(--muted); }
.keyboard-section figure { margin: 0; }
.keyboard-section figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-xl); }
.key-tips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.key-tips span { padding: 8px 11px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: .84rem; }
kbd { display: inline-flex; min-width: 27px; min-height: 25px; align-items: center; justify-content: center; padding: 1px 6px; margin-right: 3px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--ink-strong); font-family: inherit; font-weight: 800; font-size: .76rem; }

.vertical-media { background: linear-gradient(180deg, #fff, rgba(248,238,240,.72)); }
.vertical-media__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 70px; align-items: center; }
.vertical-media__copy h2 { margin: 0; color: var(--ink-strong); font-size: clamp(2.05rem, 4vw, 3.45rem); line-height: 1.11; }
.vertical-media__copy p:not(.eyebrow) { max-width: 700px; color: var(--muted); }
.vertical-frame { justify-self: center; width: min(360px, 100%); padding: 13px; border-radius: 34px; background: var(--ink-strong); box-shadow: var(--shadow-2); }
.vertical-frame img { width: 100%; aspect-ratio: 9/14; object-fit: cover; border-radius: 23px; }

.error-panel { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: 80px 0; background: radial-gradient(circle at 15% 15%, rgba(242,166,90,.16), transparent 35%), radial-gradient(circle at 85% 70%, rgba(232,93,117,.16), transparent 38%); }
.error-panel__inner { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 70px; align-items: center; }
.error-code { font-size: clamp(7rem, 22vw, 17rem); font-weight: 950; line-height: .75; letter-spacing: -.08em; color: rgba(232,93,117,.18); user-select: none; }
.error-copy h1 { margin: 0; color: var(--ink-strong); font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.045em; }
.error-copy > p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
.error-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .65fr 1fr; gap: 54px; align-items: start; }
.footer-title { color: var(--ink-strong); font-size: 1.15rem; font-weight: 900; text-decoration: none; }
.footer-brand p, .footer-note p { max-width: 460px; margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { width: fit-content; color: var(--ink); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--brand-strong); }
.footer-note { justify-self: end; max-width: 340px; }

.reveal-on-load { animation: reveal .7s var(--ease) both; }
.hero-visual.reveal-on-load { animation-delay: .08s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1080px) {
  :root { --shell: min(100% - 36px, 1020px); }
  .hero-grid, .page-hero__grid, .page-hero__grid--reverse { gap: 44px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
  .type-card:nth-child(n) { grid-column: span 6; display: block; }
  .note-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { gap: 48px; }
}

@media (max-width: 860px) {
  :root { --header-height: 68px; }
  .section { padding: 76px 0; }
  .section--tight { padding: 42px 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 4px; padding: 18px 18px 28px; border-bottom: 1px solid var(--line); background: rgba(255,249,246,.98); box-shadow: 0 20px 40px rgba(47,37,48,.08); transform: translateY(-120%); visibility: hidden; opacity: 0; transition: transform .24s var(--ease), opacity .2s ease, visibility .2s ease; }
  .site-nav.is-open { transform: translateY(0); visibility: visible; opacity: 1; }
  .site-nav a { padding: 14px 15px; border-radius: 14px; }
  .hero { padding-top: 48px; }
  .hero-grid, .page-hero__grid, .page-hero__grid--reverse, .feature-band__grid, .wide-layout-demo__grid, .keyboard-section__grid, .vertical-media__inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; justify-self: center; transform: none; }
  .page-hero__grid--reverse .page-hero__media { order: initial; }
  .page-hero__media { max-width: 680px; }
  .highlight-strip { grid-template-columns: 1fr; }
  .highlight-item + .highlight-item { border-left: 0; border-top: 1px solid var(--line); }
  .section-heading--split { grid-template-columns: 1fr; gap: 18px; }
  .section-heading--split > p { justify-self: start; }
  .flow-card--wide { grid-template-columns: 1fr; }
  .flow-card--wide img { max-height: 430px; }
  .desktop-bridge__inner { grid-template-columns: 1fr; }
  .desktop-bridge__inner .button { justify-self: start; }
  .faq-layout, .browser-layout, .troubleshooting__grid, .error-panel__inner { grid-template-columns: 1fr; }
  .faq-heading { position: static; }
  .browser-copy { max-width: 720px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr .8fr; }
  .footer-note { grid-column: 1 / -1; justify-self: start; max-width: 660px; }
  .vertical-frame { justify-self: start; }
  .error-code { margin-bottom: -26px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); --radius-lg: 24px; --radius-xl: 30px; }
  .brand-copy small { display: none; }
  .brand-logo { width: 42px; height: 42px; border-radius: 12px; }
  .hero { padding-top: 38px; }
  .hero-copy h1, .page-hero__copy h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .hero-lead, .page-hero__copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-actions, .page-hero__actions { align-items: stretch; }
  .hero-actions .button, .page-hero__actions .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
  .hero-facts span { margin-top: 0; }
  .hero-visual { padding: 10px; }
  .highlight-item { padding: 22px 18px; }
  .type-grid { grid-template-columns: 1fr; }
  .type-card:nth-child(n) { grid-column: auto; }
  .type-card__body { padding: 21px; }
  .feature-band__grid { gap: 38px; }
  .info-pairs > div, .feature-dl div { grid-template-columns: 1fr; gap: 5px; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card--wide { grid-column: auto; }
  .flow-card > div { padding: 24px; }
  .desktop-bridge__inner { padding: 28px 22px; }
  .faq-answer { padding-right: 20px; }
  .page-hero__grid { padding-top: 38px; gap: 36px; }
  .step-list { grid-template-columns: 1fr; }
  .step-item { grid-template-columns: 46px 1fr; padding: 23px 20px; }
  .comparison-card > div { padding: 24px 22px; }
  .checklist li { grid-template-columns: 1fr; gap: 4px; }
  .note-grid { grid-template-columns: 1fr; }
  .note-card { padding: 24px 21px; }
  .key-tips { display: grid; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-note { grid-column: auto; }
  .error-links { align-items: stretch; }
  .error-links .button { width: 100%; }
}

@media (max-width: 420px) {
  :root { --shell: calc(100% - 22px); }
  .section { padding: 64px 0; }
  .hero-copy h1, .page-hero__copy h1 { font-size: clamp(2.2rem, 12.5vw, 3.05rem); }
  .section-heading h2, .feature-band__copy h2, .wide-layout-demo h2, .keyboard-section h2, .vertical-media__copy h2 { font-size: 2rem; }
  .hero-facts li { grid-template-columns: 1fr; gap: 0; }
  .page-hero__media { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .page-hero__actions, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { min-height: 0; }
  .section, .hero, .page-hero { padding: 24px 0; }
  .shell { width: 100%; }
  .type-card, .flow-card, .comparison-card, .note-card, .desktop-bridge__inner { break-inside: avoid; box-shadow: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  img { max-height: 420px; object-fit: contain; }
}

/* Reusable spacing and readable-width helpers */
.space-y-1 > * + * { margin-top: 4px; }
.pad-block-1 { padding-block: 9px; }
.max-line-1 { max-width: 39ch; }
.space-y-2 > * + * { margin-top: 5px; }
.pad-block-2 { padding-block: 10px; }
.max-line-2 { max-width: 40ch; }
.space-y-3 > * + * { margin-top: 5px; }
.pad-block-3 { padding-block: 11px; }
.max-line-3 { max-width: 41ch; }
.space-y-4 > * + * { margin-top: 6px; }
.pad-block-4 { padding-block: 12px; }
.max-line-4 { max-width: 42ch; }
.space-y-5 > * + * { margin-top: 6px; }
.pad-block-5 { padding-block: 13px; }
.max-line-5 { max-width: 43ch; }
.space-y-6 > * + * { margin-top: 7px; }
.pad-block-6 { padding-block: 14px; }
.max-line-6 { max-width: 44ch; }
.space-y-7 > * + * { margin-top: 7px; }
.pad-block-7 { padding-block: 15px; }
.max-line-7 { max-width: 45ch; }
.space-y-8 > * + * { margin-top: 8px; }
.pad-block-8 { padding-block: 16px; }
.max-line-8 { max-width: 46ch; }
.space-y-9 > * + * { margin-top: 8px; }
.pad-block-9 { padding-block: 17px; }
.max-line-9 { max-width: 47ch; }
.space-y-10 > * + * { margin-top: 9px; }
.pad-block-10 { padding-block: 18px; }
.max-line-10 { max-width: 48ch; }
.space-y-11 > * + * { margin-top: 9px; }
.pad-block-11 { padding-block: 19px; }
.max-line-11 { max-width: 49ch; }
.space-y-12 > * + * { margin-top: 10px; }
.pad-block-12 { padding-block: 20px; }
.max-line-12 { max-width: 50ch; }
.space-y-13 > * + * { margin-top: 10px; }
.pad-block-13 { padding-block: 21px; }
.max-line-13 { max-width: 51ch; }
.space-y-14 > * + * { margin-top: 11px; }
.pad-block-14 { padding-block: 22px; }
.max-line-14 { max-width: 52ch; }
.space-y-15 > * + * { margin-top: 11px; }
.pad-block-15 { padding-block: 23px; }
.max-line-15 { max-width: 53ch; }
.space-y-16 > * + * { margin-top: 12px; }
.pad-block-16 { padding-block: 24px; }
.max-line-16 { max-width: 54ch; }
.space-y-17 > * + * { margin-top: 12px; }
.pad-block-17 { padding-block: 25px; }
.max-line-17 { max-width: 55ch; }
.space-y-18 > * + * { margin-top: 13px; }
.pad-block-18 { padding-block: 26px; }
.max-line-18 { max-width: 56ch; }
.space-y-19 > * + * { margin-top: 13px; }
.pad-block-19 { padding-block: 27px; }
.max-line-19 { max-width: 57ch; }
.space-y-20 > * + * { margin-top: 14px; }
.pad-block-20 { padding-block: 28px; }
.max-line-20 { max-width: 58ch; }
.space-y-21 > * + * { margin-top: 14px; }
.pad-block-21 { padding-block: 29px; }
.max-line-21 { max-width: 59ch; }
.space-y-22 > * + * { margin-top: 15px; }
.pad-block-22 { padding-block: 30px; }
.max-line-22 { max-width: 60ch; }
.space-y-23 > * + * { margin-top: 15px; }
.pad-block-23 { padding-block: 31px; }
.max-line-23 { max-width: 61ch; }
.space-y-24 > * + * { margin-top: 16px; }
.pad-block-24 { padding-block: 32px; }
.max-line-24 { max-width: 62ch; }
.space-y-25 > * + * { margin-top: 16px; }
.pad-block-25 { padding-block: 33px; }
.max-line-25 { max-width: 63ch; }
.space-y-26 > * + * { margin-top: 17px; }
.pad-block-26 { padding-block: 34px; }
.max-line-26 { max-width: 64ch; }
.space-y-27 > * + * { margin-top: 17px; }
.pad-block-27 { padding-block: 35px; }
.max-line-27 { max-width: 65ch; }
.space-y-28 > * + * { margin-top: 18px; }
.pad-block-28 { padding-block: 36px; }
.max-line-28 { max-width: 66ch; }
.space-y-29 > * + * { margin-top: 18px; }
.pad-block-29 { padding-block: 37px; }
.max-line-29 { max-width: 67ch; }
.space-y-30 > * + * { margin-top: 19px; }
.pad-block-30 { padding-block: 38px; }
.max-line-30 { max-width: 68ch; }
.space-y-31 > * + * { margin-top: 19px; }
.pad-block-31 { padding-block: 39px; }
.max-line-31 { max-width: 69ch; }
.space-y-32 > * + * { margin-top: 20px; }
.pad-block-32 { padding-block: 40px; }
.max-line-32 { max-width: 70ch; }
.space-y-33 > * + * { margin-top: 20px; }
.pad-block-33 { padding-block: 41px; }
.max-line-33 { max-width: 71ch; }
.space-y-34 > * + * { margin-top: 21px; }
.pad-block-34 { padding-block: 42px; }
.max-line-34 { max-width: 72ch; }
.space-y-35 > * + * { margin-top: 21px; }
.pad-block-35 { padding-block: 43px; }
.max-line-35 { max-width: 73ch; }
.space-y-36 > * + * { margin-top: 22px; }
.pad-block-36 { padding-block: 44px; }
.max-line-36 { max-width: 74ch; }
.space-y-37 > * + * { margin-top: 22px; }
.pad-block-37 { padding-block: 45px; }
.max-line-37 { max-width: 75ch; }
.space-y-38 > * + * { margin-top: 23px; }
.pad-block-38 { padding-block: 46px; }
.max-line-38 { max-width: 76ch; }
.space-y-39 > * + * { margin-top: 23px; }
.pad-block-39 { padding-block: 47px; }
.max-line-39 { max-width: 77ch; }
.space-y-40 > * + * { margin-top: 24px; }
.pad-block-40 { padding-block: 48px; }
.max-line-40 { max-width: 78ch; }
.space-y-41 > * + * { margin-top: 24px; }
.pad-block-41 { padding-block: 49px; }
.max-line-41 { max-width: 79ch; }
.space-y-42 > * + * { margin-top: 25px; }
.pad-block-42 { padding-block: 50px; }
.max-line-42 { max-width: 80ch; }
.space-y-43 > * + * { margin-top: 25px; }
.pad-block-43 { padding-block: 51px; }
.max-line-43 { max-width: 81ch; }
.space-y-44 > * + * { margin-top: 26px; }
.pad-block-44 { padding-block: 52px; }
.max-line-44 { max-width: 82ch; }
.space-y-45 > * + * { margin-top: 26px; }
.pad-block-45 { padding-block: 53px; }
.max-line-45 { max-width: 83ch; }
.space-y-46 > * + * { margin-top: 27px; }
.pad-block-46 { padding-block: 54px; }
.max-line-46 { max-width: 84ch; }
.space-y-47 > * + * { margin-top: 27px; }
.pad-block-47 { padding-block: 55px; }
.max-line-47 { max-width: 84ch; }
.space-y-48 > * + * { margin-top: 28px; }
.pad-block-48 { padding-block: 56px; }
.max-line-48 { max-width: 84ch; }
.space-y-49 > * + * { margin-top: 28px; }
.pad-block-49 { padding-block: 57px; }
.max-line-49 { max-width: 84ch; }
.space-y-50 > * + * { margin-top: 29px; }
.pad-block-50 { padding-block: 58px; }
.max-line-50 { max-width: 84ch; }
.space-y-51 > * + * { margin-top: 29px; }
.pad-block-51 { padding-block: 59px; }
.max-line-51 { max-width: 84ch; }
.space-y-52 > * + * { margin-top: 30px; }
.pad-block-52 { padding-block: 60px; }
.max-line-52 { max-width: 84ch; }
.space-y-53 > * + * { margin-top: 30px; }
.pad-block-53 { padding-block: 61px; }
.max-line-53 { max-width: 84ch; }
.space-y-54 > * + * { margin-top: 31px; }
.pad-block-54 { padding-block: 62px; }
.max-line-54 { max-width: 84ch; }
.space-y-55 > * + * { margin-top: 31px; }
.pad-block-55 { padding-block: 63px; }
.max-line-55 { max-width: 84ch; }
.space-y-56 > * + * { margin-top: 32px; }
.pad-block-56 { padding-block: 64px; }
.max-line-56 { max-width: 84ch; }
.space-y-57 > * + * { margin-top: 32px; }
.pad-block-57 { padding-block: 65px; }
.max-line-57 { max-width: 84ch; }
.space-y-58 > * + * { margin-top: 33px; }
.pad-block-58 { padding-block: 66px; }
.max-line-58 { max-width: 84ch; }
.space-y-59 > * + * { margin-top: 33px; }
.pad-block-59 { padding-block: 67px; }
.max-line-59 { max-width: 84ch; }
.space-y-60 > * + * { margin-top: 34px; }
.pad-block-60 { padding-block: 68px; }
.max-line-60 { max-width: 84ch; }

/* Content-state guide */
.status-guide { padding-top: 70px; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.status-card { position: relative; min-height: 250px; padding: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.status-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -65px; bottom: -72px; border-radius: 50%; background: rgba(232,93,117,.08); }
.status-card > span { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-strong); font-size: .76rem; font-weight: 850; }
.status-card h3 { margin: 18px 0 10px; color: var(--ink-strong); font-size: 1.2rem; line-height: 1.35; }
.status-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.status-card:nth-child(2n)::after { background: rgba(242,166,90,.1); }

/* Symptom-driven web troubleshooting */
.issue-matrix { background: rgba(255,255,255,.66); }
.issue-list { border-top: 1px solid var(--line-strong); }
.issue-row { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(180px,.55fr) minmax(0,1.2fr); gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.issue-row h3 { margin: 0; color: var(--ink-strong); font-size: 1.02rem; line-height: 1.5; }
.issue-row div { min-width: 0; }
.issue-row strong { display: block; margin-bottom: 5px; color: var(--brand-strong); font-size: .75rem; letter-spacing: .07em; }
.issue-row p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Desktop scenarios */
.desktop-scenarios { background: rgba(248,238,240,.55); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.scenario-card { display: flex; flex-direction: column; min-height: 270px; padding: 28px 24px; border: 1px solid rgba(47,37,48,.1); border-radius: var(--radius-lg); background: rgba(255,255,255,.86); }
.scenario-card h3 { margin: 0 0 12px; color: var(--ink-strong); font-size: 1.16rem; }
.scenario-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.scenario-card span { display: block; margin-top: auto; padding-top: 20px; color: var(--ink); font-size: .82rem; border-top: 1px solid var(--line); }

/* Header scrolled state and image readiness are progressive enhancements. */
.site-header.is-scrolled { box-shadow: 0 10px 26px rgba(47,37,48,.07); }
img { opacity: 1; }
img[loading="lazy"] { transition: opacity .25s ease; }
img[loading="lazy"]:not(.is-ready) { opacity: .985; }

/* Long text protection for dynamic or translated environments. */
.type-card__body, .highlight-item div, .flow-card > div, .comparison-card > div, .note-card, .scenario-card, .issue-row > * { min-width: 0; }
.type-card h3, .highlight-item h3, .flow-card h3, .comparison-card h3, .note-card h3, .scenario-card h3, .issue-row h3 { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .status-grid, .scenario-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .issue-row { grid-template-columns: minmax(200px,.8fr) 1fr; }
  .issue-row > div:last-child { grid-column: 2; }
}

@media (max-width: 640px) {
  .status-grid, .scenario-grid { grid-template-columns: 1fr; }
  .status-card, .scenario-card { min-height: 0; }
  .issue-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .issue-row > div:last-child { grid-column: auto; }
  .issue-row h3 { font-size: 1rem; }
}

@media (forced-colors: active) {
  .button, .site-nav a, .status-card, .scenario-card, .type-card, .flow-card, .comparison-card { border: 1px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
  .highlight-icon::before, .highlight-icon::after { border-color: ButtonText; }
}

/* Fine-grained responsive tuning for the components actually used above. */
@media (min-width: 1181px) {
  .home-hero .hero-copy { padding-right: 12px; }
  .home-hero .hero-visual { max-width: 520px; justify-self: end; }
  .content-stage .type-grid { align-items: stretch; }
  .type-card:nth-child(3), .type-card:nth-child(4), .type-card:nth-child(5), .type-card:nth-child(6) { min-height: 490px; }
  .feature-band__copy { padding-right: 18px; }
  .flow-card--wide > div { padding-inline: 42px; }
  .faq-list { max-width: 760px; justify-self: end; width: 100%; }
  .page-hero__copy { padding-right: 8px; }
  .page-hero__grid--reverse .page-hero__copy { padding-right: 0; padding-left: 16px; }
  .browser-table th:first-child { min-width: 170px; }
  .issue-row h3 { padding-right: 14px; }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .site-nav a { padding-inline: 12px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(320px,.78fr); }
  .hero-visual { max-width: 470px; justify-self: end; }
  .hero-facts { gap: 16px; }
  .type-card__media { min-height: 210px; }
  .feature-band__grid { gap: 48px; }
  .feature-band__copy h2 { font-size: clamp(2.2rem,4vw,3.2rem); }
  .flow-card > div { padding: 26px; }
  .desktop-bridge__inner { padding-inline: 34px; }
  .page-hero__grid { grid-template-columns: minmax(0,1.05fr) minmax(300px,.75fr); }
  .page-hero__grid--reverse { grid-template-columns: minmax(300px,.75fr) minmax(0,1.05fr); }
  .page-hero__copy h1 { font-size: clamp(2.7rem,5vw,4.2rem); }
  .step-item { padding: 25px; }
  .comparison-card > div { padding: 27px; }
  .note-card { padding-inline: 22px; }
  .scenario-card { padding: 25px 22px; }
}

@media (min-width: 641px) and (max-width: 860px) {
  .header-row { min-height: var(--header-height); }
  .brand-copy strong { font-size: .98rem; }
  .site-nav a { font-size: 1rem; }
  .hero-grid { gap: 42px; }
  .hero-copy { max-width: 760px; }
  .hero-copy h1 { max-width: 720px; }
  .hero-lead { max-width: 700px; }
  .hero-facts { max-width: 760px; }
  .hero-visual { width: min(620px,92%); }
  .section-heading { margin-bottom: 34px; }
  .type-card:nth-child(n) { min-height: 0; }
  .type-card__media { aspect-ratio: 16/10; min-height: 0; }
  .feature-band__media { width: min(650px,95%); }
  .feature-band__copy { max-width: 740px; }
  .flow-card { min-height: 0; }
  .flow-card:not(.flow-card--wide) img { aspect-ratio: 16/9; min-height: 0; }
  .desktop-bridge__inner { padding: 34px; }
  .faq-layout { gap: 34px; }
  .faq-heading { max-width: 680px; }
  .faq-list { max-width: 760px; }
  .page-hero__copy { max-width: 760px; }
  .page-hero__media { width: min(680px,94%); }
  .step-list { gap: 14px; }
  .step-item { padding: 24px; }
  .browser-layout { gap: 38px; }
  .table-wrap { max-width: 100%; }
  .comparison-grid { max-width: 760px; }
  .troubleshooting__grid { gap: 34px; }
  .note-grid { gap: 14px; }
  .wide-layout-demo__grid, .keyboard-section__grid, .vertical-media__inner { gap: 42px; }
  .wide-layout-demo figure, .keyboard-section figure { width: min(700px,96%); }
  .vertical-frame { width: min(330px,70%); }
  .status-grid, .scenario-grid { gap: 14px; }
}

@media (min-width: 481px) and (max-width: 640px) {
  .header-row { min-height: var(--header-height); }
  .brand-lockup { gap: 10px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { line-height: 1.16; }
  .hero-copy .eyebrow, .page-hero__copy .eyebrow { margin-bottom: 8px; }
  .hero-actions, .page-hero__actions { margin-top: 27px; }
  .hero-actions .text-link, .page-hero__actions .text-link { justify-content: center; min-height: 44px; }
  .hero-visual figcaption { font-size: .78rem; }
  .highlight-item { grid-template-columns: 40px 1fr; }
  .type-card__media { aspect-ratio: 16/10; min-height: 0; }
  .compact-list { margin-top: 15px; }
  .feature-band__copy > p:not(.eyebrow) { margin-top: 18px; }
  .flow-card img { aspect-ratio: 16/10; min-height: 0; }
  .desktop-bridge { padding-block: 36px; }
  .faq-item summary { padding-block: 19px; }
  .breadcrumbs { padding-top: 20px; }
  .page-hero { padding-bottom: 58px; }
  .step-item { gap: 14px; }
  .browser-copy h2 { line-height: 1.16; }
  .comparison-card img { aspect-ratio: 16/10; }
  .troubleshooting { padding-top: 54px; }
  .wide-layout-demo figure img, .keyboard-section figure img { aspect-ratio: 16/10; }
  .vertical-frame { justify-self: center; width: min(330px,78%); }
  .error-panel { padding-block: 64px; }
  .error-code { font-size: 9rem; }
}

@media (max-width: 480px) {
  .button { min-height: 50px; padding-inline: 18px; }
  .site-nav { padding-inline: 11px; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; }
  .hero { padding-bottom: 54px; }
  .hero-actions .text-link, .page-hero__actions .text-link { min-height: 44px; justify-content: center; }
  .hero-visual::before { inset: -8px 10px 10px -8px; }
  .hero-visual figcaption { padding-inline: 4px; }
  .highlight-item { grid-template-columns: 38px 1fr; gap: 12px; }
  .highlight-icon { width: 38px; height: 38px; border-radius: 12px; }
  .type-card__media { aspect-ratio: 16/10; min-height: 0; }
  .type-card__body h3 { font-size: 1.16rem; }
  .compact-list li { font-size: .82rem; }
  .feature-band__media::after { inset: 14px -9px -10px 14px; }
  .feature-band__copy .button { width: 100%; }
  .info-pairs > div { padding-block: 13px; }
  .flow-card img { aspect-ratio: 16/10; min-height: 0; }
  .flow-card h3 { font-size: 1.24rem; }
  .desktop-bridge__inner .button { width: 100%; }
  .faq-item summary { padding-block: 18px; }
  .faq-answer { font-size: .94rem; }
  .breadcrumbs ol { font-size: .8rem; }
  .page-hero { padding-bottom: 52px; }
  .page-hero__media img { aspect-ratio: 4/3; }
  .step-number { font-size: 1.2rem; }
  .browser-table th, .browser-table td { padding: 15px 16px; }
  .comparison-card img { aspect-ratio: 16/10; }
  .comparison-card h3 { font-size: 1.3rem; }
  .note-card > span { margin-bottom: 18px; }
  .feature-dl div { padding-block: 12px; }
  .keyboard-section figure img { aspect-ratio: 4/3; }
  .key-tips span { line-height: 1.55; }
  .status-card, .scenario-card { padding: 23px 20px; }
  .issue-row strong { margin-bottom: 2px; }
  .footer-grid { gap: 28px; }
}

@media (hover: hover) and (pointer: fine) {
  .brand-lockup:hover .brand-logo { transform: translateY(-1px); }
  .brand-logo { transition: transform .2s var(--ease), box-shadow .2s ease; }
  .brand-lockup:hover .brand-logo { box-shadow: 0 8px 18px rgba(70,38,48,.12); }
  .status-card, .scenario-card { transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
  .status-card:hover, .scenario-card:hover { transform: translateY(-3px); border-color: rgba(217,63,99,.2); box-shadow: var(--shadow-1); }
  .faq-item summary:hover { color: var(--brand-strong); }
  .footer-links a:hover { text-decoration: underline; text-decoration-thickness: .08em; }
  .issue-row:hover h3 { color: var(--brand-strong); }
}

@media (hover: none) and (pointer: coarse) {
  .site-nav a, .footer-links a { min-height: 44px; }
  .faq-item summary { min-height: 54px; display: flex; align-items: center; }
  .button { min-height: 50px; }
  .text-link { min-height: 44px; }
  .breadcrumbs a { min-height: 36px; display: inline-flex; align-items: center; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 940px) {
  .site-header { position: relative; }
  .site-nav { top: var(--header-height); max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
  .hero, .page-hero { padding-top: 30px; }
  .hero-grid, .page-hero__grid { align-items: start; }
  .hero-visual, .page-hero__media { max-height: 72vh; overflow: hidden; }
  .hero-visual img, .page-hero__media img { max-height: 64vh; object-fit: cover; }
}

@supports (text-wrap: balance) {
  .hero-copy h1, .page-hero__copy h1, .section-heading h2, .feature-band__copy h2, .wide-layout-demo h2, .keyboard-section h2, .vertical-media__copy h2, .desktop-bridge h2 { text-wrap: balance; }
  .type-card h3, .flow-card h3, .comparison-card h3, .note-card h3, .status-card h3, .scenario-card h3 { text-wrap: pretty; }
}

@supports not (backdrop-filter: blur(16px)) {
  .site-header { background: rgba(255,249,246,.985); }
}

@supports (overflow: clip) {
  .hero, .page-hero { overflow: clip; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(47,37,48,.28); --line-strong: rgba(47,37,48,.48); --muted: #5c515a; }
  .button--primary { box-shadow: none; }
  .type-card, .flow-card, .comparison-card, .note-card, .status-card, .scenario-card, .highlight-strip, .desktop-bridge__inner { border-width: 2px; }
  .site-nav a.is-active { outline: 2px solid var(--brand-strong); outline-offset: 1px; }
  .eyebrow { color: #b52e4f; }
}
