/* ===== EmailChat Landing Page — Design System (MobileVibe base) ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #e6a000; text-decoration: none; transition: color .2s; }
a:hover { color: #cc8c00; }
ul, ol { list-style: none; }

/* --- Utility --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: #6b7280; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
code, .code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #374151;
}

/* --- Section Spacing --- */
.section { padding: 5rem 0; }
.section--alt { background: #fafafa; }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__header p { color: #6b7280; font-size: 1.1rem; }

/* ===== Header / Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.site-logo__text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}
.site-logo__text span { color: #FFB800; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color .2s;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: #1a1a1a; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: #FFB800;
    border-radius: 1px;
}
.nav-cta {
    background: #FFB800;
    color: #1a1a1a !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(255,184,0,0.3);
}
.nav-cta:hover { background: #e6a000; color: #1a1a1a !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,184,0,0.4); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    background: #FFB800;
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.35);
}
.btn--primary:hover { background: #e6a000; color: #1a1a1a; box-shadow: 0 6px 28px rgba(255, 184, 0, 0.45); }
.btn--secondary {
    background: transparent;
    color: #1a1a1a;
    border: 1.5px solid #d1d5db;
}
.btn--secondary:hover { background: #f9fafb; color: #1a1a1a; border-color: #9ca3af; }
.btn--large { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* ===== Hero Section (generic, MobileVibe base) ===== */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdf0 0%, #ffffff 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,184,0,0.10) 0%, transparent 65%);
    pointer-events: none;
}
.hero h1 { margin-bottom: 1.25rem; color: #111827; }
.hero h1 span { color: #FFB800; }
.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* ===== Cards Grid (MobileVibe) ===== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    transition: border-color .3s, transform .2s, box-shadow .3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.card:hover {
    border-color: #FFB800;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255,184,0,0.12);
}
.card__icon {
    width: 48px; height: 48px;
    background: rgba(255, 184, 0, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}
.card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; color: #111827; }
.card__text { color: #6b7280; font-size: 0.95rem; line-height: 1.6; }

/* ===== FAQ Accordion ===== */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-item:first-child { border-top: 1px solid #e5e7eb; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    padding: 1.25rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #FFB800;
    font-weight: 300;
    transition: transform .3s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    color: #6b7280;
    line-height: 1.7;
}
.faq-answer__inner { padding-bottom: 1.25rem; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
    background: #fafafa;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-brand p { color: #9ca3af; margin-top: 0.5rem; max-width: 280px; }
.footer-links h4 { color: #6b7280; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.footer-links a { display: block; color: #9ca3af; padding: 0.25rem 0; font-size: 0.9rem; }
.footer-links a:hover { color: #FFB800; }
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { margin: 0; color: #9ca3af; }

/* ===== EmailChat-specific Section Styles ===== */

/* Hero variants */
.hero--home {
    padding-top: 5.5rem;
    text-align: left;
    background: linear-gradient(180deg, #fffdf0 0%, #ffffff 100%);
}
.hero--home::before {
    content: '';
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,184,0,0.10) 0%, transparent 65%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    margin: 0 0 1rem;
    color: #b37700;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    margin-top: 1.2rem;
    max-width: 62ch;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: #6b7280;
}

.lead.narrow {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-actions--center {
    justify-content: center;
}

.hero-note {
    margin-top: 1rem;
    max-width: 36rem;
    font-size: 0.95rem;
    color: #6b7280;
}

/* Phone / chat preview */
.hero-card {
    padding: 1.2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border-radius: 16px;
}

.phone-shell {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf0 0%, #ffffff 100%);
    min-height: 420px;
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.chat-row,
.thread-card {
    padding: 1rem;
    border-radius: 18px;
    max-width: 85%;
}

.chat-row--in {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.chat-row--out {
    background: #FFB800;
    color: #1a1a1a;
    align-self: flex-end;
}

.chat-row--out p,
.chat-row--out .chat-author {
    color: inherit;
}

.chat-author,
.thread-pill {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thread-card {
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
}

.thread-card small {
    display: block;
    margin-top: 0.4rem;
    color: #6b7280;
}

/* Section variants */
.section--tint {
    background: linear-gradient(180deg, rgba(255, 253, 240, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
}

.section-header {
    max-width: 48rem;
    margin-bottom: 2rem;
}

/* Card grids */
.card-grid,
.conversation-grid,
.steps {
    display: grid;
    gap: 1.2rem;
}

.card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--3,
.conversation-grid,
.steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* EmailChat card types */
.hero-card,
.feature-panel,
.bullet-card,
.info-card,
.conversation-card,
.step-card,
.use-case-item,
.prose-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border-radius: 16px;
}

.info-card,
.conversation-card,
.step-card,
.use-case-item,
.prose-block,
.bullet-card {
    padding: 1.4rem;
}

.info-card h3,
.conversation-card h3,
.step-card h3,
.use-case-item h2 {
    margin-bottom: 0.75rem;
}

.conversation-badge,
.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.6rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 184, 0, 0.12);
    color: #b37700;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.feature-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-panel {
    padding: 1.6rem;
}

.feature-panel__intro {
    margin-bottom: 1.2rem;
}

.use-case-list {
    display: grid;
    gap: 1rem;
}

/* CTA band */
.cta-band {
    padding: 0 0 4.5rem;
}

.cta-band__inner,
.split-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fffdf0 0%, #fff8e0 100%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Prose */
.prose-block {
    max-width: 54rem;
}

.prose-block p + p {
    margin-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .hero { padding: 4rem 0 3rem; }

    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 0; }
    .nav-links a.active::after { display: none; }
    .nav-cta { margin-top: 0.5rem; text-align: center; }

    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* EmailChat-specific grids */
    .hero-grid { grid-template-columns: 1fr; }
    .card-grid--4,
    .card-grid--3,
    .conversation-grid,
    .steps { grid-template-columns: 1fr; }
    .cta-band__inner,
    .split-band { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
    .hero { padding: 3rem 0 2rem; }
    .hero__ctas { flex-direction: column; align-items: center; }
    .hero__ctas .btn { width: 100%; justify-content: center; }
    .card { padding: 1.5rem; }
}
