/* Six Hands DailyCare landing page
   ------------------------------------------------------------------
   The printed trifold, continued on screen: cream paper, lavender
   washes, sage watercolor leaves, deep navy headlines with violet
   emphasis and a short violet underline bar. Fira Sans throughout.
   ------------------------------------------------------------------ */

@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/fira-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/fira-sans-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/fira-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/fira-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/fira-sans-800.woff2') format('woff2'); }

:root {
    /* Paper */
    --cream: #FCF9F4;
    --cream-deep: #F5EFE5;
    --card: #FFFDF9;
    /* Ink: navy from the flyer headlines; body is the same hue, softened */
    --navy: #0B1347;
    --ink: #22284A;
    --ink-soft: #4B5072;
    /* Violet emphasis + underline bar */
    --violet: #7824F3;
    --violet-deep: #5A14C7;
    --violet-wash: #F3EDFD;
    /* Lavender panels */
    --lav: #EEE8F7;
    --lav-deep: #E2D8F4;
    --lav-line: #D3C8EA;
    /* Sage (leaves, step two) */
    --sage: #7E8C73;
    --sage-pale: #E5ECDF;
    /* States */
    --error: #B42318;
    --error-wash: #FDF1EF;

    --font: 'Fira Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 12px;
    --gutter: clamp(16px, 5vw, 48px);
    --shadow-card: 0 1px 2px rgba(11, 19, 71, 0.06), 0 18px 40px -20px rgba(11, 19, 71, 0.28);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset + browser surfaces ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; scrollbar-color: var(--lav-line) var(--cream); }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    caret-color: var(--violet);
    accent-color: var(--violet);
}
::selection { background: #DCCBFB; color: var(--navy); }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
    font-weight: 600; text-decoration: none;
}
.skip-link:focus, .skip-link:hover { top: 12px; color: #fff; }

/* ── Type ─────────────────────────────────────────────────────────── */
.display {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
    font-size: clamp(2.5rem, 7.2vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.emph { color: var(--violet); position: relative; white-space: nowrap; }
.sparks {
    position: absolute; right: -0.62em; top: 0.08em;
    width: 0.5em; height: 0.5em;
    fill: none; stroke: var(--violet); stroke-width: 4; stroke-linecap: round;
}
.headline {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
    font-size: clamp(1.85rem, 4.4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.rule {
    display: block;
    width: 72px; height: 6px; margin-top: 0.4em;
    border-radius: 3px;
    background: var(--violet);
    transform-origin: left center;
}
.lede {
    margin: 1.1rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.15rem, 2.2vw, 1.3rem);
    line-height: 1.5;
    color: var(--ink);
}

/* ── Masthead ─────────────────────────────────────────────────────── */
.masthead { position: relative; z-index: 2; padding: 20px var(--gutter) 0; max-width: 76rem; margin: 0 auto; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); border-radius: 10px; }
.lockup img { width: 52px; height: 52px; }
.lockup-text { display: flex; flex-direction: column; line-height: 1; }
.lockup-small { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.01em; }
.lockup-large { font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; margin-top: 1px; }

/* ── Leaves (art cut from the flyer) ──────────────────────────────── */
.leaf { position: absolute; pointer-events: none; user-select: none; z-index: 0; height: auto; }
.leaf--hero { width: clamp(96px, 20vw, 270px); top: -64px; right: -28px; transform: rotate(-8deg); opacity: 0.75; }
.leaf--survey { width: clamp(180px, 26vw, 380px); left: 0; bottom: 0; }
.leaf--footer { width: 150px; right: 2%; bottom: -10px; transform: scaleX(-1) rotate(-6deg); opacity: 0.85; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    max-width: 76rem;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 64px) var(--gutter) clamp(56px, 8vw, 96px);
    display: grid;
    gap: clamp(24px, 4vw, 40px);
}
.hero::before {
    /* lavender wash, the flyer's soft blob */
    content: '';
    position: absolute; z-index: -1;
    width: min(70vw, 620px); aspect-ratio: 1.15;
    right: -14vw; top: -120px;
    background: var(--lav);
    border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
}
.hero-copy, .video-card, .thanks-note { position: relative; z-index: 1; }

.video-card { margin: 0; }
.video-frame {
    border-radius: var(--radius);
    overflow: hidden;
    background: #F7F4EE;
    box-shadow: var(--shadow-card);
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #F7F4EE; }

/* PHONE_VIDEO: below 700px the vertical 9:16 cut plays (see index.html).
   Sized to fill most of the screen while leaving the skip link in reach. */
@media (max-width: 699px) {
    .video-frame {
        width: min(100%, calc(78svh * 9 / 16));
        margin: 0 auto;
    }
    .video-frame video { aspect-ratio: 9 / 16; }
}
.video-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 20px;
    margin-top: 12px;
    font-size: 0.98rem; color: var(--ink-soft);
}
.skip-cta {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 0 20px;
    border-radius: 999px;
    background: var(--card);
    border: 1.5px solid var(--lav-line);
    color: var(--violet-deep);
    font-weight: 700; font-size: 1.02rem;
    text-decoration: none;
    transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.skip-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--ease-out); }
.skip-cta:hover { background: var(--violet-wash); border-color: var(--violet); color: var(--violet-deep); }
.skip-cta:hover svg { transform: translateY(2px); }

.thanks-note {
    display: flex; gap: 16px; align-items: flex-start;
    margin: 0;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--lav);
    color: var(--navy);
}
.thanks-note p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.thanks-note strong { color: var(--violet-deep); font-weight: 700; }
.thanks-icon { flex: none; width: 36px; height: 36px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linejoin: round; }

@media (min-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
        grid-template-areas: "copy video" "thanks video";
        align-items: start;
        column-gap: clamp(40px, 5vw, 72px);
        row-gap: 32px;
    }
    .hero-copy { grid-area: copy; padding-top: 12px; }
    .display { font-size: clamp(3.25rem, 4.6vw, 4.5rem); }
    .video-card { grid-area: video; margin-top: 24px; }
    .thanks-note { grid-area: thanks; align-self: end; }
    .leaf--hero { right: auto; left: 37%; top: -36px; width: 200px; transform: rotate(14deg); opacity: 0.9; }
}

/* ── Survey band ──────────────────────────────────────────────────── */
.survey-band {
    position: relative;
    background: var(--lav);
    padding: clamp(56px, 9vw, 112px) var(--gutter) clamp(72px, 10vw, 128px);
    overflow: hidden;
    outline: none;
}
.survey-band::before {
    /* the flyer's rolling hill: lavender swells up into the cream above */
    content: '';
    position: absolute; z-index: 0;
    left: -15%; right: -25%;
    top: calc(clamp(36px, 6vw, 80px) * -1);
    height: calc(clamp(36px, 6vw, 80px) * 2);
    background: var(--lav);
    border-radius: 50%;
}
.survey-band { overflow: visible; }
.survey-shell { position: relative; z-index: 1; max-width: 44rem; margin: 0 auto; }
.survey-head { margin-bottom: 28px; }
.survey-sub { margin: 14px 0 0; color: var(--ink-soft); font-size: 1.08rem; }

.wizard {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: clamp(22px, 5vw, 44px);
}
.progress { height: 6px; border-radius: 3px; background: var(--lav-deep); overflow: hidden; }
.progress-fill {
    display: block; height: 100%;
    background: var(--violet);
    border-radius: 3px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 600ms var(--ease-out);
}
.step-count { margin: 12px 0 0; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.step { animation: step-in 420ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-title {
    margin: 22px 0 0;
    color: var(--navy);
    font-size: clamp(1.45rem, 3.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    outline: none;
}
.step-intro { margin: 8px 0 0; color: var(--ink-soft); }

.q { border: 0; padding: 0; margin: 30px 0 0; min-width: 0; }
.q-label { display: block; padding: 0; color: var(--navy); font-weight: 700; font-size: 1.12rem; line-height: 1.35; }
.q-optional { color: var(--ink-soft); font-weight: 400; }
.q-hint { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.98rem; }
.q-error { margin: 10px 0 0; color: var(--error); font-weight: 500; font-size: 0.98rem; }

.choices { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) {
    fieldset.q:has(input[type="checkbox"]) .choices:not(.choices--chips) { grid-template-columns: 1fr 1fr; }
}
.choice {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1.5px solid var(--lav-line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    line-height: 1.3;
    transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.choice:hover { border-color: #B9A7E6; background: #FDFBFF; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice-mark {
    flex: none;
    width: 24px; height: 24px;
    border: 2px solid #A99AD3;
    border-radius: 50%;
    background: #fff center / 14px no-repeat;
    transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.choice input[type="checkbox"] + .choice-mark { border-radius: 7px; }
.choice:has(input:checked) { border-color: var(--violet); background: var(--violet-wash); color: var(--navy); }
.choice input:checked + .choice-mark {
    border-color: var(--violet);
    background-color: var(--violet);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choice input[type="radio"]:checked + .choice-mark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.6' fill='%23fff'/%3E%3C/svg%3E");
}
.choice:has(input:focus-visible) { outline: 3px solid var(--violet); outline-offset: 2px; }
.choice-text { font-size: 1.06rem; }

.choices--chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choices--chips .choice { min-height: 48px; padding: 8px 16px 8px 12px; border-radius: 999px; gap: 10px; }
.choices--chips .choice-mark { width: 20px; height: 20px; background-size: 12px; }
.choices--chips .choice-text { font-size: 1rem; }
.step .q:has(.choices--chips) { margin-top: 22px; }
.step .q:has(.choices--chips) .q-label { font-size: 1.02rem; }

.q.is-invalid .choice { border-color: #E4A49C; }
.q.is-invalid input[type="text"], .q.is-invalid textarea { border-color: var(--error); background: var(--error-wash); }

.q input[type="text"], .q textarea {
    display: block; width: 100%;
    margin-top: 10px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1.5px solid var(--lav-line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--navy);
    font: inherit; font-size: 1.08rem;
    transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.q textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.q input[type="text"]::placeholder, .q textarea::placeholder { color: #75799A; }
.q input[type="text"]:focus, .q textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(120, 36, 243, 0.22); }
.other input[type="text"] { margin-top: 12px; }

.wizard-nav { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--lav-deep); }
.btn {
    min-height: 54px; padding: 0 28px;
    border-radius: 999px; border: 0;
    font: inherit; font-weight: 700; font-size: 1.08rem;
    cursor: pointer;
    transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn--primary {
    margin-left: auto;
    background: var(--violet); color: #fff;
    box-shadow: 0 8px 18px -10px rgba(90, 20, 199, 0.75);
}
.btn--primary:hover { background: var(--violet-deep); }
.btn--primary:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--navy); padding: 0 16px; }
.btn--quiet:hover { background: var(--lav); }
.btn:disabled { cursor: progress; opacity: 0.75; }
.form-error { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--error-wash); color: var(--error); font-weight: 500; }
.form-error a { color: var(--error); }

/* Signature moment: when the video ends, the survey's bar draws in and the card settles */
.survey-band.is-lit .survey-head .rule { animation: rule-draw 900ms var(--ease-out) both; }
.survey-band.is-lit .wizard { animation: card-settle 900ms var(--ease-out) both; }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes card-settle {
    from { transform: translateY(18px); box-shadow: 0 1px 2px rgba(11, 19, 71, 0.04), 0 4px 10px -6px rgba(11, 19, 71, 0.15); }
    to { transform: none; box-shadow: var(--shadow-card); }
}

.done {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: clamp(14px, 3vw, 20px) clamp(14px, 3vw, 20px) clamp(28px, 5vw, 40px);
    outline: none;
    animation: step-in 600ms var(--ease-out);
}
.done-photo { width: 100%; height: auto; aspect-ratio: 876 / 640; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-sm); margin-bottom: 28px; }
.done .headline, .done p { padding: 0 clamp(8px, 3vw, 24px); }
.done-body { margin: 16px 0 0; font-size: 1.2rem; color: var(--navy); }
.done-fine { margin: 10px 0 0; color: var(--ink-soft); }
.noscript { background: var(--card); padding: 24px; border-radius: var(--radius); }

/* ── How it works ─────────────────────────────────────────────────── */
.how {
    max-width: 76rem; margin: 0 auto;
    padding: clamp(64px, 10vw, 128px) var(--gutter);
    display: grid; gap: clamp(40px, 6vw, 72px);
    align-items: center;
}
.how-steps { list-style: none; margin: 36px 0 0; padding: 0; position: relative; }
.how-steps::before {
    content: ''; position: absolute; left: 17px; top: 40px; bottom: 40px;
    border-left: 2px dashed #B9A7E6;
}
.how-steps li {
    position: relative;
    display: grid; grid-template-columns: 36px clamp(96px, 22vw, 132px) 1fr;
    align-items: center; gap: clamp(14px, 3vw, 24px);
}
.how-steps li + li { margin-top: 18px; }
.how-num {
    grid-column: 1; grid-row: 1;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--violet); color: #fff; font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 0 0 5px var(--cream);
}
.how-steps img { grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.how-steps p { grid-column: 3; margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.35; color: var(--navy); font-weight: 500; }

.how-pull {
    display: flex; align-items: center; gap: 16px;
    margin: 40px 0 0; padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--lav);
    color: var(--violet-deep); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.25rem); line-height: 1.35;
}
.how-pull img { flex: none; width: 44px; height: auto; }

.how-phone { margin: 0 auto; max-width: 300px; position: relative; }
.how-phone::before {
    content: ''; position: absolute; z-index: -1; inset: 8% -22% 4%;
    background: var(--lav);
    border-radius: 46% 54% 50% 50% / 40% 42% 58% 60%;
}
.how-phone img { width: 100%; height: auto; border-radius: 13% / 6%; filter: drop-shadow(0 24px 30px rgba(11, 19, 71, 0.22)); }
.how-phone figcaption { margin-top: 14px; text-align: center; font-size: 0.92rem; color: var(--ink-soft); }

@media (min-width: 900px) {
    .how { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .how-phone { max-width: 320px; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
    position: relative; overflow: hidden;
    background: var(--cream-deep);
    padding: 48px var(--gutter) 56px;
    text-align: center;
}
.footer p { position: relative; z-index: 1; margin: 0 auto; max-width: 40rem; }
.footer-line { color: var(--navy); font-size: 1.1rem; }
.footer-fine { margin-top: 8px !important; color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 520px) {
    .leaf--footer { width: 96px; opacity: 0.6; }
    .how-steps li { grid-template-columns: 36px 88px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
