/* Stay Bright: hand-drawn visual variant (exploratory preview, 2026-10-25).
   Layered on top of styles.css. Copy, structure and form behaviour unchanged. */

@font-face {
    font-family: "Caveat";
    src: url("/hd/fonts/caveat-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --color-primary: #24503f;
    --color-primary-hover: #1b3d30;
    --color-text: #1f2321;
    --color-text-secondary: #3e4541;
    --color-background: #fdfcf9;
    --color-background-alt: #eef4ef;
    --color-border: #cfd8d1;
    --color-coral: #e0603f;
    --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .022 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --sketch-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%2324503f' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='2' d='M2.5 3.5Q30 1.6 60 2.6T97.6 2.8Q98.8 30 97.9 60T97.2 97.1Q70 98.6 40 97.6T2.6 97.4Q1.4 70 2.2 40T2.5 3.5Z'/%3E%3Cpath vector-effect='non-scaling-stroke' stroke-width='1' stroke-opacity='.45' d='M3.6 2.4Q35 3.4 65 2.2T96.4 4Q97.6 35 98.4 65T96 98.2Q65 97.2 35 98.6T1.8 96.2Q2.8 65 1.6 35T3.6 2.4Z'/%3E%3C/g%3E%3C/svg%3E");
    --wavy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M6 12C60 5 112 19 172 11s118-7 178 1 120 9 180 1 52-1 64 0' stroke='%2324503f' stroke-width='2.4'/%3E%3Cpath d='M14 14c52-6 104 6 160-1s116-6 176 2 122 6 182-1 38 0 56-1' stroke='%23e0603f' stroke-width='1.4' stroke-opacity='.8'/%3E%3C/g%3E%3C/svg%3E");
    --underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23e0603f' stroke-linecap='round'%3E%3Cpath d='M4 13C46 6 98 9 140 8s56-1 76 1' stroke-width='5'/%3E%3Cpath d='M18 18c40-5 92-6 132-5s40 1 52 2' stroke-width='3' stroke-opacity='.7'/%3E%3C/g%3E%3C/svg%3E");
}

body {
    background-color: var(--color-background);
    background-image: var(--grain);
    font-size: 18px;
}

/* ---------- Hero ---------- */
.hd-hero { text-align: left; padding: 2.5rem 0 2rem; }
.hd-hero-grid {
    max-width: 76rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
.hd-hero-copy { text-align: center; }

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-hand);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    letter-spacing: 0;
}
.hd-sun { width: 2.6rem; height: 2.6rem; flex: none; }

h1 { color: var(--color-text); }
.hd-underline {
    position: relative;
    white-space: nowrap;
    padding-bottom: 0.08em;
    background-image: var(--underline);
    background-repeat: no-repeat;
    background-size: 100% 0.32em;
    background-position: 0 100%;
}

.subhead { color: var(--color-text-secondary); }
.hd-explain {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0 0 1.25rem;
}
.join-waitlist {
    display: none;
    width: 100%;
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 12px;
    min-height: 56px;
    cursor: pointer;
    box-shadow: 3px 4px 0 #f0a58f;
}
.join-waitlist:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (max-width: 959px) {
    html.js .join-waitlist { display: block; }
    html.js #email-request:not(.is-open) #waitlist-form { display: none; }
    html.js #email-request.is-open .join-waitlist { display: none; }
}

.hd-hero-art { margin: 0; }
.hd-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

/* ---------- Form: core UI stays clean ---------- */
.form-label { font-size: 1.125rem; font-weight: 600; }
input[type="email"] {
    font-size: 1.125rem;
    background: #ffffff;
    border: 2px solid #5f6a64;
    border-radius: 12px;
    min-height: 56px;
}
input[type="email"]::placeholder { color: #4f5752; opacity: 1; }
input[type="email"]:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(42, 84, 68, 0.18); }
.cta-button {
    font-size: 1.125rem;
    min-height: 56px;
    border-radius: 12px;
    background: var(--color-primary);
    box-shadow: 3px 4px 0 #f0a58f;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
}
.cta-button:hover { background: var(--color-primary-hover); }
.cta-button:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #f0a58f; }
.microcopy, .form-legal-links { font-size: 1.125rem; color: var(--color-text-secondary); }
.form-legal-links a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.form-message.success { color: #1f4135; background: #e6efe8; border-color: #9fbcac; }
.form-message.error { color: #7a281d; background: #f8e6e1; border-color: #d9a296; }

/* ---------- Doodle divider ---------- */
.hd-divider {
    height: 24px;
    max-width: 36rem;
    margin: 0 auto;
    background: var(--wavy) center / contain no-repeat;
}

/* ---------- What you get ---------- */
.what-you-get { background: transparent; padding: 3rem 0 3.5rem; }
.what-you-get .container { max-width: 72rem; }
.what-you-get h2, .who-its-for h2 {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--color-primary);
}
.feature-list {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.feature-list li {
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    line-height: 1.55;
    background: var(--sketch-box) 0 0 / 100% 100% no-repeat;
    border-radius: 6px;
}
.feature-list li::before { content: none; }
.feature-list li img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* ---------- Who it's for ---------- */
.who-its-for { padding: 3rem 0 3.5rem; }
.hd-who-grid { max-width: 68rem; display: grid; gap: 1.5rem; }
.hd-who-copy { order: -1; }
.who-its-for p { font-size: 1.25rem; color: var(--color-text-secondary); }
.hd-who-art { margin: 0; }
.hd-who-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.hd-who-cta { order: 1; }
.hd-join-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 1.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--color-primary);
    border-radius: 12px;
    box-shadow: 3px 4px 0 #f0a58f;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
}
.hd-join-bottom:hover { background: var(--color-primary-hover); color: #fff; }
.hd-join-bottom:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #f0a58f; }
.hd-join-bottom:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
#email-request { scroll-margin: 1.5rem; }

/* ---------- Trust + footer ---------- */
.trust-section {
    background: var(--color-background-alt);
    border-top: 0;
    position: relative;
}
.trust-section::before, footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -6px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6C150 2 300 10 450 5s300-4 450 2 225 2 300-1' fill='none' stroke='%2363706a' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.trust-content, .footer-tagline, .footer-nav, .footer-company { font-size: 1.125rem; color: var(--color-text-secondary); }
.trust-content a, .footer-nav a { color: var(--color-primary); }
.footer-nav a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42, 84, 68, 0.4); }
.separator { color: #5f6a64; }
footer { position: relative; border-top: 0; background: transparent; }

/* Legal pages share the paper look */
.legal-wordmark { font-family: var(--font-hand); font-size: 2rem; font-weight: 700; }
.legal-header { background: transparent; }
.legal-content p, .legal-content ul, .legal-content td { color: var(--color-text-secondary); }
.legal-content table { font-size: 1.125rem; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
    .feature-list li { grid-template-columns: 9rem 1fr; padding: 1.5rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
    .hd-hero { padding: 3rem 0 2.5rem; }
    .hd-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 3rem;
    }
    .hd-hero-copy { text-align: left; }
    .hd-hero-copy .subhead { margin-left: 0; }
    .hd-hero-copy .cta-form { margin-left: 0; }
    .hd-hero-copy .microcopy, .hd-hero-copy .form-legal-links { text-align: left; }
    h1 { font-size: 3.6rem; }

    .feature-list { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
    .feature-list li {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 1.5rem 1.75rem 2rem;
        align-content: start;
    }
    .feature-list li img { width: 12rem; }

    .hd-who-grid {
        grid-template-columns: 1.15fr 1fr;
        grid-template-areas: "art copy" "art cta";
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 3rem;
        row-gap: 1.75rem;
    }
    .hd-who-art { grid-area: art; }
    .hd-who-copy { grid-area: copy; order: 0; text-align: left; align-self: end; }
    .hd-who-cta { grid-area: cta; order: 0; align-self: start; text-align: left; }
    .hd-join-bottom { display: inline-flex; width: auto; }
    .who-its-for p { margin: 0; }
    .what-you-get h2, .who-its-for h2 { font-size: 3.25rem; }
}

@media (min-width: 1200px) {
    h1 { font-size: 4rem; }
}

@media (prefers-contrast: more) {
    body { background-image: none; }
}

/* v2: crisper art frames */
.hd-hero-art img, .hd-who-art img { border-radius: 28px 22px 30px 20px; mix-blend-mode: normal; }
.hd-hero-objects .hd-hero-art img { border-radius: 0; mix-blend-mode: multiply; }
.wordmark .hd-sun path:first-child { fill: #f4c84a; }
