/* ==========================================================================
   /how-to-add — redesign. Scoped entirely to .hta-page (content between the
   shared header and footer). No framework, plain CSS Grid/Flex.
   ========================================================================== */

.hta-page {
    --navy: #0F2A4E;
    --navy-deep: #0A1E38;
    --orange: #F5A623;
    --orange-ink: #8A5300;
    --orange-soft: #FDF1DC;
    --bg: #FFFFFF;
    --bg-alt: #F7F9FC;
    --text: #0F2A4E;
    --muted: #5A6779;
    --border: #E7EBF0;

    font-family: 'Noto Sans', system-ui, sans-serif;
    font-size: 19px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.hta-page h1, .hta-page h2, .hta-page h3 {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text);
    text-wrap: pretty;
    margin: 0;
}

.hta-page a { color: var(--navy); }
.hta-page button { font-family: inherit; }

.hta-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 72px;
    box-sizing: border-box;
}

.hta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 30px;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.hta-btn:active { transform: translateY(1px); }
.hta-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.hta-btn-navy { background: var(--navy); color: #fff; }
.hta-btn-navy:hover { background: var(--navy-deep); }

.hta-btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .55);
}
.hta-btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---- Hero ---- */
.hta-hero {
    background: linear-gradient(180deg, var(--bg-alt), #fff);
    padding: 92px 72px 80px;
}
.hta-hero-grid {
    max-width: 1296px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 72px;
    align-items: center;
}

.hta-badge-pill {
    display: inline-block;
    background: var(--orange-soft);
    color: var(--orange-ink);
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hta-hero-copy h1 {
    font-weight: 800;
    font-size: 58px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hta-lead {
    color: var(--muted);
    font-size: 19px;
    margin-bottom: 28px;
    max-width: 46ch;
}

.hta-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}
.hta-checks li::before {
    content: '\2713';
    color: var(--navy);
    margin-right: 6px;
    font-weight: 700;
}

/* Hero mock card */
.hta-hero-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(15, 42, 78, .08);
}
.hta-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 16px;
}
.hta-card-step {
    font-family: 'Noto Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--muted);
}

.hta-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 108px;
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
}
.hta-dropzone-caption { font-size: 12.5px; color: var(--muted); }
.hta-dropzone-main { font-size: 15px; font-weight: 600; color: var(--text); }

.hta-field-group { margin-bottom: 14px; }
.hta-field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}
.hta-field-value {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
}
.hta-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.hta-field-row .hta-field-group { margin-bottom: 0; }

.hta-ai-banner {
    background: var(--orange-soft);
    color: var(--orange-ink);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 16px;
}

/* ---- Process ---- */
.hta-process { padding: 88px 0; }
.hta-process-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}
.hta-process-title {
    font-weight: 800;
    font-size: 32px;
}
.hta-process-subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-top: 12px;
}

.hta-step-row {
    display: grid;
    grid-template-columns: 46px 1fr 280px;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.hta-process-steps .hta-step-row:first-child { border-top: none; padding-top: 0; }
.hta-process-steps .hta-step-row:last-child { padding-bottom: 0; }

.hta-step-badge {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    font-size: 19px;
}
.hta-badge-navy { background: var(--navy); color: #fff; }
.hta-badge-orange { background: var(--orange); color: var(--navy); }

.hta-step-copy h3 {
    font-weight: 700;
    font-size: 21px;
    margin-bottom: 8px;
}
.hta-step-copy p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

.hta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hta-chip {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.hta-pill-outline {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
}

/* ---- Tips ---- */
.hta-tips { background: var(--bg-alt); padding: 80px 0; }
.hta-tips h2 {
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 32px;
}
.hta-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hta-tip-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}
.hta-tip-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}
.hta-tip-card h3 {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
}
.hta-tip-card p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* ---- FAQ ---- */
.hta-faq { padding: 88px 0; }
.hta-faq-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}
.hta-faq h2 {
    font-weight: 800;
    font-size: 32px;
}
.hta-faq-list details {
    border-top: 1px solid var(--border);
    padding: 22px 0;
}
.hta-faq-list details:last-child { border-bottom: 1px solid var(--border); }
.hta-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    font-size: 17px;
    min-height: 44px;
}
.hta-faq-list summary::-webkit-details-marker { display: none; }
.hta-faq-list summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.hta-faq-toggle {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}
.hta-faq-toggle::before { content: '+'; }
details[open] .hta-faq-toggle::before { content: '\2212'; }
.hta-faq-body {
    color: var(--muted);
    font-size: 16px;
    padding-top: 14px;
    max-width: 68ch;
}
.hta-faq-body a { text-decoration: underline; }

/* ---- Final CTA ---- */
.hta-final-cta-wrap { padding: 0 0 96px; }
.hta-final-cta {
    background: var(--navy);
    border-radius: 18px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.hta-final-cta h2 {
    color: #fff;
    font-weight: 800;
    font-size: 30px;
    margin-bottom: 8px;
}
.hta-final-cta p {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    margin: 0;
    max-width: 52ch;
}

/* ---- Mobile sticky CTA bar ---- */
.hta-mobile-bar { display: none; }

/* ==========================================================================
   Mobile (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
    .hta-page { font-size: 15.5px; padding-bottom: 84px; }
    .hta-container { padding: 0 22px; }

    .hta-hero { padding: 48px 22px 40px; }
    .hta-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hta-hero-copy h1 { font-size: 32px; }
    .hta-lead { font-size: 15.5px; max-width: none; }
    .hta-btn { width: 100%; }
    .hta-checks { flex-direction: column; gap: 8px; }

    .hta-process { padding: 48px 0; }
    .hta-process-grid { grid-template-columns: 1fr; gap: 20px; }
    .hta-process-title { font-size: 24px; }
    .hta-step-row {
        grid-template-columns: 38px 1fr;
        gap: 16px;
        padding: 22px 0;
    }
    .hta-step-badge { width: 38px; height: 38px; font-size: 16px; border-radius: 8px; }
    .hta-step-copy h3 { font-size: 18px; }
    .hta-step-extra { grid-column: 2; }

    .hta-tips { padding: 48px 0; }
    .hta-tips h2 { font-size: 24px; margin-bottom: 24px; }
    .hta-tips-grid { grid-template-columns: 1fr; gap: 16px; }

    .hta-faq { padding: 48px 0; }
    .hta-faq-grid { grid-template-columns: 1fr; gap: 20px; }
    .hta-faq h2 { font-size: 24px; }
    .hta-faq-list summary { font-size: 15.5px; }

    .hta-final-cta-wrap { padding: 0 0 48px; }
    .hta-final-cta { padding: 32px 24px; flex-direction: column; align-items: stretch; text-align: center; }
    .hta-final-cta h2 { font-size: 22px; }
    .hta-final-cta .hta-btn { width: 100%; }

    .hta-mobile-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .95);
        backdrop-filter: blur(6px);
        border-top: 1px solid var(--border);
    }
    .hta-mobile-bar .hta-btn { width: 100%; }
}
