/* Shared visual system. Public page selectors also override their legacy inline styles. */
:root {
    --bg: #f7f9fc;
    --panel: #fff;
    --panel-border: #e1e7ef;
    --text: #172b44;
    --muted: #617187;
    --primary: #285fe8;
    --primary-hover: #194bc6;
    --accent-mint: #087f75;
    --shadow: 0 8px 28px rgb(24 45 76 / 5%);
}
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
.shell { max-width: 1200px; padding: 22px 28px 40px; }
.topbar {
    top: 12px;
    padding: 14px 20px;
    margin-bottom: 28px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 4px 18px rgb(24 45 76 / 4%);
}
.brand { font-size: 20px; font-weight: 750; letter-spacing: -.6px; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark { width: 31px; height: 31px; box-shadow: none; }
.nav { gap: 6px; }
.nav a, .nav form button { border-color: transparent; background: transparent; font-size: 14px; box-shadow: none; }
.nav a:hover, .nav form button:hover { background: #f0f4fa; border-color: transparent; box-shadow: none; }
.nav a.active { background: #edf3ff; border-color: transparent; color: #2459d6; }
.site-public .topbar { display: grid; grid-template-columns: 1fr auto auto; gap: 26px; }
.site-public .nav a[href$="/register"] { background: var(--primary); color: #fff; padding-inline: 18px; }
.site-public .nav a[href$="/register"]:hover { background: var(--primary-hover); }
.language-select { min-width: 106px; background: #f8fafc; border-color: var(--panel-border); font-weight: 500; }
.button, button { border-radius: 10px; background: var(--primary); box-shadow: none; font-weight: 600; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover, button:hover { background: var(--primary-hover); box-shadow: none; transform: none; }
.button.secondary, button.secondary { background: #fff; border-color: var(--panel-border); color: var(--text); }
.button.secondary:hover, button.secondary:hover { background: #f3f6fb; border-color: #bdcce1; }
button:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #6c97ff;
    outline-offset: 3px;
}
.field label { color: #34465f; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
    min-height: 44px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    box-shadow: none;
    font-size: 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #7b899c; }
.card { border-color: var(--panel-border); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.pill { border-radius: 6px; background: #eef3fc; color: #335885; font-size: 12px; font-weight: 500; }
.pill.success { background: #e9f6f0; color: #237154; }
.site-footer { margin-top: 64px; padding: 28px 4px 0; border-color: var(--panel-border); background: transparent; box-shadow: none; }
.site-footer-link { border-radius: 9px; font-size: 13px; }
.site-footer-bottom { color: #718097; }

/* Homepage: clear typography, a live receiving panel and quiet brand accents. */
.page-home .landing-hero {
    min-height: 0;
    margin: 0 0 24px;
    border: 1px solid #e3eaf3;
    border-radius: 24px;
    background: radial-gradient(ellipse at 88% 5%, #ddf5ee 0, transparent 48%), linear-gradient(120deg, #eef3ff, #f8fbff 58%, #f0f9f6);
    color: var(--text);
    box-shadow: none;
}
.page-home .landing-hero::before { display: none; }
.page-home .landing-hero::after { display: none; }
.page-home .landing-hero-inner { min-height: 0; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 46px; padding: 64px 42px; }
.page-home .hero-kicker {
    min-height: 30px;
    padding: 6px 12px;
    border-color: #cce9df;
    background: #e6f5ee;
    color: #276954;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: none;
}
.page-home .hero-copy h1 { margin: 24px 0 22px; font-size: clamp(38px, 4.4vw, 55px); line-height: 1.16; letter-spacing: -2px; font-weight: 750; text-shadow: none; }
.page-home .hero-copy h1 span { display: block; color: #087f75; margin-top: 5px; }
.page-home:lang(zh-CN) .hero-copy h1 { font-size: clamp(34px, 3.6vw, 46px); letter-spacing: -1px; }
.page-home .hero-copy p { max-width: 480px; color: #596b82; font-size: 16px; line-height: 1.85; }
.page-home .hero-actions { margin-top: 28px; gap: 10px; }
.page-home .hero-actions .button:first-child { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 5px 12px rgb(40 95 232 / 15%); }
.page-home .hero-actions .button:first-child:hover { background: var(--primary-hover); }
.page-home .hero-actions .button.secondary { background: #fff; border-color: #d6e0ef; color: #344c6d; }
.page-home .hero-proof { gap: 16px; margin-top: 34px; }
.page-home .hero-proof div { padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.page-home .hero-proof strong { color: #294764; font-size: 14px; }
.page-home .hero-proof span { color: #6a7b90; font-size: 11px; line-height: 1.65; }
.page-home .instant-panel { border: 1px solid #dde6f1; border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgb(30 60 100 / 9%); backdrop-filter: none; }
.page-home .instant-panel-head { padding: 24px 24px 18px; border-bottom-color: #edf1f6; }
.page-home .instant-panel-head h2 { font-size: 20px; letter-spacing: -.3px; }
.page-home .instant-panel-head p { margin-bottom: 0; color: #66778d; font-size: 13px; line-height: 1.7; }
.page-home .instant-panel-body { padding: 20px 24px 24px; }
.page-home .trial-input-row { grid-template-columns: 1fr; gap: 13px; }
.page-home .email-preview { padding: 12px; background: #f2f7fc; border-color: #e2eaf4; font-size: 13px; font-weight: 600; }
.page-home .trial-help { border: 0; background: #f4f8ff; color: #586f90; font-size: 11px; line-height: 1.65; }
.page-home .trial-help strong { width: 17px; height: 17px; background: #dbe8ff; color: #396bcc; }
.page-home .inbox-preview { margin-top: 20px; border-color: #e7edf4; border-radius: 9px; background: #fafcfe; }
.page-home .inbox-preview-row { padding: 9px 12px; grid-template-columns: 72px 1fr; font-size: 11px; }
.page-home .inbox-preview-row strong { color: #57718e; font-weight: 600; }
.page-home .landing-section { padding: 42px 4px; }
.page-home .landing-section h2 { max-width: 800px; margin-bottom: 14px; color: var(--text); font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -.7px; }
.page-home .landing-section > p { max-width: 730px; font-size: 14px; line-height: 1.8; margin-bottom: 28px; }
.page-home .section-eyebrow { color: #087f75; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; margin-bottom: 12px; }
.page-home .feature-grid, .page-home .benefit-grid, .page-home .steps-grid, .page-home .resource-grid { gap: 18px; }
.page-home .feature-tile, .page-home .benefit-tile, .page-home .step-tile, .page-home .faq-tile, .page-home .resource-tile {
    min-height: 0;
    padding: 26px;
    border: 1px solid #e3e9f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}
.page-home .feature-tile::before, .page-home .benefit-tile::before, .page-home .step-tile::before, .page-home .faq-tile::before, .page-home .resource-tile::before { display: none; }
.page-home .feature-tile:hover, .page-home .benefit-tile:hover, .page-home .step-tile:hover, .page-home .faq-tile:hover, .page-home .resource-tile:hover { transform: none; border-color: #c4d4eb; box-shadow: 0 6px 18px rgb(24 45 76 / 4%); }
.page-home .feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 11px; background: #edf3ff; color: #346adc; }
.page-home .feature-tile:nth-child(3n) .feature-icon { background: #eaf6f1; color: #16816c; }
.page-home .feature-tile h3, .page-home .benefit-tile h3, .page-home .step-tile h3, .page-home .faq-tile h3, .page-home .resource-tile h3 { font-size: 16px; line-height: 1.4; font-weight: 650; margin-bottom: 10px; }
.page-home .feature-tile p, .page-home .benefit-tile p, .page-home .step-tile p, .page-home .faq-tile p, .page-home .resource-tile p { font-size: 13px; line-height: 1.8; }
.page-home .benefit-tile { display: flex; flex-direction: column; gap: 16px; }
.page-home .benefit-action { align-self: flex-start; min-height: 34px; font-size: 12px; }
.page-home .step-num { width: 32px; height: 32px; border-radius: 50%; color: #285fe8; background: #eef3ff; font-size: 13px; font-weight: 600; }
.page-home .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.page-home .faq-tile { background: transparent; padding: 22px; }
.page-home .landing-cta { padding: 40px; border-radius: 20px; background: radial-gradient(ellipse at top right, #174751, transparent 65%), #172b44; box-shadow: none; }
.page-home .landing-cta h2 { color: #fff; font-size: 28px; }
.page-home .landing-cta p { font-size: 14px; line-height: 1.8; }
.page-home .landing-cta .button { flex-shrink: 0; background: #fff; color: #17344a; }

/* Product catalog: distinct brands, compact filters, stable card rhythm. */
.page-products .edu-hero { gap: 16px; padding: 44px; border-color: #dde8f5; border-radius: 20px; background: radial-gradient(ellipse at top right, #e0f5ef, transparent 65%), #edf3fe; color: var(--text); box-shadow: none; }
.page-products .edu-hero h1 { max-width: 800px; font-size: clamp(30px, 3.4vw, 43px); line-height: 1.2; letter-spacing: -1px; font-weight: 700; }
.page-products .edu-hero p { max-width: 740px; color: #5a6e87; font-size: 15px; line-height: 1.8; }
.page-products .edu-hero .section-eyebrow { color: #087f75 !important; font-size: 11px; letter-spacing: 1.4px; font-weight: 700; }
.page-products .edu-hero .row-actions { margin-top: 6px; }
.page-products .edu-search { gap: 14px; margin-top: 26px; padding: 20px; border-radius: 14px; border-color: var(--panel-border); }
.page-products .edu-grid { gap: 22px; margin-top: 26px; }
.page-products .edu-card { position: relative; padding: 26px; gap: 16px; border-radius: 16px; border-color: var(--panel-border); box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
.page-products .edu-card:hover { border-color: #c3d2e8; box-shadow: 0 8px 24px rgb(24 45 76 / 6%); }
.page-products .edu-card-brand { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #dce7f8; border-radius: 13px; background: #eef4ff; color: #2e5bc0; font-size: 16px; font-weight: 700; letter-spacing: -.5px; }
.page-products .edu-card:nth-child(3n + 2) .edu-card-brand { background: #eaf7f1; border-color: #d4ebdf; color: #28785d; }
.page-products .edu-card:nth-child(3n) .edu-card-brand { background: #f2effb; border-color: #e5dff4; color: #7256a2; }
.page-products .edu-card h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.page-products .edu-card p { font-size: 13px; line-height: 1.75; }
.page-products .edu-card-meta { gap: 6px; }
.page-products .edu-score { gap: 5px; }
.page-products .edu-score span { width: 14px; height: 5px; background: #e1e8f2; }
.page-products .edu-score span.on { background: #74a293; }
.page-products .edu-price { border-top: 1px solid #edf1f6; padding-top: 18px; gap: 8px; font-size: 12px; line-height: 1.7; }
.page-products .edu-price strong { color: #284467; font-size: 19px; font-weight: 700; }
.page-products .edu-card-footer { padding-top: 4px; font-size: 12px; }
.page-products .edu-card-footer .button { font-size: 12px; border-radius: 8px; }
.page-products .product-hero { border-radius: 20px; border-color: var(--panel-border); box-shadow: none; background: #f0f5fe; padding: 40px; }
.page-products .product-hero h1 { line-height: 1.2; font-size: clamp(30px, 4vw, 46px); letter-spacing: -1px; }
.page-products .product-section { border-radius: 14px; border-color: var(--panel-border); box-shadow: none; }

/* Account entry and contact pages share the same form and spacing system. */
.page-auth .shell > .page-head { max-width: 520px; margin: 52px auto 26px; text-align: center; justify-content: center; }
.page-auth .page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.7px; }
.page-auth .page-head p { font-size: 14px; line-height: 1.7; }
.page-auth .shell > .card { margin: 0 auto; padding: 30px; border-radius: 18px; box-shadow: 0 12px 36px rgb(24 45 76 / 5%); }
.page-auth .field { margin-bottom: 20px; }
.page-auth .field .muted { font-size: 12px; line-height: 1.6; }
.page-contact .contact-head { padding: 32px 0 8px; }
.page-contact .contact-head h1 { font-weight: 700; letter-spacing: -.7px; }
.page-contact .contact-card { padding: 30px; border-radius: 16px; }
.page-contact .contact-email { border-style: solid; border-color: #dbe6f6; background: #f2f6fe; }

@media (max-width: 1000px) {
    .page-home .landing-hero-inner { gap: 28px; padding: 44px 30px; }
    .page-home .hero-copy h1 { font-size: 40px; letter-spacing: -1px; }
    .page-home .hero-actions { flex-direction: column; align-items: stretch; }
    .page-home .hero-proof { grid-template-columns: 1fr; gap: 10px; }
    .page-home .hero-proof div { display: grid; grid-template-columns: 90px 1fr; gap: 6px; }
    .page-home .hero-proof span { margin-top: 0; }
}
@media (max-width: 760px) {
    .shell { padding: 14px 16px 30px; }
    .site-public .topbar { grid-template-columns: 1fr auto; gap: 12px; padding: 14px; }
    .site-public .brand { width: auto; justify-content: flex-start; font-size: 18px; }
    .site-public .language-switcher { width: auto; grid-column: 2; grid-row: 1; }
    .site-public .language-select { width: 96px; min-width: 0; font-size: 11px; padding-left: 10px; }
    .site-public .nav { grid-column: 1 / -1; grid-row: 2; padding: 0; justify-content: flex-start; width: 100%; }
    .site-public .nav a { flex: 1; min-height: 36px; font-size: 12px; padding-inline: 10px; }
    .page-home .landing-hero { margin: 0 0 14px; border-radius: 18px; }
    .page-home .landing-hero-inner { grid-template-columns: 1fr; padding: 30px 22px; gap: 30px; }
    .page-home .hero-kicker { width: auto; justify-content: flex-start; text-align: left; font-size: 10px; }
    .page-home .hero-copy h1 { margin-top: 22px; font-size: 38px; line-height: 1.2; letter-spacing: -1px; }
    .page-home:lang(zh-CN) .hero-copy h1 { font-size: 34px; }
    .page-home .hero-copy p { font-size: 14px; line-height: 1.8; }
    .page-home .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 24px; }
    .page-home .hero-proof { margin-top: 24px; }
    .page-home .instant-panel-head { padding: 22px 18px 16px; }
    .page-home .instant-panel-body { padding: 18px; }
    .page-home .email-preview { grid-template-columns: minmax(0, 1fr); }
    .page-home .email-preview .pill { justify-self: start; }
    .page-home .landing-section { padding: 30px 0; }
    .page-home .landing-section h2 { font-size: 25px; }
    .page-home .feature-grid, .page-home .benefit-grid, .page-home .resource-grid, .page-home .faq-grid { grid-template-columns: 1fr; gap: 12px; }
    .page-home .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .page-home .feature-tile, .page-home .benefit-tile, .page-home .step-tile, .page-home .resource-tile, .page-home .faq-tile { padding: 22px; }
    .page-home .step-tile { padding: 18px; }
    .page-home .landing-cta { padding: 28px; gap: 22px; }
    .page-home .landing-cta h2 { font-size: 24px; }
    .page-products .edu-hero, .page-products .product-hero { padding: 28px 22px; border-radius: 18px; }
    .page-products .edu-hero h1 { font-size: 30px; letter-spacing: -.6px; }
    .page-products .edu-hero p { font-size: 14px; }
    .page-products .edu-search { padding: 18px; grid-template-columns: 1fr; }
    .page-products .edu-grid { grid-template-columns: 1fr; gap: 16px; }
    .page-products .edu-card { padding: 24px; }
    .page-auth .shell > .page-head { margin-top: 30px; }
    .page-auth .shell > .card { padding: 24px; }
    .site-footer { margin-top: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
