/* ============================================
   Teduh main stylesheet (no build step)
   ============================================ */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 1.25rem; }
img, svg, video { max-width: 100%; display: block; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--c-primary-light); outline-offset: 2px; }

:root {
    --c-primary: #0F6E56;
    --c-primary-light: #5DCAA5;
    --c-primary-lightest: #E1F5EE;
    --c-primary-dark: #04342C;
    --c-bg: #FAFAF8;
    --c-text: #2C2C2A;
    --c-text-secondary: #5F5E5A;
    --c-border: #E8E7E2;
    --c-white: #FFFFFF;
    --c-crisis-bg: #FCEBEB;
    --c-crisis-text: #791F1F;
    --c-crisis-border: #F2C9C9;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 2px rgba(15,110,86,0.04), 0 1px 3px rgba(15,110,86,0.06);
    --shadow-md: 0 4px 12px rgba(15,110,86,0.06), 0 8px 24px rgba(15,110,86,0.04);
    --transition: 180ms ease;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--c-primary-dark);
}

/* Utilities */
.teduh-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.teduh-narrow { max-width: 720px; }
.teduh-text-center { text-align: center; }

.teduh-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.teduh-honey {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.teduh-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-primary-dark);
    color: var(--c-white);
    padding: 0.75rem 1rem;
    z-index: 1000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.teduh-skip-link:focus { left: 0; }

/* Buttons */
.teduh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    min-height: 44px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
}
.teduh-btn:hover { text-decoration: none; }
.teduh-btn-primary { background: var(--c-primary); color: var(--c-white); }
.teduh-btn-primary:hover { background: var(--c-primary-dark); color: var(--c-white); }
.teduh-btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.teduh-btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.teduh-btn[disabled], .teduh-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* Icons */
.teduh-icon { flex-shrink: 0; vertical-align: middle; }

/* Header */
.teduh-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 0.5px solid var(--c-border);
    z-index: 100;
}
.teduh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.teduh-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--c-primary-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.15rem;
    text-decoration: none;
}
.teduh-logo:hover { text-decoration: none; }
.teduh-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary-lightest);
    color: var(--c-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Nav */
.teduh-nav { display: flex; align-items: center; }
.teduh-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.teduh-nav-menu a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    color: var(--c-text);
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.teduh-nav-menu a:hover {
    background: var(--c-primary-lightest);
    color: var(--c-primary-dark);
    text-decoration: none;
}
.teduh-nav-menu a.teduh-nav-disabled {
    color: var(--c-text-secondary);
    pointer-events: none;
    opacity: 0.55;
}
.teduh-nav-menu .teduh-nav-cta {
    margin-left: 0.5rem;
    color: var(--c-white);
    background: var(--c-primary);
}
.teduh-nav-menu .teduh-nav-cta:hover { background: var(--c-primary-dark); color: var(--c-white); }
.teduh-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.4rem;
    color: var(--c-text);
    border-radius: var(--radius-sm);
}

/* Hero */
.teduh-hero {
    background: var(--c-primary-lightest);
    padding: 4.5rem 0 5rem;
    text-align: center;
}
.teduh-hero-inner { max-width: 720px; }
.teduh-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--c-white);
    color: var(--c-primary-dark);
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: var(--radius-full);
    border: 1px solid var(--c-primary-light);
    margin-bottom: 1.5rem;
}
.teduh-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.25rem;
    color: var(--c-primary-dark);
    letter-spacing: -0.01em;
}
.teduh-hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--c-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.teduh-hero-form {
    max-width: 480px;
    margin: 0 auto 1rem;
}
.teduh-hero-microcopy {
    font-size: 0.9rem;
    color: var(--c-text-secondary);
    margin: 0;
}

/* Waitlist form */
.teduh-waitlist-form {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    text-align: left;
}
.teduh-waitlist-input {
    flex: 1 1 220px;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 1.125rem;
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS zoom-on-focus */
    line-height: 1.2;
    color: var(--c-text);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.teduh-waitlist-input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(15,110,86,0.15);
}
.teduh-waitlist-input:disabled {
    background: var(--c-bg);
    color: var(--c-text-secondary);
    cursor: not-allowed;
}
.teduh-waitlist-button {
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 1.5rem;
    white-space: nowrap;
}
.teduh-waitlist-feedback {
    flex-basis: 100%;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 1.5em;
    color: var(--c-text-secondary);
}
.teduh-waitlist-feedback:empty { min-height: 0; margin: 0; }
.teduh-waitlist-feedback.is-success {
    color: var(--c-primary-dark);
    background: var(--c-white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-primary-light);
}
.teduh-waitlist-feedback.is-error {
    color: var(--c-crisis-text);
    background: var(--c-crisis-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}

/* Sections */
.teduh-section { padding: 4.5rem 0; }
.teduh-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-primary);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
}
.teduh-section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 2.5rem;
    color: var(--c-primary-dark);
}

/* Cards (problem) */
.teduh-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.teduh-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: border-color var(--transition), transform var(--transition);
}
.teduh-card:hover { border-color: var(--c-primary-light); }
.teduh-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--c-primary-lightest);
    color: var(--c-primary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}
.teduh-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--c-primary-dark);
}
.teduh-card-text {
    color: var(--c-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Steps (how it works) */
.teduh-how { background: var(--c-white); }
.teduh-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.teduh-step {
    background: var(--c-bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
}
.teduh-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--c-primary);
    color: var(--c-white);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 1rem;
}
.teduh-step-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--c-primary-dark);
}
.teduh-step-text {
    color: var(--c-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Founder */
.teduh-founder-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--c-border);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.teduh-founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.teduh-founder-text { flex: 1; }
.teduh-founder-quote p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 0.5rem;
    color: var(--c-text);
}
.teduh-founder-name {
    color: var(--c-text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

/* FAQ */
.teduh-accordion { border-top: 1px solid var(--c-border); }
.teduh-faq-item { border-bottom: 1px solid var(--c-border); }
.teduh-faq-item summary::-webkit-details-marker { display: none; }
.teduh-faq-item summary { list-style: none; }
.teduh-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--c-primary-dark);
    font-size: 1.05rem;
}
.teduh-faq-question:hover { color: var(--c-primary); }
.teduh-faq-icon {
    transition: transform var(--transition);
    color: var(--c-text-secondary);
    display: inline-flex;
    align-items: center;
}
.teduh-faq-item[open] .teduh-faq-icon { transform: rotate(180deg); }
.teduh-faq-answer { padding: 0 0 1.25rem; color: var(--c-text); }
.teduh-faq-answer p { margin: 0; }

/* Final CTA */
.teduh-cta { background: var(--c-primary-lightest); }
.teduh-cta-form {
    max-width: 480px;
    margin: 0 auto 1rem;
}
.teduh-cta-microcopy {
    font-size: 0.9rem;
    color: var(--c-text-secondary);
    margin: 0;
}

/* Crisis */
.teduh-crisis {
    background: var(--c-crisis-bg);
    border-top: 1px solid var(--c-crisis-border);
    padding: 2.5rem 0;
}
.teduh-crisis-inner { color: var(--c-crisis-text); }
.teduh-crisis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.teduh-crisis-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--c-white);
    color: var(--c-crisis-text);
    border-radius: 50%;
    flex-shrink: 0;
}
.teduh-crisis-title {
    font-size: 1.1rem;
    color: var(--c-crisis-text);
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 500;
}
.teduh-crisis-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    font-size: 1rem;
}
.teduh-crisis-list a { color: var(--c-crisis-text); text-decoration: underline; }
.teduh-crisis-disclaimer {
    font-size: 0.85rem;
    color: var(--c-crisis-text);
    opacity: 0.85;
    margin: 0;
}

/* Footer */
.teduh-footer {
    background: var(--c-white);
    border-top: 0.5px solid var(--c-border);
    padding: 3rem 0 1.5rem;
}
.teduh-footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.teduh-footer-brand .teduh-logo { margin-bottom: 0.75rem; }
.teduh-footer-tagline {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--c-primary-dark);
    margin: 0 0 0.5rem;
    font-size: 1rem;
}
.teduh-footer-desc {
    color: var(--c-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    max-width: 320px;
}
.teduh-footer-heading {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--c-primary-dark);
    margin: 0 0 0.75rem;
    font-weight: 500;
}
.teduh-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.teduh-footer-list a {
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.95rem;
}
.teduh-footer-list a:hover { color: var(--c-primary); text-decoration: underline; }
.teduh-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
    font-size: 0.85rem;
    color: var(--c-text-secondary);
    text-align: center;
}
.teduh-footer-bottom p { margin: 0; }

/* Page (legal pages, 404) */
.teduh-page {
    padding: 3rem 1.5rem 4rem;
    max-width: 720px;
}
.teduh-page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--c-primary-dark);
}
.teduh-page-content p { margin: 0 0 1.25rem; }
.teduh-404 { text-align: center; }
.teduh-404 .teduh-eyebrow { font-size: 1.25rem; }

/* Cookie banner */
.teduh-cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 560px;
    margin: 0 auto;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.25rem;
    z-index: 200;
}
.teduh-cookie-inner { display: flex; flex-direction: column; gap: 1rem; }
.teduh-cookie-message {
    margin: 0;
    font-size: 0.9rem;
    color: var(--c-text);
}
.teduh-cookie-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Tablet & mobile */
@media (max-width: 900px) {
    .teduh-cards, .teduh-steps { grid-template-columns: 1fr; gap: 1rem; }
    .teduh-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .teduh-container { padding: 0 1.25rem; }
    .teduh-nav-toggle { display: inline-flex; }
    .teduh-nav-menu {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: min(80vw, 320px);
        background: var(--c-white);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1.5rem 1.25rem;
        border-left: 1px solid var(--c-border);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99;
        box-shadow: var(--shadow-md);
    }
    .teduh-nav.is-open .teduh-nav-menu { transform: translateX(0); }
    .teduh-nav-menu a { padding: 0.75rem 1rem; font-size: 1rem; }
    .teduh-nav-menu .teduh-nav-cta { margin: 0.5rem 0 0; text-align: center; }
    .teduh-hero { padding: 2.5rem 0 3rem; }
    .teduh-section { padding: 3rem 0; }
    .teduh-hero-title { font-size: 1.95rem; line-height: 1.15; }
    .teduh-hero-subtitle { font-size: 1.02rem; margin-bottom: 1.5rem; }
    .teduh-section-title { font-size: 1.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
    .teduh-founder-card { flex-direction: column; padding: 1.5rem; gap: 1rem; }
    .teduh-crisis-list { flex-direction: column; gap: 0.4rem; }
    .teduh-crisis { padding: 2rem 0; }
    .teduh-card, .teduh-step { padding: 1.5rem 1.25rem; }
    .teduh-pill { margin-bottom: 1.25rem; padding: 0.3rem 0.85rem; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .teduh-container { padding: 0 1rem; }
    .teduh-waitlist-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .teduh-waitlist-input {
        flex: 0 0 auto;
        width: 100%;
    }
    .teduh-waitlist-button {
        flex: 0 0 auto;
        width: 100%;
        height: 48px;
    }
    .teduh-hero { padding: 2rem 0 2.5rem; }
    .teduh-hero-title { font-size: 1.75rem; }
    .teduh-hero-subtitle { font-size: 0.98rem; margin-bottom: 1.25rem; }
    .teduh-section { padding: 2.5rem 0; }
    .teduh-section-title { font-size: 1.4rem; margin-bottom: 1.25rem; }
    .teduh-eyebrow { font-size: 0.8rem; margin-bottom: 0.5rem; }
    .teduh-card-title, .teduh-step-title { font-size: 1.05rem; }
    .teduh-card-text, .teduh-step-text { font-size: 0.92rem; }
    .teduh-founder-quote p { font-size: 1rem; }
    .teduh-faq-question { font-size: 1rem; padding: 1rem 0; }
    .teduh-faq-answer { font-size: 0.94rem; padding-bottom: 1rem; }
    .teduh-crisis-title { font-size: 1rem; }
    .teduh-crisis-list { font-size: 0.95rem; }
    .teduh-cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 1rem;
    }
    .teduh-cookie-actions .teduh-btn { flex: 1; }
    .teduh-footer { padding: 2.5rem 0 1.25rem; }
    .teduh-page { padding: 2.5rem 0 3rem; }
    .teduh-page-title { font-size: 1.5rem; margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High-contrast safety net */
@media (forced-colors: active) {
    .teduh-btn-primary, .teduh-step-num { border: 1px solid CanvasText; }
}
