/* =====================
   THEME VARIABLES
   ===================== */

:root {
    --bg: #ffffff;
    --bg-alt: #f2faf4;
    --text: #1c1c1e;
    --text-soft: #55555c;
    --card: #ffffff;
    --border: #dfe3e8;

    --green: #34c759;
    --green-deep: #1d7a3a;
    --green-soft: #dcfce7;
    --blue: #0a84ff;

    --radius: 18px;
    --shadow: 0 10px 30px rgba(20, 60, 30, 0.08);
}

[data-theme="dark"] {
    --bg: #101214;
    --bg-alt: #16211a;
    --text: #e9e9ec;
    --text-soft: #a2a2ab;
    --card: #1b1f22;
    --border: #2c3236;

    --green: #30d158;
    --green-deep: #7ce89d;
    --green-soft: #1e3527;
    --blue: #409cff;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* =====================
   GLOBAL
   ===================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-soft); }

.section { padding: 72px 0; }
.section.alt { background-color: var(--bg-alt); }
.section-sub {
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 2rem;
}
.center .section-sub { margin-left: auto; margin-right: auto; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--card);
    padding: 8px 16px;
    z-index: 100;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
}
.brand img { border-radius: 8px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
}
.nav-links a:hover { background: var(--bg-alt); }
.nav-links a.btn { color: #fff; }

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    padding: 6px 10px;
    cursor: pointer;
}

.nav-toggle-box { display: none; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
    }
    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--text);
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-bottom: 12px;
    }
    .nav-toggle-box:checked ~ .nav-links { display: flex; }

    .nav-simple .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        padding-bottom: 0;
    }
}

/* =====================
   BUTTONS
   ===================== */

.btn {
    display: inline-block;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-primary {
    background: var(--green);
    color: #fff;
}
.btn-primary:hover { filter: brightness(1.06); }

.review-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--green) 15%, transparent);
    color: var(--green-deep);
    border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.cta-row .review-badge { display: block; width: fit-content; }
.center .review-badge { margin-left: auto; margin-right: auto; display: block; width: fit-content; }

.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge svg { border-radius: 12px; box-shadow: var(--shadow); }
.appstore-badge:hover svg { transform: translateY(-1px); }

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

.hero {
    padding: 72px 0 80px;
    background:
        radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, var(--green) 16%, transparent), transparent),
        radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--blue) 10%, transparent), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

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

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 0.75em;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 520px;
}

.cta-row { margin-top: 1.5rem; }
.cta-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* Chat demo */

.chat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    max-width: 420px;
    margin: 0 auto;
}

.chat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.chat-arrow {
    text-align: center;
    color: var(--green-deep);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 10px 0;
}

.bubble {
    border-radius: 18px;
    padding: 12px 16px;
    margin: 0 0 4px;
    font-size: 0.98rem;
    line-height: 1.45;
}
.bubble.small { font-size: 0.88rem; padding: 10px 14px; }

.bubble-gray {
    background: #e9e9eb;
    color: #1c1c1e;
    border-bottom-left-radius: 6px;
    margin-right: 24px;
}
[data-theme="dark"] .bubble-gray {
    background: #3a3a3c;
    color: #f2f2f7;
}

.bubble-green {
    background: var(--green);
    color: #fff;
    border-bottom-right-radius: 6px;
    margin-left: 24px;
}

/* =====================
   STEPS
   ===================== */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

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

.steps li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

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

/* =====================
   CARDS / GRIDS
   ===================== */

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

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

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

.usecase .bubble { display: block; }

/* =====================
   SCREENSHOTS
   ===================== */

.shots {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.shots figure {
    flex: 0 0 auto;
    width: min(260px, 70vw);
    margin: 0;
    scroll-snap-align: center;
    text-align: center;
}

.shots img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.shots figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 380px));
    gap: 24px;
    justify-content: center;
}

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

.price-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    position: relative;
}

.price-card.featured {
    border: 2px solid var(--green);
    box-shadow: var(--shadow);
}

.price-card .badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    margin: 0;
}

.price {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0.25em 0 0.5em;
}

.price-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-soft);
}
.price-card li { padding: 6px 0; }

.price-note {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 1em;
    margin-bottom: 0;
}

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

details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    outline-offset: 4px;
}

details[open] summary { margin-bottom: 8px; }
details p:last-child { margin-bottom: 0; }

/* =====================
   EMAIL FORM
   ===================== */

.email-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 460px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    min-width: 0;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
}

.email-form input::placeholder { color: #8e8e93; }

@media (max-width: 480px) {
    .email-form { flex-direction: column; }
}

.contact-form { display: flex; flex-direction: column; gap: 8px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; }
.contact-form input,
.contact-form textarea {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 8px;
}
.contact-form button { align-self: flex-start; }

/* =====================
   GUIDES
   ===================== */

.guide h2 { margin-top: 1.6em; }

.example-pair {
    margin: 14px 0;
    max-width: 560px;
}
.example-pair .bubble { display: block; }

.cta-box { margin-top: 2.5rem; }
.cta-box h2 { margin-top: 0; font-size: 1.2rem; }
.cta-box p:last-child { margin-bottom: 0; }

.cta-app {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.cta-app img { border-radius: 14px; flex-shrink: 0; }
.cta-app p { margin-bottom: 0; }

.cta-pricing {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}
.cta-pricing li {
    padding: 4px 0 4px 24px;
    position: relative;
}
.cta-pricing li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.guide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
@media (max-width: 700px) {
    .guide-list { grid-template-columns: 1fr; }
}
.guide-card {
    display: block;
    text-decoration: none;
    color: var(--text);
}
.guide-card h2 { font-size: 1.05rem; margin: 0 0 0.4em; }
.guide-card p { color: var(--text-soft); font-size: 0.9rem; margin: 0; }
.guide-card:hover { border-color: var(--green); }

.guide table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.92rem;
}
.guide th, .guide td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.guide th { background: var(--bg-alt); }

.state-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    columns: 3;
    column-gap: 24px;
}
@media (max-width: 700px) {
    .state-list { columns: 2; }
}
.state-list li { padding: 4px 0; break-inside: avoid; }
.state-list a { text-decoration: none; }
.state-list a:hover { text-decoration: underline; }

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

.cta-final {
    background:
        radial-gradient(800px 400px at 50% 120%, color-mix(in srgb, var(--green) 18%, transparent), transparent);
}

.cta-final img { border-radius: 28px; margin-bottom: 1rem; }

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

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.brand-line { font-weight: 700; margin-bottom: 4px; }

.site-footer nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer nav a {
    color: var(--text);
    text-decoration: none;
}
.site-footer nav a:hover { text-decoration: underline; }

.copyright {
    text-align: center;
    font-size: 0.8rem;
    margin: 24px 20px 0;
}
