@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Fallback theme tokens — used on first paint when no theme is active and as
   the source of truth for the legacy --navy / --cream / etc. aliases below.
   The navbar partial overrides these at the top of <head> with the active
   theme's colors, so every rule that reads var(--c-*) (or the legacy aliases)
   re-skins live when the user toggles the theme. */
:root {
    --c-bg: #F8F5EF;
    --c-surface: #FFFFFF;
    --c-surface-alt: #FAFAF7;
    --c-text: #0D1B2E;
    --c-text-sec: #5C6472;
    --c-border: #E4E0D8;
    --c-card-bg: #FFFFFF;
    --c-card-bg-alt: #F8F5EF;
    --c-badge-bg: #FEF6EC;
    --c-input-bg: #FFFFFF;
    --c-gold: #C8975F;
    --c-gold-light: #DFB88A;
    --c-gold-deep: #A6753F;
    --c-cta-text: #0D1B2E;
    --c-glow: rgba(200, 151, 95, 0.25);
    --c-nav-shadow: rgba(13, 27, 46, 0.08);
    --c-card-shadow-soft: rgba(13, 27, 46, 0.08);

    /* Semantic status tokens — warning (amber), info (blue), neutral, danger */
    --c-warn-bg: #FFF8EC;
    --c-warn-border: #F5C790;
    --c-warn-text: #7A4A00;
    --c-warn-text-strong: #92400E;
    --c-info-bg: #EEF6FF;
    --c-info-border: #BFD9F2;
    --c-info-text: #0B3A66;
    --c-neutral-bg: #F3F4F6;
    --c-neutral-border: #D1D5DB;
    --c-neutral-text: #374151;
    --c-danger-bg: #FEF2F2;
    --c-danger-border: #B91C1C;
    --c-danger-text: #7F1D1D;
    --c-success-btn-border: #15803D;
    --c-success-btn-text: #15803D;
    --c-trust-bar-bg: #0D1B2E;
    --c-trust-bar-text: rgba(255,255,255,0.88);

    /* Notice box — fallback for classic theme (overridden per-theme in modern-theme.css) */
    --c-notice-bg-a:   #FFF8EC;
    --c-notice-bg-b:   #FEF3DC;
    --c-notice-text:   #5C3A00;
    --c-notice-shadow: rgba(200, 151, 95, 0.20);

    /* Legacy aliases — every existing rule uses these names. Aliasing them
       to the active theme tokens means every page re-skins automatically. */
    --navy: var(--c-text);
    --gold: var(--c-gold);
    --gold-light: var(--c-gold-light);
    --cream: var(--c-bg);
    --white: var(--c-card-bg);
    --text: var(--c-text);
    --text-muted: var(--c-text-sec);
    --border: var(--c-border);
    --error: #C0392B;
    --success: #1A7A4A;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── BUTTONS ─── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-gold.btn-large {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
}

.btn-gold.btn-full {
    width: 100%;
    height: 52px;
    font-size: 17px;
    font-weight: 600;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── HERO ─── */
.hero {
    background: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-block;
    background: var(--c-badge-bg);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 32px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    max-width: 720px;
    margin-bottom: 24px;
}

.hero p {
    color: var(--c-on-navy-text-soft);
    font-size: 18px;
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ─── SECTIONS ─── */
.section {
    padding: 80px 24px;
}

.section-cream {
    background: var(--cream);
}

.section-white {
    background: var(--white);
}

.section-navy {
    background: var(--navy);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 48px;
}

.section-navy .section-title {
    color: var(--white);
}

.section-navy p {
    color: var(--c-on-navy-text-soft);
    text-align: center;
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 32px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

/* ─── LANDING CARDS ─── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.landing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
}

.section-white .landing-card {
    background: var(--cream);
}

.landing-card .card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-badge-bg);
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.landing-card .card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.landing-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.landing-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ─── CTA BAND ─── */
.cta-band {
    text-align: center;
    padding: 64px 24px;
}

.cta-band h2 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 24px;
}

/* ─── FOOTER ─── */
.footer {
    background: #091525;
    padding: 32px 24px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    line-height: 1.8;
}

/* ─── PAGE WRAPPER ─── */
.page-wrapper {
    padding-top: 64px;
    min-height: 100vh;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* ─── CARD BOX ─── */
.card-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(13,27,46,0.06);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 20px;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-left .icon {
    font-size: 18px;
}

.card-header-left h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
}

.step-badge {
    font-size: 12px;
    color: var(--gold);
    background: var(--c-badge-bg);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* ─── FIELD GRID ─── */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group.full-width {
    grid-column: 1 / -1;
}

.field-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field-group label .required {
    color: var(--error);
}

.field-group input,
.field-group textarea,
.field-group select {
    height: 44px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 0 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.field-group textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,151,95,0.15);
}

.field-group input.error,
.field-group textarea.error {
    border-color: var(--error);
}

.helper-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.error-msg {
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* ─── PROGRESS TRACKER ─── */
.progress-tracker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 160px;
}

.progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--c-border);
    color: var(--c-border);
    background: var(--white);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.progress-step.active .progress-circle {
    border-color: var(--gold);
    color: var(--gold);
}

.progress-step.completed .progress-circle {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.progress-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .progress-label {
    color: var(--gold);
    font-weight: 600;
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--c-border);
    z-index: 1;
}

.progress-step:last-child .progress-line {
    display: none;
}

.progress-line-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.3s;
}

.progress-step.completed .progress-line .progress-line-fill {
    width: 100%;
}

/* ─── STEP NAVIGATION ─── */
.step-section {
    display: none;
}

.step-section.active {
    display: block;
}

.step-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.step-nav .btn-gold,
.step-nav .btn-outline {
    min-width: 140px;
}

/* ─── GENERATION COUNTER ─── */
.gen-counter {
    margin-bottom: 8px;
}

.gen-bar-wrapper {
    background: var(--c-border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.gen-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.5s;
}

.gen-bar.limit-reached {
    background: var(--error);
}

.gen-counter-label {
    font-size: 14px;
    color: var(--text-muted);
}

.gen-counter-label.limit-reached {
    color: var(--error);
    font-weight: 500;
}

.gen-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Cormorant Garamond', serif;
}

.card-box.limit-reached {
    border-color: var(--error);
}

/* ─── DOCUMENT LIST ─── */
.doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(13,27,46,0.06);
}

.doc-info h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
}

.doc-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.doc-actions .btn-gold {
    padding: 8px 20px;
    font-size: 13px;
}

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
}

/* ─── WELCOME CARD ─── */
.welcome-card h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.welcome-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ─── VIEWER ─── */
.viewer-bar {
    background: var(--navy);
    color: var(--white);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.viewer-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.viewer-bar-left .check {
    color: var(--success);
    font-size: 20px;
}

.viewer-bar-left h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.viewer-bar-left span {
    font-size: 13px;
    opacity: 0.7;
}

.viewer-bar-right {
    display: flex;
    gap: 12px;
}

.viewer-bar-right .btn-gold {
    padding: 8px 20px;
    font-size: 13px;
}

.viewer-bar-right .btn-outline {
    border-color: var(--c-on-navy-border);
    color: var(--white);
    padding: 8px 20px;
    font-size: 13px;
}

.viewer-bar-right .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.viewer-iframe {
    width: 100%;
    height: calc(100vh - 128px);
    border: none;
    background: var(--white);
}

/* ─── ACCESS CODE MODAL ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,27,46,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-box .modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-box h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.modal-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-box input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 0 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 16px;
    outline: none;
}

.modal-box input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,151,95,0.15);
}

.modal-box .btn-gold {
    width: 100%;
    height: 48px;
    font-size: 16px;
    margin-bottom: 16px;
}

.modal-error {
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.modal-error.visible {
    display: block;
}

.modal-footer {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.modal-footer a {
    color: var(--gold);
    font-weight: 500;
}

/* ─── RADIO GROUP ─── */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover {
    border-color: var(--gold);
}

.radio-option.selected {
    border-color: var(--gold);
    background: var(--c-badge-bg);
}

.radio-option input[type="radio"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

.radio-option label {
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    flex: 1;
}

.radio-option .other-input {
    height: 36px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 0 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.radio-option .other-input:focus {
    border-color: var(--gold);
}

/* ─── CHECKBOX ─── */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-option input[type="checkbox"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-option label {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    cursor: pointer;
}
.checkbox-option label a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── REVIEW ACCORDION ─── */
.review-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--c-surface-alt);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    user-select: none;
}

.review-header .arrow {
    transition: transform 0.2s;
    font-size: 12px;
}

.review-section.open .review-header .arrow {
    transform: rotate(180deg);
}

.review-body {
    display: none;
    padding: 16px;
}

.review-section.open .review-body {
    display: block;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--c-border);
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    color: var(--text-muted);
    font-weight: 500;
}

.review-value {
    color: var(--text);
    text-align: right;
    max-width: 60%;
}

.review-value.empty {
    color: var(--text-muted);
    font-style: italic;
}

/* ─── PDF PREVIEW BOX (Steps 1–4) ─── */
.preview-box {
    border: 1px dashed var(--gold);
    background: var(--c-preview-box-bg);
}

.preview-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--c-badge-bg);
    padding: 4px 10px;
    border-radius: 20px;
}

.preview-body .preview-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--c-border);
}

.preview-body .preview-row:last-child {
    border-bottom: none;
}

.preview-body .preview-label {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.preview-body .preview-value {
    color: var(--text);
    text-align: right;
    word-break: break-word;
    max-width: 65%;
}

.preview-body .preview-value.empty {
    color: var(--text-muted);
    font-style: italic;
}

.preview-warning {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-style: italic;
    color: var(--c-warn);
}

.preview-subhead {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin: 12px 0 4px;
}

.preview-subhead:first-child {
    margin-top: 0;
}

/* ─── LOADING OVERLAY ─── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,27,46,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--c-glow);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
}

/* ─── ALERT MESSAGES ─── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--c-alert-fail-bg);
    color: var(--error);
    border: 1px solid var(--c-alert-fail-border);
}

.alert-success {
    background: var(--c-alert-ok-bg);
    color: var(--success);
    border: 1px solid var(--c-alert-ok-border);
}

/* ─── DISABLED BUTTON STATE ─── */
.btn-gold.btn-disabled {
    background: var(--c-border);
    color: var(--text-muted);
    border: 2px solid var(--error);
    cursor: not-allowed;
    position: relative;
}

.btn-gold.btn-disabled:hover {
    background: var(--c-border);
}

/* ─── PACKAGE SELECTION ─── */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
}

.trust-badge .check {
    color: var(--success);
    font-weight: 700;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.package-price-enterprise .price-amount {
    font-size: 32px;
}

.enterprise-contact {
    margin-top: auto;
}

@media (max-width: 960px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}

.package-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(13,27,46,0.05);
}

.package-card.package-premium {
    border-color: var(--c-premium-strong);
    box-shadow: 0 8px 24px var(--c-premium-shadow);
}

.package-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-premium-strong);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.package-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.package-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.package-price {
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 0;
    margin-bottom: 20px;
}

.package-price .price-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--navy);
    display: block;
    line-height: 1;
}

.package-price .price-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.package-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
}

.package-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.package-features .feature-check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.package-form {
    margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .package-grid {
        grid-template-columns: 1fr;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .card-box {
        padding: 20px 16px;
    }

    .viewer-bar {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .step-nav {
        flex-direction: column;
    }

    .step-nav .btn-gold,
    .step-nav .btn-outline {
        width: 100%;
    }

    .progress-label {
        font-size: 9px;
    }

    .progress-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .doc-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-box {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .progress-tracker {
        padding: 0;
    }
}

/* ============ Site Footer (compact, all pages) ============ */
.site-footer {
    background: var(--c-footer-bg);
    color: var(--c-footer-text);
    padding: 28px 24px;
    margin-top: 48px;
    font-size: 13px;
    line-height: 1.6;
}
.site-footer-inner { max-width: 960px; margin: 0 auto; }
.site-footer-links { text-align: center; margin-bottom: 12px; }
.site-footer-links a {
    color: var(--c-footer-text-strong); text-decoration: none; padding: 0 6px;
}
.site-footer-links a:hover { text-decoration: underline; }
.site-footer-links .dot { color: var(--c-text-sec); padding: 0 4px; }
.site-footer-disclaimer {
    text-align: center; color: var(--c-footer-text); opacity: 0.75;
    max-width: 720px; margin: 0 auto; font-size: 12px;
}
.site-footer-disclaimer strong { color: var(--c-footer-text-strong); }

.site-footer-cols {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--c-footer-border-strong);
}
.site-footer-col { text-align: left; min-width: 160px; }
.site-footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--c-footer-text-strong);
    margin-bottom: 12px;
    opacity: 0.9;
}
.site-footer-col a {
    display: block;
    color: var(--c-footer-text);
    text-decoration: none;
    padding: 4px 0;
    font-size: 13px;
}
.site-footer-col a:hover { color: var(--c-footer-text-strong); text-decoration: underline; }
@media (max-width: 540px) {
    .site-footer-cols { gap: 32px; }
    .site-footer-col { text-align: center; min-width: 140px; }
}

/* ============ Legal pages (Privacy, Terms, Disclaimer) ============ */
.legal-page { max-width: 820px; }

.legal-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 32px;
}
.legal-header h1 {
    font-size: clamp(32px, 4vw, 42px);
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 6px;
}
.legal-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    font-style: italic;
    margin-bottom: 16px;
}
.legal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.legal-updated {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}
.btn-print {
    padding: 8px 18px;
    font-size: 13px;
}

.legal-body { color: var(--text); }

.legal-section {
    margin-bottom: 36px;
}
.legal-section h2 {
    font-size: 24px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.legal-section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--navy);
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
}
.legal-section p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--c-text);
    margin-bottom: 12px;
}
.legal-section ul,
.legal-section ol {
    padding-left: 24px;
    margin-bottom: 14px;
}
.legal-section li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--c-text);
    margin-bottom: 6px;
}
.legal-section a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 2px;
    font-weight: 500;
}
.legal-section a:hover { color: var(--gold); }

.legal-contact {
    background: var(--c-surface);
    border-left: 3px solid var(--c-gold);
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 8px;
}
.legal-contact p { margin-bottom: 4px; font-size: 14px; }

@media print {
    .hp2-nav, .site-footer, .btn-print { display: none !important; }
    .page-wrapper { padding-top: 0; }
    .legal-page { max-width: 100%; padding: 0; }
    .legal-section h2 { color: #000; border-bottom-color: #888; }
    body { background: #fff; }
}

/* ============ About page ============ */
.about-page { max-width: 920px; }

.about-hero {
    text-align: center;
    padding: 32px 0 40px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 40px;
}
.about-hero .hero-badge { margin-bottom: 20px; }
.about-page-title {
    text-align: center;
    padding: 8px 0 20px;
}
.about-page-h1 {
    font-size: clamp(28px, 3.6vw, 38px);
    color: var(--c-text);
    font-weight: 600;
    margin-bottom: 6px;
}
.about-page-subtitle {
    color: var(--c-text-sec);
    font-size: 16px;
    font-style: italic;
}
.about-hero h1,
.about-hero-headline {
    font-size: clamp(32px, 4.5vw, 48px);
    color: var(--c-text);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
    font-family: 'Cormorant Garamond', serif;
}
.about-hero-sub {
    font-size: 17px;
    color: var(--c-text-sec);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section { margin-bottom: 40px; }
.about-section h2 {
    font-size: 28px;
    color: var(--c-text);
    font-weight: 600;
    margin-bottom: 16px;
}
.about-section p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--c-text);
    margin-bottom: 12px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}
.about-feature-card {
    background: var(--c-card-bg);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 8px var(--c-card-shadow-soft);
}
.about-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-badge-bg);
    color: var(--c-gold-deep);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
}
.about-feature-card h3 {
    font-size: 18px;
    color: var(--c-text);
    font-weight: 600;
    margin-bottom: 10px;
}
.about-feature-card p {
    font-size: 14px;
    color: var(--c-text-sec);
    line-height: 1.6;
    margin-bottom: 0;
}

.about-steps {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}
.about-steps li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--c-border);
}
.about-steps li:last-child { border-bottom: none; }
.about-step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-text);
    color: var(--c-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
}
.about-steps h3 {
    font-size: 18px;
    color: var(--c-text);
    font-weight: 600;
    margin-bottom: 6px;
}
.about-steps p {
    font-size: 15px;
    color: var(--c-text);
    line-height: 1.65;
    margin-bottom: 0;
}

.about-checklist {
    list-style: none;
    padding: 0;
}
.about-checklist li {
    padding: 10px 0 10px 38px;
    position: relative;
    font-size: 15px;
    color: var(--c-text);
    line-height: 1.6;
}
.about-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--c-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.about-audience {
    list-style: none;
    padding: 0;
}
.about-audience li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--c-text);
    line-height: 1.6;
}
.audience-emoji { font-size: 22px; flex-shrink: 0; }

.about-notice {
    background: #fff;
    border: 2px solid #c0392b;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(192,57,43,0.12);
}
.about-notice h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c0392b;
    margin-bottom: 10px;
}
.about-notice p {
    font-size: 15px;
    line-height: 1.7;
    color: #1a1a2e;
    margin: 0;
}

.about-cta {
    text-align: center;
    padding: 32px 0 16px;
    border-top: 1px solid var(--c-border);
    margin-top: 24px;
}

@media (max-width: 720px) {
    .about-features { grid-template-columns: 1fr; }
    .about-steps li { gap: 14px; }
    .about-step-num { width: 36px; height: 36px; font-size: 18px; }
}

/* ============ Find Notary page ============ */
.notary-search {
    display: flex; gap: 8px; max-width: 600px; margin: 0 auto;
}
.notary-search input[type="text"] {
    flex: 1; padding: 12px 16px; border: 1px solid var(--c-border);
    border-radius: 6px; font-size: 15px; background: var(--c-input-bg); color: var(--c-text);
}
.notary-search button { white-space: nowrap; padding: 12px 20px; }

.notary-results {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px; margin-top: 16px;
}
.notary-card {
    background: var(--c-card-bg); border: 1px solid var(--c-border); border-radius: 8px;
    padding: 20px; box-shadow: 0 2px 4px rgba(13, 27, 46, 0.05);
    display: flex; flex-direction: column; gap: 10px;
}
.notary-card-header h3 {
    margin: 0 0 4px 0; color: var(--c-text); font-size: 17px;
}
.notary-type {
    display: inline-block; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--c-gold); font-weight: 600;
}
.notary-fee { font-size: 14px; color: var(--c-text); }
.notary-notes { font-size: 13px; color: var(--c-text-sec); margin: 0; }
.notary-card .btn-outline {
    margin-top: auto; align-self: flex-start; padding: 8px 14px; font-size: 13px;
}
.notary-region-list {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.notary-region-list .btn-outline {
    font-size: 13px; padding: 8px 14px;
}

.info-panel { margin-top: 24px; padding: 24px; }
.info-panel h3 {
    color: var(--c-text); margin: 0 0 12px 0; font-size: 18px;
}
.info-panel ul, .info-panel ol { margin: 0; padding-left: 22px; line-height: 1.7; }
.info-panel.teaser { background: var(--c-badge-bg); border-left: 4px solid var(--c-gold); }

/* ============ Dashboard refresh ============ */
.welcome-card { padding: 24px; }
.welcome-card h2 { margin: 0 0 4px 0; color: var(--c-text); font-size: 24px; }
.welcome-card p { margin: 0; color: var(--c-text-sec); font-size: 14px; }

.latest-order { padding: 24px; border-left: 4px solid var(--c-gold); }
.latest-order .card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.latest-order .card-header-left { display: flex; align-items: center; gap: 10px; }
.latest-order .card-header-left h3 {
    margin: 0; color: var(--c-text); font-size: 18px;
}
.latest-order .icon { font-size: 22px; }
.step-badge {
    background: var(--c-gold); color: var(--c-text); padding: 4px 10px;
    border-radius: 4px; font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em;
}
.latest-order-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.kv-label {
    font-size: 11px; text-transform: uppercase; color: var(--c-text-sec);
    letter-spacing: 0.05em; font-weight: 600;
}
.kv-value { color: var(--c-text); font-size: 15px; font-weight: 600; margin-top: 2px; }
.email-status {
    margin: 16px 0 0 0; padding: 8px 12px; border-radius: 4px;
    font-size: 13px;
}
.email-status.sent { background: var(--c-pill-ok-bg); color: var(--c-pill-ok-text); }
.email-status.failed { background: var(--c-pill-fail-bg); color: var(--c-pill-fail-text); }

.gen-counter { padding: 20px 24px; }
.gen-counter .gen-number {
    font-size: 18px; font-weight: 600; color: var(--c-text); margin: 4px 0;
}
.gen-counter .gen-bar-wrapper {
    height: 8px; background: var(--c-border); border-radius: 4px;
    overflow: hidden; margin: 8px 0;
}
.gen-counter .gen-bar {
    height: 100%; background: var(--c-gold); transition: width 0.3s;
}
.gen-counter .gen-bar.limit-reached { background: var(--error); }
.gen-counter-label { font-size: 13px; color: var(--c-text-sec); }
.gen-counter-label.limit-reached { color: var(--error); font-weight: 600; }

.btn-large { padding: 14px 24px; font-size: 16px; }
.btn-disabled { opacity: 0.5; pointer-events: none; }

.gen-history-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.gen-history-table th {
    background: var(--c-card-bg-alt); color: var(--c-text); text-align: left;
    padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--c-border);
}
.gen-history-table td {
    padding: 10px 12px; border-bottom: 1px solid var(--c-border); color: var(--c-text);
}
.gen-history-table tr:last-child td { border-bottom: none; }
.status-pill {
    padding: 2px 8px; border-radius: 10px; font-size: 11px;
    text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em;
}
.status-pill.status-completed { background: var(--c-pill-ok-bg); color: var(--c-pill-ok-text); }
.status-pill.status-failed { background: var(--c-pill-fail-bg); color: var(--c-pill-fail-text); }
.status-pill.status-started { background: var(--c-pill-warn-bg); color: var(--c-pill-warn-text); }

.quick-links { margin-top: 24px; padding: 20px 24px; }
.quick-links h3 { color: var(--c-text); margin: 0 0 10px 0; font-size: 16px; }
.quick-links ul { list-style: none; padding: 0; margin: 0; }
.quick-links li { padding: 4px 0; font-size: 14px; color: var(--c-text); }
.quick-links a { color: var(--c-text); text-decoration: none; }
.quick-links a:hover { color: var(--c-gold); }

/* ─── COOKIE CONSENT BANNER ─── */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    background: var(--navy);
    color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    padding: 16px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1 1 360px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cream);
}
.cookie-banner-headline {
    margin: 0 0 10px;
}
.cookie-banner-text a {
    color: var(--gold);
    text-decoration: underline;
}
.cookie-banner-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.cookie-option {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cookie-option-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--cream);
    cursor: pointer;
}
.cookie-option-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.cookie-option-label input[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}
.cookie-option-name {
    font-size: 14px;
}
.cookie-option-required {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.75;
}
.cookie-option-desc {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.85;
    padding-left: 24px;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--gold);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}
.cookie-banner .btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.cookie-banner .btn-gold:hover { background: var(--gold-light); }
.cookie-banner .btn-gold-outline {
    background: transparent;
    color: var(--gold);
}
.cookie-banner .btn-gold-outline:hover {
    background: var(--gold);
    color: var(--navy);
}
@media (max-width: 600px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner .cookie-btn { flex: 1; }
}

.cookie-consent-summary {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}
.cookie-consent-summary h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}
.cookie-consent-summary-intro {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--c-text-sec);
}
.cookie-consent-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}
.cookie-consent-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: var(--c-card-bg);
    border: 1px solid var(--c-border);
}
.cookie-consent-summary-name { font-weight: 600; }
.cookie-consent-summary-status {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
.cookie-consent-summary-item.is-allowed .cookie-consent-summary-status {
    background: var(--c-alert-ok-bg);
    color: var(--success);
}
.cookie-consent-summary-item.is-blocked .cookie-consent-summary-status {
    background: var(--c-alert-fail-bg);
    color: var(--error);
}
.cookie-consent-summary-actions {
    margin: 0;
    font-size: 14px;
}

/* ─── TESTIMONIALS SECTION ─── */
.testimonials-section {
    padding: 80px 24px;
    background: var(--cream);
}

.testimonials-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-top: -32px;
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--navy);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(13,27,46,0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.testimonial-card.featured-testimonial {
    border-top-color: var(--gold);
    background: var(--navy);
    color: var(--white);
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 20px;
    letter-spacing: 2px;
}

.testimonial-card .testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
}

.testimonial-card.featured-testimonial .testimonial-text {
    color: var(--c-on-navy-text-strong);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author .author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author .author-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    display: block;
}

.testimonial-card.featured-testimonial .author-name {
    color: var(--white);
}

.testimonial-author .author-location {
    font-size: 12px;
    color: var(--text-muted);
}

.testimonial-card.featured-testimonial .author-location {
    color: var(--c-on-navy-text-dim);
}

.testimonial-card .savings-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 56px 16px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── HOW IT WORKS: 4-CARD GRID + NOTARY CARD ─── */
.cards-grid.cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .cards-grid.cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-grid.cards-grid-4 {
        grid-template-columns: 1fr;
    }
}

.landing-card.notary-card {
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, var(--c-notary-card-bg-a) 0%, var(--c-notary-card-bg-b) 100%);
    color: var(--c-notary-card-text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-card.notary-card .card-number {
    background: var(--c-badge-bg);
    color: var(--gold);
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.landing-card.notary-card h3,
.landing-card.notary-card .feature-title {
    color: var(--gold);
}

.landing-card.notary-card p,
.landing-card.notary-card .feature-desc {
    color: var(--c-notary-card-text-soft);
}

.notary-cta-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.notary-cta-btn:hover {
    background: var(--gold-light);
}

/* ─── FOOTER: SECONDARY LINK ─── */
.site-footer-col a.footer-link-secondary {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

.site-footer-col a.footer-link-secondary:hover {
    opacity: 0.9;
}

/* ─── FAQ ACCORDION ─── */
.faq-section {
    padding: 80px 24px;
    background: var(--white);
}

.faq-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin: -32px auto 48px;
    max-width: 560px;
}

.faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(13, 27, 46, 0.08);
}

.faq-question {
    width: 100%;
    min-height: 56px;
    text-align: left;
    padding: 18px 24px;
    background: var(--white);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, color 0.2s;
}

.faq-question:hover {
    background: var(--cream);
}

.faq-question.active {
    background: var(--navy);
    color: var(--white);
}

.faq-icon {
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: var(--gold);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px 24px;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.faq-answer p {
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    margin-top: 16px;
}

.faq-answer.open {
    display: block;
}

.faq-footer {
    text-align: center;
    margin-top: 48px;
}

.faq-footer p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 12px;
}

.faq-contact-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.faq-contact-btn:hover {
    background: var(--c-faq-btn-dark);
}

@media (max-width: 640px) {
    .faq-section {
        padding: 56px 16px;
    }
    .faq-question {
        font-size: 15px;
        padding: 16px 18px;
    }
}

/* ===== Site-wide rich nav (shared with homepage) ===== */
/* Theme tokens are defined at the top of this file (and overridden live by
   the navbar partial when an active theme is set). */

.hp2-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s, background 0.3s;
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
}
.hp2-nav.scrolled { box-shadow: 0 4px 24px var(--c-nav-shadow); }
.hp2-nav-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0 24px; height: 70px;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 8px;
}
.hp2-nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  flex-shrink: 0;
}
.hp2-nav-logo .hp2-nav-logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .hp2-nav-logo .hp2-nav-logo-img {
    height: 42px;
  }
}
.hp2-nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.hp2-nav-links li { position: relative; }
.hp2-nav-links a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 8px;
  font-size: 13px; font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.hp2-nav-links a:hover { color: var(--c-gold-deep); background: var(--c-badge-bg); }
.hp2-nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.hp2-nav-signin {
  font-size: 14px; font-weight: 600;
  color: var(--c-text-sec);
  text-decoration: none;
  padding: 8px 12px; border-radius: 6px;
  transition: color 0.2s;
}
.hp2-nav-signin:hover { color: var(--c-gold-deep); }

/* Theme toggle (matches homepage_v2.css) */
.hp2-theme-toggle {
  display: inline-flex; align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.hp2-theme-toggle button {
  background: transparent;
  border: none;
  font: inherit;
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--c-text-sec);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hp2-theme-toggle button.active {
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  color: var(--c-cta-text);
  box-shadow: 0 2px 8px var(--c-glow);
}

.hp2-nav .btn-gold {
  display: inline-flex; align-items: center;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  color: var(--c-cta-text);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  box-shadow: 0 2px 8px var(--c-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.hp2-nav .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--c-glow); }

.hp2-nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
  background: none; border: none;
}
.hp2-nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: 0.3s;
}
.hp2-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--c-card-bg);
  border-top: 1px solid var(--c-border);
  padding: 16px;
}
.hp2-mobile-nav.open { display: flex; }
.hp2-mobile-nav a {
  padding: 12px 8px; font-size: 15px;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
  font-weight: 500;
}
.hp2-mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 1280px) {
  .hp2-nav-phone,
  .hp2-nav-chat { display: none; }
}
@media (max-width: 768px) {
  .hp2-nav-links,
  .hp2-nav-actions .btn-gold,
  .hp2-nav-actions .hp2-nav-signin { display: none; }
  .hp2-nav-hamburger { display: flex; }
}

.hp2-nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--c-text-sec);
  max-width: 180px;
}
.hp2-nav-user img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--c-border);
}
.hp2-nav-user-name {
  font-weight: 600; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .hp2-nav-actions .hp2-nav-user,
  .hp2-nav-actions .hp2-theme-toggle { display: none; }
}

/* --- Children step: tooltip + adult HIPAA opt-in styling ---------- */
.lv-tooltip {
  display: inline-block;
  margin-left: 4px;
  width: 16px; height: 16px;
  line-height: 16px; text-align: center;
  font-size: 11px; color: var(--c-text-sec);
  background: var(--c-border); border-radius: 50%;
  cursor: help;
}
.lv-tooltip:focus { outline: 2px solid var(--c-gold); outline-offset: 2px; }
input.lv-gold-check { accent-color: var(--c-gold); width: 16px; height: 16px; }
.child-hipaa-wrap { color: var(--c-text); }

/* ===== Unified 4-column footer (shared via _footer.html) ===== */
.hp2-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-text);
  padding: 64px 24px 32px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.hp2-footer * { box-sizing: border-box; }
.hp2-footer a { text-decoration: none; color: inherit; }
.hp2-footer-inner { max-width: 1200px; margin: 0 auto; }
.hp2-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.hp2-footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 700;
  color: var(--c-footer-text);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.hp2-footer-logo .logo-dot {
  width: 10px; height: 10px;
  background: var(--c-gold);
  border-radius: 50%;
}
.hp2-footer-tagline {
  font-size: 13px;
  color: var(--c-footer-text);
  opacity: 0.7;
  margin-bottom: 6px;
  line-height: 1.6;
}
.hp2-footer-tx {
  font-size: 12px;
  color: var(--c-footer-text);
  opacity: 0.6;
  margin-bottom: 20px;
}
.hp2-footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--c-gold-light);
  margin-bottom: 16px;
}
.hp2-footer-col ul { list-style: none; padding: 0; margin: 0; }
.hp2-footer-col ul li { margin-bottom: 10px; }
.hp2-footer-col ul li a {
  font-size: 14px;
  color: var(--c-footer-text);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.hp2-footer-col ul li a:hover { opacity: 1; color: var(--c-gold-light); }
.hp2-footer-email {
  font-size: 14px;
  color: var(--c-gold-light);
  display: block; margin-bottom: 10px;
}
.hp2-footer-notlaw {
  font-size: 12px;
  color: var(--c-footer-text);
  opacity: 0.5; line-height: 1.6;
}
.hp2-footer-divider {
  border: none;
  border-top: 1px solid var(--c-footer-border-dim);
  margin-bottom: 24px;
}
.hp2-footer-bottom {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.hp2-footer-copyright {
  font-size: 13px;
  color: var(--c-footer-text);
  opacity: 0.5; line-height: 1.6;
  max-width: 680px;
}
.hp2-footer-legal-links { display: flex; gap: 20px; font-size: 13px; }
.hp2-footer-legal-links a {
  color: var(--c-footer-text);
  opacity: 0.7;
}
.hp2-footer-legal-links a:hover { opacity: 1; color: var(--c-gold-light); }

@media (max-width: 1024px) {
  .hp2-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hp2-footer-grid { grid-template-columns: 1fr; }
  .hp2-footer-bottom { flex-direction: column; }
}

/* ── Theme toggle pill (Task #374) ─────────────────────────────────────────
   Shows "Classic | Modern" in the navbar for every visitor.
   The active button is highlighted — gold for Classic, teal for Modern.
   Hidden on viewports below 500px so it does not crowd the hamburger. ── */

.lv-theme-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  gap: 0;
}

.lv-theme-opt {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 5px 11px;
  color: var(--c-text-sec);
  transition: background 0.18s, color 0.18s;
  line-height: 1;
  white-space: nowrap;
}

.lv-theme-opt:hover {
  color: var(--c-gold);
  background: var(--c-badge-bg);
}

/* Active: Classic button lit when pill is in classic mode */
.lv-theme-pill[data-active="classic"] #lvThemeClassic {
  background: var(--c-gold);
  color: var(--c-cta-text);
  border-radius: 20px 0 0 20px;
}

/* Active: Modern button lit when pill is in modern mode */
.lv-theme-pill[data-active="modern"] #lvThemeModern {
  background: var(--c-gold);
  color: var(--c-cta-text);
  border-radius: 0;
}

/* Active: 2026 button lit when pill is in 2026 mode */
.lv-theme-pill[data-active="2026"] #lvTheme2026 {
  background: var(--c-gold);
  color: var(--c-cta-text);
  border-radius: 0 20px 20px 0;
}

@media (max-width: 500px) {
  .lv-theme-pill { display: none; }
}

/* ── Trust bar — slim stripe above the navbar ── */
.lv-trust-bar {
  background: var(--c-trust-bar-bg);
  color: var(--c-trust-bar-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15px;
  padding: 7px 24px;
  text-align: center;
  line-height: 1;
}
.lv-trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lv-trust-bar-sep {
  opacity: 0.35;
  font-size: 14px;
}

/* Modern theme trust bar */
html[data-theme="modern"] .lv-trust-bar {
  background: var(--c-trust-bar-bg);
  color: var(--c-trust-bar-text);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 600px) {
  .lv-trust-bar-sep { display: none; }
  .lv-trust-bar-inner { gap: 8px; }
  .lv-trust-bar { font-size: 11px; padding: 8px 12px; }
}
