:root {
    --forest: #1B3022;
    --cream: #F9F7F2;
    --clay: #A45C40;
    --slate: #4A4E51;
    --border: rgba(27, 48, 34, 0.1);
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--forest);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav (Absolute to sit over Full Hero) */
nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 30px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-links {
    font-style: italic;
    color: var(--slate);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* HERO - FULL SCREEN */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clay);
    display: block;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.4rem, 9vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

h1 .accent {
    color: var(--clay);
    font-style: italic;
    font-weight: 400;
}

.hero-subline {
    font-size: clamp(1rem, 4vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto 40px auto;
    color: var(--slate);
}

/* Waitlist UI */
.waitlist-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    form {
        flex-direction: row;
        background: white;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid var(--border);
    }
}

input[type="email"] {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    flex: 1;
}

@media (min-width: 768px) {
    input[type="email"] {
        border: none;
    }
}

.btn-primary {
    background: var(--forest);
    color: white;
    border: none;
    padding: 18px 28px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #26422f;
}

.form-note {
    font-size: 0.85rem;
    margin-top: 15px;
    color: var(--slate);
}

/* CONTENT SECTIONS */
.thesis-preview {
    padding: 80px 0;
    background-color: #F1EEE6;
}

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

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.the-system {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .system-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.system-item {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.system-item h4 {
    color: var(--clay);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* FOOTER */
footer {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--slate);
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Mobile Nav Stack */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- CONVERTKIT REPAIR SHOP --- */
/* Consolidated into SURGICAL REPAIR section below */

/* --- CONVERTKIT SURGICAL REPAIR --- */

/* 1. Force the main container to be invisible and centered */
.formkit-form[data-uid="483c61343c"],
.formkit-form[data-uid="483c61343c"] [data-style="clean"] {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 600px !important;
    width: 100% !important;
}

/* 2. Desktop: Make the email and button sit on one line perfectly */
@media (min-width: 768px) {
    .formkit-fields {
        display: flex !important;
        flex-direction: row !important;
        background: white !important;
        padding: 6px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(27, 48, 34, 0.1) !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .formkit-field {
        flex: 1 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .formkit-input {
        border: none !important;
        padding: 16px 18px !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        font-size: 16px !important;
    }

    .formkit-submit {
        margin: 0 !important;
        padding: 16px 32px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
        height: auto !important;
    }
}

/* 3. Mobile: Stack them with a clear gap */
@media (max-width: 767px) {
    .formkit-fields {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
    }

    .formkit-field {
        width: 100% !important;
        margin: 0 !important;
    }

    .formkit-input {
        background: white !important;
        border: 1px solid rgba(27, 48, 34, 0.1) !important;
        padding: 18px !important;
        border-radius: 8px !important;
        width: 100% !important;
        font-size: 16px !important;
        color: var(--forest) !important;
    }

    .formkit-input::placeholder {
        color: rgba(74, 78, 81, 0.5) !important;
    }

    .formkit-submit {
        width: 100% !important;
        padding: 18px !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
}

/* 4. Brand styling for the button */
.formkit-submit {
    background-color: #A45C40 !important;
    color: white !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
    font-size: 16px !important;
}

.formkit-submit:hover {
    background-color: #8a4d35 !important;
    transform: translateY(-1px);
}

/* 5. Clean up ConvertKit's branding */
.formkit-powered-by-convertkit-container {
    display: none !important;
}