/* ============================================================
   DMV Quizlets - Main Stylesheet
   Aesthetic: Editorial-modern. Navy authority + warm amber.
   Mobile-first, fully responsive.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #0b1b34;
    --ink-soft: #1f3358;
    --paper: #fbf8f3;
    --paper-pure: #ffffff;
    --rule: #e8e1d4;
    --amber: #d97706;
    --amber-deep: #b45309;
    --amber-soft: #fef3c7;
    --sage: #4d7c0f;
    --sage-soft: #ecfccb;
    --rust: #b91c1c;
    --rust-soft: #fee2e2;
    --muted: #6b7280;
    --muted-2: #9ca3af;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-w: 1200px;
    --max-w-narrow: 920px;
    --radius: 10px;
    --radius-sm: 6px;

    --shadow-sm: 0 1px 2px rgba(11, 27, 52, 0.06);
    --shadow-md: 0 4px 14px rgba(11, 27, 52, 0.08);
    --shadow-lg: 0 18px 40px -12px rgba(11, 27, 52, 0.18);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--amber-deep); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.8vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }

p { margin: 0 0 1em; }

ul { line-height: 1.7; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--rule);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.header-bar {
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    padding: 8px 0;
}
.header-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.header-bar a { color: var(--paper); }
.header-bar a:hover { color: var(--amber-soft); }
.lang-pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.lang-label {
    font-size: 12px;
    color: rgba(251, 248, 243, 0.75);
}
.lang-pill > span:not(.lang-label) {
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 500;
}
.header-bar-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hb-sep { color: rgba(251, 248, 243, 0.3); }
.hb-phone { white-space: nowrap; }

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 16px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    flex-shrink: 1;
    min-width: 0;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    box-shadow: 0 0 0 4px var(--amber-soft);
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}
.brand-name {
    font-family: var(--font-display);
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-tag {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--ink-soft);
}
.main-nav a:hover { color: var(--amber-deep); }
.main-nav a.is-cta {
    background: var(--ink);
    color: var(--paper);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: background .15s ease, transform .15s ease;
}
.main-nav a.is-cta:hover {
    background: var(--amber-deep);
    color: var(--paper);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--ink);
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
    border-radius: 1px;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper-pure);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        gap: 0;
        box-shadow: var(--shadow-md);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--rule);
        font-size: 16px;
    }
    .main-nav a:last-child { border-bottom: none; }
    .main-nav a.is-cta {
        margin-top: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-bar { font-size: 12px; padding: 6px 0; }
    .header-bar .container { gap: 4px; }
    .lang-label { display: none; }
    .brand-tag { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: center;
    line-height: 1.2;
}
.btn-primary {
    background: var(--amber);
    color: var(--paper-pure);
    box-shadow: 0 4px 0 var(--amber-deep);
}
.btn-primary:hover {
    background: var(--amber-deep);
    color: var(--paper-pure);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--amber-deep);
}
.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--amber-deep);
}
.btn-secondary {
    background: var(--paper-pure);
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}
.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
}
.btn-ghost:hover {
    color: var(--amber-deep);
    background: var(--amber-soft);
}
.btn-light {
    background: var(--paper-pure);
    color: var(--ink);
    border-color: var(--paper-pure);
}
.btn-light:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--paper-pure);
}
.btn .arrow { transition: transform .15s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--amber-soft) 0%, transparent 70%);
    opacity: .6;
    pointer-events: none;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-soft);
    flex-shrink: 0;
}
.eyebrow-center { justify-content: center; }

.hero h1 {
    margin-bottom: 16px;
}
.hero h1 em {
    font-style: italic;
    font-family: var(--font-display);
    color: var(--amber-deep);
    font-weight: 500;
}
.hero-lede {
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 56ch;
    margin-bottom: 28px;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-trust {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}
.trust-item .num {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.trust-item .lbl {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* Hero card / mock quiz */
.hero-card {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: relative;
    transform: rotate(1.2deg);
    transition: transform .3s ease;
}
.hero-card:hover { transform: rotate(0); }
.hero-card::before {
    content: "";
    position: absolute;
    inset: -8px -8px 8px 8px;
    background: var(--ink);
    border-radius: var(--radius);
    z-index: -1;
}

.mock-bar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 4px;
}
.mock-bar .timer {
    color: var(--rust);
    font-weight: 700;
}
.mock-question {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.4;
}
.mock-options { display: flex; flex-direction: column; gap: 8px; }
.mock-option {
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.mock-option .letter {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--paper);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 11px;
    color: var(--ink-soft);
    flex-shrink: 0;
}
.mock-option.is-correct {
    background: var(--sage-soft);
    border-color: var(--sage);
}
.mock-option.is-correct .letter {
    background: var(--sage);
    color: white;
}
.mock-option.is-correct::after {
    content: "\2713";
    margin-left: auto;
    color: var(--sage);
    font-weight: 700;
}

@media (max-width: 880px) {
    .hero { padding: 40px 0 30px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-card { transform: rotate(0); max-width: 480px; margin: 0 auto; }
    .hero-trust { gap: 18px; }
    .hero-cta-row .btn { width: 100%; }
}

@media (max-width: 480px) {
    .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 70px 0; }
.section-tight { padding: 40px 0; }
.section-alt {
    background: var(--paper-pure);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}
.section-head .eyebrow { justify-content: center; }
.section-head p {
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

@media (max-width: 600px) {
    .section { padding: 50px 0; }
    .section-tight { padding: 30px 0; }
}

/* ============================================================
   STATE PICKER / SEARCH
   ============================================================ */
.state-search {
    max-width: 520px;
    margin: 0 auto 30px;
    position: relative;
}
.state-search input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: 16px; /* 16px keeps iOS from zooming on focus */
    background: var(--paper-pure);
    font-family: var(--font-body);
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.state-search input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px var(--amber-soft);
}
.state-search::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat center / contain;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.state-card {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .15s ease;
}
.state-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}
.state-card .abbr {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .15s ease;
}
.state-card:hover .abbr { background: var(--amber-deep); }
.state-card .nm {
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
}

@media (max-width: 480px) {
    .states-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
    .state-card { padding: 12px 14px; gap: 10px; }
    .state-card .abbr { width: 32px; height: 32px; font-size: 12px; }
    .state-card .nm { font-size: 14px; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-pure);
}
.feature {
    padding: 32px 28px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transition: background .2s;
}
.feature:hover { background: var(--paper); }
.feature:nth-child(3n) { border-right: none; }
.feature:nth-last-child(-n+3) { border-bottom: none; }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--amber-soft);
    color: var(--amber-deep);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }

@media (max-width: 880px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature { border-right: 1px solid var(--rule) !important; }
    .feature:nth-child(2n) { border-right: none !important; }
    .feature:nth-last-child(-n+2):nth-child(odd),
    .feature:nth-last-child(-n+1) { border-bottom: none; }
    .feature:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--rule) !important; }
}
@media (max-width: 540px) {
    .features-grid { grid-template-columns: 1fr; }
    .feature { border-right: none !important; padding: 24px 22px; }
    .feature:not(:last-child) { border-bottom: 1px solid var(--rule) !important; }
    .feature:last-child { border-bottom: none !important; }
}

/* ============================================================
   STEPS / HOW IT WORKS
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

@media (max-width: 880px) {
    .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   INFO GRID (used on how-it-works)
   ============================================================ */
.info-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.info-card {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.info-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 8px;
}
.info-card p {
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}
@media (max-width: 600px) {
    .info-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   STATE PAGE
   ============================================================ */
.breadcrumb {
    padding: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--amber-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--muted-2); }

.state-hero {
    padding: 40px 0 34px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper-pure);
}
.state-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}
.state-badge {
    width: 86px; height: 86px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    box-shadow: 0 0 0 6px var(--amber-soft);
    flex-shrink: 0;
}
.state-hero h1 { margin-bottom: 6px; }
.state-hero .lede {
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 60ch;
    margin: 0;
    line-height: 1.55;
}
.state-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sage-soft);
    color: var(--sage);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.live-pill::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse 2s infinite;
}
.meta-langs { white-space: nowrap; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-width: 720px) {
    .state-hero-grid {
        grid-template-columns: auto 1fr;
        gap: 16px;
    }
    .state-hero-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 4px;
    }
    .state-badge { width: 64px; height: 64px; font-size: 1.4rem; }
}

/* Quizlet cards */
.quizlets-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.quizlet-card {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.quizlet-card:hover {
    border-color: var(--ink);
    box-shadow: var(--shadow-md);
}
.quizlet-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--amber);
    transform: translateX(-4px);
    transition: transform .2s ease;
}
.quizlet-card:hover::before { transform: translateX(0); }

.lang-flag {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1px solid var(--rule);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
    flex-shrink: 0;
}
.lang-flag.en { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: var(--amber-deep); border-color: #fde68a; }
.lang-flag.es { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: var(--rust); border-color: #fecaca; }
.lang-flag.pt { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: var(--sage); border-color: #a7f3d0; }

.quizlet-info { min-width: 0; }
.quizlet-info h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.25;
}
.quizlet-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}
.quizlet-meta span { white-space: nowrap; }
.free-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--sage-soft);
    color: var(--sage);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.quizlet-cta { white-space: nowrap; }

@media (max-width: 720px) {
    .quizlet-card {
        grid-template-columns: auto 1fr;
        gap: 14px;
        padding: 18px 20px;
    }
    .quizlet-cta {
        grid-column: 1 / -1;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .lang-flag { width: 44px; height: 44px; font-size: 1.1rem; }
    .quizlet-info h3 { font-size: 1.05rem; }
    .quizlet-meta { gap: 8px; font-size: 12px; }
}

/* State page two-column grid */
.state-page-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding: 50px 0;
}
.state-side {
    position: sticky;
    top: 130px;
    align-self: start;
}
.side-card {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
}
.side-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.side-card-dark {
    background: var(--ink);
    border-color: var(--ink);
}
.side-card-dark h4 {
    color: var(--paper);
    border-bottom-color: rgba(255,255,255,0.15);
}
.side-card-text {
    font-size: 14px;
    color: rgba(251, 248, 243, 0.75);
    margin: 0 0 14px;
}
.side-phone {
    color: var(--paper);
    font-weight: 600;
    font-size: 1.05rem;
}
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.side-list li strong { color: var(--ink); }
.side-card-dark .side-list li { color: rgba(251,248,243,0.7); }
.side-card-dark .side-list li strong { color: var(--paper); }

.text-success { color: var(--sage) !important; }

.state-about { margin-top: 50px; }
.state-about h2 { margin-bottom: 14px; }
.state-about p { color: var(--ink-soft); }
.topic-list {
    line-height: 1.85;
    padding-left: 22px;
    color: var(--ink-soft);
}
.topic-list li { margin-bottom: 4px; }

@media (max-width: 960px) {
    .state-page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }
    .state-side { position: static; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); }
.cta-band p {
    color: rgba(251, 248, 243, 0.78);
    max-width: 540px;
    margin: 12px auto 24px;
    font-size: clamp(1rem, 2vw, 1.08rem);
}

@media (max-width: 600px) {
    .cta-band { padding: 50px 0; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--rule);
    padding: 16px 0;
}
.faq-item summary {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--amber-deep);
    transition: transform .2s ease;
    font-family: var(--font-body);
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    color: var(--ink-soft);
    margin: 12px 0 0;
    line-height: 1.6;
    font-size: 15px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-form {
    display: grid;
    gap: 16px;
}
.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px; /* iOS zoom prevention */
    background: var(--paper-pure);
    color: var(--ink);
    -webkit-appearance: none;
    width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px var(--amber-soft);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

.alert {
    padding: 16px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 15px;
}
.alert-success {
    background: var(--sage-soft);
    border: 1px solid var(--sage);
    color: var(--sage);
}
.alert-error {
    background: var(--rust-soft);
    border: 1px solid var(--rust);
    color: var(--rust);
}

.contact-line { margin: 0 0 6px; }
.contact-big {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}
.contact-sub {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: rgba(251, 248, 243, 0.7);
    padding: 50px 0 28px;
    font-size: 14px;
}
.site-footer a { color: rgba(251, 248, 243, 0.7); }
.site-footer a:hover { color: var(--amber-soft); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
.footer-brand .brand { color: var(--paper); margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-tag { color: rgba(251, 248, 243, 0.5); }
.footer-brand p { max-width: 36ch; line-height: 1.55; margin: 0; }

.footer-col h5 {
    font-family: var(--font-display);
    color: var(--paper);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0 0 14px;
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; line-height: 1.6; }
.footer-col ul li { padding: 5px 0; }

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(251, 248, 243, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(251, 248, 243, 0.5);
}
.footer-disclaimer {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(251, 248, 243, 0.6);
}

@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-18 { margin-bottom: 18px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-50 { margin-bottom: 50px; }
.muted { color: var(--muted); }
.lede-large { font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.6; }
.mx-auto-50 { max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-pair { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.huge-404 { font-size: clamp(2.5rem, 8vw, 5rem); }
.link-amber { color: var(--amber-deep); }
.link-amber:hover { color: var(--amber); }
.header-block { max-width: 720px; }
