/* Show Caller AI — shared styles */

:root {
    --bg: #000000;
    --surface: #0a0c10;
    --surface-2: #10141a;
    --hairline: rgba(255, 255, 255, 0.07);
    --hairline-strong: rgba(255, 255, 255, 0.14);
    --text: #f4efe2;
    --muted: #9d998f;
    --accent: #4f6bff;
    --accent-dim: #3b4ddb;
    --accent-fade: rgba(79, 107, 255, 0.32);
    --nav-h: 68px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
}

::selection {
    background: var(--accent);
    color: #000;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #000;
    padding: 10px 16px;
    font-weight: 600;
    z-index: 100;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* ---------- Navigation ---------- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--nav-h);
    border-bottom: 1px solid var(--hairline);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    width: 30px;
    height: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: rgba(244, 239, 226, 0.66);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
    border: 2px solid var(--accent);
    background: var(--surface-2);
    color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent);
    color: #000;
}

.btn-secondary {
    border: 1px solid var(--hairline-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-width: 1px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ---------- Sections ---------- */

main {
    padding-top: var(--nav-h);
}

.section {
    padding: 96px 0;
    border-top: 1px solid var(--hairline);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: block;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.section-head h2 .accent {
    color: var(--accent);
}

.section-head p {
    margin-top: 16px;
    color: rgba(244, 239, 226, 0.52);
    font-size: 16px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.09;
    filter: blur(2px);
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55) 40%, #000 94%);
}

.hero-inner {
    position: relative;
    text-align: center;
    padding-top: 104px;
    padding-bottom: 88px;
}

.hero h1 {
    font-size: clamp(38px, 6.4vw, 68px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.06;
    max-width: 15ch;
    margin: 0 auto;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-sub {
    margin: 24px auto 0;
    max-width: 620px;
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(244, 239, 226, 0.6);
}

.hero .btn-row {
    margin-top: 36px;
}

.store-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.store-badges img {
    width: 190px;
    height: 63px;
    object-fit: contain;
}

.ms-badge-wrap {
    transform: scale(0.62);
    transform-origin: center;
    margin: 0 -46px;
}

.hero-shot {
    position: relative;
    margin: 0 auto;
    max-width: 880px;
    padding-bottom: 96px;
}

.hero-shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: top center;
    border: 1px solid var(--hairline-strong);
}

/* ---------- Card grids ---------- */

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-strip {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.02);
    padding: 28px;
    transition: border-color 0.25s, background 0.25s;
}

.card:hover {
    border-color: var(--accent-fade);
    background: rgba(255, 255, 255, 0.035);
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.card p {
    color: rgba(244, 239, 226, 0.55);
    font-size: 15px;
}

.card-index {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.card ul {
    list-style: none;
    margin-top: 14px;
}

.card li {
    position: relative;
    padding: 5px 0 5px 20px;
    color: rgba(244, 239, 226, 0.55);
    font-size: 14px;
}

.card li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 239, 226, 0.7);
    border: 1px solid var(--hairline-strong);
    padding: 5px 10px;
}

/* ---------- Spec rows ---------- */

.spec-list {
    border-top: 1px solid var(--hairline);
}

.spec-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--hairline);
}

.spec-row dt {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.spec-row dd {
    color: rgba(244, 239, 226, 0.55);
    font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 780px;
    margin: 0 auto;
    border-top: 1px solid var(--hairline);
}

.faq details {
    border-bottom: 1px solid var(--hairline);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--accent);
}

.faq summary::after {
    content: "+";
    font-family: var(--mono);
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq details p {
    color: rgba(244, 239, 226, 0.58);
    font-size: 15px;
    padding-bottom: 24px;
    max-width: 68ch;
}

/* ---------- Closing CTA ---------- */

.cta-band {
    text-align: center;
    padding: 104px 0;
    border-top: 1px solid var(--hairline);
    background: var(--surface);
}

.cta-band h2 {
    font-size: clamp(28px, 4.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cta-band p {
    margin: 16px auto 34px;
    max-width: 520px;
    color: rgba(244, 239, 226, 0.55);
    font-size: 17px;
}

/* ---------- Prose pages ---------- */

.page-head {
    padding: 84px 0 56px;
    text-align: center;
}

.page-head h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.page-head p {
    margin: 18px auto 0;
    max-width: 560px;
    color: rgba(244, 239, 226, 0.55);
    font-size: 17px;
}

.page-head .meta {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 239, 226, 0.4);
    margin-top: 14px;
}

.block {
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.02);
    padding: 32px;
    margin-bottom: 16px;
}

.block h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.block h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 8px;
}

.block h3:first-of-type {
    margin-top: 14px;
}

.block p {
    color: rgba(244, 239, 226, 0.6);
    font-size: 15px;
    margin-bottom: 12px;
}

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

.block ul {
    list-style: none;
}

.block li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: rgba(244, 239, 226, 0.6);
    font-size: 15px;
}

.block li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.block strong {
    color: var(--text);
    font-weight: 600;
}

.contact-block {
    border: 1px solid var(--accent-fade);
    background: var(--surface-2);
    padding: 40px 32px;
    text-align: center;
}

.contact-block h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.contact-block p {
    color: rgba(244, 239, 226, 0.58);
    font-size: 16px;
    max-width: 460px;
    margin: 0 auto 26px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 64px 0 32px;
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    margin-top: 14px;
    max-width: 300px;
    color: rgba(244, 239, 226, 0.45);
    font-size: 14px;
}

.footer-col h2 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 239, 226, 0.4);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 9px;
}

.footer-col a {
    color: rgba(244, 239, 226, 0.66);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    align-items: center;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    color: rgba(244, 239, 226, 0.4);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(244, 239, 226, 0.55);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section {
        padding: 68px 0;
    }

    .hero-inner {
        padding-top: 72px;
        padding-bottom: 60px;
    }

    .hero-shot {
        padding-bottom: 68px;
    }

    .hero-shot img {
        aspect-ratio: 4 / 3;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .card,
    .block {
        padding: 24px;
    }

    .cta-band {
        padding: 72px 0;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .btn-row .btn {
        width: 100%;
        text-align: center;
    }
}
