/*
 * 红果短剧 - 清爽温暖内容平台主题
 * 原生 CSS，无外链字体与第三方框架。
 */
:root {
  --brand: #2F8F83;
  --brand-deep: #26786f;
  --brand-soft: #dff0eb;
  --warm: #F2B36F;
  --warm-soft: #fff1df;
  --ink: #243331;
  --text: #2E3836;
  --muted: #71807C;
  --accent: #E96B4C;
  --paper: #FAFCFA;
  --surface: #ffffff;
  --surface-2: #EEF5F2;
  --line: #d9e5e1;
  --shadow-sm: 0 8px 26px rgba(36, 51, 49, 0.07);
  --shadow-md: 0 22px 60px rgba(36, 51, 49, 0.10);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shell: min(1180px, calc(100% - 40px));
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
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; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 9999; transform: translateY(-160%);
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(233, 107, 76, .48); outline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 80; background: rgba(250,252,250,.92); border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 26px rgba(36,51,49,.05); background: rgba(250,252,250,.97); }
.site-header__inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; min-width: 210px; text-decoration: none; }
.brand-lockup img { width: 48px; height: 48px; object-fit: contain; border-radius: 13px; }
.brand-lockup__copy { display: grid; line-height: 1.18; }
.brand-lockup__copy strong { font-size: 18px; letter-spacing: .01em; color: var(--ink); }
.brand-lockup__copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.site-nav { margin-left: auto; display: flex; align-items: stretch; gap: 5px; }
.site-nav a {
  display: grid; align-content: center; min-height: 58px; padding: 8px 15px; border-radius: 14px;
  text-decoration: none; transition: background .18s ease, transform .18s ease;
}
.site-nav a span { font-size: 14px; font-weight: 750; color: var(--ink); }
.site-nav a small { margin-top: 1px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.site-nav a:hover { background: var(--surface-2); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { background: #e5f2ee; box-shadow: inset 0 0 0 1px rgba(47,143,131,.12); }
.site-nav a[aria-current="page"] span { color: var(--brand-deep); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer; }
.nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 99px; content: ""; transition: transform .18s ease; }
.nav-toggle__icon { margin: 0 auto; position: relative; }
.nav-toggle__icon::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__icon::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.hero { padding: 48px 0 72px; overflow: clip; }
.hero--home { background: linear-gradient(180deg, #f7fbf8 0%, #FAFCFA 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .72fr); gap: clamp(44px, 7vw, 92px); align-items: center; }
.hero__copy { padding: 30px 0 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-deep); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(233,107,76,.12); }
.hero h1, .page-hero h1 { margin: 18px 0 22px; color: var(--ink); font-size: clamp(40px, 5.3vw, 68px); line-height: 1.09; letter-spacing: -.035em; }
.hero__lead { max-width: 710px; margin: 0; color: #42514e; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.82; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border-radius: 13px; font-weight: 780; text-decoration: none; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--brand); box-shadow: 0 12px 28px rgba(47,143,131,.20); }
.button--primary:hover { background: var(--brand-deep); }
.button--ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.button--ghost:hover { box-shadow: var(--shadow-sm); }
.button--dark { color: #fff; background: var(--ink); }
.button--light { color: var(--ink); background: #fff; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 42px; max-width: 720px; }
.hero__facts span { padding: 13px 15px; border-left: 2px solid #b8d9d2; }
.hero__facts strong, .hero__facts small { display: block; }
.hero__facts strong { color: var(--ink); font-size: 14px; }
.hero__facts small { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.hero__media { margin: 0; position: relative; }
.hero__media::before { content: ""; position: absolute; inset: -24px -60px 26% 18%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(242,179,111,.35), rgba(242,179,111,0) 68%); }
.hero__media img { width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: 38px 38px 108px 38px; box-shadow: var(--shadow-md); }
.hero__media figcaption { position: absolute; left: -42px; bottom: 28px; max-width: 280px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.94); border: 1px solid rgba(217,229,225,.9); box-shadow: var(--shadow-sm); color: #51605d; font-size: 12px; line-height: 1.6; }

.section { padding: 78px 0; }
.section--discover { padding-top: 46px; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); gap: 48px; align-items: end; }
.section-heading--centered { margin-inline: auto; text-align: center; }
.kicker { display: block; margin-bottom: 9px; color: var(--brand-deep); font-size: 12px; line-height: 1.2; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h2, .feature-split__copy h2, .device-strip h2, .faq-layout__intro h2, .ratio-layout h2, .keyboard-layout h2, .privacy-note h2, .handoff-card h2, .install-layout h2, .troubleshoot-grid h2 {
  margin: 0; color: var(--ink); font-size: clamp(30px, 3.55vw, 48px); line-height: 1.16; letter-spacing: -.028em;
}
.section-heading p { margin: 16px 0 0; color: var(--muted); font-size: 15.5px; }
.section-heading--split > p { margin: 0; padding-bottom: 3px; }

.filter-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.filter-bar__label { padding-left: 4px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.filter-bar__buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { border: 0; border-radius: 999px; padding: 8px 13px; background: var(--surface-2); color: #4d5d59; font-size: 12px; font-weight: 750; cursor: pointer; }
.filter-chip:hover { background: #e0ece8; }
.filter-chip.is-active { background: var(--ink); color: #fff; }
.filter-status { margin: 0 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card { min-height: 274px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 1px 0 rgba(36,51,49,.02); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #c7dcd6; }
.topic-card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--brand-deep); font-size: 11px; font-weight: 800; }
.topic-card__meta span:last-child { color: var(--muted); font-weight: 650; }
.topic-card h3 { margin: 16px 0 10px; color: var(--ink); font-size: 20px; line-height: 1.38; }
.topic-card p { margin: 0; color: #5c6b68; font-size: 13.5px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: #55706a; font-size: 10.5px; font-weight: 750; }
.topic-card__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf2f0; color: var(--muted); font-size: 11.5px; }
.topic-card__note strong { color: #49625c; }

.section--lanes { background: var(--surface-2); }
.lane-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lane-card { position: relative; overflow: hidden; padding: 26px 23px 24px; border-radius: 22px; background: #fff; border: 1px solid rgba(217,229,225,.86); }
.lane-card__index { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 11px; background: var(--warm-soft); color: #9a5b22; font-size: 11px; font-weight: 850; }
.lane-card h3 { margin: 17px 0 9px; color: var(--ink); font-size: 19px; }
.lane-card p { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.lane-card ul { margin: 0; padding: 0; list-style: none; }
.lane-card li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid #edf2f0; color: #53625f; font-size: 12px; }
.lane-card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.section--feature-split { padding-block: 96px; }
.feature-split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(42px, 7vw, 88px); align-items: center; }
.feature-split__media { position: relative; }
.feature-split__media::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 42%; aspect-ratio: 1; border-radius: 24px; background: var(--warm-soft); z-index: -1; }
.feature-split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 32px 90px 32px 32px; box-shadow: var(--shadow-md); }
.feature-split__copy > p { margin: 20px 0 0; color: #5b6966; }
.compact-points { display: grid; gap: 10px; margin: 27px 0; }
.compact-points > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.compact-points strong { color: var(--ink); font-size: 13px; }
.compact-points span { color: var(--muted); font-size: 12.5px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-deep); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.section--device-strip { padding-top: 12px; }
.device-strip { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.2fr); gap: 46px; padding: 44px; border-radius: 32px; background: var(--ink); color: #fff; }
.device-strip .kicker { color: #9ed6cc; }
.device-strip h2 { color: #fff; }
.device-strip__intro p { color: #c8d3d0; }
.device-strip__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.device-strip__cards article { padding: 22px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.device-strip__cards h3 { margin: 0 0 10px; font-size: 16px; }
.device-strip__cards p { margin: 0; color: #c8d3d0; font-size: 12px; }

.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.principle-card { padding: 25px; border-top: 4px solid var(--warm); background: #fff; border-radius: 0 0 20px 20px; box-shadow: var(--shadow-sm); }
.principle-card > span { color: #b56e2f; font-weight: 850; font-size: 12px; }
.principle-card h3 { margin: 12px 0 8px; color: var(--ink); font-size: 18px; }
.principle-card p { margin: 0; color: var(--muted); font-size: 13px; }

.app-teaser { padding-top: 18px; }
.app-teaser__inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; padding: 34px 38px; border-radius: 28px; background: linear-gradient(125deg, var(--brand) 0%, #3d9f90 100%); color: #fff; }
.app-teaser .kicker { color: #d9f3ed; }
.app-teaser h2 { margin: 0; color: #fff; font-size: clamp(26px,3vw,39px); line-height: 1.2; }
.app-teaser p { margin: 10px 0 0; color: #e3f4f0; }
.app-teaser .button { flex: 0 0 auto; }

.section--faq { background: #f5f9f7; }
.faq-layout { display: grid; grid-template-columns: minmax(280px,.62fr) minmax(0,1fr); gap: clamp(34px,6vw,78px); align-items: start; }
.faq-layout__intro { position: sticky; top: 112px; }
.faq-layout__intro p { color: var(--muted); }
.faq-layout__intro img { margin-top: 24px; width: 100%; max-width: 410px; aspect-ratio: 7/5; object-fit: cover; border-radius: 24px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: clip; }
.faq-item summary { position: relative; padding: 19px 52px 19px 20px; list-style: none; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 780; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 17px; color: var(--brand); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 19px; color: var(--muted); font-size: 13.5px; }
.faq-answer p { margin: 0; }

.site-footer { padding: 54px 0 22px; background: #1f2e2c; color: #d3ddda; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .75fr 1fr; gap: 58px; align-items: start; }
.footer-brand__name { color: #fff; font-size: 22px; font-weight: 850; text-decoration: none; }
.footer-brand p, .footer-note p { color: #9fb1ad; font-size: 12.5px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(80px,1fr)); gap: 9px 14px; }
.footer-links a { color: #dce8e4; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); color: #889c97; font-size: 11px; }
.footer-bottom a { color: inherit; }

.page-topline { padding-top: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #aeb9b6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-deep); text-decoration: underline; }

.page-hero { padding: 42px 0 78px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.78fr); gap: clamp(48px,7vw,90px); align-items: center; }
.page-hero__grid--reverse { grid-template-columns: minmax(390px,.9fr) minmax(0,1fr); }
.page-hero__copy > p { max-width: 680px; margin: 0; color: #596864; font-size: 16px; }
.page-hero h1 { font-size: clamp(38px,4.7vw,61px); }
.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 28px 28px 82px 28px; box-shadow: var(--shadow-md); }
.page-hero__media--wide img { aspect-ratio: 7/5; border-radius: 28px 74px 28px 28px; }
.page-hero__media--phone { max-width: 470px; justify-self: end; }
.page-hero__media--phone img { aspect-ratio: 4/5; border-radius: 90px 30px 90px 30px; }
.page-hero__anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-hero__anchors a { padding: 8px 12px; border-radius: 999px; background: var(--surface-2); color: #47615b; font-size: 11px; font-weight: 750; text-decoration: none; }
.page-hero__anchors a:hover { background: #dcebe6; }
.hero-note { margin-top: 24px; padding: 15px 17px; border-radius: 14px; background: var(--warm-soft); color: #725035; font-size: 12.5px; }
.hero-note strong { color: #5f3b1f; }

.step-list { display: grid; border-top: 1px solid var(--line); }
.step-item { display: grid; grid-template-columns: 84px 1fr; gap: 22px; padding: 25px 4px; border-bottom: 1px solid var(--line); }
.step-item__num { display: inline-flex; align-items: flex-start; color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.step-item h3 { margin: 0 0 6px; color: var(--ink); font-size: 19px; }
.step-item p { margin: 0; max-width: 860px; color: var(--muted); font-size: 13.5px; }

.section--browser-check { background: var(--surface-2); }
.browser-check { display: grid; grid-template-columns: minmax(280px,.66fr) minmax(0,1fr); gap: 62px; align-items: start; }
.browser-check__intro p { color: var(--muted); }
.browser-check__intro img { width: 100%; margin-top: 25px; aspect-ratio: 7/5; object-fit: cover; border-radius: 24px; }
.check-matrix { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.check-matrix article { min-height: 200px; padding: 23px; border-radius: 20px; background: #fff; border: 1px solid #dce8e4; }
.check-matrix article > span { color: var(--brand); font-size: 11px; font-weight: 850; }
.check-matrix h3 { margin: 9px 0; color: var(--ink); font-size: 18px; }
.check-matrix p { margin: 0; color: var(--muted); font-size: 12.5px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 17px 20px; border-radius: 14px; background: var(--surface-2); }
.inline-cta p { margin: 0; color: #566661; font-size: 13px; }

.section--troubleshoot { background: #fff8ef; }
.troubleshoot-grid { display: grid; grid-template-columns: minmax(270px,.62fr) minmax(0,1fr); gap: 64px; }
.troubleshoot-grid__intro p { color: #75685c; }
.diagnostic-list { margin: 0; padding: 0; list-style: none; counter-reset: diag; }
.diagnostic-list li { counter-increment: diag; display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid #eadfce; }
.diagnostic-list li::before { content: counter(diag, decimal-leading-zero); position: absolute; opacity: 0; }
.diagnostic-list strong { color: #5a4431; font-size: 13px; }
.diagnostic-list span { color: #76695d; font-size: 12.5px; }

.section--compare { padding-bottom: 96px; }
.compare-panel { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: stretch; max-width: 870px; margin: 0 auto; }
.compare-panel > div:not(.compare-panel__arrow) { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare-panel > div > span { color: var(--brand); font-size: 11px; font-weight: 850; }
.compare-panel h3 { margin: 9px 0; color: var(--ink); font-size: 20px; }
.compare-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.compare-panel__arrow { display: flex; align-items: center; justify-content: center; color: var(--warm); font-size: 26px; }
.center-action { display: flex; justify-content: center; margin-top: 24px; }

.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scenario-card { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.scenario-card h3 { margin: 0 0 10px; color: var(--ink); font-size: 20px; }
.scenario-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.scenario-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.scenario-card li { padding: 6px 9px; border-radius: 9px; background: var(--surface-2); color: #55706a; font-size: 10.5px; }

.section--ratio { background: var(--ink); color: #fff; }
.ratio-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.78fr); gap: 68px; align-items: center; }
.ratio-layout .kicker { color: #9dd7cc; }
.ratio-layout h2 { color: #fff; }
.ratio-layout__copy > p { color: #c3cfcc; }
.definition-list { margin: 26px 0 0; }
.definition-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); }
.definition-list dt { color: #fff; font-size: 12px; font-weight: 800; }
.definition-list dd { margin: 0; color: #aebeba; font-size: 12px; }
.ratio-demo { padding: 24px; border-radius: 26px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.ratio-demo__monitor { display: grid; place-items: center; min-height: 300px; border: 10px solid #d9e2df; border-bottom-width: 18px; border-radius: 14px; background: #111b1a; }
.ratio-demo__video { display: grid; place-items: center; height: 250px; aspect-ratio: 9/16; background: linear-gradient(160deg, #4aa89b, #f0b06e); border-radius: 4px; }
.ratio-demo__video span { padding: 6px 8px; border-radius: 6px; background: rgba(0,0,0,.28); color: #fff; font-size: 10px; }
.ratio-demo > p { margin: 14px 0 0; color: #aebeba; font-size: 11.5px; text-align: center; }

.settings-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.settings-table__row { display: grid; grid-template-columns: .55fr 1fr 1.35fr; min-height: 66px; border-top: 1px solid #e8efed; }
.settings-table__row:first-child { border-top: 0; }
.settings-table__row > * { display: flex; align-items: center; padding: 14px 18px; border-left: 1px solid #edf2f0; font-size: 12.5px; }
.settings-table__row > *:first-child { border-left: 0; }
.settings-table__head { background: var(--surface-2); color: #536862; font-weight: 800; }
.settings-table__row strong { color: var(--ink); }
.settings-table__row span { color: var(--muted); }

.section--keyboard { background: #f7faf8; }
.keyboard-layout { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 66px; align-items: center; }
.keyboard-layout p { color: var(--muted); }
.key-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.key-grid > div { min-height: 120px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
kbd { display: inline-flex; min-width: 42px; min-height: 34px; align-items: center; justify-content: center; padding: 4px 9px; border: 1px solid #cdd9d5; border-bottom-width: 3px; border-radius: 8px; background: #f7f9f8; color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 800; }
.key-grid b { margin: 0 6px; color: var(--muted); }
.key-grid span { display: block; margin-top: 14px; color: var(--muted); font-size: 11.5px; }

.section--handoff { padding-top: 24px; }
.handoff-card { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 34px 38px; border-radius: 26px; border: 1px solid var(--line); background: #fff; }
.handoff-card h2 { max-width: 760px; font-size: clamp(26px,3vw,38px); }
.handoff-card p { max-width: 760px; color: var(--muted); }
.handoff-card .button { flex: 0 0 auto; }

.app-note-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.app-note-grid article { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.app-note-grid h3 { margin: 0 0 10px; color: var(--ink); font-size: 20px; }
.app-note-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.section--install { background: var(--surface-2); }
.install-layout { display: grid; grid-template-columns: minmax(320px,.78fr) minmax(0,1fr); gap: 66px; align-items: center; }
.install-layout__media img { width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: 30px 90px 30px 30px; }
.install-layout__copy > p { color: var(--muted); }
.checklist-steps { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.checklist-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid #d9e5e1; }
.checklist-steps li > span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 850; }
.checklist-steps strong { color: var(--ink); font-size: 13px; }
.checklist-steps p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.choice-grid article { padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.choice-grid article:nth-child(2) { background: #fff8ef; border-color: #f0dfca; }
.choice-grid__label { color: var(--brand); font-size: 11px; font-weight: 850; }
.choice-grid h3 { margin: 10px 0 16px; color: var(--ink); font-size: 21px; }
.choice-grid ul { margin: 0 0 20px; padding-left: 19px; color: var(--muted); font-size: 13px; }
.choice-grid li + li { margin-top: 7px; }
.choice-grid__note { display: block; color: #876346; font-size: 11.5px; }
.section--privacy-note { padding-top: 20px; }
.privacy-note { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.2fr); gap: 58px; padding: 36px 40px; border-radius: 28px; background: var(--ink); color: #fff; }
.privacy-note .kicker { color: #9ed6cc; }
.privacy-note h2 { color: #fff; font-size: clamp(27px,3vw,39px); }
.privacy-note__body { color: #c7d3d0; font-size: 13px; }
.privacy-note__body p:first-child { margin-top: 0; }
.privacy-note__body p:last-child { margin-bottom: 0; }

.not-found { min-height: 64vh; display: grid; place-items: center; padding: 70px 0; }
.not-found__inner { max-width: 760px; text-align: center; }
.not-found__code { display: inline-flex; padding: 7px 13px; border-radius: 999px; background: var(--warm-soft); color: #985e28; font-weight: 900; letter-spacing: .08em; }
.not-found h1 { margin: 18px 0 12px; color: var(--ink); font-size: clamp(38px,5vw,62px); line-height: 1.1; }
.not-found p { max-width: 610px; margin: 0 auto; color: var(--muted); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

/* Fine-grained desktop adjustments */
@media (max-width: 1100px) {
  :root { --shell: min(100% - 36px, 1040px); }
  .site-nav a { padding-inline: 10px; }
  .site-nav a small { display: none; }
  .hero__grid { grid-template-columns: minmax(0,1fr) minmax(330px,.68fr); gap: 52px; }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lane-grid { grid-template-columns: repeat(2,1fr); }
  .device-strip { grid-template-columns: 1fr; }
  .device-strip__cards { grid-template-columns: repeat(3,1fr); }
  .page-hero__grid, .page-hero__grid--reverse { gap: 48px; }
}

@media (max-width: 899px) {
  :root { --shell: calc(100% - 30px); }
  .site-header__inner { min-height: 72px; }
  .brand-lockup { min-width: 0; }
  .brand-lockup img { width: 42px; height: 42px; }
  .brand-lockup__copy small { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    position: fixed; left: 15px; right: 15px; top: 78px; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line);
    border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .site-nav a { min-height: 54px; padding: 9px 12px; }
  .site-nav a small { display: block; }
  html.nav-open { overflow: hidden; }
  .hero { padding-top: 30px; }
  .hero__grid, .page-hero__grid, .page-hero__grid--reverse { grid-template-columns: 1fr; }
  .hero__copy { order: 1; }
  .hero__media { order: 2; max-width: 720px; }
  .hero__media figcaption { left: 18px; }
  .page-hero__media--phone { justify-self: start; }
  .section { padding: 64px 0; }
  .section-heading--split { grid-template-columns: 1fr; gap: 13px; }
  .filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .filter-status { width: 100%; margin-left: 0; }
  .feature-split, .browser-check, .ratio-layout, .keyboard-layout, .install-layout { grid-template-columns: 1fr; gap: 38px; }
  .feature-split__media { max-width: 740px; }
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-layout__intro { position: static; }
  .faq-layout__intro img { display: none; }
  .troubleshoot-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
  .handoff-card { align-items: flex-start; flex-direction: column; }
  .privacy-note { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 24px); }
  body { line-height: 1.68; }
  .brand-lockup__copy strong { font-size: 16px; }
  .hero { padding: 20px 0 54px; }
  .hero h1, .page-hero h1 { margin-top: 14px; font-size: clamp(34px,11.4vw,49px); }
  .hero__lead { font-size: 15.5px; }
  .hero__actions { margin-top: 24px; }
  .button { width: 100%; }
  .hero__facts { grid-template-columns: 1fr; margin-top: 30px; }
  .hero__facts span { padding-block: 8px; }
  .hero__media img { border-radius: 26px 26px 70px 26px; }
  .hero__media figcaption { position: static; max-width: none; margin-top: 10px; border-radius: 14px; }
  .section { padding: 50px 0; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2, .feature-split__copy h2, .device-strip h2, .faq-layout__intro h2, .ratio-layout h2, .keyboard-layout h2, .privacy-note h2, .handoff-card h2, .install-layout h2, .troubleshoot-grid h2 { font-size: clamp(27px,8.5vw,38px); }
  .filter-bar__label { width: 100%; }
  .filter-bar__buttons { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 3px; }
  .filter-chip { flex: 0 0 auto; }
  .topic-grid, .lane-grid, .principle-grid, .scenario-grid, .app-note-grid, .choice-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 0; }
  .feature-split__media img, .install-layout__media img { border-radius: 24px 54px 24px 24px; }
  .compact-points > div { grid-template-columns: 1fr; gap: 2px; }
  .device-strip { gap: 30px; padding: 28px 22px; border-radius: 24px; }
  .device-strip__cards { grid-template-columns: 1fr; }
  .app-teaser__inner { align-items: stretch; flex-direction: column; padding: 27px 23px; }
  .app-teaser .button { width: 100%; }
  .faq-item summary { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-note { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page-topline { padding-top: 14px; }
  .page-hero { padding: 26px 0 54px; }
  .page-hero__media img { border-radius: 22px 22px 56px 22px; }
  .step-item { grid-template-columns: 52px 1fr; }
  .check-matrix { grid-template-columns: 1fr; }
  .inline-cta { align-items: flex-start; flex-direction: column; }
  .diagnostic-list li { grid-template-columns: 1fr; gap: 3px; }
  .compare-panel { grid-template-columns: 1fr; gap: 10px; }
  .compare-panel__arrow { transform: rotate(90deg); height: 34px; }
  .definition-list > div { grid-template-columns: 1fr; gap: 3px; }
  .settings-table { overflow-x: auto; }
  .settings-table__row { min-width: 680px; }
  .key-grid { grid-template-columns: 1fr; }
  .handoff-card { padding: 28px 22px; }
  .privacy-note { padding: 28px 22px; }
  .not-found__links { flex-direction: column; }
}

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

@media (prefers-contrast: more) {
  :root { --line: #9aaba6; --muted: #50605c; }
  .topic-card, .faq-item, .scenario-card, .app-note-grid article { border-width: 2px; }
}

@media print {
  .site-header, .site-footer, .filter-bar, .hero__actions, .page-hero__anchors, .button { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  .shell { width: 100%; }
  .topic-card, .lane-card, .scenario-card, .faq-item { break-inside: avoid; box-shadow: none; }
}

/* Page-specific visual differentiation */
.watch-page .page-hero--browser {
  position: relative;
  background:
    radial-gradient(circle at 86% 18%, rgba(242,179,111,.20), transparent 28%),
    linear-gradient(180deg, #f7fbf8 0%, #fafcfa 100%);
}
.watch-page .page-hero--browser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,143,131,.22), transparent);
}
.watch-page .page-hero__copy { position: relative; z-index: 1; }
.watch-page .page-hero__media { position: relative; }
.watch-page .page-hero__media::before {
  content: "";
  position: absolute;
  inset: 14% -20px -24px 22%;
  z-index: -1;
  border-radius: 30px 70px 30px 30px;
  background: #e5f1ed;
}
.watch-page .step-item:nth-child(odd) .step-item__num { color: var(--accent); }
.watch-page .check-matrix article:nth-child(2),
.watch-page .check-matrix article:nth-child(3) { background: #fbfdfc; }
.watch-page .check-matrix article:hover { border-color: #bdd8d1; box-shadow: var(--shadow-sm); }
.watch-page .diagnostic-list strong::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.desktop-page .page-hero--desktop {
  background:
    linear-gradient(120deg, rgba(238,245,242,.82), rgba(250,252,250,.92)),
    radial-gradient(circle at 16% 20%, rgba(47,143,131,.16), transparent 34%);
}
.desktop-page .page-hero__media { position: relative; }
.desktop-page .page-hero__media::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -18px;
  top: -22px;
  border: 10px solid rgba(242,179,111,.35);
  border-radius: 50%;
  z-index: -1;
}
.desktop-page .scenario-card { position: relative; overflow: hidden; }
.desktop-page .scenario-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -38px;
  bottom: -38px;
  border-radius: 50%;
  background: rgba(47,143,131,.07);
}
.desktop-page .scenario-card:nth-child(2)::after,
.desktop-page .scenario-card:nth-child(4)::after { background: rgba(242,179,111,.12); }
.desktop-page .scenario-card:hover { border-color: #c7dad4; box-shadow: var(--shadow-sm); }
.desktop-page .settings-table__row:not(.settings-table__head):hover { background: #fbfdfc; }
.desktop-page .key-grid > div { transition: transform .18s ease, border-color .18s ease; }
.desktop-page .key-grid > div:hover { transform: translateY(-2px); border-color: #c4d9d3; }

.app-page .page-hero--app {
  background:
    radial-gradient(circle at 88% 15%, rgba(233,107,76,.10), transparent 30%),
    radial-gradient(circle at 12% 76%, rgba(47,143,131,.11), transparent 34%),
    #fafcfa;
}
.app-page .page-hero__media--phone { position: relative; }
.app-page .page-hero__media--phone::before {
  content: "";
  position: absolute;
  inset: -18px 14% 18px -18px;
  z-index: -1;
  border-radius: 100px 34px 100px 34px;
  background: linear-gradient(145deg, #e4f1ed, #fff0df);
}
.app-page .app-note-grid article { position: relative; }
.app-page .app-note-grid article::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: var(--brand);
}
.app-page .app-note-grid article:nth-child(even)::before { background: var(--warm); }
.app-page .choice-grid article { transition: transform .18s ease, box-shadow .18s ease; }
.app-page .choice-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.app-page .privacy-note { position: relative; overflow: hidden; }
.app-page .privacy-note::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: -130px;
  border-radius: 50%;
  border: 34px solid rgba(158,214,204,.10);
  pointer-events: none;
}

.home-page .section--discover .topic-card:nth-child(3n + 1) { border-top-color: rgba(47,143,131,.45); }
.home-page .section--discover .topic-card:nth-child(3n + 2) { border-top-color: rgba(242,179,111,.55); }
.home-page .section--discover .topic-card:nth-child(3n) { border-top-color: rgba(233,107,76,.34); }
.home-page .lane-card:nth-child(1) { transform: translateY(0); }
.home-page .lane-card:nth-child(2) { transform: translateY(12px); }
.home-page .lane-card:nth-child(3) { transform: translateY(0); }
.home-page .lane-card:nth-child(4) { transform: translateY(12px); }
.home-page .lane-card:hover { box-shadow: var(--shadow-sm); }
.home-page .principle-card:nth-child(2) { border-top-color: var(--brand); }
.home-page .principle-card:nth-child(3) { border-top-color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .text-link span { transition: transform .18s ease; }
  .text-link:hover span { transform: translateX(4px); }
  .breadcrumbs a { transition: color .18s ease; }
  .filter-chip { transition: transform .15s ease, background .15s ease, color .15s ease; }
  .filter-chip:hover { transform: translateY(-1px); }
  .faq-item summary:hover { background: #fbfdfc; }
  .site-footer a { transition: color .16s ease; }
}

@media (max-width: 899px) {
  .watch-page .page-hero__media::before { inset: 10% -10px -14px 16%; }
  .desktop-page .page-hero__media::after { right: 4px; top: -14px; width: 70px; height: 70px; border-width: 8px; }
  .app-page .page-hero__media--phone { justify-self: center; width: min(100%, 520px); }
  .home-page .lane-card:nth-child(n) { transform: none; }
}

@media (max-width: 680px) {
  .watch-page .page-hero--browser,
  .desktop-page .page-hero--desktop,
  .app-page .page-hero--app { background-position: center; }
  .desktop-page .page-hero__media::after { display: none; }
  .app-page .page-hero__media--phone::before { inset: -10px 10% 10px -8px; border-radius: 58px 24px 58px 24px; }
  .home-page .section--discover .topic-card { border-top-width: 2px; }
}
