:root {
    --d4-bg: #1a1740;
    --d4-surface: #231f4a;
    --d4-surface-alt: #292654;
    --d4-border: rgba(255, 255, 255, 0.06);
    --d4-text: #e8e8ed;
    --d4-text-muted: #8a8a9a;
    --d4-accent: #5856D6;
    --d4-yellow: #ffd500;
    --hero-text-color: rgba(232, 232, 237, 0.82);
    --hero-text-size: 1.2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--d4-bg);
    color: var(--d4-text);
    font-family: 'Kanit', sans-serif;
    margin: 0;
}

.page {
    max-width: 1400px;
    margin: 0 auto;
}

/* ── NAV ── */
.nav {
    padding: 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--d4-border);
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#hero-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 300;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--d4-text-muted);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--d4-text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── HERO ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}

.intro {
    text-align: center;
    margin-bottom: 2rem;
}

.label {
    font-size: 0.85rem;
    color: var(--d4-yellow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: var(--hero-text-size);
    color: var(--hero-text-color);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.stats-inline {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.stat-inline {
    font-size: 1.2rem;
}

.stat-inline strong {
    color: var(--d4-yellow);
    font-size: 1.5rem;
}

/* ── CTA BUTTONS ── */
.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    background: var(--d4-yellow);
    color: #000;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--d4-surface);
    border: 1px solid var(--d4-border);
    color: var(--d4-text);
}

.btn-ghost:hover {
    background: var(--d4-surface-alt);
    transform: translateY(-2px);
}

.btn-yellow {
    background: var(--d4-yellow);
    color: #000;
    font-weight: 700;
    border: 1px solid var(--d4-yellow);
}

.btn-yellow:hover {
    transform: translateY(-2px);
}

.compatibility {
    text-align: center;
    font-size: 0.85rem;
    color: var(--d4-text-muted);
    margin-bottom: 0;
}

.app-store-proof {
    max-width: 760px;
    margin: -1.3rem auto 3.8rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1rem;
    align-items: stretch;
    text-align: left;
}

.app-store-proof__reviews,
.app-store-proof__rating {
    background: rgba(35, 31, 74, 0.72);
    border: 1px solid var(--d4-border);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.app-store-proof__reviews {
    padding: 1rem 1.15rem 0.7rem;
    overflow: hidden;
}

.app-store-proof__eyebrow,
.app-store-proof__live {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--d4-yellow);
    font-weight: 600;
}

.app-store-proof__review-viewport {
    overflow: hidden;
    margin-top: 0.65rem;
}

.app-store-proof__review-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    transition: transform 0.22s ease;
    will-change: transform;
}

.app-store-proof__reviews.is-dragging .app-store-proof__review-track {
    transition: none;
}

.app-store-proof__review {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-store-proof__review-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 600;
}

.app-store-proof__quote {
    margin: 0;
    color: var(--hero-text-color);
    font-size: 0.92rem;
    line-height: 1.55;
}

.app-store-proof__review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.8rem;
    color: var(--d4-text-muted);
    font-size: 0.78rem;
}

.app-store-proof__indicators {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.app-store-proof__indicator {
    width: 0.48rem;
    height: 0.48rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--d4-border);
    cursor: pointer;
}

.app-store-proof__indicator.is-active {
    background: var(--d4-yellow);
}

.app-store-proof__review-stars {
    display: flex;
    gap: 0.16rem;
    color: var(--d4-yellow);
    font-size: 0.72rem;
}

.app-store-proof__rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    padding: 1.2rem;
    min-height: 100%;
    color: var(--d4-text);
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.app-store-proof__rating:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 213, 0, 0.45);
}

.app-store-proof__stars {
    display: flex;
    gap: 0.2rem;
    color: var(--d4-yellow);
    font-size: 0.95rem;
    margin: 0;
}

.app-store-proof__score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.app-store-proof__count {
    margin: 0;
    color: var(--d4-text-muted);
    font-size: 0.86rem;
}

.app-store-proof__rating-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
    .app-store-proof__review,
    .app-store-proof__rating {
        transition: none;
    }
}

/* ── VIDEO SECTION ── */
.video-section {
    max-width: 1200px;
    margin: 0.75rem auto 4rem;
    padding: 0 2rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── SPEAK PROMO ── */
.speak-promo {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    padding-top: 1rem;
}

.speak-promo__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.speak-promo__inner {
    position: relative;
    overflow: hidden;
    background: var(--d4-surface);
    border: 1px solid var(--d4-yellow);
    border-radius: 24px;
    padding: 3rem 3.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
}

.speak-promo__inner > canvas[data-wave-bg] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.speak-promo__inner > *:not(canvas) {
    position: relative;
    z-index: 1;
}

.speak-promo__badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.speak-promo__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.speak-promo__label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--d4-yellow);
    font-weight: 600;
}

.speak-promo__title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.50rem;
    line-height: 1.15;
}

.speak-promo__text {
    font-size: 1rem;
    color: var(--d4-text-muted);
    line-height: 1.6;
    margin-bottom: 2.75rem;
    max-width: 420px;
}

.speak-promo__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.speak-promo__image {
    max-width: 90%;
    border-radius: 12px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

@media (max-width: 968px) {
    .speak-promo__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .speak-promo__inner {
        text-align: center;
        padding: 2.5rem 2rem;
    }

    .speak-promo__badge {
        justify-content: center;
    }

    .speak-promo__text {
        max-width: 100%;
    }

    .speak-promo__image {
        max-width: 320px;
    }
}

/* ── FEATURES TABLE ── */
.features-table {
    border-top: 1px solid var(--d4-border);
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    padding: 2rem 4rem;
    border-bottom: 1px solid var(--d4-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.features-header-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--d4-text);
    font-weight: 500;
}

.feature-row {
    display: grid;
    grid-template-columns: 80px 1fr 2fr;
    align-items: center;
    padding: 2.5rem 4rem;
    border-bottom: 1px solid var(--d4-border);
    transition: background 0.2s;
    gap: 3rem;
}

.feature-row:hover {
    background: var(--d4-surface);
}

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

.feature-num {
    font-size: 1rem;
    color: var(--d4-text-muted);
}

.feature-name {
    font-size: 2rem;
    font-weight: 600;
}

.feature-icon-inline {
    font-size: 2rem;

    color: var(--d4-yellow);
}

img.feature-icon-inline {
    display: inline-block;
    width: 1em;
    height: 1em;
    object-fit: contain;
    vertical-align: middle;
}

.feature-desc {
    font-size: 1rem;
    color: var(--d4-text-muted);
    line-height: 1.6;
}

/* ── FAQ SECTION ── */
.faq-section {
    background: var(--d4-surface);
    border: 1px solid var(--d4-border);
    border-radius: 16px;
    overflow: hidden;
    margin: 3rem 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-header {
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid var(--d4-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.faq-header-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--d4-text);
    font-weight: 500;
}

.faq-tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 3px;
}

.faq-tab {
    padding: 0.45rem 1.1rem;
    border: none;
    background: none;
    color: var(--d4-text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.faq-tab:hover {
    color: var(--d4-text);
}

.faq-tab.is-active {
    background: var(--d4-yellow);
    color: #000;
}

.faq-panel {
    display: none;
}

.faq-panel.is-active {
    display: block;
}

.faq-empty {
    padding: 4rem 2.5rem;
    text-align: center;
    color: var(--d4-text-muted);
}

.faq-empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.faq-empty p {
    font-size: 0.95rem;
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid var(--d4-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 2.5rem;
    background: none;
    border: none;
    color: var(--d4-text);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.faq-question:hover {
    background: var(--d4-surface-alt);
}

.faq-icon {
    font-size: 1rem;
    color: var(--d4-yellow);
    width: 28px;
    flex-shrink: 0;
    text-align: center;
}

.faq-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.faq-q-text {
    flex: 1;
}

.faq-chevron {
    font-size: 0.75rem;
    color: var(--d4-text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-item.is-open .faq-question {
    color: var(--d4-yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 2.5rem 0 calc(2.5rem + 28px + 1.2rem);
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding: 0 2.5rem 1.5rem calc(2.5rem + 28px + 1.2rem);
}

.faq-answer-inner {
    border-left: 2px solid var(--d4-yellow);
    padding-left: 1.25rem;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--d4-text-muted);
    line-height: 1.7;
    margin: 0 0 0.6rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
}

.faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer li {
    font-size: 0.95rem;
    color: var(--d4-text-muted);
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
}

.faq-answer li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--d4-text-muted);
}

.faq-answer strong {
    color: var(--d4-text);
}

.faq-answer a {
    color: var(--d4-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.faq-answer a:hover {
    color: var(--d4-yellow);
}

/* ── TERMINAL SECTION ── */
.terminal-section {
    background: #0d0b20;
    border: 1px solid var(--d4-border);
    border-radius: 16px;
    overflow: hidden;
    margin: 3rem 2rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-section__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--d4-border);
}

.terminal-section__dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-section__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-section__dot--red {
    background: #ff5f56;
}

.terminal-section__dot--yellow {
    background: #ffbd2e;
}

.terminal-section__dot--green {
    background: #27c93f;
}

.terminal-section__title {
    color: var(--d4-text-muted);
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-section__content {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: #0d0b20;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--d4-text);
    font-size: 0.85rem;
}

.terminal-prompt {
    color: var(--d4-yellow);
    margin-right: 0.5rem;
}

.terminal-cmd {
    color: var(--d4-text);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--d4-yellow);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ── DOWNLOAD COUNTER SECTION ── */
.download-counter-section {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.download-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid rgba(231, 210, 0, 0.9);
    border-radius: 999px;
    box-shadow:
        0 0 8px rgba(231, 210, 0, 0.2),
        inset 0 0 12px rgba(88, 86, 214, 0.15);
    color: #5856D6;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: box-shadow 0.3s ease;
}

.download-counter-badge__icon {
    font-size: 0.81rem;
    color: var(--d4-yellow);
}

/* ── Home: side-by-side promo cards (Vibes + Speak) ── */
.home-promos {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 1rem 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.home-promo {
    position: relative;
    overflow: hidden;
    background: var(--d4-surface);
    border: 1px solid var(--d4-yellow);
    border-radius: 24px;
    padding: 2.5rem 2.25rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
}

.home-promo > canvas[data-wave-bg],
.home-promo > .home-promo__ekg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.home-promo > *:not(canvas):not(.home-promo__ekg) {
    position: relative;
    z-index: 1;
}

/* EKG / heart-rate line for the Vibes card */
.home-promo__ekg {
    overflow: visible;
}

.home-promo__ekg-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 1;
}

.home-promo__ekg-line--base {
    stroke: rgba(88, 86, 214, 1);
    opacity: 0.08;
    filter: drop-shadow(0 0 3px rgba(88, 86, 214, 0.45));
}

.home-promo__ekg-line--lead {
    stroke: var(--d4-yellow);
    opacity: 0.08;
    filter: drop-shadow(0 0 3px rgba(255, 213, 0, 0.55));
    stroke-dasharray: 1000 1000;
    stroke-dashoffset: 1000;
    animation: ekg-draw 5s linear infinite;
}

@keyframes ekg-draw {
    from { stroke-dashoffset: 1000; }
    to   { stroke-dashoffset: -1000; }
}

@media (prefers-reduced-motion: reduce) {
    .home-promo__ekg-line--lead {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.home-promo__badge {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.home-promo__logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.home-promo__label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--d4-yellow);
    font-weight: 600;
}

.home-promo__title {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.home-promo__text {
    font-size: 0.98rem;
    color: var(--d4-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.home-promo__visual {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 1rem;
}

.home-promo__image {
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

.home-promo__cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 968px) {
    .home-promos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-promo {
        padding: 2rem 1.75rem 1.5rem;
        text-align: center;
    }

    .home-promo__badge {
        justify-content: center;
    }

    .home-promo__image {
        max-width: 260px;
    }
}

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--d4-border);
    padding: 2rem;
    margin-top: 3rem;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.site-footer__copy {
    color: var(--d4-text-muted);
    font-size: 0.9rem;
}

.site-footer__links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    color: var(--d4-text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-footer__links a:hover {
    color: var(--d4-text);
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
    h1 {
        font-size: 3rem;
    }

    .stats-inline {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .app-store-proof {
        grid-template-columns: 1fr;
        max-width: 520px;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }

    .app-store-proof__rating {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        min-height: auto;
        padding: 1rem 1.2rem;
    }

    .app-store-proof__rating .app-store-proof__score {
        line-height: 0.82;
        transform: translateY(-0.06em);
    }

    .app-store-proof__rating-detail {
        align-items: flex-start;
        justify-content: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 2rem;
    }


    .features-header,
    .nav {
        padding: 1.5rem 1.5rem;
    }

    .terminal-section {
        margin: 2rem 1rem;
    }

    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .speak-promo__visual {
        margin-top: 2rem;
        margin-bottom: 0.5rem;
    }

    .site-footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .faq-section {
        margin: 2rem 1rem 0;
    }

    .faq-header {
        padding: 1rem 1.5rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        gap: 0.8rem;
    }

    .faq-icon {
        width: 24px;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 1.5rem 0 calc(1.5rem + 24px + 0.8rem);
    }

    .faq-item.is-open .faq-answer {
        padding: 0 1.5rem 1.2rem calc(1.5rem + 24px + 0.8rem);
    }
}

/* ── LEGAL PAGES ── */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.legal-card {
    background: var(--d4-surface);
    border: 1px solid var(--d4-border);
    border-radius: 20px;
    padding: 3rem;
}

.legal-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--d4-yellow);
    margin-bottom: 1rem;
}

.legal-card h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--d4-text-muted);
    margin-bottom: 3rem;
}

.legal-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--d4-text);
}

.legal-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--d4-text-muted);
    margin-bottom: 1rem;
}

.legal-card a {
    color: var(--d4-accent);
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-card a:hover {
    color: var(--d4-yellow);
}

/* ── CONTACT SECTION ── */
.contact-section {
    background: var(--d4-surface);
    border: 1px solid var(--d4-border);
    border-radius: 16px;
    overflow: hidden;
    margin: 3rem 2rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-header {
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid var(--d4-border);
    background: rgba(255, 255, 255, 0.02);
}

.contact-header-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--d4-text);
    font-weight: 500;
}

.contact-container {
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--d4-text-muted);
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    background: var(--d4-surface-alt);
    border: 1px solid var(--d4-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--d4-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--d4-accent);
    background: var(--d4-bg);
}

.contact-form textarea {
    resize: none;
    overflow: hidden;
    min-height: 120px;
}

.form-submit-btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
    margin-top: 0.5rem;
}

.form-message.is-error {
    display: block;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.form-message.is-success {
    display: block;
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

@media (max-width: 968px) {
    .contact-section {
        margin: 2rem 1rem;
    }

    .contact-header {
        padding: 1rem 1.5rem;
    }

    .contact-container {
        padding: 1.5rem;
    }

    .form-submit-btn {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .logo-nav {
        gap: 0.45rem;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    #hero-logo {
        width: 26px;
        height: 26px;
    }

    #hero-logo .keyvox-logo--md {
        width: 26px;
        height: 26px;
    }

    #hero-logo .keyvox-logo--md .keyvox-logo__ring {
        border-width: 1.2px;
        box-shadow: 0 0 2.5px rgba(231, 210, 0, 0.3);
    }

    #hero-logo .keyvox-logo--md .keyvox-logo__bars {
        gap: 1.8px;
    }

    #hero-logo .keyvox-logo--md .keyvox-logo__bar {
        width: 2.1px;
        border-radius: 1.2px;
    }

    .legal-page {
        padding: 2rem 1rem;
    }

    .legal-card {
        padding: 2rem;
    }

    .legal-card h1 {
        font-size: 2rem;
    }

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