:root {
    --bg-main: #f5f4f0;
    --bg-panel: #ece7dc;
    --bg-panel-soft: rgba(255, 255, 255, 0.42);
    --text-main: #1a1a1a;
    --text-soft: rgba(26, 26, 26, 0.7);
    --brand-subtle: #2e4a3f;
    --brand-deep: #16231d;
    --line: rgba(26, 26, 26, 0.12);
    --line-strong: rgba(26, 26, 26, 0.18);
    --display: "Ovo", serif;
    --body: "Manrope", sans-serif;
    --shadow-soft: 0 26px 80px rgba(24, 26, 23, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--body);
    color: var(--text-main);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 24%),
        var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-shell {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(245, 244, 240, 0.9);
    border-bottom: 1px solid var(--line);
}

.topbar-inner,
.warm-nav,
.field-grid,
.admin-header,
.admin-toolbar,
.admin-toolbar-fields,
.admin-toolbar-actions,
.admin-metrics,
.admin-actions-cell {
    display: flex;
}

.topbar-inner {
    min-height: 76px;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.06rem;
    font-weight: 800;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-deep);
    color: var(--bg-main);
}

.warm-nav {
    align-items: center;
    gap: 20px;
}

.warm-nav a,
.eyebrow,
.hero-kicker,
.section-kicker,
.admin-table th {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
}

.warm-nav a {
    color: var(--text-soft);
}

.warm-nav a:hover,
.warm-nav a.is-active {
    color: var(--text-main);
}

.nav-cta {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--text-main);
    color: var(--text-main);
}

.hero-kicker,
.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--brand-subtle);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7.6rem);
    line-height: 0.92;
}

h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
}

h3 {
    font-size: 1.32rem;
    line-height: 1.16;
}

p {
    margin: 0;
}

.lead,
.hero-lead,
.section-header p,
.value-panel p,
.faq-card p,
.micro-note span,
.form-status,
.consent-field,
.admin-header-status {
    color: var(--text-soft);
    line-height: 1.72;
}

.section {
    padding: 48px 0 60px;
}

.hospitality-hero,
.editorial-hero {
    padding: 34px 0 54px;
}

.hero-stack,
.editorial-flow,
.app-intake-brand,
.app-intake-ledger,
.app-intake-foot,
.numbered-rows,
.city-listing,
.faq-ledger {
    display: grid;
    gap: 24px;
}

.hero-stack {
    gap: 28px;
}

.manifest-headline {
    max-width: 12ch;
}

.hero-split,
.section-header,
.value-grid,
.access-grid,
.faq-grid,
.editorial-links-head,
.editorial-links-grid,
.hero-columns,
.text-split,
.cta-ribbon,
.footer-grid,
.app-intake-grid {
    display: grid;
    gap: 24px;
}

.hero-split,
.section-header,
.editorial-links-head,
.hero-columns,
.text-split,
.cta-ribbon,
.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-statement {
    padding: 20px 0 0;
}

.hero-lead {
    margin-top: 18px;
    max-width: 46rem;
    font-size: 1.1rem;
}

.search-ledger {
    display: grid;
    gap: 12px;
    align-content: start;
}

.search-ledger label {
    font-size: 0.88rem;
    font-weight: 800;
}

.search-ledger input {
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text-main);
    font: inherit;
}

.search-ledger p {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.65;
}

.hero-note {
    display: grid;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
    max-width: 54rem;
}

.hero-note strong {
    font-size: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.button-ink {
    color: var(--bg-main);
    background: var(--brand-deep);
}

.button-ghost,
.button-secondary,
.button-dark {
    color: var(--text-main);
    background: transparent;
    border-color: var(--line-strong);
}

.mutual-ledger {
    border-top: 1px solid var(--line-strong);
}

.ledger-line {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.ledger-line span {
    font-weight: 800;
}

.section-header {
    align-items: end;
    margin-bottom: 24px;
}

.rescue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line-strong);
}

.rescue-cell,
.numbered-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.row-index,
.rescue-cell span {
    font-family: var(--display);
    font-size: 2.7rem;
    line-height: 1;
}

.rescue-cell p,
.numbered-row p {
    color: var(--text-soft);
    line-height: 1.72;
}

.value-grid,
.faq-grid,
.editorial-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-panel,
.faq-card,
.access-form,
.editorial-link-block,
.app-intake-shell {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.28);
}

.value-panel,
.faq-card,
.access-form,
.app-intake-shell {
    padding: 24px;
}

.value-panel h3,
.faq-card h3 {
    margin-bottom: 12px;
}

.editorial-link-block {
    display: grid;
    gap: 10px;
    min-height: 170px;
    padding: 24px;
    text-decoration: none;
}

.editorial-link-block span,
.support-copy,
.footer-links a,
.faq-tail-link a {
    color: var(--text-soft);
}

.editorial-link-block strong {
    max-width: 24ch;
    font-size: 1.72rem;
    line-height: 1.08;
}

.access-grid,
.app-intake-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
}

.access-copy h2,
.app-section-head h2 {
    margin-top: 12px;
}

.access-copy p {
    margin-top: 16px;
    max-width: 34rem;
}

.form,
.access-form {
    display: grid;
    gap: 16px;
}

.field-grid {
    gap: 16px;
}

.field-grid > label,
.access-form > label {
    flex: 1 1 0;
}

.form label {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text-main);
    font: inherit;
}

.form textarea {
    min-height: 110px;
    resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.search-ledger input:focus,
.admin-token-input:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus {
    outline: none;
    border-bottom-color: var(--brand-subtle);
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

.consent-field {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 0.92rem;
}

.consent-field input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.form-status.success {
    color: var(--brand-subtle);
}

.form-status.error {
    color: #8f2a21;
}

.app-intake-complete {
    align-self: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(38, 74, 61, 0.16);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 235, 0.92));
    box-shadow: 0 24px 70px rgba(35, 52, 44, 0.12);
}

.app-intake-complete h2 {
    margin: 0.65rem 0 0.85rem;
}

.app-intake-complete p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.app-intake-complete-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin-top: 1.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-deep);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
}

.muted-band {
    background: rgba(236, 231, 220, 0.45);
}

.section-headline {
    max-width: 60rem;
    margin-bottom: 20px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.city-grid span,
.city-grid a {
    padding: 16px 0 4px;
    border-top: 1px solid var(--line-strong);
    font-family: var(--display);
    font-size: 2rem;
    text-decoration: none;
}

.faq-tail-link {
    padding-top: 20px;
}

.footer-anchor {
    padding: 34px 0 50px;
    border-top: 1px solid var(--line-strong);
}

.footer-grid {
    align-items: end;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.page-app-intake .footer-anchor {
    padding-top: 22px;
}

.app-intake-main {
    min-height: 100vh;
    padding: 20px 0 40px;
}

.app-intake-shell {
    width: min(calc(100% - 24px), 1040px);
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.app-intake-brand {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.app-intake-brand strong {
    display: block;
}

.app-intake-brand span:last-child {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.app-intake-copy h1 {
    max-width: 10.5ch;
}

.app-intake-ledger > div,
.app-mini-faq {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.app-intake-ledger p,
.app-mini-faq p {
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 1.7;
}

.app-intake-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.app-intake-shell-v2 {
    width: min(calc(100% - 24px), 980px);
}

.app-v2-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.app-v2-copy h1 {
    max-width: 9.2ch;
}

.app-v2-points {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.app-v2-points > div,
.legal-card {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.app-v2-points p,
.legal-card p,
.legal-note,
.legal-meta,
.app-v2-legal-note {
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 1.68;
}

.app-v2-form {
    padding: 28px;
}

.consent-field-rich span a,
.legal-card a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.app-v2-actions {
    display: grid;
    gap: 10px;
}

.app-v2-legal-note {
    font-size: 0.9rem;
}

.page-legal .section {
    padding-top: 42px;
    padding-bottom: 42px;
}

.legal-hero {
    padding-bottom: 8px;
}

.legal-shell {
    max-width: 76rem;
}

.legal-shell h1 {
    max-width: 10ch;
}

.legal-meta {
    margin-top: 18px;
    font-size: 0.92rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
}

.legal-card h2 {
    font-size: 1.5rem;
}

.legal-card-full {
    grid-column: 1 / -1;
}

.page-editorial .editorial-hero,
.editorial-band {
    padding: 54px 0;
}

.lead {
    max-width: 40rem;
    color: var(--text-soft);
    line-height: 1.72;
    font-size: 1.08rem;
}

.micro-note {
    display: grid;
    gap: 10px;
    align-content: start;
}

.micro-note span {
    display: block;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
}

.faq-ledger article {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.faq-ledger article h2 {
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.support-copy {
    line-height: 1.7;
}

.admin-body {
    background:
        linear-gradient(135deg, rgba(23, 17, 13, 0.96), rgba(47, 31, 22, 0.98)),
        radial-gradient(circle at top left, rgba(241, 185, 90, 0.16), transparent 32%);
    color: #f7eddc;
}

.admin-shell {
    width: min(calc(100% - 32px), 1440px);
    margin: 0 auto;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
}

.admin-sidebar,
.admin-main {
    border: 1px solid rgba(255, 248, 235, 0.12);
    background: rgba(255, 250, 243, 0.06);
    backdrop-filter: blur(18px);
}

.admin-sidebar {
    border-radius: 26px;
    padding: 24px;
    position: sticky;
    top: 18px;
    align-self: start;
}

.admin-main {
    border-radius: 30px;
    padding: 28px;
}

.admin-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.admin-brand strong,
.admin-sidebar-note strong {
    display: block;
    font-size: 1.05rem;
}

.admin-brand span,
.admin-sidebar-note span,
.admin-token-note {
    color: rgba(247, 237, 220, 0.7);
    line-height: 1.55;
}

.admin-token-box,
.admin-sidebar-note,
.admin-metric,
.admin-header-status {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 248, 235, 0.05);
    border: 1px solid rgba(255, 248, 235, 0.1);
}

.admin-token-box label,
.admin-toolbar label {
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
}

.admin-token-input,
.admin-toolbar input,
.admin-toolbar select {
    width: 100%;
    border: 1px solid rgba(255, 248, 235, 0.14);
    border-radius: 14px;
    background: rgba(16, 12, 9, 0.42);
    color: #fff7ea;
    padding: 12px 14px;
    font: inherit;
}

.admin-token-input {
    min-height: 110px;
    resize: vertical;
}

.admin-token-save {
    width: 100%;
    margin-top: 14px;
}

.admin-nav {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.admin-nav-button {
    border: 1px solid rgba(255, 248, 235, 0.12);
    border-radius: 16px;
    background: transparent;
    color: #fff6e7;
    text-align: left;
    padding: 14px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-nav-button.active {
    background: rgba(241, 185, 90, 0.14);
    border-color: rgba(241, 185, 90, 0.32);
    color: #ffd797;
}

.admin-header {
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 22px;
}

.admin-header h1 {
    margin-top: 10px;
    max-width: none;
    font-size: clamp(2.3rem, 4vw, 4.4rem);
    color: #fff5e7;
}

.admin-header-status.success {
    color: #bce7c5;
}

.admin-header-status.error {
    color: #ffc2b0;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-toolbar {
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-toolbar-fields,
.admin-toolbar-actions,
.admin-metrics,
.admin-actions-cell {
    gap: 12px;
    flex-wrap: wrap;
}

.admin-metrics {
    margin-bottom: 18px;
}

.admin-table-wrap {
    overflow: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 248, 235, 0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    background: rgba(20, 14, 11, 0.46);
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 248, 235, 0.08);
    vertical-align: top;
}

.admin-table th {
    position: sticky;
    top: 0;
    background: rgba(34, 24, 18, 0.96);
    z-index: 1;
    color: rgba(247, 237, 220, 0.62);
}

.admin-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(241, 185, 90, 0.14);
    color: #ffdb9e;
    font-size: 0.78rem;
    font-weight: 900;
}

.admin-empty {
    text-align: center;
    color: rgba(247, 237, 220, 0.62);
}

.admin-link-button {
    border: 1px solid rgba(255, 248, 235, 0.14);
    border-radius: 999px;
    background: rgba(255, 248, 235, 0.06);
    color: #fff5e1;
    padding: 8px 11px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-link-button.muted {
    color: rgba(255, 245, 225, 0.76);
}

.admin-link-button.danger {
    color: #ffc0ae;
    border-color: rgba(186, 84, 52, 0.3);
}

@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 960px) {
    .hero-split,
    .section-header,
    .value-grid,
    .access-grid,
    .faq-grid,
    .editorial-links-grid,
    .editorial-links-head,
    .footer-grid,
    .app-v2-grid,
    .legal-grid,
    .hero-columns,
    .text-split,
    .cta-ribbon,
    .app-intake-grid,
    .app-intake-foot,
    .city-grid {
        grid-template-columns: 1fr;
    }

    .warm-nav {
        display: none;
    }

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

    .rescue-cell,
    .numbered-row,
    .ledger-line {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .topbar-inner,
    .field-grid,
    .admin-header,
    .admin-toolbar {
        display: grid;
    }

    .site-shell {
        width: min(calc(100% - 24px), 1180px);
    }

    h1 {
        font-size: clamp(2.7rem, 11vw, 4.2rem);
    }

    h2 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .access-form,
    .value-panel,
    .faq-card,
    .app-intake-shell,
    .app-v2-form {
        padding: 18px;
    }
}
