:root {
    color-scheme: light;
    font-family: system-ui, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2a37;
    background: #f7faff;
    font-synthesis: none;
    --bg-page: #f7faff;
    --bg-soft: #eef6ff;
    --bg-card: #ffffff;
    --text-primary: #1f2a37;
    --text-secondary: #6b7280;
    --border-soft: #dceaf8;
    --brand-soft: #eef6ff;
    --brand-primary: #58a8ff;
    --brand-strong: #3d8bff;
    --surface-muted: #f5f7fa;
    --status-success: #267252;
    --status-error: #a4403a;
    --status-warning: #8a6018;
    --status-processing: #3f6191;
    --page: var(--bg-page);
    --surface: var(--bg-card);
    --ink: var(--text-primary);
    --muted: var(--text-secondary);
    --line: var(--border-soft);
    --line-strong: #c9dff4;
    --primary: var(--brand-strong);
    --primary-hover: #2f76e8;
    --focus: rgba(88, 168, 255, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--page);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--page);
}

button,
input,
summary {
    font: inherit;
    letter-spacing: 0;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.home-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: linear-gradient(135deg, #f9fcff 0%, #eef6ff 42%, #f8fbff 72%, #f7faff 100%);
}

.home-main {
    width: min(calc(100% - 32px), 960px);
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 72px 0 54px;
}

.home-hero {
    max-width: 580px;
    margin-bottom: 34px;
}

.home-hero h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 36px;
    font-weight: 730;
    line-height: 1.25;
    letter-spacing: 0;
}

.home-hero p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    display: flex;
    min-width: 0;
    min-height: 210px;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: inherit;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(31, 42, 55, 0.035);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
    border-color: #bfe0ff;
    box-shadow: 0 12px 28px rgba(31, 82, 135, 0.08);
    transform: translateY(-2px);
}

.service-card:active {
    box-shadow: 0 3px 10px rgba(26, 28, 34, 0.04);
    transform: translateY(0);
}

.service-card:focus-visible,
.secondary-disclosure summary:focus-visible,
.secondary-menu a:focus-visible,
.back-link:focus-visible,
.primary-button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    margin-bottom: 22px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #f5faff;
}

.service-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.service-icon-x {
    border-color: #0f1419;
    background: #0f1419;
}

.service-icon-x img {
    width: 32px;
    height: 32px;
}

.service-icon-duolingo {
    border-color: #9add51;
    color: #285f13;
    background: #d9f99d;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.service-copy {
    min-width: 0;
}

.service-copy strong,
.service-copy small {
    display: block;
    overflow-wrap: anywhere;
}

.service-copy strong {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 680;
    line-height: 1.4;
}

.service-copy small {
    margin-top: 9px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.channel-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    margin-top: 10px;
    padding: 3px 8px;
    border: 1px solid #d8e9fc;
    border-radius: 4px;
    color: #3977c5;
    background: var(--brand-soft);
    font-size: 11px;
    font-weight: 620;
    line-height: 1.35;
    white-space: nowrap;
}

.service-enter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 21px;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 650;
    transition: color 180ms ease;
}

.service-card:hover .service-enter {
    color: #2f76e8;
}

.service-enter span {
    transition: transform 180ms ease;
}

.service-card:hover .service-enter span {
    transform: translateX(2px);
}

.secondary-actions {
    display: flex;
    align-items: flex-start;
    gap: 14px 28px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.secondary-disclosure {
    max-width: 360px;
    color: #5e6f82;
    font-size: 13px;
}

.secondary-disclosure summary {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    border-radius: 4px;
    color: #465b70;
    font-weight: 620;
    list-style: none;
    cursor: pointer;
}

.secondary-disclosure summary::-webkit-details-marker {
    display: none;
}

.secondary-disclosure summary span {
    transition: transform 180ms ease;
}

.secondary-disclosure[open] summary span {
    transform: rotate(90deg);
}

.secondary-disclosure p {
    margin: 7px 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.secondary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 7px;
}

.secondary-menu a {
    border-radius: 3px;
    color: #3977c5;
    line-height: 1.6;
    text-underline-offset: 3px;
}

.home-footer {
    width: min(calc(100% - 32px), 960px);
    flex: 0 0 auto;
    margin: 0 auto;
    padding: 0 0 26px;
    text-align: left;
}

.service-status-page {
    width: min(calc(100% - 32px), 600px);
    margin: 0 auto;
    padding: 48px 0 30px;
}

.service-status-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    margin-bottom: 26px;
}

.service-status-heading > div {
    min-width: 0;
}

.service-status-heading h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 720;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

.service-status-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.service-status-icon {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f5faff;
}

.service-status-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.service-status-icon-x {
    border-color: #0f1419;
    background: #0f1419;
}

.service-status-icon-x img {
    width: 36px;
    height: 36px;
}

.service-status-surface {
    min-height: 300px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(31, 42, 55, 0.04);
}

.service-status-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #d8e9fc;
    border-radius: 4px;
    color: #3977c5;
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.service-status-surface h2 {
    margin: 22px 0 0;
    color: var(--text-primary);
    font-size: 21px;
    line-height: 1.4;
}

.service-status-surface p {
    max-width: 430px;
    margin: 9px 0 28px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.service-status-home {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: #334b63;
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.service-status-home:hover {
    border-color: #bfe0ff;
    background: #f5faff;
}

.service-status-home:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* Shared fallback styles for the existing lightweight service pages. */
.shell {
    width: min(calc(100% - 32px), 680px);
    margin: 0 auto;
}

.business-shell {
    width: min(calc(100% - 32px), 560px);
    padding: 32px 0 64px;
}

.back-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: #5e6f82;
    font-size: 14px;
    text-decoration: none;
}

.business-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.business-heading h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 23px;
    line-height: 1.35;
    letter-spacing: 0;
}

.business-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.service-mark.large {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #fff;
    background: #555b70;
    font-size: 18px;
    font-weight: 700;
}

.form-panel,
.unavailable {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.form-panel {
    padding: 24px;
}

.form-panel h2 {
    margin: 0 0 22px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.4;
}

.field {
    display: block;
    margin-bottom: 18px;
}

.field > span {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 650;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: var(--text-primary);
    background: #fff;
    font-size: 16px;
}

.field input::placeholder {
    color: #9b9ea5;
}

.field input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--focus);
    outline: none;
}

.reveal-control {
    display: flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    margin: -8px 0 18px;
    color: #62656d;
    font-size: 13px;
    cursor: pointer;
}

.reveal-control input {
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    accent-color: var(--brand-strong);
}

.primary-button {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--primary);
    border-radius: 7px;
    color: #fff;
    background: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover:not(:disabled) {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
}

.primary-button:disabled {
    cursor: not-allowed;
    border-color: #dce7f2;
    color: #8b9aad;
    background: #eaf1f8;
    opacity: 1;
}

.result {
    margin-top: 18px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #536273;
    background: var(--surface-muted);
}

.result strong,
.result p,
.result small {
    display: block;
    overflow-wrap: anywhere;
}

.result strong {
    font-size: 15px;
    line-height: 1.45;
}

.result p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

.result small {
    margin-top: 8px;
    color: #7d8088;
    font-size: 12px;
    line-height: 1.45;
}

.result[data-tone="processing"] {
    border-color: #c8d5e7;
    color: #3f6191;
    background: #f1f5fa;
}

.result[data-tone="success"] {
    border-color: #bcdccb;
    color: #267252;
    background: #f0f8f4;
}

.result[data-tone="failed"] {
    border-color: #e8c4c1;
    color: #a4403a;
    background: #fdf3f2;
}

.unavailable {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 24px;
    color: #73767e;
    font-size: 16px;
}

@media (max-width: 600px) {
    .home-main {
        padding: 46px 0 42px;
    }

    .home-hero {
        margin-bottom: 28px;
    }

    .home-hero h1 {
        font-size: 30px;
    }

    .home-hero p {
        margin-top: 9px;
        font-size: 15px;
    }

    .service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .service-card {
        min-height: 174px;
        padding: 21px;
    }

    .service-icon {
        margin-bottom: 17px;
    }

    .service-enter {
        padding-top: 17px;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 4px;
        margin-top: 24px;
        padding-top: 18px;
    }

    .secondary-disclosure {
        width: 100%;
        max-width: none;
    }

    .secondary-disclosure summary {
        min-height: 42px;
    }

    .secondary-menu,
    .secondary-disclosure p {
        padding: 0 0 8px;
    }

    .form-panel {
        padding: 20px;
    }

    .service-status-page {
        padding-top: 34px;
    }

    .service-status-heading h1 {
        font-size: 24px;
    }

    .service-status-surface {
        min-height: 270px;
        padding: 24px 20px;
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-enter span,
    .secondary-disclosure summary span {
        transition: none;
    }
}
