/* ============================================================
   The Companions — landing styles
   Visual language: warm off-white, dot grid, orange accent,
   light-weight display headings + mono uppercase labels.
   ============================================================ */

:root {
    --bg: #FDFBF7;
    --surface: #FFFFFF;
    --ink: #1A1A1A;
    --muted: #6E675F;
    --accent: #F24405;
    --accent-dark: #D03A02;
    --accent-soft: #FEEEE7;
    --border: #D9CEC1;
    --green: #16A34A;
    --green-soft: #EDF7EE;
    --radius-sm: 8px;
    --radius: 16px;
    --shadow-accent: 0 6px 14px rgba(242, 68, 5, 0.25);
    --font-sans: 'Geist', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', 'Menlo', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container-narrow { max-width: 820px; }

/* ---------- Typography ---------- */

h1, h2, h3 { line-height: 1.1; }

h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 strong, h2 strong { font-weight: 800; }

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

.accent-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(242, 68, 5, 0.4);
    text-underline-offset: 4px;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-block { width: 100%; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(242, 68, 5, 0.32);
}

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.btn-inverse {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

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

/* ---------- Badges ---------- */

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(242, 68, 5, 0.35);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid #CDE8D2;
    border-radius: 6px;
    background: var(--green-soft);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #3E7A4A;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---------- Dot grid background ---------- */

.dot-grid {
    background-image: radial-gradient(circle, rgba(26, 26, 26, 0.13) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.site-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
}

.site-nav a:hover { color: var(--accent); }

.header-actions { margin-left: 10px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

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

.hero {
    padding: 96px 0 88px;
    text-align: center;
}

.hero .pill-badge { margin-bottom: 34px; }

.hero-title { margin-bottom: 28px; }

.hero-sub {
    max-width: 660px;
    margin: 0 auto 36px;
    font-size: 1.15rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-hint { display: block; margin-bottom: 64px; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 44px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-value small { font-size: 1.2rem; font-weight: 700; }

.stat-label { font-size: 0.9rem; color: var(--muted); }

.trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.trust-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

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

.section { padding: 110px 0; }

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-head .mono-label { display: block; margin-bottom: 16px; color: var(--accent); }

.section-head h2 { margin-bottom: 18px; }

.section-sub { color: var(--muted); font-size: 1.05rem; }

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

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ---------- Calculator ---------- */

.calc-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
}

.calc-field { margin-bottom: 34px; }

.calc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
}

.calc-slider-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.calc-output {
    min-width: 92px;
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
}

input[type="range"] {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--accent-soft);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.calc-result {
    border-left: 1px solid var(--border);
    padding-left: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.calc-total {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent);
    line-height: 1;
}

.calc-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Feature cards / dialogs ---------- */

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section .feature-card { background: var(--surface); }

.feature-num { color: var(--accent); font-size: 0.8rem; }

.feature-card p { color: var(--muted); font-size: 0.95rem; }

.dialog {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
}

.dialog-line {
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 92%;
}

.dialog-line.bot {
    background: var(--accent-soft);
    color: #8A3213;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.dialog-line.user {
    background: #F0EDE8;
    color: var(--ink);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ---------- Voice section ---------- */

.voice-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.voice-grid .mono-label { display: block; margin-bottom: 16px; color: var(--accent); }

.voice-grid h2 { margin-bottom: 18px; }

.voice-grid .section-sub { margin-bottom: 24px; }

.check-list { list-style: none; }

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--ink);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.voice-player {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.voice-player > .mono-label { color: var(--muted); }

.voice-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 56px;
}

.voice-wave span {
    width: 4px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.75;
    height: 18%;
}

.voice-wave span:nth-child(3n) { height: 65%; }
.voice-wave span:nth-child(4n) { height: 40%; }
.voice-wave span:nth-child(5n) { height: 88%; }
.voice-wave span:nth-child(7n) { height: 30%; }

.voice-player[data-playing="true"] .voice-wave span {
    animation: wave 0.9s ease-in-out infinite alternate;
}

.voice-wave span:nth-child(2n) { animation-delay: 0.15s; }
.voice-wave span:nth-child(3n) { animation-delay: 0.3s; }

@keyframes wave {
    from { transform: scaleY(0.5); }
    to { transform: scaleY(1.4); }
}

.voice-note { font-size: 0.68rem; }

/* ---------- Steps ---------- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    list-style: none;
    counter-reset: step;
}

.step-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: var(--shadow-accent);
}

.step-card h3 { margin-bottom: 8px; }

.step-card p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Results ---------- */

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.result-desc { color: var(--ink); font-size: 0.98rem; flex: 1; }

/* ---------- Industries ---------- */

.industry-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
}

.industry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.industry-card h3 { margin-bottom: 8px; }

.industry-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Pricing ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: stretch;
}

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-featured {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(242, 68, 5, 0.14);
}

.price-flag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.62rem;
    white-space: nowrap;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.price-period { color: var(--muted); font-size: 0.85rem; }

.price-features {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.price-features li {
    position: relative;
    padding-left: 22px;
    font-size: 0.85rem;
    color: var(--muted);
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Testimonials ---------- */

.quote-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-card p { color: var(--ink); font-size: 0.97rem; flex: 1; }

.quote-card footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

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

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 24px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 36px;
}

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

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p { padding: 0 0 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 56px 48px;
}

.contact-card .section-head { margin-bottom: 34px; }

.contact-card .pill-badge { margin-bottom: 22px; }

.contact-form { max-width: 560px; margin: 0 auto; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-form input[type="text"],
.contact-form input[type="tel"] {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--ink);
    width: 100%;
}

.contact-form input:focus {
    outline: 2px solid rgba(242, 68, 5, 0.35);
    border-color: var(--accent);
}

.form-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    border: 1px solid #CDE8D2;
    color: #3E7A4A;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.is-error {
    background: var(--accent-soft);
    border-color: rgba(242, 68, 5, 0.35);
    color: #8A3213;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
}

.consent input { margin-top: 3px; accent-color: var(--accent); }

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--accent);
    color: #fff;
    padding: 96px 0;
    text-align: center;
}

.cta-band h2 { margin-bottom: 14px; }

.cta-band h2 strong { font-weight: 800; }

.cta-band p {
    margin-bottom: 32px;
    font-size: 1.05rem;
    opacity: 0.92;
}

.cta-band .cta-note {
    display: block;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.75);
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 320px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

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

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .site-nav, .header-actions, .status-badge { display: none; }
    .nav-toggle { display: flex; }

    .site-nav.open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px;
    }

    .site-nav.open a { padding: 12px 0; }

    .cards-3 { grid-template-columns: 1fr; }
    .voice-grid { grid-template-columns: 1fr; gap: 40px; }
    .calc-card { grid-template-columns: 1fr; padding: 30px 24px; gap: 30px; }
    .calc-result { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 30px; }
    .hero-stats { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .contact-card { padding: 40px 24px; }
}

@media (max-width: 520px) {
    .pricing-grid, .cards-4, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
}
