/* ===================================================================
   AkiliLex v0.7 - Public / Marketing Pages
   IBM Plex Sans throughout, corporate slate/navy/gold
   Each landing section sized to fit ~one viewport
   =================================================================== */

.public-body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin: 0;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */

.pub-header {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pub-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.pub-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.pub-brand img {
    height: 48px;
    display: block;
    transition: opacity 0.15s;
}
.pub-brand:hover img { opacity: 0.85; }

.pub-nav {
    display: flex;
    gap: 1.75rem;
    flex: 1;
}

.pub-nav a {
    color: #b0aca0;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.pub-nav a .icon-svg { opacity: 0.75; transition: opacity 0.15s; }
.pub-nav a:hover { color: var(--gold-light); }
.pub-nav a:hover .icon-svg { opacity: 1; color: var(--gold-light); }

.pub-actions {
    display: flex;
    gap: 0.5rem;
}
.pub-actions .btn { font-weight: 600; }
.pub-actions .btn-outline {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    color: #e6e2d8;
}
.pub-actions .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold-light);
    color: #ffffff;
}

@media (max-width: 768px) {
    /* NOTE: .pub-nav is NOT hidden here. It is converted into a slide-in
       drawer further down (see the ">= MOBILE" block). Hiding it here with
       display:none previously kept the drawer permanently invisible. */
    .pub-header-inner { padding: 0.7rem 1rem; gap: 1rem; }
    .pub-brand img { height: 38px; }
}

/* ===== MAIN ===== */

.pub-main {
    min-height: calc(100vh - 60px);
}

/* ===== SECTION SCAFFOLDING (each ~100vh) ===== */

.pub-section {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
    position: relative;
}

.pub-section.compact { min-height: auto; padding: 4rem 1.5rem; }

.pub-section .container {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.pub-section.bg-slate { background: linear-gradient(180deg, var(--slate) 0%, var(--slate-light) 100%); color: #e6e2d8; }
.pub-section.bg-slate .eyebrow { color: var(--gold-light); }
.pub-section.bg-slate h2 { color: #ffffff; }
.pub-section.bg-slate p { color: #c8c3b5; }

.pub-section.bg-cream { background: var(--cream-light); }
.pub-section.bg-paper { background: var(--paper); }
.pub-section.bg-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-darker) 100%); color: #ffffff; }
.pub-section.bg-navy h2, .pub-section.bg-navy h3 { color: #ffffff; }
.pub-section.bg-navy p, .pub-section.bg-navy li { color: #d4cfc1; }

/* ===== TYPE SCALE ===== */

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.pub-section h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0 0 1.25rem 0;
    color: var(--navy-darker);
}
.pub-section h1 .gold { color: var(--gold); }
.pub-section h1 .accent { color: var(--gold); }

.pub-section h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin: 0 0 1rem 0;
    color: var(--navy-darker);
}

.pub-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: var(--navy);
}

.pub-section .lead {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0 0 1.75rem 0;
    max-width: 640px;
}

/* ===== HERO ===== */

.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(176, 141, 71, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(46, 69, 112, 0.06) 0%, transparent 50%),
        var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.hero-text .actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.hero-trust {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--ink-faint);
}
.hero-trust .item { display: flex; align-items: center; gap: 0.4rem; }
.hero-trust .item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

.hero-visual {
    position: relative;
}
.hero-visual .device {
    background: var(--paper);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 30px 60px -20px rgba(15, 27, 53, 0.25), 0 0 0 1px rgba(176, 141, 71, 0.1);
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { display: none; }
}

/* ===== BUTTONS (large variants) ===== */

.btn-lg {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
}

/* ===== FEATURES GRID ===== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    transition: all 0.2s var(--ease-out);
    position: relative;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(15, 27, 53, 0.15);
    border-color: var(--gold);
}
.feature-card .feature-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.feature-card .feature-icon .icon-svg { width: 18px; height: 18px; fill: #ffffff; color: #ffffff; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem 0; color: var(--navy); }
.feature-card p { font-size: 0.83rem; color: var(--ink-muted); line-height: 1.5; margin: 0; }
.feature-card .feature-tag {
    position: absolute; top: 0.85rem; right: 0.85rem;
    font-size: 0.6rem; letter-spacing: 1px; text-transform: uppercase;
    color: var(--gold); font-weight: 600;
}

/* ===== HOW IT WORKS ===== */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.step {
    counter-increment: step;
    position: relative;
    padding-top: 2.5rem;
}
.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0; left: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: -1px;
}
.step h3 { font-size: 1rem; margin: 0 0 0.4rem 0; }
.step p { font-size: 0.83rem; color: var(--ink-muted); line-height: 1.5; margin: 0; }

.bg-slate .step::before { color: var(--gold-light); }
.bg-slate .step h3 { color: #ffffff; }
.bg-slate .step p { color: #c8c3b5; }

/* ===== PRICING ===== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; gap: 1rem; } }

.price-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    display: flex; flex-direction: column;
    position: relative;
    transition: all 0.2s var(--ease-out);
}
.price-card.featured {
    border-color: var(--gold);
    border-width: 2px;
    box-shadow: 0 20px 50px -20px rgba(176, 141, 71, 0.3);
    transform: scale(1.02);
}
.price-card .price-badge {
    position: absolute;
    top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--gold);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
}
.price-card .plan-name {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.5rem;
}
.price-card .price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -1px;
}
.price-card .price-amount .period {
    font-size: 0.85rem;
    color: var(--ink-faint);
    font-weight: 400;
    letter-spacing: 0;
}
.price-card .plan-desc {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin: 0.5rem 0 1.25rem 0;
    min-height: 2.2em;
}
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}
.price-card ul li {
    padding: 0.35rem 0;
    font-size: 0.83rem;
    color: var(--ink);
    display: flex; align-items: flex-start; gap: 0.5rem;
    line-height: 1.4;
}
.price-card ul li::before {
    content: '\2713';
    color: var(--sage);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.price-card .btn { width: 100%; text-align: center; justify-content: center; }

/* ===== TESTIMONIALS ===== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
}
.testimonial .quote {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #e6e2d8;
    margin-bottom: 1rem;
}
.testimonial .attribution {
    display: flex; align-items: center; gap: 0.7rem;
}
.testimonial .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--ochre));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.78rem;
}
.testimonial .att-name { font-size: 0.83rem; font-weight: 600; color: #fff; }
.testimonial .att-role { font-size: 0.7rem; color: var(--gold-light); }

/* ===== FAQ ===== */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item summary {
    padding: 1rem 0;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 400;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    padding: 0 0 1rem 0;
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.6;
    font-size: 0.88rem;
}

/* ===== CTA ===== */

.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-darker) 100%);
    color: #fff;
    text-align: center;
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(176, 141, 71, 0.2) 0%, transparent 50%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: #c8c3b5; max-width: 580px; margin: 0 auto 1.5rem auto; }

/* ===== FOOTER ===== */

.pub-footer {
    background: var(--slate);
    color: #c8c3b5;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
}
.pub-footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
    .pub-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
    .pub-footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}

.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { color: #c8c3b5; font-size: 0.82rem; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-heading {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.footer-tagline { font-size: 0.85rem; color: #c8c3b5; margin: 0.5rem 0 0.5rem 0; }
.footer-disclaimer { font-size: 0.7rem; color: #8a8478; line-height: 1.55; margin: 0; }
.footer-address { font-size: 0.78rem; color: #c8c3b5; line-height: 1.5; margin-top: 0.4rem; }

.pub-footer-base {
    max-width: 1180px;
    margin: 1.5rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.72rem;
    color: #8a8478;
}
.footer-compliance { display: flex; align-items: center; gap: 0.6rem; }
.footer-compliance .dot { color: var(--gold); }

/* ===== STATIC PAGE STYLES (terms, privacy, faq pages) ===== */

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}
.legal-page h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy-darker);
    margin: 0 0 0.5rem 0;
    letter-spacing: -1px;
}
.legal-page .meta {
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin: 2rem 0 0.75rem 0;
    padding-top: 0.5rem;
}
.legal-page h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--navy);
    margin: 1.5rem 0 0.5rem 0;
}
.legal-page p, .legal-page li {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0 0 0.85rem 0;
}
.legal-page ul, .legal-page ol { padding-left: 1.5rem; margin: 0 0 1rem 0; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page strong { color: var(--navy-darker); font-weight: 600; }
.legal-page .callout {
    background: var(--ochre-pale);
    border-left: 3px solid var(--ochre);
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1.5rem 0;
    font-size: 0.88rem;
}
.legal-page .callout.danger { background: var(--terracotta-pale); border-color: var(--terracotta); }
.legal-page .callout.info { background: var(--navy-50); border-color: var(--navy); }
.legal-page .callout.success { background: var(--sage-pale); border-color: var(--sage); }

/* ===== UTILITIES ===== */
.center { text-align: center; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem auto; }
.muted { color: var(--ink-muted); }

/* ===== FOOTER CONTACT ENRICHMENTS ===== */
.footer-col a.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-col a.footer-contact .icon-svg {
    width: 12px; height: 12px;
    color: var(--gold-light);
    opacity: 0.7;
    flex-shrink: 0;
}
.footer-col a.footer-contact:hover .icon-svg { opacity: 1; }
.footer-address {
    font-size: 0.78rem; color: #c8c3b5; line-height: 1.5;
    margin-top: 0.5rem;
    display: flex; gap: 0.4rem;
    align-items: flex-start;
}
.footer-address .icon-svg {
    width: 13px; height: 13px;
    color: var(--gold-light);
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== LEGAL PAGE H2 ICONS ===== */
.legal-page h2 .icon-svg,
.legal-page h2 svg {
    width: 18px; height: 18px;
    color: var(--gold);
    margin-right: 0.5rem;
    vertical-align: -3px;
}

/* ===== STEP ICONS (How it works) ===== */
.step .step-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(212, 182, 118, 0.12);
    border: 1px solid rgba(212, 182, 118, 0.35);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.85rem;
}
.step .step-icon .icon-svg {
    width: 18px; height: 18px;
    color: var(--gold-light);
}
.step { padding-top: 0; }
.step::before {
    position: absolute;
    top: 13px;
    right: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    opacity: 0.55;
    background: rgba(212, 182, 118, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
}

/* ===== FAQ ICONS ===== */
.faq-item summary .faq-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--gold-pale);
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: 0.7rem;
    flex-shrink: 0;
}
.faq-item summary .faq-icon .icon-svg {
    width: 14px; height: 14px;
    color: var(--gold);
}
.faq-item summary {
    display: flex;
    align-items: center;
}
.faq-item summary > .question-text {
    flex: 1;
}

/* ===== CTA ILLUSTRATION ===== */
.cta-band {
    position: relative;
    overflow: hidden;
}
.cta-decoration {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}
.cta-decoration.left { left: -30px; top: 50%; transform: translateY(-50%); width: 200px; }
.cta-decoration.right { right: -30px; top: 50%; transform: translateY(-50%); width: 200px; transform: translateY(-50%) scaleX(-1); }

/* ===== CONTACT PAGE STYLES ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.contact-card .contact-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-card .contact-icon .icon-svg {
    width: 18px; height: 18px;
    color: #ffffff;
}
.contact-card .contact-meta { flex: 1; }
.contact-card .contact-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-faint);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.contact-card .contact-value {
    font-size: 0.92rem;
    color: var(--navy);
    font-weight: 500;
}
.contact-card .contact-value a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
}
.contact-card .contact-value a:hover { color: var(--gold); }

/* ===========================================================
   PUBLIC PAGES - MOBILE / TABLET RESPONSIVE
   =========================================================== */

/* Hide pub-nav CTA group on desktop (top buttons serve instead) */
.pub-nav-cta { display: none; }

/* Hide hamburger on desktop */
.pub-mobile-toggle { display: none; }

/* Backdrop */
.pub-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s;
    z-index: 98;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.pub-nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* ===== TABLET: <= 1024px ===== */
@media (max-width: 1024px) {
    .pub-section { padding: 3rem 1.25rem; }
    .pub-section h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
    .pub-section h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
    .hero-grid { gap: 2rem; }
    .feature-grid { gap: 1rem; }
    .pricing-grid { gap: 0.85rem; }
    .pub-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 1.5rem; }
}

/* ===== MOBILE: <= 768px ===== */
@media (max-width: 768px) {
    /* Header: show hamburger, hide desktop nav + action buttons */
    .pub-mobile-toggle { display: inline-flex; }
    .pub-action-desktop { display: none; }
    .pub-header-inner { padding: 0.7rem 1rem; gap: 0.75rem; }
    .pub-brand img { height: 40px; }

    /* Nav becomes a slide-in drawer from the right */
    .pub-nav {
        display: flex;            /* override any earlier display:none */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background: var(--slate);
        border-left: 1px solid var(--slate-line);
        flex-direction: column;
        gap: 0;
        padding: 4.5rem 0 1rem 0;
        transform: translateX(100%);
        transition: transform 0.28s var(--ease-out);
        z-index: 99;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0,0,0,0.25);
    }
    .pub-nav.is-open { transform: translateX(0); }
    .pub-nav a {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: #d4cfc1;
    }
    .pub-nav a:hover { background: rgba(255,255,255,0.04); color: var(--gold-light); }
    .pub-nav a .icon-svg { width: 16px; height: 16px; opacity: 0.9; }

    /* Login/Signup CTAs inside the mobile drawer */
    .pub-nav-cta {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        padding: 1.25rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .pub-nav-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.92rem;
    }
    .pub-nav-cta .btn-outline {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.18);
        color: #ffffff;
    }
    .pub-nav-cta .btn-outline:hover {
        background: rgba(255,255,255,0.12);
        border-color: var(--gold-light);
    }

    body.pub-nav-mobile-open { overflow: hidden; }

    /* Hero adjusts */
    .hero { padding: 2rem 1rem; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-text .actions { flex-direction: column; align-items: stretch; }
    .hero-text .actions .btn { justify-content: center; }
    .hero-trust { font-size: 0.72rem; gap: 1rem; }
    .hero-visual { display: block; max-width: 100%; }
    .hero-visual .device { padding: 0.5rem; }

    /* Section heights free up on mobile */
    .pub-section { min-height: auto; padding: 2.5rem 1rem; }
    .pub-section h1 { font-size: 1.85rem; line-height: 1.15; }
    .pub-section h2 { font-size: 1.45rem; }
    .pub-section .lead { font-size: 1rem; }

    .feature-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .feature-card { padding: 1.2rem 1rem; }

    .steps { grid-template-columns: 1fr; gap: 1rem; }
    .step { padding-top: 0; }

    .pricing-grid { grid-template-columns: 1fr; gap: 1rem; }
    .price-card.featured { transform: none; }
    .price-card .price-amount { font-size: 1.7rem; }

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

    .faq-list { max-width: 100%; }
    .faq-item summary { font-size: 0.88rem; padding: 0.85rem 0; }
    .faq-item summary .faq-icon { width: 26px; height: 26px; }
    .faq-item summary .faq-icon .icon-svg { width: 12px; height: 12px; }

    .cta-band { padding: 2.25rem 1.25rem; border-radius: 12px; }
    .cta-band h2 { font-size: 1.6rem; }
    .cta-decoration { display: none; }

    /* Footer becomes single column */
    .pub-footer { padding: 2.5rem 1rem 1.25rem 1rem; }
    .pub-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-brand { grid-column: span 1; }
    .pub-footer-base {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
    }

    /* Contact page stacks */
    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Legal pages */
    .legal-page { padding: 2rem 1rem 3rem; }
    .legal-page h1 { font-size: 1.7rem; }
    .legal-page h2 { font-size: 1.05rem; }
    .legal-page p, .legal-page li { font-size: 0.88rem; }
}

/* ===== SMALL MOBILE: <= 480px ===== */
@media (max-width: 480px) {
    .pub-header-inner { padding: 0.6rem 0.85rem; }
    .pub-brand img { height: 36px; }
    .pub-section { padding: 2rem 0.85rem; }
    .pub-section h1 { font-size: 1.6rem; }
    .pub-section h2 { font-size: 1.3rem; }
    .cta-band h2 { font-size: 1.35rem; }
    .price-card { padding: 1.25rem 1rem; }
    .feature-card .feature-icon { width: 34px; height: 34px; }
    .legal-page h1 { font-size: 1.45rem; }
}

/* ===========================================================
   v1.2 - CLASSY REFINEMENTS
   =========================================================== */

/* Full-bleed beige body for the hero - ensures continuity across viewport */
.hero {
    background:
        radial-gradient(ellipse at 18% 28%, rgba(176, 141, 71, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 82% 72%, rgba(46, 69, 112, 0.08) 0%, transparent 50%),
        var(--bg);
    width: 100%;
    box-sizing: border-box;
}

/* Hero trust badges with icons - more prominent */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.hero-trust .item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: all 0.2s var(--ease-out);
}
.hero-trust .item:hover {
    background: var(--paper);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(15, 27, 53, 0.08);
}
.hero-trust .item .icon-svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

/* More elegant hero headline */
.hero-text h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -1.2px;
    font-weight: 700;
    margin: 0.5rem 0 1.25rem 0;
}

.hero-text .eyebrow {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hero-text .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0 0 1.75rem 0;
    max-width: 560px;
}

/* ===== PRICING LAYOUT - two-up, refined ===== */
.pricing-grid.two-up {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}
@media (max-width: 720px) {
    .pricing-grid.two-up { grid-template-columns: 1fr; }
}

.price-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s var(--ease-out);
}
.price-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(15, 27, 53, 0.12);
}
.price-card.featured {
    border-color: var(--gold);
    border-width: 2px;
    background: linear-gradient(180deg, var(--paper) 0%, var(--gold-pale) 200%);
}
.price-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.15;
}

.plan-badge, .price-badge {
    position: absolute;
    top: -10px;
    left: 1.5rem;
    background: var(--paper);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.price-card.featured .price-badge {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.plan-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
    margin-top: 0.4rem;
}
.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy-darker);
    margin: 0.25rem 0;
    letter-spacing: -1px;
}
.price-amount .period {
    font-size: 0.78rem;
    color: var(--ink-muted);
    font-weight: 400;
    letter-spacing: 0;
}
.plan-desc {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin: 0.5rem 0 1rem 0;
    min-height: 2.4em;
}
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}
.price-card ul li {
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--ink);
    border-bottom: 1px dashed var(--border);
}
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 14px;
    height: 14px;
    background: var(--gold-pale);
    border-radius: 50%;
}
.price-card ul li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.85rem;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}
.price-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== PRICING POSITIONING CARDS ===== */
.pricing-positioning {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (max-width: 760px) { .pricing-positioning { grid-template-columns: 1fr; } }
.pos-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
}
.pos-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.pos-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--gold-pale);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pos-icon .icon-svg { width: 16px; height: 16px; color: var(--gold); }
.pos-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
}
.pos-card p {
    margin: 0 0 0.5rem 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--ink);
}
.pos-card p:last-child { margin-bottom: 0; }

/* ===== QUOTE WORKFLOW STEPS (landing) ===== */
.quote-workflow {
    margin: 2rem auto 1.5rem;
    background: var(--cream-light);
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.75rem;
    max-width: 980px;
}
.quote-workflow h3 {
    text-align: center;
    color: var(--navy);
    font-size: 1rem;
    margin: 0 0 1.25rem 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.qw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}
@media (max-width: 780px) { .qw-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .qw-steps { grid-template-columns: 1fr; } }
.qw-step {
    background: var(--paper);
    border-radius: 10px;
    padding: 1rem 1rem 0.85rem;
    border: 1px solid var(--border);
    position: relative;
}
.qw-step .qw-num {
    position: absolute;
    top: -10px;
    left: 1rem;
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}
.qw-step .qw-body { padding-top: 0.4rem; }
.qw-step .qw-body strong {
    display: block;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
}
.qw-step .qw-body p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.cta-pill {
    text-align: center;
    margin-top: 2rem;
    padding: 1.1rem 1.5rem;
    background: var(--gold-pale);
    border-radius: 999px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(176, 141, 71, 0.2);
}
.cta-pill p {
    margin: 0;
    color: var(--navy);
    font-size: 0.92rem;
    line-height: 1.5;
}
.cta-pill .btn { vertical-align: middle; }

/* ===== CLASSIER GLOBAL TOUCHES ===== */

/* Refined section spacing */
.pub-section {
    padding: 4rem 1.5rem;
}
.pub-section.compact {
    padding: 2.5rem 1.5rem;
}

/* Better section head typography */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
}
.section-head .eyebrow {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}
.section-head .eyebrow .icon-svg {
    width: 13px;
    height: 13px;
}
.section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.6px;
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 0.85rem 0;
}
.section-head p.muted {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* Feature card refinements */
.feature-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.35rem 1.25rem;
    transition: all 0.25s var(--ease-out);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px -10px rgba(15, 27, 53, 0.14);
    border-color: var(--gold-light);
}
.feature-card .feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 12px -2px rgba(176, 141, 71, 0.35);
}
.feature-card .feature-icon .icon-svg {
    width: 19px;
    height: 19px;
    color: #fff;
}
.feature-card h3 {
    font-size: 0.98rem;
    color: var(--navy);
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}
.feature-card p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0;
}

/* Text utility classes */
.text-center { text-align: center; }
.text-small { font-size: 0.85rem; }


/* ===========================================================
   v1.3 - USD PRICING + BILLING TOGGLE + PAYMENT METHODS
   =========================================================== */

/* Billing period toggle (Monthly / Annual) */
.billing-toggle {
    display: inline-flex;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 27, 53, 0.05);
    position: relative;
}
.billing-toggle .bt-option {
    background: transparent;
    border: none;
    padding: 0.55rem 1.4rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-muted);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
}
.billing-toggle .bt-option:hover { color: var(--navy); }
.billing-toggle .bt-option.active {
    background: var(--navy);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 27, 53, 0.15);
}
.billing-toggle .bt-save {
    background: var(--gold);
    color: #ffffff;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-left: 0.15rem;
}
.billing-toggle .bt-option:not(.active) .bt-save {
    background: var(--gold-pale);
    color: var(--gold);
}

/* Centre the toggle and align with section head */
.section-head + .billing-toggle {
    display: flex;
    justify-content: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.pricing-grid.two-up { position: relative; }

/* Show/hide pricing elements based on selected period */
.pricing-grid.two-up[data-period="annual"]  [data-show="monthly"] { display: none; }
.pricing-grid.two-up[data-period="monthly"] [data-show="annual"]  { display: none; }

/* Price note line (e.g., "billed annually at $397") */
.price-note {
    font-size: 0.74rem;
    color: var(--gold);
    margin-top: -0.35rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.price-card.featured .price-note { color: var(--gold); }

/* ===== PAYMENT METHODS NOTE ===== */
.payment-methods-note {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin: 2rem auto 0;
    max-width: 860px;
    text-align: center;
}
.payment-methods-note .pm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.payment-methods-note .pm-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--navy);
}
.payment-methods-note .pm-item .icon-svg { width: 14px; height: 14px; color: var(--gold); }
.payment-methods-note .pm-badge {
    background: var(--navy);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
}
.payment-methods-note .pm-note {
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.5;
}


/* ===========================================================
   MOBILE HARDENING — prevent horizontal overflow / scroll
   (long URLs, wide media, oversized SVGs on small screens)
   =========================================================== */
.public-body img,
.public-body svg,
.public-body video,
.public-body iframe,
.public-body table {
    max-width: 100%;
}
.public-body img,
.public-body video {
    height: auto;
}
@media (max-width: 768px) {
    /* Belt-and-braces: never let a public page scroll sideways */
    html, body.public-body { max-width: 100%; overflow-x: hidden; }

    /* Break long unbroken strings (emails, URLs, tokens) instead of
       forcing the viewport wider than the screen */
    .public-body p,
    .public-body a,
    .public-body li,
    .public-body td,
    .public-body h1,
    .public-body h2,
    .public-body h3 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Any stray wide data table on a public page scrolls within its box */
    .public-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
