/* ==========================================================================
   Dictionary Product Page Stylesheet
   Expressive learning surfaces, clear reading hierarchy, and blue actions.
   ========================================================================== */

/* 1. Design Tokens */
:root {
    color-scheme: light;
    --bg: #faf9f6;
    --bg-alt: #efebff;
    --bg-deep: #e4eaf7;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-hover: #eef1f8;
    --border: #d8deeb;
    --border-subtle: rgba(23, 37, 52, 0.08);

    --text: #192641;
    --text-muted: #445472;
    --text-dim: #64718a;

    --color-primary: #3456d8;
    --color-primary-hover: #2745ba;
    --color-primary-light: rgba(52, 86, 216, 0.08);
    --green: #3456d8;
    --green-ink: #ffffff;
    --blue: #3456d8;
    --blue-strong: #2745ba;
    --yellow: #b45309;
    --red: #991b1b;

    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --container: 1180px;
    --header-h: 70px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-soft: 0 1px 3px rgb(23 37 52 / 0.06), 0 1px 2px rgb(23 37 52 / 0.04);
    --shadow-card: 0 5px 16px -3px rgb(23 37 52 / 0.08), 0 2px 6px -2px rgb(23 37 52 / 0.05);
    --shadow-panel: 0 24px 56px -12px rgb(23 37 52 / 0.16), 0 10px 20px -8px rgb(23 37 52 / 0.08);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(1000px 520px at 88% -6%, rgba(79, 70, 165, 0.06), transparent 56%),
        radial-gradient(740px 460px at 3% 29%, rgba(52, 86, 216, 0.05), transparent 60%),
        var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration: none; }
a:hover { color: var(--blue-strong); }

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

::selection { color: var(--green-ink); background: var(--green); }

:focus-visible {
    outline: 3px solid var(--blue-strong);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 9px 13px;
    color: var(--green-ink);
    background: var(--green);
    border-radius: var(--radius-sm);
    transform: translateY(-150%);
    transition: transform 160ms var(--ease);
    font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 3. Layout Primitives */
.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-dark { background: var(--surface); }
.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header { max-width: 790px; margin-bottom: 38px; }
.section-header.text-center { margin-inline: auto; text-align: center; }

.section-kicker, .cta-kicker {
    margin: 0 0 12px;
    color: var(--blue-strong);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title, .hero-title, .cta-title {
    margin: 0;
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-lead, .hero-lead, .cta-lead {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
}

/* Grid System */
.grid {
    display: grid;
    gap: 16px;
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.journey, .grid.ai-grid { margin-top: 16px; }

/* Unified Panel Component */
.panel {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(23, 37, 52, 0.04);
}
.panel h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.35;
}
.panel p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}
.panel p strong { color: var(--text); }
.panel .index {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue-strong);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.panel .meta {
    margin-top: auto;
    padding-top: 14px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.panel-featured {
    border-color: rgba(52, 86, 216, 0.32);
    background: linear-gradient(180deg, #e6f5ee 0%, var(--surface) 48%);
}

/* 4. Chrome: Header & Nav */
.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    background: rgba(251, 250, 247, 0.84);
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, background-color 180ms ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--border-subtle);
    background: rgba(246, 243, 237, 0.95);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap;
}
.brand-icon {
    display: grid; width: 36px; height: 36px; place-items: center;
}
.brand-text { display: inline-flex; align-items: center; }
.brand-badge {
    margin-left: 6px;
    padding: 2px 7px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.site-nav { margin-left: auto; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nav-link {
    position: relative;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    transition: color 160ms ease;
}
.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--blue-strong);
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.nav-toggle-bar {
    display: block;
    width: 19px;
    height: 2px;
    margin: 3px auto;
    background: var(--text);
    border-radius: 99px;
    transition: transform 160ms var(--ease), opacity 160ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Buttons & Badges */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 14px; font-size: 0.9rem; font-weight: 700; line-height: 1.2; transition: background-color 150ms, border-color 150ms;
}
.btn:hover { filter: brightness(0.97); }
.btn-primary {
    color: var(--green-ink);
    background: var(--green);
    box-shadow: 0 8px 24px rgba(52, 86, 216, 0.16);
}
.btn-primary:hover {
    color: var(--green-ink);
    background: #0d8b76;
    box-shadow: 0 12px 28px rgba(52, 86, 216, 0.25);
}
.btn-secondary {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}
.btn-secondary:hover {
    border-color: #b3a98e;
    background: var(--surface-hover);
    color: var(--text);
}
.btn-sm { min-height: 35px; padding: 7px 13px; font-size: 0.8rem; }

.badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.badge-success { color: #075348; border: 1px solid rgba(52, 86, 216, 0.28); background: rgba(52, 86, 216, 0.08); }
.badge-info { color: var(--blue-strong); border: 1px solid rgba(63, 55, 143, 0.3); background: rgba(63, 55, 143, 0.09); }
.badge-warning { color: #7a4a00; border: 1px solid rgba(180, 83, 9, 0.31); background: rgba(180, 83, 9, 0.09); }

/* 5. Hero Section */
.hero-section {
    padding: 80px 0 72px;
    background: var(--bg);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.9fr);
    align-items: center;
    gap: 48px;
}
.hero-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.kicker-chip {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(251, 250, 247, 0.7);
}
.kicker-chip.highlight {
    color: var(--blue-strong);
    border-color: rgba(63, 55, 143, 0.35);
    background: rgba(63, 55, 143, 0.08);
}
.hero-title {
    font-size: clamp(2.8rem, 5.7vw, 5rem);
    letter-spacing: -0.065em;
    line-height: 1.02;
    max-width: 12ch;
    font-weight: 800;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-proof {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}
.proof-item {
    display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.78rem; line-height: 1.4;
}
.proof-mark {
    color: var(--blue-strong);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Browser Mockup */
.browser-window {
    position: relative; overflow: hidden; min-height: 400px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-panel);
}
.browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 14px;
    background: #eef1f8;
    border-bottom: 1px solid #d8deeb;
}
.window-controls { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.browser-address-bar {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    max-width: 360px;
    height: 25px;
    padding: 0 10px;
    color: #64718a;
    background: #fff;
    border: 1px solid #d8deeb;
    border-radius: 6px;
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.browser-content {
    position: relative; min-height: 360px; padding: 32px 24px; background: #efebff;
}
.article-snippet { max-width: 400px; color: #445472; font-family: var(--display); font-size: 0.94rem; line-height: 1.8; }
.article-label {
    margin: 0 0 8px;
    color: var(--blue-strong);
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.article-para { margin: 0; }
.text-selection { padding: 2px 2px; color: #192641; background: rgba(63, 55, 143, 0.22); }
.selection-indicator {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    margin-left: 4px;
    color: #fff;
    background: var(--blue-strong);
    border-radius: 50%;
    vertical-align: middle;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.mini-popup-preview {
    position: absolute;
    right: 16px;
    bottom: 18px;
    width: min(305px, calc(100% - 32px));
    padding: 13px;
    color: #182b42;
    background: #fffcf3;
    border: 1px solid #ded6bb;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(23, 37, 52, 0.16);
    font-family: var(--sans);
}
.mini-popup-header { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.mini-title { margin-right: auto; color: #192641; font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.mini-badge-primary, .mini-badge-sub { padding: 2px 5px; border-radius: 4px; font-size: 0.58rem; font-weight: 700; }
.mini-badge-primary { color: #075348; background: #d9f2ea; }
.mini-badge-sub { color: #2745ba; background: #e3e1f8; }
.mini-popup-ipa { display: flex; align-items: center; justify-content: space-between; margin: 7px 0; color: #536477; font-family: var(--mono); font-size: 0.68rem; }
.mini-audio-btn { font-size: 0.68rem; font-family: var(--mono); color: #075348; font-weight: 700; }
.mini-popup-def { color: #445472; font-size: 0.74rem; line-height: 1.45; }
.mini-popup-enrichment { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.enrichment-pill { padding: 2px 6px; color: #0b6a58; background: #e8fbef; border: 1px solid rgba(52, 86, 216, 0.25); border-radius: 999px; font-size: 0.58rem; }

/* 6. Interactive Demo */
.interactive-stage { max-width: 905px; margin-inline: auto; }
.interactive-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.preset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 12px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    transition: all 140ms ease;
}
.preset-btn:hover, .preset-btn.active {
    color: var(--text);
    border-color: var(--blue-strong);
    background: rgba(63, 55, 143, 0.09);
}
.preset-tag {
    padding: 2px 5px;
    color: var(--text-dim);
    border: 1px solid rgba(23, 37, 52, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.58rem;
}
.preset-btn strong { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; }

.popup-device {
    overflow: hidden;
    border: 1px solid #b8b0a0;
    border-radius: var(--radius-lg);
    background: #faf9f6;
    box-shadow: var(--shadow-panel), 0 0 0 1px rgba(52, 86, 216, 0.06);
    color: #1d3144;
}
.popup-device-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e0d2;
}
.popup-eyebrow { color: #445472; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; }
.popup-demo-caption { color: var(--text-dim); font-size: 0.68rem; margin-top: 2px; }
.popup-header-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.popup-provider-badge, .popup-lang-badge {
    padding: 3px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
}
.popup-provider-badge { color: #075348; border: 1px solid #b7dfc4; background: #e7f8ec; }
.popup-lang-badge { color: #2745ba; border: 1px solid #c2b8e3; background: #e3e1f8; }

.popup-search-bar { display: flex; gap: 8px; padding: 12px 16px; background: #f3efe6; border-bottom: 1px solid #e5e0d2; }
.popup-search-bar input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    color: #26394e;
    border: 1px solid #c7c0ab;
    border-radius: 6px;
    background: #fff;
    font-size: 0.85rem;
    outline: none;
}
.demo-search-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    color: #fff;
    border: 1px solid var(--blue-strong);
    border-radius: 6px;
    background: var(--blue-strong);
    font-size: 0.82rem;
    font-weight: 700;
}
.demo-search-feedback {
    margin: 0;
    padding: 8px 16px;
    color: #43389c;
    background: #e6e4fa;
    border-bottom: 1px solid #d8d4f0;
    font-size: 0.76rem;
}

.popup-tabs-nav { display: flex; padding: 0 16px; border-bottom: 1px solid #e5e0d2; background: #fff; }
.popup-tab {
    position: relative;
    padding: 12px 14px;
    color: #71829a;
    border: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
}
.popup-tab::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    content: "";
    background: var(--blue-strong);
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 120ms ease, transform 120ms var(--ease);
}
.popup-tab:hover { color: #3456d8; }
.popup-tab.is-active { color: var(--blue-strong); }
.popup-tab.is-active::after { opacity: 1; transform: scaleX(1); }

.popup-context-bar { padding: 13px 16px; background: #f0f4f8; border-bottom: 1px solid #e0e7ee; }
.context-pill {
    width: fit-content;
    margin-bottom: 7px;
    padding: 3px 8px;
    color: #0b6a58;
    background: #e2efe8;
    border: 1px solid #b7d6c6;
    border-radius: var(--radius-pill);
    font-size: 0.64rem;
}
.context-textarea {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 8px 10px;
    resize: vertical;
    color: #334759;
    border: 1px solid #b9c9c4;
    border-radius: 6px;
    background: #fff;
    font-size: 0.78rem;
    line-height: 1.45;
}
.context-action-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.context-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 8px;
    color: #445472;
    border: 1px solid #b8c3ba;
    border-radius: 5px;
    background: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 120ms ease;
}
.context-action-btn:hover, .context-action-btn.active {
    color: #0b6a58;
    border-color: #6fbfa4;
    background: #effcf3;
}

.popup-body-panel { min-height: 300px; padding: 20px 18px; background: #fff; }

/* Demo Content Renderers */
.demo-result-header { margin-bottom: 14px; }
.demo-result-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.demo-word { margin: 0; color: #192641; font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.demo-source-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.source-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 3px 6px;
    color: #476079;
    border: 1px solid #d4ccb8;
    border-radius: 4px;
    background: #faf9f6;
    font-size: 0.6rem;
    font-weight: 700;
}
.source-chip.enriched { color: #0b6a58; border-color: #9bd6c3; background: #e8fbef; }
.source-chip.no-match { color: #667482; border-color: #d4ccb8; background: #faf9f6; }
.source-chip.failed { color: #9a4a42; border-color: #e3b6ae; background: #fff3f0; }
.source-chip small { font-size: 0.52rem; font-weight: 600; opacity: 0.78; }
.demo-result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.demo-phonetic { display: inline-flex; align-items: center; gap: 4px; color: #536477; font-family: var(--mono); font-size: 0.74rem; }
.demo-detected { margin: 6px 0 0; color: #64748b; font-size: 0.76rem; }
.demo-audio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 0 10px;
    color: #254270;
    border: 1px solid #a3c4e6;
    border-radius: 6px;
    background: #e7f0fa;
    font-size: 0.72rem;
    font-weight: 600;
}
.demo-audio.is-playing { background: #d2e6fa; }
.demo-practice { min-height: 29px; padding: 0 10px; color: #334155; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 0.72rem; font-weight: 600; }
.demo-practice-badge {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 10px;
    color: #075348;
    border: 1px solid #9bd6c3;
    border-radius: 6px;
    background: #e8fbef;
    font-size: 0.72rem;
    font-weight: 700;
}
.demo-section-action {
    min-height: 24px;
    padding: 2px 8px;
    color: #536477;
    border: 1px solid #d4ccb8;
    border-radius: var(--radius-pill);
    background: #fff;
    font-size: 0.66rem;
    font-weight: 600;
}
.demo-section-action:hover { color: var(--blue-strong); border-color: var(--blue-strong); background: rgba(63, 55, 143, 0.08); }
.demo-progress-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c8c4ba;
    flex-shrink: 0;
}
.demo-progress-dot.is-active, .demo-progress-dot.is-ready { background: #3456d8; }

.demo-definition-card { margin-top: 10px; padding: 12px 14px; border: 1px solid #d8deeb; border-radius: 8px; background: #fff; }
.demo-translation-card { margin-top: 10px; padding: 10px 12px; border-radius: 7px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 0.82rem; }
.demo-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.demo-card-source { color: #71829a; font-size: 0.68rem; }
.demo-section-label { margin: 0; color: #6b7f94; font-family: var(--mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.demo-meaning-list, .demo-example-list { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.84rem; line-height: 1.55; font-family: var(--display); }
.demo-meaning-list li + li, .demo-example-list li + li { margin-top: 6px; }
.demo-example-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.demo-example-text { flex: 1 1 auto; min-width: 0; }
.demo-translation { margin: 0; color: var(--text); font-size: 0.9rem; font-weight: 600; }

.demo-sense-matrix { display: grid; gap: 8px; margin-top: 8px; }
.demo-sense-card { padding: 9px 11px; border: 1px solid #d8deeb; border-radius: 8px; background: #fff; }
.demo-sense-card.is-context { border-color: var(--blue-strong); background: rgba(63, 55, 143, 0.07); }
.demo-sense-header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.demo-sense-number { color: var(--blue-strong); font-weight: 700; min-width: 1.2rem; }
.demo-sense-pos { padding: 1px 6px; color: var(--blue-strong); background: #fff; border-radius: var(--radius-pill); font-size: 0.65rem; font-weight: 700; }
.demo-sense-badge { padding: 1px 6px; color: #075348; background: rgba(52, 86, 216, 0.12); border-radius: var(--radius-pill); font-size: 0.65rem; font-weight: 700; }
.demo-sense-definition { margin: 0; color: #192641; font-size: 0.84rem; }
.demo-sense-gloss { display: block; margin-top: 3px; color: #445472; font-size: 0.78rem; }

.demo-word-family { margin-bottom: 12px; }
.demo-word-family h4 { margin: 0 0 6px; color: var(--text); font-size: 0.84rem; }
.demo-family-row { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: center; margin-top: 5px; font-size: 0.76rem; }
.demo-family-row > span { color: #475569; font-weight: 600; }
.demo-family-chip {
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(63, 55, 143, 0.06);
    color: #2745ba;
    font-size: 0.72rem;
    font-family: var(--mono);
}
.demo-family-chip:hover { background: #e3e1f8; border-color: #b8b0e3; }

.demo-ai-heading { margin: 0; color: #23415d; font-size: 1.05rem; }
.demo-ai-copy { margin: 8px 0 0; color: #38536a; font-size: 0.84rem; line-height: 1.6; }
.demo-subheading { margin: 14px 0 8px; color: #23415d; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--mono); }
.demo-context-used { margin: 8px 0 14px; padding: 8px 10px; color: #536d7e; border-left: 3px solid var(--blue-strong); background: #eef1fb; font-size: 0.78rem; }
.demo-token { margin: 0; padding: 0 2px; color: inherit; background: transparent; border: 0; border-radius: 4px; font: inherit; cursor: pointer; }
.demo-token:hover { background: rgba(63, 55, 143, 0.1); color: var(--blue-strong); }
.demo-token.is-query { font-weight: 700; color: var(--blue-strong); text-decoration: underline; text-underline-offset: 3px; }

.demo-role-box { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #d8d4f0; border-radius: 8px; background: #f4f3fb; color: #2745ba; font-size: 0.8rem; line-height: 1.5; }
.demo-role-box p { margin: 0; }
.demo-role-box p + p { margin-top: 5px; }

.demo-list { display: grid; gap: 7px; padding: 0; margin: 10px 0 0; list-style: none; }
.demo-list li { padding-left: 16px; color: #496278; font-size: 0.8rem; line-height: 1.5; position: relative; }
.demo-list li::before { position: absolute; left: 2px; color: #1da97f; content: "•"; font-size: 1.1rem; line-height: 1; }

.demo-mistakes-block { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d8deeb; }
.demo-mistakes-heading { margin: 0 0 6px; color: #7a4a00; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--mono); }
.demo-mistake-item { margin-top: 6px; padding: 8px 10px; border-left: 3px solid #d97706; background: #fef8f0; border-radius: 0 8px 8px 0; }
.demo-mistake-avoid, .demo-mistake-prefer, .demo-mistake-example { margin: 0; font-size: 0.78rem; line-height: 1.45; }
.demo-mistake-prefer { margin-top: 4px; }
.demo-mistake-example { margin-top: 5px; color: #587082; font-style: italic; }
.demo-tag-avoid, .demo-tag-prefer { display: inline-block; min-width: 50px; padding: 1px 6px; margin-right: 6px; border-radius: var(--radius-pill); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--mono); }
.demo-tag-avoid { color: #9f1239; background: rgba(225, 29, 72, 0.12); }
.demo-tag-prefer { color: #075348; background: rgba(52, 86, 216, 0.12); }

.demo-core-distinction { margin: 10px 0 12px; padding: 10px 12px; border: 1px solid rgba(52, 86, 216, 0.28); border-radius: 8px; background: rgba(52, 86, 216, 0.08); color: #075348; font-size: 0.8rem; line-height: 1.5; }
.demo-compare-table-wrap { overflow-x: auto; margin-top: 10px; }
.demo-compare-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.demo-compare-table th, .demo-compare-table td { padding: 6px 8px; border: 1px solid #d8deeb; text-align: left; }
.demo-compare-table th { background: #eef1f8; color: #445472; font-weight: 700; }
.demo-minimal-pairs { display: grid; gap: 8px; margin-top: 10px; }
.demo-minimal-pair { padding: 8px 10px; border: 1px solid #d8deeb; border-radius: 8px; background: #fff; }
.demo-minimal-a, .demo-minimal-b { margin: 0 0 3px; font-size: 0.8rem; }
.demo-minimal-a { color: #192641; }
.demo-minimal-b { color: #445472; }
.demo-minimal-pair small { color: #64718a; font-size: 0.72rem; }

.demo-rephrase-grid { display: grid; gap: 8px; margin-top: 10px; }
.demo-rephrase-card { padding: 11px 12px; border: 1px solid #d8deeb; border-radius: 8px; background: #e6f5ee; }
.demo-rephrase-style-tag {
    display: inline-flex;
    padding: 2px 7px;
    color: #075348;
    border: 1px solid rgba(52, 86, 216, 0.28);
    border-radius: var(--radius-pill);
    background: rgba(52, 86, 216, 0.08);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.demo-rephrase-text { margin: 6px 0 0; color: #192641; font-family: var(--display); font-size: 0.88rem; line-height: 1.5; }
.demo-rephrase-note { margin: 5px 0 0; color: #416457; font-size: 0.74rem; line-height: 1.5; }

.phrase-card { padding: 11px; border: 1px solid #d8deeb; border-radius: 7px; background: #f2f9f4; }
.phrase-card h4 { margin: 0; color: #1c5d42; font-size: 0.86rem; }
.phrase-card p { margin: 4px 0 0; color: #416457; font-size: 0.78rem; line-height: 1.5; }

.breakdown-grid { display: grid; gap: 7px; margin-top: 10px; }
.breakdown-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 8px 10px; border: 1px solid #d3e2dd; border-radius: 6px; background: #f5faf8; font-size: 0.76rem; }
.breakdown-row strong { color: #2a6f97; }
.breakdown-row span { color: #526d70; }

.demo-footnote { margin-top: 14px; text-align: center; color: var(--text-dim); font-size: 0.78rem; }

/* Rewriter Interactive Demo */
.demo-rewriter-shell { display: flex; flex-direction: column; gap: 14px; }
.demo-rewriter-label-row { display: flex; align-items: center; justify-content: space-between; }
.demo-rewriter-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.demo-rewriter-clear-btn { font-size: 0.72rem; color: var(--text-dim); background: transparent; border: none; cursor: pointer; padding: 0; }
.demo-rewriter-clear-btn:hover { color: var(--text); }
.demo-rewriter-textarea {
    display: block;
    width: 100%;
    min-height: 74px;
    padding: 10px 12px;
    resize: vertical;
    color: #192641;
    border: 1px solid #d4ccb8;
    border-radius: 8px;
    background: #faf9f6;
    font-family: var(--sans);
    font-size: 0.82rem;
    line-height: 1.5;
    transition: border-color 120ms ease, background-color 120ms ease;
}
.demo-rewriter-textarea:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.demo-rewriter-styles-label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); margin-bottom: 6px; }
.demo-rewriter-styles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.demo-rewriter-style-btn {
    text-align: left;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid #d8deeb;
    background: #fff;
    cursor: pointer;
    transition: all 120ms ease;
}
.demo-rewriter-style-btn:hover { background: #f8f6f0; border-color: #c4beaf; }
.demo-rewriter-style-btn.active {
    background: #effcf8;
    border-color: #3456d8;
    box-shadow: 0 0 0 1px #3456d8;
}
.demo-rewriter-style-title { font-size: 0.76rem; font-weight: 700; color: #192641; }
.demo-rewriter-style-btn.active .demo-rewriter-style-title { color: #3456d8; }
.demo-rewriter-style-desc { font-size: 0.68rem; color: #64718a; margin-top: 2px; }
.demo-rewriter-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    margin-top: 4px;
    border-radius: 8px;
    background: #3456d8;
    color: #fff;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease;
}
.demo-rewriter-action-btn:hover { background: #2745ba; }
.demo-rewriter-action-btn:active { transform: scale(0.98); }
.demo-rewriter-action-btn.is-loading { opacity: 0.85; pointer-events: none; }
.demo-rewriter-deck { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.demo-rewriter-polished-card {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    background: #f0fdf4;
}
.demo-rewriter-polished-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.demo-rewriter-tag {
    display: inline-flex;
    padding: 2px 7px;
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--radius-pill);
    background: rgba(5, 150, 105, 0.08);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}
.demo-rewriter-actions { display: flex; align-items: center; gap: 6px; }
.demo-rewriter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 5px;
    border: 1px solid #d1fae5;
    background: #fff;
    color: #065f46;
    font-size: 0.66rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease;
}
.demo-rewriter-btn:hover { background: #e6fcf0; }
.demo-rewriter-polished-text {
    margin: 0;
    color: #192641;
    font-family: var(--display);
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 500;
}
.demo-rewriter-coaching-box {
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid #e2ded5;
    background: #faf8f5;
    font-size: 0.76rem;
    line-height: 1.5;
}
.demo-rewriter-coaching-heading {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.demo-rewriter-issue {
    margin: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.demo-rewriter-issue-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: var(--mono);
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 2px;
}
.demo-rewriter-issue-badge.clarity { background: #fef3c7; color: #92400e; }
.demo-rewriter-issue-badge.tone { background: #e0e7ff; color: #3730a3; }
.demo-rewriter-issue-badge.correctness { background: #fee2e2; color: #991b1b; }

.demo-lexical-accordion {
    margin-top: 12px;
    border: 1px solid #e5e0d2;
    border-radius: 10px;
    background: #ffffff;
}
.demo-lexical-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    min-height: 44px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.demo-lexical-accordion > summary::-webkit-details-marker { display: none; }
.demo-lexical-accordion > summary svg {
    flex: 0 0 auto;
    transition: transform 160ms var(--ease);
}
.demo-lexical-accordion[open] > summary svg { transform: rotate(180deg); }
.demo-lexical-body {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
    border-top: 1px solid #e5e0d2;
    padding-top: 12px;
}

/* 7. Comparison Table */
.table-card {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.88rem;
    line-height: 1.5;
}
.compare-table th, .compare-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    vertical-align: top;
}
.compare-table thead th {
    color: var(--text-dim);
    background: var(--surface-hover);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.compare-table tbody th {
    color: var(--text);
    font-weight: 650;
    white-space: nowrap;
}
.compare-table td { color: var(--text-muted); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: rgba(79, 70, 165, 0.04); }
.compare-table tbody td:last-child { color: var(--green); font-weight: 600; }

/* 8. Install & Code */
.install-steps {
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.install-step {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.install-num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--blue-strong);
    border: 1px solid rgba(63, 55, 143, 0.25);
    border-radius: 50%;
    background: rgba(63, 55, 143, 0.08);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
}
.install-step h3 { margin: 0; color: var(--text); font-size: 0.98rem; }
.install-step p { margin: 6px 0 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }
.install-step code, .install-note code, .faq-item code {
    padding: 0.12em 0.35em;
    color: #5e53a0;
    background: rgba(63, 55, 143, 0.08);
    border: 1px solid rgba(63, 55, 143, 0.15);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.84em;
}
.install-step > div { min-width: 0; overflow-wrap: anywhere; }
.install-code-wrapper {
    position: relative;
    margin-top: 10px;
}
.install-code {
    margin: 0;
    padding: 12px 88px 12px 14px;
    overflow-x: auto;
    color: #334155;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.5;
}
.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 12px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.copy-code-btn:hover,
.copy-code-btn:focus-visible {
    color: var(--green);
    border-color: rgba(52, 86, 216, 0.35);
    background: var(--color-primary-light);
}
.copy-code-btn.is-copied {
    color: var(--green-ink);
    border-color: var(--green);
    background: var(--green);
}
.install-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.install-note {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.6;
}

/* 9. FAQ Accordion */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--blue-strong);
    font-family: var(--mono);
    font-size: 1.1rem;
    line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
    margin: 0;
    padding: 0 18px 15px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* 10. CTA Card & Footer */
.cta-section { padding-top: 0; background: #192641; }
.cta-card {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5.5vw, 64px);
    border: 1px solid rgba(52, 86, 216, 0.32);
    border-radius: var(--radius-lg);
    background: linear-gradient(115deg, #123b34, #0f2a44);
    box-shadow: 0 24px 60px rgba(23, 37, 52, 0.4);
}
.cta-content { position: relative; z-index: 1; max-width: 710px; }
.cta-kicker { color: #b8caff; }
.cta-title { color: #f5f8fb; }
.cta-lead { color: #c7d1da; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-buttons .btn-primary { background: #3456d8; box-shadow: 0 8px 24px rgba(52, 86, 216, 0.16); }
.cta-buttons .btn-primary:hover { background: #2745ba; }
.cta-buttons .btn-secondary { color: #e9eef3; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }
.cta-buttons .btn-secondary:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.10); }

.site-footer {
    padding: 24px 0;
    color: var(--text-dim);
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-copy p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--blue-strong); }

/* Animation Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 11. Unified Responsive Breakpoints */
@media (max-width: 1080px) {
    .nav-list { gap: 16px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr); gap: 36px; }
    .hero-proof { grid-template-columns: 1fr; }
    .grid.cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .site-nav {
        position: fixed;
        z-index: 48;
        top: var(--header-h);
        right: 0;
        left: 0;
        display: grid;
        visibility: hidden;
        height: calc(100dvh - var(--header-h));
        padding: 24px;
        overflow-y: auto;
        background: rgba(246, 243, 237, 0.97);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 170ms ease, transform 170ms var(--ease), visibility 170ms ease;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .nav-list { align-items: stretch; flex-direction: column; gap: 0; width: min(500px, 100%); margin-inline: auto; }
    .nav-list li { border-bottom: 1px solid var(--border-subtle); }
    .nav-link { display: block; padding: 15px 4px; font-size: 1rem; }
    .nav-link::after { display: none; }
    .nav-toggle { display: block; }
    .header-actions .btn { display: none; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-mockup-wrapper { max-width: 580px; margin-inline: auto; }
    .browser-window { transform: none; }
}

@media (max-width: 680px) {
    .container { width: min(var(--container), calc(100% - 32px)); }
    .brand-badge { display: none; }
    .hero-section { padding-top: 54px; }
    .section { padding: 56px 0; }
    .grid.cols-2 { grid-template-columns: 1fr; }
    .install-step { grid-template-columns: 1fr; }
    .panel { padding: 20px; }
    .cta-card { padding: 28px 20px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .breakdown-row { grid-template-columns: 1fr; gap: 4px; }
    .popup-device-header { align-items: flex-start; flex-direction: column; }
    .popup-header-controls { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 2.2rem; }
    .hero-ctas .btn { width: 100%; }
    .mini-popup-preview { width: calc(100% - 24px); }
    .popup-tab { padding: 10px 8px; font-size: 0.72rem; }
    .context-action-btn { font-size: 0.62rem; }
    .preset-btn { width: 100%; justify-content: center; }
}

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

@media print {
    :root { color-scheme: light; }
    body { color: #192641; background: #fff; }
    .site-header, .hero-ctas, .interactive-controls, .cta-buttons, .site-footer { display: none; }
    .hero-section, .section { padding: 24px 0; background: #fff; border: 0; }
    .hero-title, .section-title, .cta-title { color: var(--text); }
    .panel, .table-card, .cta-card, .faq-item { color: #192641; border-color: #d4cbb6; background: #fff; box-shadow: none; }
    .browser-window { transform: none; }
}

/* Preview uses the same hierarchy as the extension; all content is sample data. */
.hero-title em { font-style: normal; color: var(--color-primary); }
.mini-popup-preview { border-top: 4px solid var(--color-primary); }
.feature-card:nth-child(3n + 1) { background: #efebff; }
.feature-card:nth-child(3n + 2) { background: #e6f5ee; }
.feature-card:nth-child(3n) { background: #fff0e5; }
.popup-device { container: preview / inline-size; }
.demo-result-header { padding: 18px; border: 1px solid var(--border); border-top: 4px solid var(--color-primary); border-radius: 18px; background: var(--surface); margin-bottom: 14px; }
.demo-word { font-size: 2rem; letter-spacing: -0.04em; }
@media (max-width: 680px) {
    .hero-title { max-width: 15ch; }
    .hero-section { padding: 42px 0; }
    .browser-content { padding: 24px 16px; }
    .demo-result-title, .demo-result-actions { flex-wrap: wrap; }
}
