/* ═══════════════════════════════════════════════════════════
   SAJU ATELIER — Chart & Compatibility Stylesheet
   Dark luxury theme: "Sulwhasoo meets Co-Star"
   Fonts: Gowun Batang (serif/hanja), DM Sans (UI labels)
   ═══════════════════════════════════════════════════════════ */

/* ─── Element Color Variables ─── */
:root {
    /* Element solids */
    --el-wood: #4aaa3f;
    --el-fire: #e05a35;
    --el-earth: #d4a853;
    --el-metal: #d8d8e0;
    --el-water: #5a9ad8;

    /* Element translucent backgrounds */
    --el-wood-bg: rgba(42, 106, 34, 0.35);
    --el-fire-bg: rgba(180, 50, 20, 0.3);
    --el-earth-bg: rgba(140, 106, 48, 0.3);
    --el-metal-bg: rgba(180, 180, 190, 0.2);
    --el-water-bg: rgba(50, 80, 150, 0.3);

    /* Hero card accent tones (radial gradient center) */
    --el-wood-accent: #3A5A40;
    --el-fire-accent: #C44B2F;
    --el-earth-accent: #8B6914;
    --el-metal-accent: #8C8C8C;
    --el-water-accent: #2B4C6F;

    /* Core palette (from main.css, repeated for isolation) */
    --bg-deep: #12122a;
    --bg-card: rgba(18, 18, 42, 0.9);
    --bg-hero: #0A0A0F;
    --gold: #c4a265;
    --gold-light: #d4b87a;
    --gold-dark: #9a7a3e;
    --cream: #f5f0e8;
    --text-dim: #8a8278;
    --text-mid: #8a8278;
    --text-label: #7a756a;
    --ink: #08080e;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(201, 168, 76, 0.15);
    --glass-blur: 20px;

    /* Spacing & radii */
    --chart-pad: 40px;
    --card-radius: 16px;
    --card-radius-lg: 20px;
}


/* ═══════════════════════════════════════════════
   1. CHART FORM
   ═══════════════════════════════════════════════ */

.chart-form-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: var(--chart-pad);
}

.chart-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius-lg);
    padding: 36px 32px 40px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.chart-form__title {
    font-family: 'Cormorant Garamond', 'Gowun Batang', serif;
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--cream);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.chart-form__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-mid);
    text-align: center;
    margin-bottom: 28px;
}

/* Fields */
.chart-field {
    margin-bottom: 20px;
}

.chart-field label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.chart-field input,
.chart-field select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.chart-field input:focus,
.chart-field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.12);
}

.chart-field input::placeholder {
    color: var(--text-dim);
}

/* Select arrow */
.chart-field select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8278' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Inline field row (year/month/day side by side) */
.chart-field-row {
    display: flex;
    gap: 12px;
}

.chart-field-row .chart-field {
    flex: 1;
}

/* Gender radio buttons */
.chart-gender-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-gender-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-mid);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.chart-gender-group input[type="radio"] {
    display: none;
}

.chart-gender-group input[type="radio"]:checked + label,
.chart-gender-group label.active {
    color: var(--cream);
    border-color: var(--gold);
    background: rgba(196, 162, 101, 0.08);
}

/* Submit button */
.chart-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    margin-top: 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 20px rgba(196, 162, 101, 0.2);
}

.chart-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(196, 162, 101, 0.3);
}

.chart-submit:active {
    transform: translateY(0);
}

.chart-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* "Takes 15 seconds" hint */
.chart-form__hint {
    text-align: center;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Social proof counter */
.chart-counter {
    text-align: center;
    font-size: 12px;
    color: rgba(245, 240, 232, 0.35);
    margin-top: 12px;
    letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════════
   2. LOADING / REVEAL STATE
   ═══════════════════════════════════════════════ */

.chart-loading {
    text-align: center;
    padding: 80px 24px;
}

.chart-loading__text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold);
    opacity: 0.8;
    animation: loading-pulse 2s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}


/* ═══════════════════════════════════════════════
   3. HERO CARD (the screenshotable identity card)
   ═══════════════════════════════════════════════ */

.hero-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto 48px;
    padding: var(--chart-pad) var(--chart-pad) 36px;
    background: var(--bg-hero);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius-lg);
    overflow: hidden;
    /* aspect-ratio omitted — let content define height */
}

/* Element-based radial gradient overlay */
.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

.hero-card[data-element="Wood"]::before {
    background: radial-gradient(ellipse at 50% 40%, var(--el-wood-accent), transparent 70%);
}
.hero-card[data-element="Fire"]::before {
    background: radial-gradient(ellipse at 50% 40%, var(--el-fire-accent), transparent 70%);
}
.hero-card[data-element="Earth"]::before {
    background: radial-gradient(ellipse at 50% 40%, var(--el-earth-accent), transparent 70%);
}
.hero-card[data-element="Metal"]::before {
    background: radial-gradient(ellipse at 50% 40%, var(--el-metal-accent), transparent 70%);
}
.hero-card[data-element="Water"]::before {
    background: radial-gradient(ellipse at 50% 40%, var(--el-water-accent), transparent 70%);
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

/* Day Master watermark */
.hero-card__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Gowun Batang', 'Noto Serif KR', serif;
    font-size: 180px;
    font-weight: 700;
    color: var(--cream);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    user-select: none;
}

/* User name */
.hero-card__name {
    font-family: 'Gowun Batang', 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cream);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

/* Birth date in muted gold */
.hero-card__date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 32px;
}

/* 4 Pillars row */
.hero-pillars {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    opacity: 0;
    transform: translateY(20px);
}

/* Pillar label (Year/Month/Day/Hour) */
.hero-pillar__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
}

/* Hanja circle */
.hero-pillar__hanja {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Gowun Batang', 'Noto Serif KR', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--cream);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Element-specific hanja backgrounds */
.hero-pillar__hanja[data-el="Wood"] { background: var(--el-wood-bg); }
.hero-pillar__hanja[data-el="Fire"] { background: var(--el-fire-bg); }
.hero-pillar__hanja[data-el="Earth"] { background: var(--el-earth-bg); }
.hero-pillar__hanja[data-el="Metal"] { background: var(--el-metal-bg); }
.hero-pillar__hanja[data-el="Water"] { background: var(--el-water-bg); }

/* Branch text below hanja */
.hero-pillar__branch {
    font-family: 'Gowun Batang', serif;
    font-size: 0.78rem;
    color: var(--text-mid);
}

/* Day pillar emphasis */
.hero-pillar--day .hero-pillar__hanja {
    width: 64px;
    height: 64px;
    font-size: 32px;
    box-shadow: 0 0 40px rgba(196, 162, 101, 0.15);
    border-color: var(--glass-border);
}

/* Day Master title area */
.hero-day-master {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(12px);
}

.hero-day-master__hanja {
    font-family: 'Gowun Batang', 'Noto Serif KR', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--cream);
    display: inline-block;
}

.hero-day-master__label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* Archetype title */
.hero-card__archetype {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* Rarity badge */
.hero-card__rarity {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: var(--text-dim);
    text-align: center;
    letter-spacing: 0.04em;
}

/* Celebrity match badge */
.hero-card__celeb-match {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 14px;
    background: rgba(196, 162, 101, 0.08);
    border: 1px solid rgba(196, 162, 101, 0.12);
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--gold);
    text-decoration: none;
    transition: background 0.2s ease;
}

.hero-card__celeb-match:hover {
    background: rgba(196, 162, 101, 0.14);
    opacity: 1;
}

/* Site watermark bottom */
.hero-card__watermark-url {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    color: var(--cream);
    opacity: 0.5;
    text-align: center;
    margin-top: 24px;
    letter-spacing: 0.08em;
}


/* ═══════════════════════════════════════════════
   4. PILLAR REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes pillar-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes day-master-reveal {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered pillar reveal: Year → Month → Day → Hour */
.hero-pillar.revealed:nth-child(1) {
    animation: pillar-reveal 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}
.hero-pillar.revealed:nth-child(2) {
    animation: pillar-reveal 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.6s both;
}
.hero-pillar.revealed:nth-child(3) {
    animation: pillar-reveal 0.6s cubic-bezier(0.19, 1, 0.22, 1) 0.9s both;
}
.hero-pillar.revealed:nth-child(4) {
    animation: pillar-reveal 0.6s cubic-bezier(0.19, 1, 0.22, 1) 1.2s both;
}

/* Day Master appears last */
.hero-day-master.revealed {
    animation: day-master-reveal 0.8s cubic-bezier(0.19, 1, 0.22, 1) 1.6s both;
}

/* Archetype + rarity fade in */
.hero-card__archetype.revealed,
.hero-card__rarity.revealed,
.hero-card__celeb-match.revealed {
    animation: fade-up 0.5s ease 2.0s both;
}


/* ═══════════════════════════════════════════════
   5. DETAIL CHART SECTION (below hero card)
   ═══════════════════════════════════════════════ */

.chart-details {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.chart-section {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--card-radius);
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chart-section__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--cream);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════
   6. BLUR OVERLAY (email capture / paid upsell)
   ═══════════════════════════════════════════════ */

.chart-blur-section {
    position: relative;
}

.chart-blur-content {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.chart-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        rgba(18, 18, 42, 0) 0%,
        rgba(18, 18, 42, 0.75) 30%,
        rgba(18, 18, 42, 0.95) 70%,
        rgba(18, 18, 42, 0.98) 100%
    );
    border-radius: var(--card-radius);
    z-index: 10;
    padding: 48px 32px;
    text-align: center;
}

.chart-blur-overlay__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chart-blur-overlay__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.chart-blur-overlay__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-mid);
    max-width: 320px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.chart-blur-overlay__cta {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(196, 162, 101, 0.2);
}

.chart-blur-overlay__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(196, 162, 101, 0.3);
    opacity: 1;
    color: var(--ink);
}

/* Email capture inline */
.chart-email-capture {
    display: flex;
    gap: 10px;
    max-width: 380px;
    margin: 0 auto;
}

.chart-email-capture input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

.chart-email-capture input[type="email"]:focus {
    border-color: var(--gold);
}

.chart-email-capture button {
    padding: 12px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--gold);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════
   7. COMPATIBILITY PAGE STYLES
   ═══════════════════════════════════════════════ */

/* Grade display */
.compat-grade {
    text-align: center;
    padding: 40px 24px 32px;
}

.compat-grade__letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.compat-grade__score {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    color: var(--cream);
    opacity: 0.8;
}

.compat-grade__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-top: 8px;
}

/* Grade color classes */
.compat-grade--S .compat-grade__letter {
    color: var(--gold);
    text-shadow: 0 0 40px rgba(196, 162, 101, 0.4), 0 0 80px rgba(196, 162, 101, 0.15);
}
.compat-grade--A .compat-grade__letter,
.compat-grade--Ap .compat-grade__letter,
.compat-grade--Am .compat-grade__letter {
    color: var(--el-wood);
}
.compat-grade--Bp .compat-grade__letter,
.compat-grade--B .compat-grade__letter {
    color: var(--el-water);
}
.compat-grade--Cp .compat-grade__letter,
.compat-grade--C .compat-grade__letter {
    color: var(--el-earth);
}
.compat-grade--D .compat-grade__letter {
    color: #d48a35;
}
.compat-grade--F .compat-grade__letter {
    color: var(--el-fire);
}

/* Compatibility reasons list */
.compat-reasons {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compat-reason {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--cream);
    line-height: 1.5;
}

.compat-reason--revealed {
    border-left: 3px solid var(--gold);
    padding-left: 17px;
}

/* Blurred reasons */
.compat-reason--locked {
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.compat-reason--locked .compat-reason__text {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.compat-reason--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(18, 18, 42, 0.6) 40%, rgba(18, 18, 42, 0.8));
    pointer-events: none;
}

/* Relationship type selector */
.compat-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.compat-type-btn {
    padding: 8px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--text-mid);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compat-type-btn:hover {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--cream);
}

.compat-type-btn.active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(196, 162, 101, 0.08);
}


/* ═══════════════════════════════════════════════
   8. CTA / UPSELL SECTION
   ═══════════════════════════════════════════════ */

.chart-cta {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius-lg);
    margin-top: 40px;
}

.chart-cta__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.chart-cta__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-mid);
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.chart-cta__price {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.chart-cta__price strong {
    color: var(--cream);
    font-size: 1.4rem;
}

.chart-cta__price del {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-left: 6px;
}

.chart-cta__btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(196, 162, 101, 0.2);
}

.chart-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(196, 162, 101, 0.3);
    opacity: 1;
    color: var(--ink);
}


/* ═══════════════════════════════════════════════
   9. MOBILE RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    :root {
        --chart-pad: 24px;
    }

    .chart-form {
        padding: 28px 22px 32px;
    }

    .chart-form__title {
        font-size: 1.35rem;
    }

    .hero-card {
        padding: 28px 20px 28px;
        border-radius: 14px;
    }

    .hero-card__watermark {
        font-size: 140px;
    }

    .hero-card__name {
        font-size: 1.5rem;
    }

    .hero-pillars {
        gap: 12px;
    }

    .hero-pillar__hanja {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .hero-pillar--day .hero-pillar__hanja {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }

    .hero-day-master__hanja {
        font-size: 2rem;
    }

    .chart-section {
        padding: 24px 20px;
    }

    .compat-grade__letter {
        font-size: 4rem;
    }

    .chart-email-capture {
        flex-direction: column;
    }

    .chart-cta {
        padding: 36px 20px;
    }

    .chart-cta__title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .chart-form-wrap {
        padding: 16px;
    }

    .chart-form {
        padding: 24px 16px 28px;
    }

    .chart-field-row {
        flex-direction: column;
        gap: 0;
    }

    .hero-card {
        padding: 24px 16px 24px;
    }

    .hero-card__watermark {
        font-size: 110px;
    }

    .hero-card__name {
        font-size: 1.3rem;
    }

    .hero-pillars {
        gap: 8px;
    }

    .hero-pillar__hanja {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .hero-pillar--day .hero-pillar__hanja {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .hero-pillar__label {
        font-size: 0.58rem;
    }

    .hero-pillar__branch {
        font-size: 0.7rem;
    }

    .hero-day-master__hanja {
        font-size: 1.8rem;
    }

    .chart-details {
        padding: 0 12px 48px;
        gap: 28px;
    }

    .chart-section {
        padding: 20px 16px;
    }

    .compat-grade__letter {
        font-size: 3.4rem;
    }

    .compat-grade__score {
        font-size: 1.2rem;
    }

    .compat-type-selector {
        gap: 6px;
    }

    .compat-type-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .chart-blur-overlay {
        padding: 32px 20px;
    }

    .chart-blur-overlay__title {
        font-size: 1.05rem;
    }
}
