@charset "UTF-8";

:root {
    --brand: #2F8F83;
    --brand-dark: #236f66;
    --brand-soft: #dfeeea;
    --accent: #F2B36F;
    --accent-strong: #E96B4C;
    --ink: #243331;
    --body: #2E3836;
    --muted: #71807C;
    --paper: #FAFCFA;
    --soft: #EEF5F2;
    --line: #dbe7e2;
    --white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(36, 51, 49, .07);
    --shadow-md: 0 22px 54px rgba(36, 51, 49, .12);
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 34px;
    --shell: min(1180px, calc(100% - 40px));
    --header-height: 82px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--body);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: rgba(47, 143, 131, .18); color: var(--ink); }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-180%);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: rgba(250, 252, 250, .92);
    backdrop-filter: blur(16px);
    transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 28px rgba(36, 51, 49, .06); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 46px; height: 46px; border-radius: 15px; overflow: hidden; background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(47, 143, 131, .08); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { color: var(--ink); font-size: 1.04rem; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: .76rem; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: #4a5c58;
    font-size: .95rem;
    font-weight: 650;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.primary-nav a:hover { background: var(--soft); color: var(--ink); transform: translateY(-1px); }
.primary-nav a[aria-current="page"] { background: var(--brand); color: var(--white); }
.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 9px 13px;
    cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 3px; width: 16px; }
.menu-toggle__bars i { display: block; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; }

.hero { padding: 62px 0 58px; overflow: clip; }
.hero--home { background: linear-gradient(180deg, #f7fbf8 0%, var(--paper) 100%); }
.hero__layout, .subhero__layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); gap: 54px; align-items: center; }
.hero__copy { max-width: 650px; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow--strong { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--brand-soft); letter-spacing: .06em; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 5.2vw, 5rem); letter-spacing: -.045em; }
h2 { margin-bottom: 16px; font-size: clamp(2rem, 3.4vw, 3.35rem); letter-spacing: -.035em; }
h3 { margin-bottom: 11px; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.02em; }
p { margin-top: 0; }
.hero__lead, .subhero__lead, .lead-copy { color: #52625f; font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 19px;
    border-radius: 14px;
    font-weight: 780;
    transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--brand); color: var(--white); box-shadow: 0 12px 25px rgba(47, 143, 131, .2); }
.button--primary:hover { background: var(--brand-dark); }
.button--secondary { background: var(--accent-strong); color: var(--white); box-shadow: 0 12px 25px rgba(233, 107, 76, .18); }
.button--secondary:hover { background: #d75d40; }
.button--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button--ghost:hover { box-shadow: inset 0 0 0 1px #b8d3cb, var(--shadow-sm); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero__meta span { padding: 6px 10px; border-radius: 999px; background: rgba(242, 179, 111, .16); color: #78593b; font-size: .82rem; font-weight: 720; }
.hero__visual, .subhero__visual { position: relative; }
.hero__visual::before, .subhero__visual::before {
    content: "";
    position: absolute;
    inset: 8% -6% -6% 9%;
    z-index: -1;
    border-radius: 42px;
    background: linear-gradient(145deg, rgba(47, 143, 131, .14), rgba(242, 179, 111, .18));
}
.hero__visual img, .subhero__visual img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-md); }
.hero__visual figcaption { margin-top: 13px; color: var(--muted); font-size: .82rem; text-align: center; }

.section { padding: 86px 0; }
.section--soft { background: var(--soft); }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading > p:last-child { color: #5a6a66; font-size: 1.04rem; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr); gap: 60px; align-items: end; }
.section-heading--split > p { margin-bottom: 18px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.content-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 4px 0 rgba(36, 51, 49, .02);
    transition: transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease;
}
.content-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c7ddd7; }
.content-card__media { overflow: hidden; background: var(--soft); }
.content-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.content-card:hover .content-card__media img { transform: scale(1.025); }
.content-card__body { padding: 24px 25px 26px; }
.content-card__body > p:not(.eyebrow) { color: #5f6f6b; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.topic-tags span { padding: 5px 9px; border-radius: 999px; background: var(--soft); color: #56706a; font-size: .76rem; font-weight: 730; }

.split-panel { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 54px; align-items: start; }
.split-panel__visual { position: sticky; top: calc(var(--header-height) + 24px); }
.split-panel__visual img { width: 100%; min-height: 540px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.feature-rows { display: grid; gap: 14px; margin-top: 28px; }
.feature-row { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.68); border: 1px solid rgba(47, 143, 131, .1); }
.feature-row__index { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: var(--white); font-weight: 820; font-size: .86rem; }
.feature-row h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature-row p { margin-bottom: 0; color: #61716d; font-size: .93rem; }

.section--devices { background: linear-gradient(180deg, var(--paper), #f6f9f6); }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.device-card { display: grid; grid-template-columns: .88fr 1.12fr; overflow: hidden; min-height: 360px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.device-card__media img { width: 100%; height: 100%; object-fit: cover; }
.device-card__body { align-self: center; padding: 30px; }
.device-card__body p:not(.eyebrow) { color: #5e6e6a; }
.text-link { display: inline-flex; margin-top: 8px; color: var(--brand-dark); font-weight: 800; border-bottom: 1px solid rgba(47, 143, 131, .3); }
.text-link:hover { color: var(--accent-strong); border-color: currentColor; }

.section--app-tease { padding-top: 54px; }
.app-tease { display: grid; grid-template-columns: 1fr minmax(300px, .78fr); align-items: center; gap: 42px; padding: 42px; border-radius: 36px; background: var(--ink); color: #d7e3df; overflow: hidden; }
.app-tease h2 { color: var(--white); }
.app-tease .eyebrow { color: #9dd1c6; }
.app-tease__copy > p:not(.eyebrow) { color: #cad8d4; }
.app-tease__visual img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; border-radius: 26px; }

.faq-layout { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: 70px; align-items: start; }
.section-heading--sticky { position: sticky; top: calc(var(--header-height) + 28px); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; }
.faq-item summary { list-style: none; position: relative; cursor: pointer; padding: 20px 56px 20px 22px; color: var(--ink); font-weight: 780; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--brand-dark); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item__answer { padding: 0 22px 20px; color: #5d6c68; }
.faq-item__answer p { margin-bottom: 0; }

.page-topline { padding-top: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .86rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #a2afac; }
.breadcrumbs a:hover { color: var(--brand-dark); }

.subhero { padding: 34px 0 70px; }
.subhero__copy { max-width: 630px; }
.subhero__copy h1 { font-size: clamp(2.5rem, 4.7vw, 4.6rem); }
.subhero__layout--reverse .subhero__copy { order: 2; }
.subhero__layout--reverse .subhero__visual { order: 1; }
.page-web .subhero__visual::before { background: linear-gradient(145deg, rgba(47,143,131,.18), rgba(238,245,242,.8)); }
.page-pc .subhero__visual::before { background: linear-gradient(145deg, rgba(242,179,111,.2), rgba(47,143,131,.13)); }
.page-app .subhero__visual::before { background: linear-gradient(145deg, rgba(233,107,76,.15), rgba(242,179,111,.22)); }
.subhero__visual--phone img { aspect-ratio: 1 / 1; }

.compact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .62fr); gap: 46px; align-items: start; }
.device-note { position: sticky; top: calc(var(--header-height) + 28px); padding: 28px; border-radius: 24px; background: var(--ink); color: #d7e1df; box-shadow: var(--shadow-md); }
.device-note h2 { color: var(--white); font-size: 1.9rem; }
.device-note .eyebrow { color: #8ec8bc; }
.link-cluster { display: grid; gap: 9px; margin-top: 20px; }
.link-cluster a { display: inline-flex; color: #f8d0a4; font-weight: 760; }
.link-cluster a:hover { color: var(--white); }
.link-cluster--large { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.link-cluster--large a { color: var(--brand-dark); }

.media-note { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.media-note--reverse .media-note__image { order: 2; }
.media-note--reverse .media-note__copy { order: 1; }
.media-note__image img { width: 100%; aspect-ratio: 1.22 / 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-sm); }
.media-note__copy > p:not(.eyebrow) { color: #5f6e6b; font-size: 1.04rem; }
.check-list { display: grid; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: .74rem; font-weight: 900; }

.split-panel--pc { grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); }
.split-panel--pc .split-panel__visual { position: sticky; }
.split-panel__visual--stacked { display: grid; gap: 18px; }
.split-panel__visual--stacked img { min-height: 460px; }
.mini-panel { padding: 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.mini-panel h3 { font-size: 1.25rem; }
.mini-panel p:not(.eyebrow) { color: #64736f; font-size: .92rem; }

.comparison-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-sm); }
.comparison-table table { width: 100%; min-width: 780px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison-table th { background: #f3f8f5; color: var(--ink); font-size: .9rem; }
.comparison-table td:first-child { color: var(--ink); font-weight: 760; width: 18%; }
.comparison-table tr:last-child td { border-bottom: 0; }

.not-found { min-height: calc(100vh - var(--header-height)); display: grid; align-items: center; padding: 56px 0 90px; }
.not-found__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr); gap: 54px; align-items: center; }
.not-found__copy h1 { max-width: 700px; }
.not-found__copy > p:not(.eyebrow) { max-width: 620px; color: #5f6e6b; font-size: 1.08rem; }
.not-found__visual img { width: 100%; border-radius: 30px; box-shadow: var(--shadow-md); }

.site-footer { padding: 62px 0 24px; background: #1f2d2b; color: #c3d1cd; }
.footer-layout { display: grid; grid-template-columns: 1.45fr .65fr .9fr; gap: 54px; padding-bottom: 44px; }
.brand-lockup--footer .brand-copy strong { color: var(--white); }
.brand-lockup--footer .brand-copy small { color: #92a9a4; }
.footer-brand > p { max-width: 480px; margin: 22px 0 0; color: #9fb2ad; }
.footer-links, .footer-note { display: grid; align-content: start; gap: 10px; }
.footer-links h2, .footer-note h2 { margin-bottom: 6px; color: var(--white); font-size: 1rem; letter-spacing: 0; }
.footer-links a { color: #b5c8c3; }
.footer-links a:hover { color: var(--white); }
.footer-note p { color: #9fb2ad; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; color: #839994; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--white); }

:focus-visible { outline: 3px solid rgba(233, 107, 76, .55); outline-offset: 3px; }
.reveal-ready { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s var(--ease); }
.reveal-ready.is-revealed { opacity: 1; transform: none; }

@media (max-width: 1080px) {
    :root { --shell: min(100% - 32px, 980px); }
    .hero__layout, .subhero__layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr); gap: 36px; }
    .content-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .device-card { grid-template-columns: 1fr; }
    .device-card__media img { aspect-ratio: 16 / 9; }
    .footer-layout { grid-template-columns: 1.2fr .7fr .8fr; gap: 34px; }
}

@media (max-width: 900px) {
    :root { --header-height: 74px; }
    .menu-toggle { display: inline-flex; }
    .primary-nav {
        position: fixed;
        top: calc(var(--header-height) + 10px);
        right: 16px;
        left: 16px;
        display: grid;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255,255,255,.98);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    }
    .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .primary-nav a { padding: 12px 14px; border-radius: 12px; }
    .hero, .section { padding: 66px 0; }
    .hero__layout, .subhero__layout, .section-heading--split, .split-panel, .split-panel--pc, .compact-layout, .media-note, .not-found__layout { grid-template-columns: 1fr; }
    .hero__copy, .subhero__copy { max-width: 760px; }
    .hero__visual, .subhero__visual { max-width: 760px; }
    .subhero__layout--reverse .subhero__copy, .subhero__layout--reverse .subhero__visual { order: initial; }
    .split-panel__visual, .device-note, .section-heading--sticky, .split-panel--pc .split-panel__visual { position: static; }
    .split-panel__visual img { min-height: 0; aspect-ratio: 16 / 11; }
    .device-grid { grid-template-columns: 1fr; }
    .app-tease { grid-template-columns: 1fr; }
    .faq-layout { grid-template-columns: 1fr; gap: 30px; }
    .media-note--reverse .media-note__image, .media-note--reverse .media-note__copy { order: initial; }
    .footer-layout { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    :root { --shell: min(100% - 24px, 620px); }
    .brand-copy small { display: none; }
    .hero { padding-top: 42px; }
    h1 { font-size: clamp(2.35rem, 13vw, 4rem); }
    h2 { font-size: clamp(1.85rem, 9vw, 2.75rem); }
    .hero__actions { display: grid; }
    .button { width: 100%; }
    .hero__visual img, .subhero__visual img { border-radius: 24px; }
    .content-grid, .content-grid--three { grid-template-columns: 1fr; }
    .section-heading--split { gap: 8px; }
    .content-card__body { padding: 21px; }
    .app-tease { padding: 28px 22px; border-radius: 28px; }
    .feature-row { grid-template-columns: 44px 1fr; gap: 13px; padding: 15px; }
    .feature-row__index { width: 40px; height: 40px; border-radius: 12px; }
    .device-card__body { padding: 24px; }
    .footer-layout { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .comparison-table { border-radius: 16px; }
}

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

@media print {
    .site-header, .site-footer, .hero__actions, .menu-toggle { display: none !important; }
    body { background: #fff; color: #111; }
    .section, .hero, .subhero { padding: 24px 0; }
    .content-card, .device-card, .faq-item, .comparison-table { box-shadow: none; break-inside: avoid; }
    a { text-decoration: underline; }
}

/* Dense information cards used for practical, non-image guidance. */
.section--guide-cards { background: #fbfdfb; }
.section--before-faq { padding-top: 72px; padding-bottom: 54px; }
.content-grid--guide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.content-grid--guide .content-card { position: relative; overflow: visible; min-height: 280px; box-shadow: none; background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%); }
.content-grid--guide .content-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: .75;
}
.content-grid--guide .content-card__body { display: flex; flex-direction: column; min-height: 100%; padding: 26px 24px 24px; }
.content-grid--guide .content-card__body > p:not(.eyebrow) { flex: 1; line-height: 1.78; }
.content-grid--guide .topic-tags { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.content-grid--guide .topic-tags span { background: #f0f6f3; }
.page-web .content-grid--guide .content-card::before { background: linear-gradient(90deg, #2F8F83, #6bb7aa); }
.page-pc .content-grid--guide .content-card::before { background: linear-gradient(90deg, #2F8F83, #F2B36F); }
.page-app .content-grid--guide .content-card::before { background: linear-gradient(90deg, #E96B4C, #F2B36F); }

/* Page-specific rhythm keeps the three usage pages visually related without cloning them. */
.page-web .subhero { background: linear-gradient(180deg, #f7fbf9 0%, var(--paper) 100%); }
.page-web .section--media-note { background: linear-gradient(180deg, var(--paper), #f8fbf9); }
.page-web .device-note { background: #214b46; }
.page-web .device-note .link-cluster a { color: #f4c99b; }
.page-pc .subhero { background: linear-gradient(180deg, #fcfaf6 0%, var(--paper) 100%); }
.page-pc .section--comparison { background: linear-gradient(180deg, #fbfcfa, #f5f8f6); }
.page-pc .feature-row__index { background: #86623f; }
.page-app .subhero { background: linear-gradient(180deg, #fdf8f5 0%, var(--paper) 100%); }
.page-app .section--mobile-safety { background: linear-gradient(180deg, #fbfcfa, #fff9f6); }
.page-app .feature-row__index { background: var(--accent-strong); }
.page-app .device-note { background: #3a302d; }

/* Improve readable line lengths in long explanatory areas. */
.compact-layout__main > h2,
.split-panel__content > h2,
.media-note__copy > h2 { max-width: 18ch; }
.compact-layout__main > .lead-copy,
.split-panel__content > p,
.media-note__copy > p { max-width: 72ch; }
.section-heading--split h2 { max-width: 17ch; }
.section-heading--split > p { max-width: 58ch; justify-self: end; }

/* Navigation and pointer refinements. */
@media (hover: hover) and (pointer: fine) {
    .primary-nav a::after {
        content: "";
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 5px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .2s var(--ease);
        opacity: .35;
    }
    .primary-nav a:hover::after { transform: scaleX(1); }
    .primary-nav a[aria-current="page"]::after { display: none; }
    .text-link { transition: color .2s ease, border-color .2s ease, transform .2s ease; }
    .text-link:hover { transform: translateX(3px); }
}

/* Better large-screen composition without increasing decorative complexity. */
@media (min-width: 1260px) {
    :root { --shell: min(1220px, calc(100% - 56px)); }
    .hero__layout { grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr); gap: 68px; }
    .subhero__layout { grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr); gap: 64px; }
    .content-grid { gap: 28px; }
    .content-grid--guide { gap: 20px; }
    .device-grid { gap: 32px; }
    .section { padding-top: 94px; padding-bottom: 94px; }
    .site-header__inner { padding-inline: 2px; }
}

/* Tablet details: keep information density but avoid over-narrow text columns. */
@media (max-width: 1080px) and (min-width: 901px) {
    .content-grid--guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .device-card__body { padding: 26px; }
    .split-panel { gap: 38px; }
    .compact-layout { gap: 34px; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr); }
    .feature-row { padding: 16px; }
    .faq-layout { gap: 46px; }
}

/* Mobile menu remains useful without JavaScript: links are visible in normal flow until .js is added. */
@media (max-width: 900px) {
    .content-grid--guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .js .primary-nav { opacity: 0; visibility: hidden; }
    .js .primary-nav.is-open { opacity: 1; visibility: visible; }
    .section--before-faq { padding-top: 58px; padding-bottom: 44px; }
    .section-heading--split > p { justify-self: start; }
    .subhero { padding-top: 26px; }
}

@media (max-width: 680px) {
    .content-grid--guide { grid-template-columns: 1fr; }
    .content-grid--guide .content-card { min-height: 0; }
    .content-grid--guide .content-card__body { min-height: 0; }
    .content-grid--guide .content-card::before { left: 18px; right: 18px; }
    .section--guide-cards { padding-top: 58px; padding-bottom: 58px; }
    .page-topline { padding-top: 16px; }
    .breadcrumbs ol { row-gap: 3px; }
    .hero__meta span { font-size: .76rem; }
    .device-note { padding: 24px 22px; border-radius: 20px; }
    .media-note__image img { border-radius: 22px; }
}

/* Narrow phones: prioritize readable text and touch targets. */
@media (max-width: 420px) {
    :root { --shell: calc(100% - 20px); }
    .site-header__inner { gap: 12px; }
    .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
    .brand-copy strong { font-size: .98rem; }
    .menu-toggle { padding: 8px 11px; }
    .hero, .section { padding-top: 54px; padding-bottom: 54px; }
    .subhero { padding-bottom: 54px; }
    .hero__lead, .subhero__lead, .lead-copy { font-size: 1rem; }
    .content-card__body { padding: 20px 18px 21px; }
    .feature-row { grid-template-columns: 1fr; }
    .feature-row__index { width: 38px; height: 38px; }
    .faq-item summary { padding-left: 18px; padding-right: 52px; }
    .faq-item__answer { padding-left: 18px; padding-right: 18px; }
    .app-tease { padding: 24px 18px; }
}

/* High-contrast preference improvements where supported. */
@media (prefers-contrast: more) {
    :root { --line: #a8bbb6; --muted: #4f5f5b; }
    .button--ghost { box-shadow: inset 0 0 0 2px var(--ink); }
    .content-card, .device-card, .faq-item, .comparison-table { border-width: 2px; }
    .topic-tags span { border: 1px solid #9eb4ae; }
}

.hero__copy::after,
.subhero__copy::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 32px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: .7;
}
.page-app .subhero__copy::after { background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.page-pc .subhero__copy::after { background: linear-gradient(90deg, var(--brand), #b18457); }

.content-card h3,
.device-card h3,
.feature-row h3,
.mini-panel h3 { text-wrap: balance; }
.section-heading h2,
.hero h1,
.subhero h1 { text-wrap: balance; }

.content-card__body .eyebrow,
.device-card__body .eyebrow,
.media-note__copy .eyebrow,
.app-tease__copy .eyebrow {
    min-height: 1.2em;
}

.device-card--web { background: linear-gradient(135deg, #ffffff 0%, #f7fbf9 100%); }
.device-card--pc { background: linear-gradient(135deg, #ffffff 0%, #fcfaf5 100%); }
.device-card--web .device-card__media { background: #e7f1ed; }
.device-card--pc .device-card__media { background: #f6eadb; }

.page-home .section--collections .content-card:nth-child(3n+1) .topic-tags span { background: #edf6f2; color: #426c63; }
.page-home .section--collections .content-card:nth-child(3n+2) .topic-tags span { background: #fff4e7; color: #7b5b39; }
.page-home .section--collections .content-card:nth-child(3n+3) .topic-tags span { background: #f8eeee; color: #7b5147; }

.faq-item[open] { border-color: #c3d9d3; box-shadow: 0 10px 26px rgba(36, 51, 49, .05); }
.faq-item[open] summary { color: var(--brand-dark); }
.faq-item summary:hover { background: #fbfdfc; }
.faq-item summary:focus-visible { outline-offset: -3px; }

.breadcrumbs a { position: relative; }
.breadcrumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}
.breadcrumbs a:hover::after { transform: scaleX(1); }

.check-list li { min-height: 24px; }
.check-list li + li { margin-top: 2px; }
.media-note__copy .check-list { max-width: 720px; }

.comparison-table tbody tr { transition: background .18s ease; }
.comparison-table tbody tr:hover { background: #fbfdfc; }
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) { color: #566763; }
.comparison-table th:first-child { border-top-left-radius: 20px; }
.comparison-table th:last-child { border-top-right-radius: 20px; }

.footer-links a { width: fit-content; position: relative; padding-bottom: 2px; }
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}
.footer-links a:hover::after { transform: scaleX(1); }
.footer-note p { max-width: 390px; }

.page-home .hero__visual,
.page-web .subhero__visual,
.page-pc .subhero__visual,
.page-app .subhero__visual { isolation: isolate; }
.page-home .hero__visual::after,
.page-web .subhero__visual::after,
.page-pc .subhero__visual::after,
.page-app .subhero__visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    right: -18px;
    top: -18px;
    background: rgba(242, 179, 111, .16);
    transform: rotate(12deg);
}
.page-web .subhero__visual::after { background: rgba(47, 143, 131, .12); }
.page-pc .subhero__visual::after { background: rgba(242, 179, 111, .18); }
.page-app .subhero__visual::after { background: rgba(233, 107, 76, .12); }

@supports (text-wrap: balance) {
    .hero h1,
    .subhero h1,
    .section-heading h2,
    .content-card h3 { text-wrap: balance; }
}

@supports not (backdrop-filter: blur(16px)) {
    .site-header { background: rgba(250, 252, 250, .98); }
}

@media (min-width: 901px) {
    .page-home .hero__copy { padding-block: 18px; }
    .page-home .hero__visual { margin-right: 6px; }
    .page-web .subhero__copy,
    .page-app .subhero__copy { padding-left: 12px; }
    .page-pc .subhero__copy { padding-right: 12px; }
    .content-grid--guide .content-card:nth-child(3n+2) { transform: translateY(10px); }
    .content-grid--guide .content-card:nth-child(3n+2):hover { transform: translateY(5px); }
    .section--guide-cards { padding-bottom: 104px; }
    .section--before-faq { padding-bottom: 68px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .hero__visual::after,
    .subhero__visual::after { width: 90px; height: 90px; right: -8px; top: -12px; }
    .content-grid--guide .content-card:nth-child(3n+2) { transform: none; }
    .content-grid--guide .content-card:nth-child(3n+2):hover { transform: translateY(-5px); }
}

@media (max-width: 900px) {
    body.menu-open { overflow: hidden; }
    .primary-nav a { min-height: 46px; display: flex; align-items: center; }
    .hero__copy::after,
    .subhero__copy::after { margin-top: 24px; }
    .hero__visual::after,
    .subhero__visual::after { width: 86px; height: 86px; right: -4px; top: -10px; border-radius: 22px; }
    .section-heading { margin-bottom: 28px; }
    .content-grid--guide .content-card:nth-child(3n+2) { transform: none; }
    .content-grid--guide .content-card:nth-child(3n+2):hover { transform: translateY(-5px); }
    .footer-links a { min-height: 36px; display: flex; align-items: center; }
}

@media (max-width: 680px) {
    .hero__copy::after,
    .subhero__copy::after { width: 58px; height: 3px; }
    .hero__visual::after,
    .subhero__visual::after { display: none; }
    .device-card__media img { aspect-ratio: 4 / 3; }
    .app-tease__visual img { aspect-ratio: 4 / 3; }
    .topic-tags { gap: 6px; }
    .topic-tags span { padding: 5px 8px; }
    .comparison-table th,
    .comparison-table td { padding: 15px 16px; }
    .footer-note p { max-width: none; }
}

@media (max-width: 420px) {
    .eyebrow--strong { padding: 7px 10px; }
    .hero__meta { gap: 6px; }
    .hero__meta span { padding: 5px 8px; }
    .content-card:hover,
    .device-card:hover { transform: none; }
    .not-found { padding-top: 42px; padding-bottom: 64px; }
    .not-found__visual img { border-radius: 22px; }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 900px) {
    .primary-nav { max-height: calc(100vh - var(--header-height) - 24px); overflow-y: auto; }
    .site-header { position: sticky; }
}
