/*
|--------------------------------------------------------------------------
| EmailCH.com
|--------------------------------------------------------------------------
| File: index.css
| Description: Mobile-first light production UI.
|--------------------------------------------------------------------------
*/

:root {
    --bg: #f7f3ea;
    --bg-soft: #fbf8f1;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #172033;
    --muted: #687386;
    --muted-strong: #475569;
    --border: #e4dfd4;
    --border-strong: #d6cebf;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --primary-soft: #dbeafe;
    --green: #0f9f6e;
    --green-soft: #dcfce7;
    --yellow: #b7791f;
    --yellow-soft: #fef3c7;
    --red: #dc2626;
    --red-soft: #fee2e2;
    --shadow: 0 24px 70px rgba(30, 41, 59, 0.13);
    --shadow-soft: 0 14px 40px rgba(30, 41, 59, 0.08);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1120px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.11), transparent 30%),
        radial-gradient(circle at 90% 18%, rgba(15, 159, 110, 0.12), transparent 28%),
        linear-gradient(135deg, #fbf8f1 0%, #f7f3ea 44%, #eef6ff 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 18px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(15, 159, 110, 1));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.brand-text {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(214, 206, 191, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(18px);
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-link:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.08);
}

.lang-link.is-active {
    color: #ffffff;
    background: var(--text);
}

.hero-section {
    display: grid;
    gap: 22px;
    align-items: center;
    justify-items: stretch;
}

.hero-copy {
    display: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 850;
    background: rgba(219, 234, 254, 0.8);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    font-size: clamp(42px, 12vw, 78px);
    line-height: 0.92;
    letter-spacing: -0.085em;
}

.hero-copy p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 4.2vw, 21px);
    line-height: 1.55;
}

.checker-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(214, 206, 191, 0.9);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
        radial-gradient(circle at 90% 18%, rgba(15, 159, 110, 0.12), transparent 38%);
    box-shadow: var(--shadow);
}

.checker-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.6) 38%, transparent 64%);
    transform: translateX(-100%);
    animation: cardShine 7s ease-in-out infinite;
}

@keyframes cardShine {
    0%,
    78% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.checker-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 850;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(15, 159, 110, 0.13);
}

.checker-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.checker-form input {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    outline: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.checker-form input::placeholder {
    color: #94a3b8;
    font-weight: 550;
}

.checker-form input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.checker-form button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    background:
        linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.checker-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 19px 42px rgba(37, 99, 235, 0.32);
}

.checker-form button:disabled {
    cursor: not-allowed;
    opacity: 0.74;
    transform: none;
}

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: spin 760ms linear infinite;
}

.is-loading .button-loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.quick-examples {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 13px 0 0;
}

.quick-examples button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(214, 206, 191, 0.9);
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.68);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.quick-examples button:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(219, 234, 254, 0.72);
}

.result-panel {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    border: 1px solid rgba(214, 206, 191, 0.85);
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.74);
    overflow: hidden;
}

.empty-state,
.loading-state,
.error-state {
    padding: 18px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

.error-state {
    color: var(--red);
    background: rgba(254, 226, 226, 0.55);
}

.result-head {
    display: grid;
    gap: 15px;
    padding: 18px;
    border-bottom: 1px solid rgba(214, 206, 191, 0.74);
    background: rgba(255, 255, 255, 0.58);
    width: 100%;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.score-ring {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: var(--text);
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.05em;
    background:
        conic-gradient(var(--primary) var(--score-angle), #e8edf4 0);
    box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.72);
}

.score-copy {
    flex: 1;
    min-width: 0;
}

.score-copy h2 {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.score-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 31px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pill.good {
    color: #057a55;
    background: var(--green-soft);
}

.status-pill.warning {
    color: var(--yellow);
    background: var(--yellow-soft);
}

.status-pill.critical {
    color: var(--red);
    background: var(--red-soft);
}

.result-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
}

.result-section {
    padding: 14px;
    border: 1px solid rgba(214, 206, 191, 0.7);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.result-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.record-list,
.text-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.record-item {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.85);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.record-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-list li {
    position: relative;
    padding: 10px 10px 10px 30px;
    border-radius: 14px;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.48;
    background: rgba(248, 250, 252, 0.85);
}

.text-list li::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 13px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--primary);
}

.dns-example {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #111827;
    color: #e5e7eb;
}

.dns-example strong {
    font-size: 13px;
}

.dns-code {
    display: block;
    overflow-x: auto;
    padding: 10px;
    border-radius: 12px;
    color: #d1fae5;
    font-size: 12px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.08);
    white-space: pre;
}

.copy-button {
    justify-self: start;
    min-height: 33px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.13);
}

.features-section {
    margin-top: 34px;
}

.features-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.055em;
}

.features-grid {
    display: grid;
    gap: 12px;
}

.feature-card {
    padding: 18px;
    border: 1px solid rgba(214, 206, 191, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 950;
    background: var(--primary-soft);
}

.feature-card h3 {
    margin: 14px 0 7px;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.site-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    width: fit-content;
    color: var(--primary-strong);
    font-weight: 850;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (min-width: 720px) {
    .page-shell {
        padding: 26px;
    }

    .site-header {
        padding-bottom: 42px;
    }

    .hero-section {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 34px;
}

    .checker-card {
        padding: 22px;
    }

    .checker-form {
        grid-template-columns: minmax(0, 1fr) 155px;
    }

    .features-section {
        margin-top: 52px;
    }

    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .result-head {
        padding: 20px;
    }

    .result-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
}

    .site-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.result-section:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 1040px) {
    .page-shell {
        padding-top: 34px;
    }

    .hero-copy {
    display: none;
}

    .checker-card {
    width: 100%;
    max-width: none;
    transform: none;
}
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}