/* ==========================================================================
   Chaplin Pro — Landing Page Stylesheet
   Self-contained. No Bootstrap, Tailwind, or external framework dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --bg: #0d0d0b;
    --surface: #151510;
    --surface-2: #1b1a14;
    --gold: #e2b44f;
    --gold-soft: #f0cc76;
    --cream: #f6efdf;
    --text: #f6f0e5;
    --muted: #b5a98f;
    --muted-2: #7d735e;
    --line: #342f21;
    --green: #76cf89;
    --amber: #edbd5f;
    --red: #eb847c;
    --shadow: 0 24px 80px rgba(0, 0, 0, .34);
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 0%, rgba(226, 180, 79, .09), transparent 25%),
        linear-gradient(180deg, #0d0d0b 0%, #10100d 100%);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* Grid overlay background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(226, 180, 79, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 180, 79, .03) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 84%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 84%);
    will-change: transform;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--gold);
}

h1, h2, h3 {
    margin: 0;
    color: var(--cream);
}

h1, h2 {
    font-family: var(--font-serif);
    line-height: 1.03;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(56px, 7vw, 96px);
}

h2 {
    font-size: clamp(38px, 5vw, 64px);
}

h3 {
    font-size: 22px;
    line-height: 1.2;
}

p {
    margin: 0;
}

.lead {
    font-size: 20px;
    color: var(--muted);
    max-width: 780px;
}

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.section {
    padding: 100px 0;
}

.section-tight {
    padding: 72px 0;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 850;
    font-size: 14px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: .2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: #17130a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--gold-soft);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, .015);
    color: var(--cream);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #665938;
}

/* --------------------------------------------------------------------------
   6. Header Component
   -------------------------------------------------------------------------- */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid var(--line);
    transition: background .2s ease;
}

.nav-wrap.scrolled {
    background: rgba(13, 13, 11, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gold);
    color: #19150b;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 950;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 22px;
}

.brand-name small {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--muted);
    margin-top: -4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--muted);
    font-weight: 750;
    font-size: 14px;
    height: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover {
    color: var(--cream);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--cream);
    font-size: 20px;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand strong {
    color: var(--cream);
    font-size: 16px;
}

.footer-brand small {
    color: var(--muted-2);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 18px;
    transition: .2s ease;
}

.footer-social a:hover {
    color: var(--cream);
    border-color: #665938;
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   8. Touch Targets
   -------------------------------------------------------------------------- */
button,
a,
input,
select,
textarea,
[role="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* --------------------------------------------------------------------------
   9. Scroll-Reveal Animations
   -------------------------------------------------------------------------- */
.section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   10. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   11. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 108px 0 76px;
    text-align: center;
}

.hero-copy {
    max-width: 980px;
    margin: auto;
}

.hero h1 {
    margin-top: 22px;
}

.hero h1 span {
    color: var(--gold);
}

.hero .lead {
    margin: 26px auto 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-promise {
    margin: 24px auto 0;
    font-family: var(--font-serif);
    color: var(--cream);
    font-size: clamp(24px, 3vw, 36px);
}

.hero-promise span {
    color: var(--gold);
}

.micro {
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 13px;
}

.hero-stage {
    margin: 72px auto 0;
    max-width: 1060px;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #171712, #12120f);
    box-shadow: var(--shadow);
    text-align: left;
}

.browser {
    height: 48px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.r {
    background: #ff6259;
}

.dot.y {
    background: #f5bd39;
}

.dot.g {
    background: #2cc84d;
}

.dashboard {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 520px;
}

.sidebar {
    padding: 24px 18px;
    background: #10100d;
    border-right: 1px solid var(--line);
}

.side-title {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.side-item {
    height: 34px;
    border-radius: 8px;
    background: #171712;
    margin: 8px 0;
    border: 1px solid transparent;
}

.side-item.active {
    background: #2a2618;
    border-color: #514522;
}

.dash-main {
    padding: 26px;
    background: #12120f;
}

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-head h3 {
    font-size: 26px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #181812;
}

.metric small {
    display: block;
    color: var(--muted-2);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .08em;
}

.metric b {
    display: block;
    color: var(--cream);
    font-size: 24px;
    margin-top: 8px;
}

.work-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    margin-top: 14px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background: #181812;
}

.panel h4 {
    margin: 0 0 14px;
    color: var(--cream);
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2b291e;
    color: var(--muted);
}

.row:last-child {
    border-bottom: 0;
}

.status {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 999px;
}

.status.yes {
    background: #16391f;
    color: var(--green);
}

.status.maybe {
    background: #3a2c0f;
    color: var(--amber);
}

.status.wait {
    background: #28241a;
    color: #a99b79;
}

/* --------------------------------------------------------------------------
   12. Challenge Section
   -------------------------------------------------------------------------- */
.challenge {
    background: #11110e;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.challenge-copy {
    max-width: 1020px;
    margin: auto;
    text-align: center;
}

.challenge-copy h2 {
    font-size: clamp(46px, 6vw, 80px);
}

.challenge-copy h2 span {
    color: var(--gold);
}

.challenge-copy .lead {
    margin: 28px auto 0;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 44px;
}

.pain {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   13. Difference Section
   -------------------------------------------------------------------------- */
.section-head {
    max-width: 820px;
}

.section-head h2 {
    margin-top: 18px;
}

.section-head p {
    margin-top: 18px;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 46px;
}

.problem-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    background: var(--surface);
}

.problem-card.highlight {
    background: linear-gradient(180deg, #1b1a13, #15150f);
    border-color: #5b4d27;
}

.problem-card ul {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}

.problem-card li {
    padding: 12px 0;
    border-bottom: 1px solid #2d2a1e;
    color: var(--muted);
}

.problem-card li:last-child {
    border-bottom: 0;
}

.problem-card li::before {
    content: "\2192";
    color: var(--gold);
    margin-right: 9px;
}

/* --------------------------------------------------------------------------
   14. Steps Section
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 46px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.step {
    padding: 34px;
    background: rgba(255, 255, 255, .012);
    border-right: 1px solid var(--line);
}

.step:last-child {
    border-right: 0;
}

.step-num {
    font-size: 56px;
    font-weight: 950;
    color: #2b2717;
    line-height: 1;
}

.step h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-top: 26px;
}

.step p {
    color: var(--muted);
    margin-top: 14px;
}

/* --------------------------------------------------------------------------
   15. Showcase (Client Collaboration)
   -------------------------------------------------------------------------- */
.showcase {
    background: #11110e;
}

.showcase-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.board-mock {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #181812;
    padding: 22px;
    box-shadow: var(--shadow);
}

.board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.board-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.board-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #12120f;
}

.board-img {
    height: 130px;
    background: linear-gradient(135deg, rgba(226, 180, 79, .6), rgba(244, 236, 217, .14)), linear-gradient(45deg, #735f3a, #2c281d);
}

.board-body {
    padding: 13px;
}

.board-body small {
    color: var(--muted);
}

.vote-row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.vote {
    font-size: 10px;
    padding: 6px;
    border-radius: 7px;
    background: #27251b;
    color: var(--muted);
}

.vote.active {
    background: #173a21;
    color: var(--green);
}

/* --------------------------------------------------------------------------
   16. Feature Grid
   -------------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 46px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #5a4b25;
    color: var(--gold);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.feature-card p {
    margin-top: 10px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Industries
   -------------------------------------------------------------------------- */
.industries {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 42px;
}

.industry {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    font-weight: 850;
}

.industry span {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   18. Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
    background: #11110e;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 46px;
}

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
}

.price-card.popular {
    border-color: #8b7135;
    box-shadow: 0 0 0 1px rgba(226, 180, 79, .28);
}

.badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #18140c;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
}

.price {
    font-size: 44px;
    font-weight: 950;
    color: var(--cream);
    margin: 20px 0 4px;
}

.price small {
    font-size: 14px;
    color: var(--muted);
}

.price-card p {
    color: var(--muted);
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.price-card li {
    padding: 9px 0;
    color: #c9bea4;
}

.price-card li::before {
    content: "\2713";
    margin-right: 8px;
    color: var(--gold);
}

.fit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.fit strong {
    display: block;
    color: var(--cream);
    margin-bottom: 8px;
}

.fit small {
    color: var(--muted);
}

.pricing-note {
    margin-top: 30px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #15140f;
    color: var(--muted);
    text-align: center;
}

.pricing-philosophy {
    margin: 38px auto 0;
    max-width: 920px;
    padding: 28px 30px;
    border: 1px solid #5a4b25;
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 20%, rgba(226, 180, 79, .12), transparent 34%),
        linear-gradient(135deg, #1b190f, #12120d);
    text-align: left;
}

.pricing-philosophy h3 {
    margin-top: 12px;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 38px);
    color: var(--cream);
}

.pricing-philosophy p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 17px;
}

.pricing-philosophy strong {
    color: var(--gold);
}

.plan-positioning {
    display: block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.resource-highlight {
    margin: 22px 0 4px;
    padding: 16px;
    border: 1px solid #554720;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(226, 180, 79, .10), rgba(226, 180, 79, .025));
}

.resource-highlight strong {
    display: block;
    color: var(--cream);
    font-size: 20px;
}

.resource-highlight small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.45;
}

.custom-plan {
    margin-top: 22px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, #191812, #12120f);
}

.custom-plan h3 {
    margin-top: 10px;
    font-family: var(--font-serif);
    font-size: 28px;
}

.custom-plan p {
    max-width: 760px;
    margin-top: 10px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   19. Billing Toggle
   -------------------------------------------------------------------------- */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 30px auto 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.toggle-btn {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 750;
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: .2s;
    font-family: var(--font-sans);
}

.toggle-btn.active {
    background: var(--gold);
    color: #17130a;
}

.save-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #173a21;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

/* --------------------------------------------------------------------------
   20. Peace of Mind / CTA
   -------------------------------------------------------------------------- */
.peace {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: center;
    padding: 46px;
    border: 1px solid #574923;
    border-radius: 24px;
    background: linear-gradient(135deg, #1b190f, #12120d);
}

.peace h2 span {
    color: var(--gold);
}

.peace-list {
    display: grid;
    gap: 12px;
}

.peace-item {
    padding: 14px 16px;
    border: 1px solid #312d20;
    border-radius: 12px;
    color: var(--muted);
}

.peace-item::before {
    content: "\2713";
    color: var(--gold);
    margin-right: 8px;
}

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 48px;
    border: 1px solid #574923;
    border-radius: 24px;
    background: linear-gradient(135deg, #1b190f, #12120d);
}

.cta p {
    margin-top: 12px;
    color: var(--muted);
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.faq-list {
    margin-top: 46px;
}

/* --------------------------------------------------------------------------
   21. Ecosystem
   -------------------------------------------------------------------------- */
.ecosystem {
    text-align: center;
}

.eco-flow {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.eco {
    min-width: 210px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.eco strong {
    display: block;
    font-size: 19px;
}

.eco small {
    color: var(--muted);
}

.arrow {
    font-size: 24px;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   22. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    min-height: 44px;
    font-family: var(--font-sans);
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: var(--gold);
    transition: .2s;
}

.faq-item.active .faq-question::after {
    content: "\2212";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 0 0 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Contact Modal & Toast
   -------------------------------------------------------------------------- */
.contact-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 11, .75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contact-overlay.visible {
    display: flex;
}

.contact-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 16px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.contact-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    transition: .2s;
}

.contact-close:hover {
    color: var(--cream);
    border-color: #665938;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(226, 180, 79, .12);
    border: 1px solid rgba(226, 180, 79, .25);
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.modal-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

#contactForm {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#contactForm input,
#contactForm select {
    width: 100%;
    min-height: 44px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color .2s;
}

#contactForm input:focus,
#contactForm select:focus {
    border-color: var(--gold);
}

#contactForm input::placeholder {
    color: var(--muted-2);
}

#contactForm select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b5a98f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

#contactSubmitBtn {
    margin-top: 8px;
}

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted-2);
    margin-top: 12px;
}

/* Success Toast */
/* Success Toast — styles are in _ContactModal.cshtml partial */

/* --------------------------------------------------------------------------
   Cookie Consent Banner & Preferences Modal
   -------------------------------------------------------------------------- */
#cookieBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 20px 0;
}

#cookieBanner.visible {
    display: block;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    color: var(--muted);
    font-size: 14px;
    max-width: 540px;
}

.cookie-text a,
.cookie-learn-more {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
}

/* Preferences Modal */
#cookiePreferences {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 95;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 11, .75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#cookiePreferences.visible {
    display: flex;
}

.prefs-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 16px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.prefs-card h3 {
    margin-bottom: 20px;
}

.prefs-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
}

.prefs-close:hover {
    color: var(--cream);
    border-color: #665938;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cookie-category:last-of-type {
    border-bottom: 0;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info strong {
    display: block;
    color: var(--cream);
    font-size: 14px;
}

.cookie-category-info small {
    color: var(--muted);
    font-size: 12px;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--line);
    cursor: pointer;
    transition: .2s;
}

.toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--muted);
    transition: .2s;
}

.cookie-toggle input:checked + .toggle-track {
    background: var(--gold);
}

.cookie-toggle input:checked + .toggle-track::after {
    transform: translateX(22px);
    background: #17130a;
}

.cookie-toggle input:disabled + .toggle-track {
    opacity: .5;
    cursor: not-allowed;
}

.prefs-save {
    margin-top: 20px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Social Proof Section
   -------------------------------------------------------------------------- */
.social-proof {
    text-align: center;
}

.testimonials-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    text-align: left;
}

.testimonial-card p {
    color: var(--muted);
    font-style: italic;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Our Commitments Block
   -------------------------------------------------------------------------- */
.commitments-block {
    padding: 40px;
    border: 1px solid #5a4b25;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 30%, rgba(226, 180, 79, .10), transparent 40%),
        linear-gradient(135deg, #1b190f, #12120d);
}

.commitments-block h3 {
    margin-top: 12px;
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--cream);
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.commitment-item {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .012);
}

.commitment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #5a4b25;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 12px;
}

.commitment-item strong {
    display: block;
    color: var(--cream);
    font-size: 15px;
    margin-bottom: 6px;
}

.commitment-item p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   22b. Legal Pages
   -------------------------------------------------------------------------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cream);
    margin: 0 0 8px;
}

.legal-content .meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-content .toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 48px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.legal-content .toc a {
    font-size: 14px;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content .toc a:hover {
    color: var(--gold-soft);
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream);
    margin: 48px 0 16px;
}

.legal-content p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content ul li {
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 8px;
}

.legal-content code {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    color: var(--gold-soft);
}

.legal-content strong {
    color: var(--cream);
    font-weight: 600;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 14px;
}

.legal-table thead th {
    background: var(--surface-2);
    color: var(--cream);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid var(--line);
}

.legal-table tbody td {
    padding: 12px 16px;
    border: 1px solid var(--line);
    color: var(--text);
    vertical-align: top;
}

.legal-table tbody tr:hover {
    background: var(--surface);
}

.legal-back {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.legal-back a {
    color: var(--gold);
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.legal-back a:hover {
    color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   23. Responsive: Tablet (max-width: 980px)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .dashboard {
        grid-template-columns: 130px 1fr;
    }

    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-grid,
    .showcase-grid,
    .peace {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .step:last-child {
        border-bottom: 0;
    }

    .feature-grid,
    .industries {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .custom-plan {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonials-placeholder {
        grid-template-columns: 1fr;
    }
    
    .commitments-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   24. Responsive: Mobile (max-width: 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .section {
        padding: 72px 0;
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    .hero {
        padding-top: 68px;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .pain-grid,
    .feature-grid,
    .industries,
    .board-cards {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-card {
        margin: 8px;
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Toast responsive — handled in _ContactModal.cshtml */

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-actions .btn {
        flex: 1;
    }

    .commitments-block {
        padding: 24px;
    }

    /* Legal table: stacked card layout on mobile */
    .legal-table thead {
        display: none;
    }

    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table tr {
        margin-bottom: 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
    }

    .legal-table td {
        border: none;
        border-bottom: 1px solid var(--line);
        padding: 10px 16px;
        position: relative;
        padding-left: 40%;
    }

    .legal-table td:last-child {
        border-bottom: none;
    }

    .legal-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        top: 10px;
        font-weight: 600;
        color: var(--cream);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}
