:root {
    --sand-50: #FAFAF8;
    --sand-100: #F5F4F0;
    --sand-200: #E8E6DF;
    --sand-300: #D4D1C7;
    --sand-400: #A8A396;
    --sand-500: #7D786C;
    --sand-600: #5C5850;
    --sand-700: #3D3A35;
    --sand-800: #2A2825;
    --sand-900: #1A1917;
    --terracotta: #B85C38;
    --terracotta-light: #D4886A;
    --turquoise: #2E8B8B;
    --turquoise-light: #E8F4F4;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth
}

body {
    font-family: var(--sans);
    background: var(--sand-50);
    color: var(--sand-800);
    line-height: 1.7;
    font-weight: 400;
    font-optical-sizing: auto
}

/* ── SKIP LINK (A11y) ─────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--sand-900);
    color: #fff;
    padding: .5rem 1rem;
    z-index: 1000;
    font-size: .85rem;
    border-radius: 0 0 4px 4px;
    transition: top .2s;
}

.skip-link:focus {
    top: 0;
}

/* ── STICKY NAV BAR ───────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 25, 23, .97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 0 var(--space-xl);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav-inner {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav-brand {
    font-family: var(--serif);
    font-size: .88rem;
    font-weight: 500;
    color: var(--sand-300);
    text-decoration: none;
    letter-spacing: -.01em;
    transition: color .2s;
}

.site-nav-brand:hover {
    color: #fff;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.site-nav-links a {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sand-400);
    text-decoration: none;
    transition: color .2s;
    position: relative;
}

.site-nav-links a:hover,
.site-nav-links a.active {
    color: var(--terracotta-light);
}

.site-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--terracotta);
    border-radius: 1px;
}

/* ── PAGE ANCHOR NAV (On-page jump links) ──────────── */
.page-nav {
    background: #fff;
    border-bottom: 1px solid var(--sand-200);
    position: sticky;
    top: 52px;
    z-index: 90;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.page-nav::-webkit-scrollbar {
    display: none;
}

.page-nav-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    height: 44px;
    white-space: nowrap;
}

.page-nav a {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sand-400);
    text-decoration: none;
    transition: color .2s;
    flex-shrink: 0;
}

.page-nav a:hover {
    color: var(--turquoise);
}

/* ── PRIMARY CTA BUTTON ─────────────────────────────── */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--turquoise);
    color: #fff;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
    padding: .65rem 1.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    margin-top: var(--space-lg);
}

.cta-primary:hover {
    background: #257474;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46, 139, 139, .25);
}

.cta-primary::after {
    content: '→';
    font-size: .9em;
    transition: transform .2s;
}

.cta-primary:hover::after {
    transform: translateX(3px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--terracotta-light);
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 500;
    padding: .55rem 1.2rem;
    text-decoration: none;
    border: 1px solid rgba(212, 136, 106, .3);
    cursor: pointer;
    margin-top: var(--space-sm);
    margin-left: var(--space-sm);
    transition: all .2s;
}

.cta-secondary:hover {
    border-color: var(--terracotta-light);
    background: rgba(212, 136, 106, .08);
}

/* ── HEADER ───────────────────────────────────────────── */
header {
    background: var(--sand-900);
    color: var(--sand-100);
    padding: var(--space-2xl) var(--space-xl) var(--space-2xl);
    position: relative;
    overflow: hidden
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(46, 139, 139, .08) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 80% 20%, rgba(184, 92, 56, .06) 0%, transparent 70%);
    pointer-events: none
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

.hero-jurisdiction {
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--sand-400);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm)
}

.hero-jurisdiction::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--terracotta)
}

h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: var(--space-lg);
    color: #fff
}

h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--terracotta-light)
}

.hero-meta {
    font-size: .82rem;
    color: var(--sand-400);
    line-height: 1.6;
    max-width: 520px
}

.hero-meta a {
    color: var(--terracotta-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 136, 106, .3);
    transition: border-color .2s
}

.hero-meta a:hover {
    border-color: var(--terracotta-light)
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* ── MAIN ─────────────────────────────────────────────── */
main {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl)
}

/* ── QUICK FACTS ──────────────────────────────────────── */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--sand-200);
    border: 1px solid var(--sand-200);
    margin-bottom: var(--space-3xl)
}

.quick-fact {
    background: var(--sand-50);
    padding: var(--space-lg) var(--space-xl)
}

.quick-fact-label {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sand-400);
    margin-bottom: var(--space-xs)
}

.quick-fact-value {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--sand-900);
    letter-spacing: -.01em
}

.quick-fact-note {
    font-size: .75rem;
    color: var(--sand-500);
    margin-top: 2px
}

/* ── SECTIONS ─────────────────────────────────────────── */
article>section {
    margin-bottom: var(--space-3xl);
    scroll-margin-top: 100px;
}

.section-label {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-sm)
}

h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--sand-900);
    margin-bottom: var(--space-lg);
    letter-spacing: -.01em
}

h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--sand-900);
    margin-bottom: var(--space-sm);
    letter-spacing: -.01em
}

p {
    margin-bottom: var(--space-md);
    color: var(--sand-700);
    font-size: .92rem
}

/* ── CONTACT GRID ─────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl)
}

@media(max-width:600px) {
    .contact-grid {
        grid-template-columns: 1fr
    }
}

.contact-card {
    background: #fff;
    border: 1px solid var(--sand-200);
    padding: var(--space-lg);
    transition: border-color .2s
}

.contact-card:hover {
    border-color: var(--sand-300)
}

.contact-card-label {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sand-400);
    margin-bottom: var(--space-sm)
}

.contact-card p {
    font-size: .88rem;
    margin-bottom: var(--space-xs);
    color: var(--sand-700)
}

.contact-card a {
    color: var(--turquoise);
    text-decoration: none;
    border-bottom: 1px solid rgba(46, 139, 139, .2);
    transition: border-color .2s
}

.contact-card a:hover {
    border-color: var(--turquoise)
}

.contact-card strong {
    font-weight: 500;
    color: var(--sand-800)
}

/* ── APPLICATION STEPS ────────────────────────────────── */
.steps {
    counter-reset: step-counter;
    position: relative
}

.step {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: var(--space-xl);
    counter-increment: step-counter
}

.step:last-child {
    padding-bottom: 0
}

.step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--sand-900);
    color: var(--sand-100);
    font-family: var(--serif);
    font-size: .85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%
}

.step::after {
    content: '';
    position: absolute;
    left: calc(1rem - .5px);
    top: 2.2rem;
    bottom: 0;
    width: 1px;
    background: var(--sand-200)
}

.step:last-child::after {
    display: none
}

.step p {
    font-size: .88rem;
    color: var(--sand-600)
}

/* ── LINKS ────────────────────────────────────────────── */
article a:not(.link-card):not(.cta-primary):not(.cta-secondary) {
    color: var(--turquoise);
    text-decoration: none;
    border-bottom: 1px solid rgba(46, 139, 139, .2);
    transition: border-color .2s
}

article a:not(.link-card):not(.cta-primary):not(.cta-secondary):hover {
    border-color: var(--turquoise)
}

/* ── FEE TABLE ────────────────────────────────────────── */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg)
}

.fee-table th,
.fee-table td {
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: .88rem;
    border-bottom: 1px solid var(--sand-200)
}

.fee-table th {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sand-400);
    background: var(--sand-100)
}

.fee-table td {
    color: var(--sand-700)
}

.fee-table td:last-child {
    text-align: right;
    font-family: var(--serif);
    font-weight: 500;
    color: var(--sand-900)
}

/* ── CALLOUTS ─────────────────────────────────────────── */
.callout {
    background: var(--turquoise-light);
    border-left: 3px solid var(--turquoise);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl)
}

.callout h3 {
    font-size: .95rem
}

.callout p {
    font-size: .85rem;
    color: var(--sand-700);
    margin-bottom: 0
}

.callout a {
    color: var(--turquoise);
    text-decoration: none;
    border-bottom: 1px solid rgba(46, 139, 139, .3)
}

.callout-warm {
    background: #FDF6F2;
    border-left: 3px solid var(--terracotta)
}

.callout-warm h3 {
    color: var(--terracotta)
}

/* ── CHECKLIST ────────────────────────────────────────── */
.checklist {
    list-style: none;
    margin-bottom: var(--space-xl)
}

.checklist li {
    position: relative;
    padding: var(--space-md) 0 var(--space-md) 2rem;
    border-bottom: 1px solid var(--sand-100);
    font-size: .88rem;
    color: var(--sand-700)
}

.checklist li:last-child {
    border-bottom: none
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(var(--space-md) + 4px);
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--sand-300);
    border-radius: 2px
}

.checklist .detail {
    display: block;
    font-size: .78rem;
    color: var(--sand-500);
    margin-top: 2px
}

/* ── LINKS GRID ───────────────────────────────────────── */
.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl)
}

@media(max-width:600px) {
    .links-grid {
        grid-template-columns: 1fr
    }
}

.link-card {
    display: block;
    background: #fff;
    border: 1px solid var(--sand-200);
    padding: var(--space-lg);
    text-decoration: none;
    transition: all .2s
}

.link-card:hover {
    border-color: var(--turquoise);
    background: var(--turquoise-light)
}

.link-card h3 {
    margin-bottom: 4px;
    font-size: .95rem
}

.link-card-desc {
    font-size: .78rem;
    color: var(--sand-500)
}

.link-card-url {
    display: block;
    font-size: .72rem;
    color: var(--turquoise);
    margin-top: var(--space-sm);
    word-break: break-all
}

/* ── LICENSE TYPE GRID ────────────────────────────────── */
.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--sand-200);
    border: 1px solid var(--sand-200);
    margin-bottom: var(--space-xl)
}

@media(max-width:700px) {
    .req-grid {
        grid-template-columns: 1fr
    }
}

.req-cell {
    background: #fff;
    padding: var(--space-lg)
}

.req-cell h3 {
    font-size: .95rem
}

.req-cell p {
    font-size: .82rem;
    color: var(--sand-600);
    margin-bottom: var(--space-xs)
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--sand-200);
    padding: var(--space-lg) 0
}

.faq-item:first-of-type {
    border-top: 1px solid var(--sand-200)
}

.faq-item h3 {
    font-size: .95rem;
    margin-bottom: var(--space-sm);
    color: var(--sand-900)
}

.faq-item p {
    font-size: .85rem;
    color: var(--sand-600);
    margin-bottom: 0
}

/* ── SOURCES ──────────────────────────────────────────── */
.sources {
    border-top: 1px solid var(--sand-200);
    padding-top: var(--space-xl);
    margin-top: var(--space-3xl)
}

.sources h2 {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--sand-400);
    margin-bottom: var(--space-lg);
    font-family: var(--sans)
}

.source-list {
    list-style: none
}

.source-list li {
    font-size: .75rem;
    color: var(--sand-500);
    padding: var(--space-xs) 0;
    display: flex;
    gap: var(--space-sm);
    line-height: 1.5
}

.source-list li .num {
    color: var(--sand-400);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    width: 1.2rem
}

.source-list a {
    color: var(--sand-500);
    text-decoration: none;
    border-bottom: 1px solid var(--sand-200);
    word-break: break-all
}

.source-list a:hover {
    color: var(--turquoise);
    border-color: var(--turquoise)
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
    background: var(--sand-900);
    color: var(--sand-400);
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: var(--space-lg);
}

@media(max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--sand-200);
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: .78rem;
    color: var(--sand-500);
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-title {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sand-500);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: .82rem;
    color: var(--sand-400);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--terracotta-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-disclaimer {
    font-size: .72rem;
    color: var(--sand-500);
    line-height: 1.6;
    max-width: 600px;
}

.footer-copyright {
    font-size: .72rem;
    color: var(--sand-500);
}

/* ── FINGERPRINT FIELD CARDS ──────────────────────────── */
.fp-card-guide {
    background: #fff;
    border: 1px solid var(--sand-200);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl)
}

.fp-card-guide h3 {
    margin-bottom: var(--space-md)
}

.fp-field {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--sand-100);
    font-size: .85rem;
    align-items: baseline
}

.fp-field:last-child {
    border-bottom: none
}

.fp-field-label {
    font-weight: 500;
    color: var(--sand-800);
    min-width: 160px;
    flex-shrink: 0
}

.fp-field-desc {
    color: var(--sand-600)
}

.fp-field-warn {
    color: var(--terracotta);
    font-weight: 500
}

@media(max-width:600px) {
    .fp-field {
        flex-direction: column;
        gap: 2px
    }

    .fp-field-label {
        min-width: auto
    }
}

/* ── MICRO ANIMATIONS ─────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-facts,
.contact-grid,
.req-grid,
.steps,
.checklist,
.faq-item {
    animation: fadeInUp .5s cubic-bezier(.4, 0, .2, 1) both;
}

.quick-facts {
    animation-delay: .1s;
}

.contact-grid {
    animation-delay: .15s;
}

.steps {
    animation-delay: .2s;
}

/* ── BACK TO TOP ──────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--sand-900);
    color: var(--sand-200);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
    z-index: 80;
    border: 1px solid rgba(255, 255, 255, .1);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-2px);
    background: var(--turquoise);
}

/* ── PRINT ────────────────────────────────────────────── */
@media print {

    .site-nav,
    .page-nav,
    .back-to-top {
        display: none;
    }

    header {
        background: #fff;
        color: #000;
        padding: 1rem 0
    }

    h1 {
        color: #000;
        font-size: 1.5rem
    }

    h1 em {
        color: #666
    }

    .hero-jurisdiction,
    .hero-meta {
        color: #666
    }

    header::before {
        display: none
    }

    main {
        padding: 1rem 0
    }

    body {
        font-size: 11pt
    }

    footer {
        background: #fff;
        color: #333;
    }
}