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

:root {
    --green-800: #365314;
    --green-700: #3F6212;
    --green-600: #4D7C0F;
    --green-500: #65A30D;
    --green-100: #ECFCCB;
    --green-50: #F7FEE7;
    --stone-900: #1C1917;
    --stone-700: #44403C;
    --stone-600: #57534E;
    --stone-500: #78716C;
    --stone-400: #A8A29E;
    --stone-300: #D6D3D1;
    --stone-200: #E7E5E4;
    --stone-100: #F5F5F4;
    --stone-50: #FAFAF9;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FFFFFF;
    color: var(--stone-900);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── SKIP LINK ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--green-700);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 200;
    text-decoration: none;
}
.skip-link:focus {
    top: 0.5rem;
}

/* ── FOCUS STYLES ── */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--green-600);
    outline-offset: 2px;
}

/* ── LAYOUT ── */
.page-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── HEADER ── */
.site-header {
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wordmark {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--stone-900);
    letter-spacing: -0.04em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.site-logo {
    height: 2.4rem;
    width: auto;
    margin-right: 0.15rem;
}
.wordmark span { color: var(--green-600); letter-spacing: -0.06em; margin-left: -0.15em; }

.header-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 0.25em 0.7em;
    border-radius: 20px;
}

/* ── HERO ── */
.hero {
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--stone-200);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--stone-900);
    margin-bottom: 1.25rem;
    max-width: 460px;
}

.hero-copy > p {
    font-size: 1.1rem;
    color: var(--stone-600);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 1.5rem;
}

/* ── FORM CARD ── */
.form-card {
    background: #FFFFFF;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 6px 20px rgba(0,0,0,0.05);
}

.form-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--stone-700);
    margin-bottom: 0.4rem;
}

.form-group select,
.form-group input[type="email"] {
    width: 100%;
    height: 46px;
    padding: 0 0.9rem;
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--stone-900);
    background: #FFFFFF;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(101,163,13,0.1);
}

.form-group .hint {
    font-size: 0.73rem;
    color: var(--stone-600);
    margin-top: 0.3rem;
}

.watcher-count {
    font-size: 0.8rem;
    color: var(--green-700);
    font-weight: 600;
    margin-top: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Segmented controls */
.segment-group {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.seg-btn {
    height: 38px;
    padding: 0 0.9rem;
    border: 1.5px solid var(--stone-300);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--stone-700);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.seg-btn:hover:not(:disabled) {
    border-color: var(--green-500);
    background: var(--green-50);
}
.seg-btn.active {
    border-color: var(--green-500);
    background: var(--green-50);
    color: var(--green-800);
    font-weight: 700;
    box-shadow: 0 0 0 1px var(--green-500);
}
.seg-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Toggle checkbox */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--stone-600);
    cursor: pointer;
    margin-top: 0.5rem;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--green-600);
    cursor: pointer;
    flex-shrink: 0;
}

/* CTA button */
.btn-cta {
    width: 100%;
    height: 48px;
    background: var(--green-700);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s;
}
.btn-cta:hover { background: var(--green-800); }
.btn-cta:disabled { cursor: not-allowed; }
.btn-cta:disabled:not(.progress-active) { background: var(--stone-300); opacity: 0.7; }

/* Secondary back/link button */
.btn-back {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    background: var(--stone-100);
    color: var(--stone-700);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-back:hover { background: var(--stone-200); }

/* Progress bar state */
.btn-cta.progress-active {
    position: relative;
    overflow: hidden;
    background: var(--stone-300);
    color: white;
    --progress: 0%;
}
.btn-cta.progress-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: var(--green-700);
    transition: width 0.15s ease-out;
    border-radius: inherit;
}
.btn-cta.progress-active #btnText {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.form-note {
    font-size: 0.72rem;
    color: var(--stone-600);
    margin-top: 0.6rem;
    line-height: 1.6;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result box */
.result-box {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.6;
}
.result-box.slots-found {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-700);
}
.result-box.watch-created {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #78350F;
}
.result-box a { color: var(--green-600); font-weight: 600; }
.result-box ul { margin: 0.5rem 0 0.5rem 1.2rem; padding: 0; }

/* Toast */
.toast-msg {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--stone-900);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.toast-msg.show { opacity: 1; }

/* ── LOWER SECTIONS ── */
.content-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.content-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 0.8rem;
}

.content-section p {
    font-size: 0.88rem;
    color: var(--stone-600);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.content-section a { color: var(--green-600); }

/* FAQ */
.faq-section {
    border-top: 1px solid var(--stone-200);
}

.faq { margin: 0; }

.faq dt {
    font-weight: 600;
    color: var(--stone-900);
    font-size: 0.88rem;
    margin-top: 1rem;
}
.faq dt:first-child { margin-top: 0; }

.faq dd {
    margin: 0.15rem 0 0;
    color: var(--stone-600);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* Privacy */
.privacy-section {
    border-top: 1px solid var(--stone-200);
}

/* ── FOOTER ── */
.site-footer {
    padding: 1.25rem 1.5rem 2rem;
    text-align: center;
}

.site-footer p {
    font-size: 0.72rem;
    color: var(--stone-600);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.site-footer a { color: var(--stone-600); }

/* Unsubscribe/reconfirm pages */
.unsub-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--stone-200);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 6px 20px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 480px;
    margin: 3rem auto;
}

.unsub-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-unsub {
    display: block;
    height: 44px;
    line-height: 44px;
    background: white;
    color: var(--stone-600);
    border: 1px solid var(--stone-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.btn-unsub:hover { border-color: var(--stone-400); }

.btn-notify {
    display: block;
    height: 44px;
    line-height: 44px;
    background: var(--green-700);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.btn-notify:hover { background: var(--green-800); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .page-wrap { padding: 0 1.25rem; }
    .hero { padding: 1.5rem 0 2rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-copy h1 { font-size: 2rem; }
    .hero-copy > p { font-size: 1rem; }
    .form-card { padding: 1.5rem; }
    .content-section { padding: 2rem 1.25rem; }
    .privacy-callout { padding: 1.25rem; }
}
