/* Six Hands: sixhands.ai
   Visual system shared with the DailyCare page (dailycare.sixhands.ai):
   cream paper, lavender regions, sage watercolor leaves, heavy navy Fira Sans
   headlines with one violet phrase, short violet bar under each headline.
   See DESIGN.md. */

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

:root {
    --cream: #FCF9F4;
    --cream-deep: #F5EFE5;
    --card: #FFFDF9;
    --navy: #0B1347;
    --ink: #22284A;
    --ink-soft: #4B5072;
    --violet: #7824F3;
    --violet-deep: #5A14C7;
    --violet-wash: #F3EDFD;
    --lavender: #EEE8F7;
    --lavender-deep: #E2D8F4;
    --lavender-line: #D3C8EA;
    --periwinkle: #566BEE;

    --font: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --gutter: clamp(16px, 5vw, 48px);
    --max: 72rem;
    --r-sm: 12px;
    --r-md: 16px;
    --shadow: 0 1px 2px rgba(11, 19, 71, .06), 0 18px 40px -20px rgba(11, 19, 71, .28);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.55;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

.display, .headline, .title { color: var(--navy); font-weight: 800; margin: 0; text-wrap: balance; }

.display {
    font-size: clamp(2.5rem, 7.2vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.headline {
    font-size: clamp(1.85rem, 4.4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.headline .rule, .display .rule {
    display: block; width: 72px; height: 6px; border-radius: 3px;
    background: var(--violet); margin-top: 18px;
}
.center .rule { margin-left: auto; margin-right: auto; }

.title { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }

.emph { color: var(--violet); position: relative; white-space: nowrap; }
.sparks {
    position: absolute; right: -0.62em; top: -0.42em; width: 0.5em; height: 0.5em;
    stroke: var(--violet); stroke-width: 4; stroke-linecap: round; fill: none;
    transform: rotate(-35deg);
}

.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--ink); margin: 22px 0 0; max-width: 34rem; }

.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 32px; align-items: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 28px; border-radius: 999px;
    font: 700 1.05rem/1 var(--font); text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-deep); color: #fff; }
.btn--quiet { background: transparent; color: var(--navy); border-color: var(--lavender-line); }
.btn--quiet:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Masthead ---------- */

.masthead { position: relative; z-index: 10; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.lockup img { width: 52px; height: 52px; flex: none; }
.lockup-text { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1; }
.lockup:hover { color: var(--navy); }

.nav { display: none; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; padding: 8px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--violet-deep); box-shadow: inset 0 -3px 0 var(--violet); }

.menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--lavender-line);
    background: var(--card); color: var(--navy); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.menu-toggle .close { display: none; }
.menu-open .menu-toggle .open { display: none; }
.menu-open .menu-toggle .close { display: block; }

.menu-panel { display: none; }
.menu-open .menu-panel {
    display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%;
    background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px;
}
.menu-panel a {
    display: block; padding: 14px 16px; border-radius: var(--r-sm);
    color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.15rem;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--violet-wash); color: var(--violet-deep); }

@media (min-width: 860px) {
    .nav { display: flex; gap: 30px; align-items: center; }
    .menu-toggle, .menu-panel, .menu-open .menu-panel { display: none; }
}

/* ---------- Leaves ---------- */

.leaf { position: absolute; pointer-events: none; z-index: 0; user-select: none; }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section > .wrap { position: relative; z-index: 1; }

.band { background: var(--lavender); overflow: hidden; }
.band--deep { background: var(--cream-deep); }

.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin: 20px 0 0; color: var(--ink); }

/* ---------- Home hero ---------- */

.hero { overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 104px); align-items: center; position: relative; z-index: 1; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--r-md); box-shadow: var(--shadow); width: 100%; aspect-ratio: 876 / 750; object-fit: cover; }
.hero .leaf { width: clamp(180px, 26vw, 340px); right: -60px; top: -30px; opacity: .95; }

@media (min-width: 960px) {
    .hero .wrap { grid-template-columns: 6fr 5fr; gap: 64px; }
}

/* ---------- Statement ("doing fine") ---------- */

.statement { display: grid; gap: 32px; align-items: start; }
.statement-quote {
    margin: 0; font-weight: 800; color: var(--navy);
    font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em;
}
.statement-body p { margin: 0 0 18px; }
.statement-body p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .statement { grid-template-columns: 5fr 6fr; gap: 72px; } }

/* ---------- Six hands (three roles) ---------- */

.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .roles { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.role {
    background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow);
    padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px;
}
.role img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--lavender); }
.role-hands { color: var(--violet-deep); font-weight: 700; font-size: .95rem; margin: 6px 0 0; }
.role p { margin: 0; }

.roles-foot { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 40rem; text-align: center; font-weight: 700; color: var(--navy); font-size: 1.2rem; }

/* ---------- DailyCare feature ---------- */

.feature { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .feature { grid-template-columns: 7fr 5fr; gap: 72px; } }

.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-list strong { color: var(--navy); display: block; }
.dot {
    width: 40px; height: 40px; border-radius: 50%; background: var(--card);
    display: grid; place-items: center; box-shadow: 0 0 0 2px var(--lavender-line);
}
.dot svg { width: 20px; height: 20px; stroke: var(--violet); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Example update card (illustrative, not real resident data) */
.update {
    margin: 0; background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
    padding: 20px; max-width: 400px; width: 100%; justify-self: center;
}
.update-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.update-head strong { color: var(--navy); font-size: 1.3rem; letter-spacing: -0.01em; }
.update-head span { color: var(--ink-soft); font-size: .9rem; }
.update-photo { border-radius: 14px; width: 100%; aspect-ratio: 556 / 280; object-fit: cover; }
.update-rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.update-rows li { background: var(--violet-wash); border-radius: var(--r-sm); padding: 12px 14px; font-size: .98rem; line-height: 1.4; }
.update-rows li:nth-child(odd) { background: var(--lavender); }
.update-rows b { display: block; color: var(--navy); font-size: 1rem; }
.update figcaption { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 14px; font-style: italic; }

/* ---------- Principles ---------- */

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.principle { border-top: 2px solid var(--lavender-line); padding-top: 22px; }
.principle .title { margin-bottom: 10px; }
.principle p { margin: 0; }

/* ---------- Closing CTA ---------- */

.closing {
    background: var(--navy); color: #E9E7F5; border-radius: 24px;
    padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px); position: relative; overflow: hidden;
}
.closing .headline { color: #fff; }
.closing .headline .rule { background: #B78CFF; }
.closing p { max-width: 36rem; margin: 20px 0 0; }
.closing a:not(.btn) { color: #fff; }
.closing .btn--quiet { color: #fff; border-color: rgba(255, 255, 255, .35); }
.closing .btn--quiet:hover { border-color: #fff; color: #fff; }
.closing .leaf { width: 220px; right: -40px; bottom: -50px; opacity: .5; }

/* ---------- Inner pages ---------- */

.page-hero { padding: clamp(24px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero .leaf { width: clamp(160px, 22vw, 300px); right: -50px; top: -40px; }
.page-hero .wrap { position: relative; z-index: 1; }

.prose { max-width: 44rem; }
.prose h2 { color: var(--navy); font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; margin: 48px 0 14px; font-weight: 800; }
.prose h3 { color: var(--navy); font-size: 1.2rem; margin: 30px 0 10px; font-weight: 700; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--violet); }
.prose > :first-child { margin-top: 0; }

.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 7fr 5fr; gap: 72px; } }

.photo-card img { border-radius: var(--r-md); box-shadow: var(--shadow); }
.photo-card figcaption { color: var(--ink-soft); font-size: .95rem; margin-top: 12px; }

.note {
    background: var(--lavender); color: var(--navy); border-radius: var(--r-md);
    padding: 20px 22px; margin: 0 0 24px;
}
.note strong { color: var(--violet-deep); }

.name-card {
    background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 28px;
}
.name-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.name-card li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.hands-count { font-weight: 800; color: var(--violet); font-size: 1.6rem; width: 2ch; text-align: center; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: grid; gap: 14px; justify-items: start; }
.steps img { width: 128px; height: 128px; border-radius: 50%; }
.steps .num {
    width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff;
    display: grid; place-items: center; font-weight: 800; margin-top: -40px; margin-left: 96px;
    box-shadow: 0 0 0 4px var(--cream);
}
.band .steps .num { box-shadow: 0 0 0 4px var(--lavender); }
.steps p { margin: 0; }

.faq { max-width: 46rem; }
.faq details { border-bottom: 2px solid var(--lavender-line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
    color: var(--navy); font-weight: 700; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
    border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet);
    transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 20px; }

.contact-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.contact-card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 26px; }
.contact-card .title { margin-bottom: 8px; }
.contact-card p { margin: 0 0 14px; }
.contact-card a.mail { font-weight: 700; font-size: 1.1rem; word-break: break-word; }

.legal-meta { color: var(--ink-soft); margin: 16px 0 0; }
.toc { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 22px 26px; margin: 0 0 40px; }
.toc p { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 40px; } }
.toc li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- Footer ---------- */

.footer { background: var(--cream-deep); position: relative; overflow: hidden; margin-top: clamp(56px, 9vw, 112px); }
.footer .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 40px; display: grid; gap: 36px; }
.footer .leaf { width: 240px; right: -50px; bottom: -40px; opacity: .8; }
.footer-brand p { margin: 14px 0 0; max-width: 24rem; color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-cols h2 { font-size: .95rem; color: var(--navy); margin: 0 0 12px; font-weight: 800; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--ink); text-decoration: none; }
.footer-cols a:hover { color: var(--violet-deep); text-decoration: underline; }
.footer-fine { color: var(--ink-soft); font-size: .95rem; border-top: 1px solid var(--lavender-line); padding-top: 20px; margin: 0; }
@media (min-width: 860px) {
    .footer .wrap { grid-template-columns: 5fr 7fr; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
    .footer-fine { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */

.lost { text-align: center; padding: clamp(56px, 12vw, 140px) 0; }
.lost .lede { margin-left: auto; margin-right: auto; }
.lost .actions { justify-content: center; }
