/* The homepage's own layout. Tokens and shared components: site.css.
   Cream product sections between two blue bands and a dark one: the hero
   bleeds its photo to the edge with the phone over it, the statement and the
   closing call are navy, the philosophy is dark, and each product section
   pairs its copy with a working surface. */

/* ── Shared section layout ── */

.split {
    display: grid;
    gap: var(--s-7);
    align-items: center;
}

@media (min-width: 960px) {
    .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--grid-gap); }
}

.split-copy .h2 { max-width: 11ch; }

/* ── Hero ── */

.hero {
    position: relative;
    z-index: 2;
    padding: var(--s-6) 0 0;
}

.hero-grid {
    display: grid;
    gap: var(--s-7);
    align-items: center;
}

.hero .display { color: var(--navy); white-space: nowrap; }
@media (max-width: 359px) { .hero .display { white-space: normal; } }
.hero .eyebrow { color: var(--ink-2); }
.hero .eyebrow::before { display: none; }
.hero .lede { max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink); }
.hero-copy .waitlist { margin-top: var(--s-7); }

.hero-visual {
    position: relative;
    min-height: 460px;
}

.hero-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(-1 * var(--gutter));
    width: 78%;
    border-radius: 200px 0 0 0;
}

/* The phone and its note share a stage, so the note sits over the phone
   wherever the phone lands — never over the headline, which can run wide
   at mid-size windows. */
.hero-stage {
    position: relative;
    z-index: 2;
    width: 56%;
    max-width: 340px;
    margin: var(--s-6) 0 -64px 6%;
}

.hero-hand, .hero-hand.is-in { left: 2%; bottom: calc(100% + 28px); transform: rotate(-6deg); }
.hero-hand .pen { left: 100%; top: 10px; margin-left: 4px; }

@media (max-width: 959px) { .hero-hand { display: none; } }

.hero-device {
    display: block;
    width: 100%;
    filter: drop-shadow(0 24px 30px rgba(21, 21, 21, 0.18));
}

@media (min-width: 960px) {
    .hero { padding-top: var(--s-7); }
    .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-6); }
    .hero-copy { padding-bottom: var(--s-9); }
    /* The photo runs from the column to the window's edge, top to bottom. */
    .hero-visual { position: static; min-height: 640px; display: flex; align-items: flex-end; }
    .hero-photo { top: 0; bottom: 0; right: 0; width: 44vw; border-radius: 280px 0 0 0; }
    .hero-copy { position: relative; z-index: 2; }
    .hero-stage { width: 60%; max-width: 380px; margin: 0 0 -84px -4%; }
}

@media (max-width: 959px) {
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ── 01 Statement ── */

.statement {
    position: relative;
    z-index: 1;
    padding: calc(var(--section-y-tight) + 48px) 0 var(--section-y-tight);
}

.statement-inner {
    display: grid;
    gap: var(--s-6);
}

@media (min-width: 960px) {
    .statement { padding-top: var(--section-y-tight); }
    .statement-inner {
        grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
        align-items: end;
        gap: var(--grid-gap);
    }
}

.statement-title {
    margin-top: var(--s-5);
    font-size: clamp(40px, 5.6vw, 80px);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.statement-title span { display: block; font-weight: 800; }
.statement-title span + span { font-weight: 400; letter-spacing: -0.04em; }

.statement-side {
    padding-left: var(--s-6);
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.statement-side p {
    font-size: var(--fs-lede);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 34ch;
}

.statement-mark { margin-top: var(--s-5); }

@media (max-width: 959px) {
    .statement-side { padding-left: var(--s-5); }
}

/* ── 02 Closet ── */

.closet-feature { overflow: hidden; }

.closet-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--s-5) 0;
}

.closet-device { width: 92%; max-width: 580px; }

.pair-sheet {
    position: absolute;
    left: 0;
    bottom: 4%;
    width: min(240px, 46%);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-lift);
    overflow: hidden;
    transition: transform var(--t-base) var(--ease);
}

@media (hover: hover) {
    .pair-sheet:hover { transform: translateY(-4px); }
}

.pair-sheet-photo { aspect-ratio: 16 / 10; background: #F4F1EC; }
.pair-sheet-photo > img { object-fit: contain; padding: 14px 16px; filter: drop-shadow(0 10px 8px rgba(21, 21, 21, 0.16)); }

.pair-sheet-body { padding: 14px var(--s-4) var(--s-4); }

.pair-sheet-brand { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }

.pair-sheet h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 2px;
}

.pair-sheet-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--s-3);
    border-top: 1px solid var(--line);
}

.pair-sheet-stats div { padding-top: 10px; }
.pair-sheet-stats div + div { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.pair-sheet-stats dt { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.pair-sheet-stats dd { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; margin-top: 2px; white-space: nowrap; }

.pair-sheet-care {
    display: flex;
    gap: var(--s-2);
    align-items: baseline;
    margin-top: var(--s-3);
    padding: 9px var(--s-3);
    border-radius: var(--r-sm);
    background: rgba(200, 129, 26, 0.1);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2);
}

.pair-sheet-care .dot { transform: translateY(-1px); }
.pair-sheet-care strong { color: var(--ink); font-weight: 600; margin-right: 4px; }

.closet-hand { left: 2%; top: 0; }
.closet-hand svg { right: -60px; top: 22px; transform: scaleX(-1) rotate(-20deg); }

@media (min-width: 960px) {
    .closet-visual { justify-content: flex-end; }
    .closet-hand { left: 4%; top: 4%; }
}

@media (max-width: 599px) {
    .closet-visual { flex-direction: column; align-items: flex-start; padding-top: var(--s-8); }
    .closet-device { width: 100%; }
    .pair-sheet { position: relative; bottom: auto; width: 58%; margin: -120px 0 0 0; }
    .pair-sheet-stats { grid-template-columns: 1fr; }
    .pair-sheet-stats div + div { padding-left: 0; border-left: 0; }
    .closet-hand { top: 0; right: auto; left: 0; }
    .closet-hand svg { left: auto; right: -56px; top: 18px; transform: scaleX(-1); }
}

/* ── 03 Care ── */

.care-feature {
    display: grid;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
    .care-feature { grid-template-columns: 9fr 11fr; min-height: 640px; }
}

.care-media { position: relative; min-height: 380px; }
.care-photo { position: absolute; inset: 0; }

.care-hand { right: 10%; bottom: 14%; transform: rotate(-6deg); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.care-hand svg { right: -18px; top: -48px; }
.care-media .slot:is(.is-empty, .is-broken) ~ .care-hand { color: var(--navy); text-shadow: none; }

.care-copy {
    padding: var(--section-y-tight) var(--gutter);
    max-width: 680px;
    align-self: center;
}

@media (min-width: 960px) {
    .care-copy { padding-left: clamp(48px, 5vw, 88px); padding-right: var(--gutter); }
}

.care-copy .h2 { max-width: 13ch; }

.materials {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-7);
}

@media (min-width: 560px) {
    .materials { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.materials a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 4px 10px;
    border-radius: var(--r-sm);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: box-shadow var(--t-fast) ease, transform var(--t-base) var(--ease);
}

.materials a:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.materials a:active { transform: scale(0.97); }

.swatch {
    width: 100%;
    max-width: 56px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink-2);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(21, 21, 21, 0.12);
}

/* Material swatches: the app's own material photos (Care → Know your materials). */
.swatch--suede, .swatch--leather, .swatch--knit, .swatch--canvas, .swatch--nubuck { background-size: cover; background-position: center; }
.swatch--suede   { background-image: url(/assets/materials/suede.jpg); }
.swatch--leather { background-image: url(/assets/materials/leather.jpg); }
.swatch--knit    { background-image: url(/assets/materials/knit.jpg); }
.swatch--canvas  { background-image: url(/assets/materials/canvas.jpg); }
.swatch--nubuck  { background-image: url(/assets/materials/nubuck.jpg); }
.swatch--more    { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ── 04 Insights ── */

.insights-feature { position: relative; overflow: hidden; border-top: 1px solid var(--line); }

.insights-grid {
    display: grid;
    gap: var(--s-7);
    align-items: center;
}

@media (min-width: 960px) {
    .insights-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: var(--s-7); }
}

.insights-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3);
    padding-bottom: var(--s-6);
}

.panel--week { grid-column: 1 / -1; }
.panel--patterns { grid-column: 1 / -1; }

@media (min-width: 600px) {
    .insights-visual { grid-template-columns: 1.4fr 1fr; gap: var(--s-4); }
    .panel--week { grid-column: 1; }
    .panel--rotation { grid-column: 2; }
}

.panel {
    padding: 20px;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }

.panel-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}

.panel-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.panel-value {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-2);
    margin-top: var(--s-3);
}

.panel-value strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

.panel--rotation { display: flex; flex-direction: column; }
.panel--rotation .ring { margin-top: var(--s-4); }

.ring {
    --p: 0.25;
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(var(--live) calc(var(--p) * 360deg), rgba(46, 158, 91, 0.14) 0);
    display: grid;
    place-items: center;
}

.ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--surface);
}

.ring span { position: relative; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }

.panel--week { display: flex; flex-direction: column; }

.bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: var(--s-2);
    margin-top: var(--s-5);
    list-style: none;
}

.bars li { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }

.bar {
    position: relative;
    display: block;
    height: calc(var(--h) * 96px);
    min-height: 12px;
    border-radius: 6px 6px 3px 3px;
    background: var(--navy);
    cursor: default;
    transition: background var(--t-fast) ease;
}

.bars li:nth-child(3n + 1) .bar { background: var(--yellow); }

.bar::after {
    content: attr(data-value);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translate(-50%, 4px);
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease);
}

.bar:hover::after,
.bar:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.bar:focus-visible { outline-offset: 2px; }

.bar-day { text-align: center; font-size: 11px; font-weight: 500; color: var(--ink-3); }

.panel--patterns ul { list-style: none; margin-top: var(--s-2); }

.panel--patterns li {
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-2);
}

.panel--patterns li .dot { transform: translateY(-1px); }
.panel--patterns strong { color: var(--ink); font-weight: 600; }

.insights-note {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-3);
}

/* A wheel of pairs, cut by the window's edge: about 40% of it shows. */
.insights-feature { --wheel: min(58vw, 900px); }

.rotation-wheel {
    display: block;
    width: 112vw;
    max-width: none;
    height: auto;
    margin: var(--s-6) 0 calc(-1 * var(--section-y)) 38vw;
    filter: drop-shadow(0 18px 24px rgba(21, 21, 21, 0.16));
}

/* The wheel turns as the page scrolls (home.js sets --spin). The image turns,
   the wrapper doesn't, so the shadow keeps falling downward. */
.rotation-wheel img {
    display: block;
    width: 100%;
    height: auto;
    rotate: var(--spin, 0deg);
    will-change: rotate;
}

@media (min-width: 960px) {
    .rotation-wheel {
        position: absolute;
        top: 50%;
        right: calc(-0.56 * var(--wheel));
        width: var(--wheel);
        margin: 0;
        transform: translateY(-50%);
    }
    .rotation-wheel.reveal { transform: translate(24px, -50%); }
    .rotation-wheel.reveal.is-in { transform: translateY(-50%); }
    .insights-feature { min-height: calc(var(--wheel) + 160px); display: flex; align-items: center; }
    .insights-feature > .wrap { width: 100%; }
    /* Keep the panels clear of the wheel. */
    .insights-grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
        padding-right: max(var(--gutter), calc(0.44 * var(--wheel) + 48px - max(0px, (100vw - var(--max)) / 2)));
    }
}

/* ── 05 Philosophy ── */

.philosophy {
    position: relative;
    min-height: clamp(520px, 52vw, 680px);
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.philosophy-photo {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.philosophy-photo.is-empty::after { left: auto; right: var(--gutter); top: var(--s-6); transform: none; }

/* The photo fades into the dark where the copy sits: legibility, not decoration. */
@media (min-width: 960px) {
    .philosophy-photo { left: 34%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%); mask-image: linear-gradient(90deg, transparent, #000 32%); }
}

@media (max-width: 959px) {
    .philosophy { align-items: flex-end; }
    .philosophy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23, 21, 18, 0.92) 0%, rgba(23, 21, 18, 0.4) 60%, rgba(23, 21, 18, 0) 100%); }
}

.philosophy-inner { padding-top: var(--section-y-tight); padding-bottom: var(--section-y-tight); }
.philosophy-copy { max-width: 560px; }
.philosophy .h2 { font-size: clamp(40px, 5.2vw, 72px); max-width: 11ch; }

/* ── 06 Shared closets ── */

.shared-feature { border-top: 1px solid var(--line); }

.shared-grid { display: grid; gap: var(--s-7); align-items: center; }

@media (min-width: 960px) {
    .shared-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--grid-gap); }
}

.shared-cards {
    display: grid;
    gap: var(--s-4);
}

@media (min-width: 600px) {
    .shared-cards { grid-template-columns: 1.5fr 1fr; }
}

.closet-card-feature,
.closet-card-next {
    display: flex;
    flex-direction: column;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), var(--shadow);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) ease;
}

.closet-card-feature:hover,
.closet-card-next:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); }
.closet-card-feature:focus-visible,
.closet-card-next:focus-visible { outline-offset: 4px; border-radius: var(--r-md); }

.closet-cover {
    aspect-ratio: 16 / 10;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: var(--line);
}

.closet-cover span { background: #F4F1EC; display: grid; place-items: center; overflow: hidden; }
.closet-cover span:first-child { grid-row: 1 / span 2; }

.closet-cover img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(21, 21, 21, 0.14));
    opacity: 0;
    transition: opacity var(--t-slow) ease, transform var(--t-slow) var(--ease);
}

.closet-cover .is-loaded img { opacity: 1; }
.closet-card-feature:hover .closet-cover img { transform: scale(1.05); }

.closet-card-owner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.closet-card-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E4E1EA;
    color: var(--navy);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 17px;
    overflow: hidden;
}

.closet-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.closet-card-who { min-width: 0; flex: 1; line-height: 1.3; }
.closet-card-name { display: block; font-size: 16px; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.closet-card-handle { display: block; font-size: 13px; color: var(--ink-3); }
.closet-card-count { display: block; font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.closet-card-count strong { font-weight: 700; color: var(--ink); }

.arrow-circle {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
    transition: background var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.closet-card-feature:hover .arrow-circle { background: var(--navy); color: #fff; box-shadow: none; }

.closet-card-next {
    justify-content: flex-end;
    gap: var(--s-2);
    min-height: 220px;
    padding: var(--s-5);
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
    border: 0;
}

.closet-card-next:hover { background: var(--surface); }
.closet-card-next strong { font-size: 20px; letter-spacing: -0.025em; line-height: 1.2; }
.closet-card-next > span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.closet-card-next-plus {
    width: 48px;
    height: 48px;
    margin-bottom: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--ink);
}

/* ── 07 FAQ ── */

.faq-section { border-top: 1px solid var(--line); padding: var(--section-y-tight) 0; }

.faq-grid { display: grid; gap: var(--s-6); }

@media (min-width: 960px) {
    .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--grid-gap); align-items: start; }
    .faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

.faq-grid .h2 { max-width: 10ch; }
.faq-grid .eyebrow + .h2 { margin-top: var(--s-5); }

.faq-more { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--ink-3); }
.faq-more a { color: var(--navy); font-weight: 600; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── 08 Final CTA ── */

.final-cta { padding: var(--section-y-tight) 0; }

.final-inner {
    display: grid;
    gap: var(--s-6);
    align-items: center;
}

@media (min-width: 960px) {
    .final-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--grid-gap); }
    .final-inner .waitlist { margin-left: auto; }
}

.final-inner .h2 { font-size: clamp(36px, 4vw, 56px); max-width: 14ch; }
.final-inner .eyebrow + .h2 { margin-top: var(--s-4); }
.final-inner .h2 + .lede { margin-top: var(--s-3); }
