/* Shared reading order, individual visual language for the five habit systems. */
.habit-detail-page {
    --hd-bg: #f5e5ed;
    --hd-soft: #fff5f9;
    --hd-accent: #d884a7;
    --hd-deep: #854e6d;
    --hd-ink: #2f2b38;
    background: var(--hd-bg);
    color: var(--hd-ink);
}

.habit-detail-page .starburst-bg { display: none; }
.habit-detail-page .navbar { position: relative; z-index: 30; }
.hd-main { overflow: clip; }
.hd-section,
.hd-hero {
    position: relative;
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.hd-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: clamp(1rem, 5vw, 5rem);
    min-height: min(760px, calc(100svh - 80px));
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    align-items: center;
}

.hd-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 7% -15% 7% 47%;
    background: var(--hd-soft);
    border-radius: 55% 44% 49% 46%;
    opacity: 0.85;
}

.hd-hero-copy { position: relative; z-index: 3; }
.hd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--hd-deep);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}
.hd-kicker::before {
    content: "";
    width: 30px;
    height: 5px;
    background: var(--hd-accent);
    border-radius: 999px;
}
.hd-hero h1 {
    max-width: 720px;
    margin: 1.35rem 0 1.25rem;
    font-size: clamp(3.4rem, 6.6vw, 6.8rem);
    line-height: 0.88;
    letter-spacing: -0.048em;
}
.hd-hero h1 em { color: var(--hd-deep); font-style: normal; }
.hd-hero-copy > p {
    max-width: 590px;
    color: rgba(47, 43, 56, 0.74);
    font-size: clamp(1.02rem, 1.65vw, 1.3rem);
    line-height: 1.55;
}
.hd-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.45rem; margin-top: 2rem; }
.hd-primary {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.65rem;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    background: var(--hd-deep);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 0 rgba(47, 43, 56, 0.1);
    cursor: pointer;
}
.hd-primary:hover,
.hd-primary:focus-visible { transform: translateY(-2px); outline: 3px solid var(--hd-accent); outline-offset: 3px; }
.hd-text-link { color: var(--hd-ink); font-weight: 900; text-decoration-color: var(--hd-accent); text-decoration-thickness: 3px; text-underline-offset: 0.35rem; }
.hd-hero-art.drink-hero-art {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 600px;
    place-items: center;
    background: radial-gradient(circle, rgba(255,255,255,.6), rgba(255,255,255,0) 68%);
}
.habit-detail-page .hd-hero-art video {
    width: min(93%, 550px);
    max-height: 570px;
    object-fit: contain;
    transform: none;
    filter: drop-shadow(0 22px 24px rgba(47,43,56,.12));
}
.hd-hero-orbit {
    position: absolute;
    z-index: 5;
    display: grid;
    min-width: 90px;
    min-height: 90px;
    padding: 0.55rem;
    place-items: center;
    color: var(--hd-deep);
    font-size: 0.75rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 18px 34px rgba(47,43,56,.1);
}
.hd-hero-orbit:nth-of-type(1) { top: 12%; left: 6%; }
.hd-hero-orbit:nth-of-type(2) { top: 28%; right: 7%; }
.hd-hero-orbit:nth-of-type(3) { bottom: 13%; left: 9%; }

.hd-section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.hd-heading { max-width: 1000px; margin-bottom: 2.5rem; }
.hd-heading-split { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: clamp(2rem,5vw,5rem); align-items: end; max-width: none; }
.hd-heading h2 { margin: 0.8rem 0 0; font-size: clamp(2.55rem, 5.1vw, 5.15rem); line-height: 0.94; letter-spacing: -0.035em; }
.hd-heading > p { max-width: 680px; margin: 1rem 0 0; color: rgba(47,43,56,.7); font-size: clamp(1rem,1.5vw,1.17rem); line-height: 1.55; }
.hd-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-bottom: clamp(2rem,5vw,4rem); }
.hd-benefits article { border-top: 1px solid color-mix(in srgb, var(--hd-deep) 30%, transparent); padding: 1.25rem 0 0; }
.hd-benefits span { color: var(--hd-deep); font-size: 0.9rem; font-weight: 900; }
.hd-benefits h3 { margin: 1.8rem 0 0.5rem; font-size: clamp(1.4rem,2.15vw,2rem); line-height: 1.04; }
.hd-benefits p { max-width: 320px; margin: 0; color: rgba(47,43,56,.7); font-size: 0.98rem; line-height: 1.5; }
.habit-detail-page .habit-flow-visual { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.habit-detail-page .habit-flow-visual img { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 34px; }
.habit-detail-page .habit-flow-visual figcaption { padding: 0.9rem 0 0; color: rgba(47,43,56,.66); font-size: 0.95rem; font-weight: 700; }

.hd-journey { padding-top: clamp(2rem,4vw,4rem); }
.hd-journey-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,3vw,2rem); }
.hd-journey-card { min-width: 0; }
.hd-journey-image { overflow: hidden; aspect-ratio: 1.38; background: var(--hd-soft); border-radius: 42px; }
.hd-journey-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hd-journey-copy { padding: 1.1rem 0 0.7rem; }
.hd-journey-copy span { color: var(--hd-deep); font-size: 0.84rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.hd-journey-copy h3 { margin: .45rem 0; font-size: clamp(1.5rem,2.4vw,2.35rem); line-height: 1.04; }
.hd-journey-copy p { max-width: 480px; margin: 0; color: rgba(47,43,56,.7); line-height: 1.5; }

.hd-preview { padding-top: clamp(3rem,5vw,5rem); }
.hd-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.75rem,2.5vw,1.75rem); }
.hd-preview-grid figure { min-width: 0; margin: 0; }
.hd-preview-grid img { display: block; width: 100%; max-height: 400px; aspect-ratio: 4 / 5; object-fit: contain; }
.hd-preview-grid figcaption { padding: .85rem .15rem 0; }
.hd-preview-grid strong { display: block; font-size: 1.1rem; }
.hd-preview-grid span { color: rgba(47,43,56,.65); font-size: .9rem; }
.hd-preview-note { margin: 1.25rem 0 0; color: rgba(47,43,56,.66); font-size: .9rem; }
.hd-set-overview { margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.3rem; border-top: 1px solid color-mix(in srgb,var(--hd-deep) 20%,transparent); }
.hd-set-overview h3 { margin: 0 0 1rem; color: var(--hd-deep); font-size: clamp(1.35rem,2vw,1.8rem); line-height: 1.1; }
.hd-set-overview ul { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(.45rem,1vw,.9rem); margin: 0; padding: 0; list-style: none; }
.hd-set-overview-six ul { grid-template-columns: repeat(6,minmax(0,1fr)); }
.hd-set-overview li { min-width: 0; text-align: center; }
.hd-set-overview img { display: block; width: 100%; height: clamp(110px,13vw,180px); object-fit: contain; }
.hd-set-overview span { display: block; margin-top: .65rem; color: var(--hd-deep); font-size: .78rem; font-weight: 900; line-height: 1.2; }

.hd-purchase { padding-block: clamp(3rem,6vw,6rem); }
.hd-purchase-shell { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr); gap: 1rem; align-items: center; min-height: 530px; padding: clamp(2rem,5vw,5rem); color: #fff; background: var(--hd-deep); border-radius: 48px; overflow: hidden; }
.hd-purchase .hd-kicker { color: var(--hd-soft); }
.hd-purchase h2 { margin: .8rem 0 1rem; font-size: clamp(2.8rem,5vw,5.2rem); line-height: .95; letter-spacing: -.03em; }
.hd-purchase-copy > p { max-width: 550px; color: rgba(255,255,255,.85); font-size: 1.1rem; line-height: 1.55; }
.hd-included { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.hd-included li { padding: .45rem .7rem; font-size: .82rem; font-weight: 800; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }
.hd-purchase-included { margin: 1.2rem 0 .55rem; }
.hd-purchase-included summary { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-size: .95rem; font-weight: 900; text-decoration: underline; text-underline-offset: .3rem; cursor: pointer; list-style: none; }
.hd-purchase-included summary::-webkit-details-marker { display: none; }
.hd-purchase-included summary::after { content: "+"; font-size: 1.35rem; line-height: .8; }
.hd-purchase-included[open] summary::after { content: "−"; }
.hd-purchase-included .hd-included { margin: .85rem 0 .5rem; }
.hd-purchase-format { margin: .7rem 0 0; color: rgba(255,255,255,.82); font-size: .8rem; font-weight: 700; line-height: 1.4; }
.hd-purchase-action { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.7rem; }
.hd-price { display: grid; line-height: 1.15; }
.hd-price span { color: rgba(255,255,255,.76); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.hd-price strong { font-size: clamp(2.3rem,3.6vw,3.5rem); }
.hd-price small { color: rgba(255,255,255,.76); font-size: .72rem; }
.hd-purchase-action .hd-primary { color: var(--hd-deep); background: var(--hd-soft); }
.hd-purchase-art { position: relative; display: grid; min-height: 420px; place-items: center; }
.hd-purchase-art::before { content: ""; position: absolute; width: min(90%,420px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.hd-purchase-art img { position: relative; width: min(93%,430px); max-height: 480px; object-fit: contain; filter: drop-shadow(0 20px 25px rgba(28,26,40,.2)); }

.hd-faq { padding-top: 2.5rem; padding-bottom: 8rem; }
.hd-faq-list { border-top: 1px solid color-mix(in srgb,var(--hd-deep) 30%,transparent); }
.hd-faq-list details { padding: 1.35rem 0; border-bottom: 1px solid color-mix(in srgb,var(--hd-deep) 30%,transparent); }
.hd-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: clamp(1.1rem,1.8vw,1.4rem); font-weight: 900; cursor: pointer; list-style: none; }
.hd-faq-list summary::-webkit-details-marker { display: none; }
.hd-faq-list summary::after { content: "+"; display: grid; width: 36px; height: 36px; flex: none; place-items: center; color: var(--hd-deep); background: var(--hd-soft); border-radius: 50%; }
.hd-faq-list details[open] summary::after { content: "−"; }
.hd-faq-list p { max-width: 760px; margin: .65rem 0 0; color: rgba(47,43,56,.7); line-height: 1.55; }

.hd-dialog { width: min(950px,calc(100% - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 0; overflow: hidden; color: var(--hd-ink); background: var(--hd-soft); border: 0; border-radius: 30px; box-shadow: 0 34px 100px rgba(24,28,38,.35); }
.hd-dialog::backdrop { background: rgba(30,30,44,.65); backdrop-filter: blur(8px); }
.hd-dialog-shell { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); height: min(680px,calc(100vh - 24px)); }
.hd-dialog-close { position: absolute; z-index: 10; top: 1rem; right: 1rem; display: grid; width: 46px; height: 46px; place-items: center; color: var(--hd-deep); font: 900 1.8rem/1 var(--font-main); background: rgba(255,255,255,.95); border: 0; border-radius: 50%; cursor: pointer; }
.hd-dialog-visual { position: relative; display: grid; min-height: 100%; place-items: center; padding: 1rem; overflow: hidden; background: color-mix(in srgb,var(--hd-bg) 78%,white); }
.hd-dialog-visual::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; }
.hd-dialog-visual img { position: relative; width: min(92%,390px); max-height: 85%; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(47,43,56,.15)); }
.hd-dialog-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem,3vw,3rem); overflow-y: auto; }
.hd-dialog-content h2 { margin: .65rem 0; font-size: clamp(3rem,4.7vw,4.6rem); line-height: .92; }
.hd-dialog-intro { margin: 0; color: rgba(47,43,56,.72); line-height: 1.5; }
.hd-dialog-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: 1.2rem 0; color: var(--hd-deep); font-size: .79rem; font-weight: 900; }
.hd-dialog-meta span::before { content: "✦"; margin-right: .3rem; color: var(--hd-accent); }
.hd-dialog-buy { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px,.9fr); gap: .45rem 1rem; align-items: center; padding-top: 1rem; border-top: 1px solid color-mix(in srgb,var(--hd-deep) 22%,transparent); }
.hd-dialog-buy .hd-price span,
.hd-dialog-buy .hd-price small { color: rgba(47,43,56,.62); }
.hd-dialog-buy .hd-price strong { color: var(--hd-deep); font-size: clamp(2.2rem,3vw,3rem); }
.hd-dialog-buy .purchase-button { display: grid; min-height: 56px; margin: 0; place-items: center; color: #fff; font-weight: 900; background: var(--hd-deep); border: 0; border-radius: 999px; text-decoration: none; }
.hd-dialog-buy > small { grid-column: 1 / -1; color: rgba(47,43,56,.62); font-size: .72rem; }
.hd-dialog-terms { display: grid; gap: .55rem; margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb,var(--hd-deep) 22%,transparent); }
.hd-dialog-terms p,
.hd-dialog-terms .personalization-note,
.hd-dialog-terms .purchase-note { display: flex; gap: .5rem; margin: 0; padding: 0; color: rgba(47,43,56,.7); font-size: .72rem; line-height: 1.4; text-align: left; background: none; border: 0; border-radius: 0; }
.hd-dialog-terms strong { color: var(--hd-deep); }
.hd-dialog-terms a { color: var(--hd-deep); font-weight: 900; text-underline-offset: .15rem; }
.hd-term-icon { display: grid; width: 22px; height: 22px; flex: none; place-items: center; color: var(--hd-deep); font-weight: 900; background: var(--hd-bg); border-radius: 50%; }

/* Distinct themes share anatomy, never identical composition. */
.habit-theme-brush { --hd-bg:#eec7d6; --hd-soft:#ffd7e5; --hd-accent:#e6a4c0; --hd-deep:#97556d; }
.habit-theme-brush .hd-hero { background: repeating-linear-gradient(90deg,transparent 0 150px,rgba(255,255,255,.18) 151px 153px); }
.habit-theme-brush .hd-hero-art.drink-hero-art { border-radius: 48% 48% 40% 40%; }
.habit-theme-brush .hd-journey-image { border-radius: 48% 48% 30px 30px; }
.habit-theme-brush .habit-flow-visual img { border-radius: 0; }
.habit-theme-brush .hd-preview-grid figure:nth-child(2) { transform: translateY(2rem); }
.habit-theme-brush .hd-purchase { width: 100%; max-width: none; background: var(--hd-deep); }
.habit-theme-brush .hd-purchase-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; background: transparent; border-radius: 0; }
.habit-theme-brush .hd-brush-included { margin: 1.2rem 0 .55rem; }
.habit-theme-brush .hd-brush-included summary { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-size: .95rem; font-weight: 900; text-decoration: underline; text-underline-offset: .3rem; cursor: pointer; list-style: none; }
.habit-theme-brush .hd-brush-included summary::-webkit-details-marker { display: none; }
.habit-theme-brush .hd-brush-included summary::after { content: "+"; font-size: 1.35rem; line-height: .8; text-decoration: none; }
.habit-theme-brush .hd-brush-included[open] summary::after { content: "−"; }
.habit-theme-brush .hd-brush-included ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.habit-theme-brush .hd-brush-included[open] ul { margin-top: .85rem; }
.habit-theme-brush .hd-brush-included li { position: relative; padding-left: 1rem; font-size: .91rem; font-weight: 700; line-height: 1.35; }
.habit-theme-brush .hd-brush-included li::before { content: ""; position: absolute; top: .55em; left: 0; width: .38rem; height: .38rem; background: var(--hd-soft); border-radius: 50%; }
.habit-theme-brush .hd-purchase-copy > .hd-brush-format { margin: .7rem 0 0; color: rgba(255,255,255,.82); font-size: .8rem; font-weight: 700; line-height: 1.4; }

.habit-theme-wash { --hd-bg:#f1d8a6; --hd-soft:#ffe58f; --hd-accent:#e5bd5a; --hd-deep:#806131; }
.habit-theme-wash .hd-hero-art { order: -1; }
.habit-theme-wash .hd-hero::before { inset: 6% 47% 8% -12%; border-radius: 49% 56% 45% 52%; }
.habit-theme-wash .hd-hero-art.drink-hero-art { background: radial-gradient(circle at 24% 22%,rgba(255,255,255,.7) 0 16px,transparent 17px),radial-gradient(circle at 83% 69%,rgba(255,255,255,.6) 0 25px,transparent 26px),radial-gradient(circle,rgba(255,255,255,.56),transparent 67%); }
.habit-theme-wash .hd-hero-art video { transform: scale(1.4); }
.habit-theme-wash .hd-hero-orbit:nth-of-type(3) { left: 2%; }
.habit-theme-wash .hd-journey-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.habit-theme-wash .hd-journey-card:nth-child(even) { transform: translateY(1.5rem); }
.habit-theme-wash .hd-journey-image { aspect-ratio: .92; border-radius: 46% 46% 32px 32px; }
.habit-theme-wash .habit-flow-visual img { border-radius: 0; }
.habit-theme-wash .hd-purchase { width: 100%; max-width: none; background: var(--hd-deep); }
.habit-theme-wash .hd-purchase-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; background: transparent; border-radius: 0; }
.habit-theme-wash .hd-wash-included { margin: 1.2rem 0 .55rem; }
.habit-theme-wash .hd-wash-included summary { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-size: .95rem; font-weight: 900; text-decoration: underline; text-underline-offset: .3rem; cursor: pointer; list-style: none; }
.habit-theme-wash .hd-wash-included summary::-webkit-details-marker { display: none; }
.habit-theme-wash .hd-wash-included summary::after { content: "+"; font-size: 1.35rem; line-height: .8; text-decoration: none; }
.habit-theme-wash .hd-wash-included[open] summary::after { content: "−"; }
.habit-theme-wash .hd-wash-included ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.habit-theme-wash .hd-wash-included[open] ul { margin-top: .85rem; }
.habit-theme-wash .hd-wash-included li { position: relative; padding-left: 1rem; font-size: .91rem; font-weight: 700; line-height: 1.35; }
.habit-theme-wash .hd-wash-included li::before { content: ""; position: absolute; top: .55em; left: 0; width: .38rem; height: .38rem; background: var(--hd-soft); border-radius: 50%; }
.habit-theme-wash .hd-purchase-copy > .hd-wash-format { margin: .7rem 0 0; color: rgba(255,255,255,.82); font-size: .8rem; font-weight: 700; line-height: 1.4; }

.habit-theme-bedtime { --hd-bg:#cfbfd7; --hd-soft:#efe4ff; --hd-accent:#aa91d2; --hd-deep:#625988; }
.habit-theme-bedtime .hd-hero::before { inset: 4% -15% 0 49%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg,#b9add5,#eee5fb); }
.habit-theme-bedtime .hd-hero-art.drink-hero-art { overflow: hidden; background: radial-gradient(circle at 74% 19%,#fff4ce 0 25px,transparent 27px),radial-gradient(circle at 32% 22%,#fff 0 3px,transparent 4px),radial-gradient(circle at 81% 52%,#fff 0 3px,transparent 4px); }
.habit-theme-bedtime .hd-hero-art video { width: min(100%, 650px); height: 540px; max-height: none; object-fit: cover; object-position: center; transform: scale(1.7); transform-origin: 50% 33%; }
.habit-theme-bedtime .habit-flow-visual img { border-radius: 0; }
.habit-theme-bedtime .hd-journey-image { border-radius: 40px 40px 110px 40px; }
.habit-theme-bedtime .hd-preview-grid figure:nth-child(2) { transform: translateY(1.5rem); }
.habit-theme-bedtime .hd-bedtime-set-overview { margin-top: clamp(2.5rem, 5vw, 4rem); }
.habit-theme-bedtime .hd-bedtime-set-overview h3 { margin: 0 0 1rem; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.1; }
.habit-theme-bedtime .hd-bedtime-set-overview ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.45rem, 1vw, .9rem); margin: 0; padding: 0; list-style: none; }
.habit-theme-bedtime .hd-bedtime-set-overview li { min-width: 0; text-align: center; }
.habit-theme-bedtime .hd-bedtime-set-overview img { display: block; width: 100%; height: clamp(110px, 13vw, 180px); object-fit: contain; }
.habit-theme-bedtime .hd-bedtime-set-overview span { display: block; margin-top: .65rem; font-size: .78rem; font-weight: 900; line-height: 1.2; }
.habit-theme-bedtime .hd-purchase { width: 100%; max-width: none; background: var(--hd-deep); }
.habit-theme-bedtime .hd-purchase-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; background: transparent; border-radius: 0; }
.habit-theme-bedtime .hd-purchase-art::before { border-radius: 50% 50% 20% 20%; }
.habit-theme-bedtime .hd-bedtime-included { margin: 1.2rem 0 .55rem; }
.habit-theme-bedtime .hd-bedtime-included summary { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-size: .95rem; font-weight: 900; text-decoration: underline; text-underline-offset: .3rem; cursor: pointer; list-style: none; }
.habit-theme-bedtime .hd-bedtime-included summary::-webkit-details-marker { display: none; }
.habit-theme-bedtime .hd-bedtime-included summary::after { content: "+"; font-size: 1.35rem; line-height: .8; text-decoration: none; }
.habit-theme-bedtime .hd-bedtime-included[open] summary::after { content: "−"; }
.habit-theme-bedtime .hd-bedtime-included ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.habit-theme-bedtime .hd-bedtime-included[open] ul { margin-top: .85rem; }
.habit-theme-bedtime .hd-bedtime-included li { position: relative; padding-left: 1rem; font-size: .91rem; font-weight: 700; line-height: 1.35; }
.habit-theme-bedtime .hd-bedtime-included li::before { content: ""; position: absolute; top: .55em; left: 0; width: .38rem; height: .38rem; background: var(--hd-soft); border-radius: 50%; }
.habit-theme-bedtime .hd-purchase-copy > .hd-bedtime-format { margin: .7rem 0 0; color: rgba(255,255,255,.82); font-size: .8rem; font-weight: 700; line-height: 1.4; }

.habit-theme-reading { --hd-bg:#dbdfb8; --hd-soft:#dff4d6; --hd-accent:#b7cf9c; --hd-deep:#63784d; }
.habit-theme-reading .hd-hero::before { inset: 8% -14% 9% 47%; border-radius: 12px 90px 90px 12px; background: linear-gradient(90deg,#fefcf0,#e4edc7); box-shadow: -13px 12px 0 rgba(255,255,255,.3); }
.habit-theme-reading .hd-hero-orbit { border-radius: 10px 28px 10px 28px; }
.habit-theme-reading .reading-flow-mobile { display: none; }
.habit-theme-reading .habit-flow-visual img { border-radius: 0; }
.habit-theme-reading .hd-journey-grid { gap: 2rem 3rem; }
.habit-theme-reading .hd-journey-card:nth-child(even) { transform: translateY(2rem); }
.habit-theme-reading .hd-journey-image { border-radius: 18px 90px 18px 90px; }

.habit-theme-cleanup { --hd-bg:#dcdcae; --hd-soft:#ffe58a; --hd-accent:#c7c377; --hd-deep:#626b3e; }
.habit-theme-cleanup .hd-hero::before { inset: 9% -13% 5% 52%; border-radius: 38px 130px 38px 130px; transform: rotate(-5deg); }
.habit-theme-cleanup .hd-hero-art video { transform: scale(1.18); }
.habit-theme-cleanup .cleanup-flow-mobile { display: none; }
.habit-theme-cleanup .habit-flow-visual img { border-radius: 0; }
.habit-theme-cleanup .hd-hero-orbit { border-radius: 22px; transform: rotate(-8deg); }
.habit-theme-cleanup .hd-journey-card:nth-child(2) .hd-journey-image,
.habit-theme-cleanup .hd-journey-card:nth-child(3) .hd-journey-image { border-radius: 30px 95px 30px 95px; }
.habit-theme-cleanup .hd-purchase-shell { padding: 0; color: var(--hd-ink); background: transparent; border-radius: 0; overflow: visible; }
.habit-theme-cleanup .hd-purchase .hd-kicker { color: var(--hd-deep); }
.habit-theme-cleanup .hd-purchase-copy > p,
.habit-theme-cleanup .hd-price span,
.habit-theme-cleanup .hd-price small { color: rgba(47,43,56,.74); }
.habit-theme-cleanup .hd-included li { padding: .25rem .6rem .25rem 0; color: var(--hd-deep); border: 0; border-radius: 0; }
.habit-theme-cleanup .hd-purchase-included summary { color: var(--hd-deep); }
.habit-theme-cleanup .hd-purchase-format { color: rgba(47,43,56,.74); }
.habit-theme-cleanup .hd-purchase-action .hd-primary { color: #fff; background: var(--hd-deep); }
.habit-theme-cleanup .hd-purchase-art::before { content: none; }
.habit-detail-page .hd-set-overview ul,
.habit-detail-page .hd-set-overview-six ul,
.habit-detail-page .hd-bedtime-set-overview ul { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.5rem; }
.habit-detail-page .hd-set-overview li:nth-child(5):nth-last-child(3),
.habit-detail-page .hd-bedtime-set-overview li:nth-child(5):nth-last-child(3),
.habit-detail-page .hd-set-overview-six li:nth-child(5):nth-last-child(2) { grid-column: 2; }

@media (max-width: 900px) {
    .hd-hero { grid-template-columns: 1fr; gap: 0; min-height: auto; text-align: center; }
    .hd-hero::before { inset: 43% -12% 0; border-radius: 48% 48% 0 0; transform: none; }
    .hd-hero-copy { max-width: 760px; margin: auto; }
    .hd-hero-copy > p { margin-inline: auto; }
    .hd-hero-actions { justify-content: center; }
    .hd-hero-art.drink-hero-art { order: 0; min-height: 500px; }
    .hd-heading-split { grid-template-columns: 1fr; gap: 0; }
    .habit-theme-wash .hd-hero::before,
    .habit-theme-bedtime .hd-hero::before,
    .habit-theme-reading .hd-hero::before,
    .habit-theme-cleanup .hd-hero::before { inset: 43% -12% 0; border-radius: 48% 48% 0 0; transform: none; }
    .habit-theme-wash .hd-journey-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .habit-theme-bedtime .hd-bedtime-set-overview ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hd-set-overview ul,
    .hd-set-overview-six ul { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .hd-set-overview-six li:nth-last-child(2) { grid-column: 2; }
    .hd-purchase-shell { grid-template-columns: 1fr; }
    .hd-purchase-art { min-height: 300px; }
    .hd-purchase-art img { max-height: 340px; }
}

@media (max-width: 640px) {
    .hd-section,
    .hd-hero { width: calc(100% - 28px); }
    .hd-hero { padding-top: 3.2rem; }
    .hd-hero h1 { font-size: clamp(3.25rem,14vw,5rem); }
    .hd-hero-actions { flex-direction: column; }
    .hd-hero-actions .hd-primary { width: 100%; }
    .hd-hero-art.drink-hero-art { min-height: 430px; }
    .habit-detail-page .hd-hero-art video { width: min(95%,390px); max-height: 370px; transform: none !important; }
    .hd-hero-orbit { min-width: 62px; min-height: 62px; font-size: .56rem; }
    .hd-hero-orbit:nth-of-type(1) { top: 10%; left: 7%; }
    .hd-hero-orbit:nth-of-type(2) { top: 31%; right: 7%; }
    .hd-hero-orbit:nth-of-type(3) { bottom: 12%; left: 9%; }
    .hd-section { padding-block: 4.2rem; }
    .hd-heading { margin-bottom: 1.8rem; }
    .hd-heading h2 { font-size: clamp(2.45rem,11vw,3.65rem); }
    .hd-benefits,
    .hd-journey-grid,
    .habit-theme-wash .hd-journey-grid,
    .hd-preview-grid { grid-template-columns: minmax(0,1fr); }
    .hd-benefits article { padding: 1rem 0 .25rem; }
    .hd-benefits h3 { margin-top: .65rem; }
    .habit-detail-page .habit-flow-visual img { border-radius: 18px; }
    .habit-theme-brush .habit-flow-visual img { border-radius: 0; }
    .hd-journey-card:nth-child(n),
    .hd-preview-grid figure:nth-child(n) { transform: none; }
    .hd-journey-image,
    .habit-theme-wash .hd-journey-image { aspect-ratio: 1.2; }
    .hd-preview-grid img { max-height: 360px; }
    .hd-set-overview ul,
    .hd-set-overview-six ul { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; }
    .hd-set-overview li:nth-child(7):last-child { grid-column: 2; }
    .hd-set-overview-six li:nth-last-child(2) { grid-column: auto; }
    .hd-set-overview img { height: 112px; }
    .hd-set-overview span { margin-top: .45rem; font-size: .67rem; }
    .hd-purchase-shell { padding: 2rem 1.3rem; border-radius: 34px; }
    .hd-purchase h2 { font-size: clamp(2.5rem,11vw,3.6rem); }
    .hd-purchase-art { min-height: 270px; }
    .hd-purchase-art img { max-height: 300px; }
    .hd-faq { padding-bottom: 5rem; }
    .hd-dialog { width: calc(100% - 12px); max-height: calc(100vh - 12px); overflow-y: auto; border-radius: 24px; }
    .hd-dialog-shell { display: block; height: auto; }
    .hd-dialog-visual { min-height: 245px; height: 31vh; max-height: 300px; }
    .hd-dialog-visual img { width: min(68%,260px); max-height: 100%; }
    .hd-dialog-content { padding: 1.4rem 1.25rem 1.8rem; overflow: visible; }
    .hd-dialog-content h2 { font-size: clamp(2.9rem,13vw,4rem); }
    .hd-dialog-buy { grid-template-columns: 1fr; }
    .hd-dialog-buy > small { grid-column: 1; }
}

@media (max-width: 400px) {
    .hd-hero-art.drink-hero-art { min-height: 430px; }
    .habit-detail-page .hd-hero-art video { width: min(90%, 300px); max-height: 310px; }
    .hd-hero-orbit { min-width: 52px; min-height: 52px; padding: .3rem; font-size: .47rem; }
    .hd-hero-orbit:nth-of-type(1) { top: 10%; left: 8%; }
    .hd-hero-orbit:nth-of-type(2) { top: 34%; right: 8%; }
    .hd-hero-orbit:nth-of-type(3) { bottom: 8%; left: 10%; }
}

@media (max-width: 640px) {
    .habit-theme-bedtime .hd-hero h1 { font-size: clamp(2.65rem, 11.5vw, 3.15rem); line-height: .94; }
    .habit-theme-bedtime .hd-hero-art.drink-hero-art { min-height: 430px; overflow: visible; }
    .habit-theme-bedtime .hd-hero-art video { width: 100%; height: 350px; max-height: none; object-fit: contain; transform: translateX(clamp(35px, 13vw, 55px)) scale(1.6) !important; transform-origin: center; }
    .habit-theme-bedtime .hd-hero-orbit:nth-of-type(1) { top: 7%; left: 3%; }
    .habit-theme-bedtime .hd-hero-orbit:nth-of-type(2) { top: 33%; right: 0; }
    .habit-theme-bedtime .hd-hero-orbit:nth-of-type(3) { bottom: 20%; left: 5%; }
    .habit-theme-bedtime .habit-flow-visual img { border-radius: 0; }
    .habit-theme-bedtime .habit-flow-visual { width: calc(100% + 28px); margin-inline: -14px; }
    .habit-theme-bedtime .hd-section { padding-block: 3.3rem; }
    .habit-theme-bedtime .hd-heading { margin-bottom: 1.35rem; }
    .habit-theme-bedtime .hd-heading h2 { font-size: clamp(2.25rem,10vw,3.25rem); }
    .habit-theme-bedtime .hd-purpose .hd-heading > p { margin-top: .75rem; }
    .habit-theme-bedtime .hd-benefits { gap: 0; margin-bottom: 1.5rem; }
    .habit-theme-bedtime .hd-benefits article { display: flex; align-items: baseline; gap: .75rem; padding: .75rem 0; }
    .habit-theme-bedtime .hd-benefits h3 { margin: 0; font-size: 1.12rem; }
    .habit-theme-bedtime .hd-benefits p,
    .habit-theme-bedtime .hd-journey-copy p,
    .habit-theme-bedtime .hd-preview-grid figcaption span { display: none; }
    .habit-theme-bedtime .hd-journey-grid { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
    .habit-theme-bedtime .hd-journey-card:nth-child(even),
    .habit-theme-bedtime .hd-preview-grid figure:nth-child(2) { transform: none; }
    .habit-theme-bedtime .hd-journey-copy { padding: .7rem .1rem 0; }
    .habit-theme-bedtime .hd-journey-copy h3 { margin: .25rem 0 0; font-size: 1.45rem; }
    .habit-theme-bedtime .hd-preview-grid { gap: 1.5rem; }
    .habit-theme-bedtime .hd-preview-grid figcaption { padding-top: .45rem; }
    .habit-theme-bedtime .hd-bedtime-set-overview { margin-top: 2.5rem; }
    .habit-theme-bedtime .hd-bedtime-set-overview ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
    .habit-theme-bedtime .hd-bedtime-set-overview li:last-child { grid-column: 2; }
    .habit-theme-bedtime .hd-bedtime-set-overview img { height: 112px; }
    .habit-theme-bedtime .hd-bedtime-set-overview span { margin-top: .45rem; font-size: .67rem; }
    .habit-theme-bedtime .hd-purchase { padding-block: 3.3rem; }
    .habit-theme-bedtime .hd-purchase-shell { width: calc(100% - 28px); }
    .habit-theme-bedtime .hd-purchase-copy > p { font-size: 1rem; }
    .habit-theme-bedtime .hd-bedtime-included ul { grid-template-columns: minmax(0,1fr); gap: .35rem; }
    .habit-theme-bedtime .hd-bedtime-included li { font-size: .86rem; }
    .habit-theme-bedtime .hd-faq { padding-bottom: 4.5rem; }
    .habit-theme-wash .hd-section { padding-block: 3.3rem; }
    .habit-theme-wash .hd-heading { margin-bottom: 1.35rem; }
    .habit-theme-wash .hd-heading h2 { font-size: clamp(2.25rem,10vw,3.25rem); }
    .habit-theme-wash .hd-purpose .hd-heading > p { margin-top: .75rem; }
    .habit-theme-wash .hd-benefits { gap: 0; margin-bottom: 1.5rem; }
    .habit-theme-wash .hd-benefits article { display: flex; align-items: baseline; gap: .75rem; padding: .75rem 0; }
    .habit-theme-wash .hd-benefits h3 { margin: 0; font-size: 1.12rem; }
    .habit-theme-wash .hd-benefits p,
    .habit-theme-wash .hd-journey-copy p,
    .habit-theme-wash .hd-preview-grid figcaption span { display: none; }
    .habit-theme-wash .habit-flow-visual img { border-radius: 0; }
    .habit-theme-wash .hd-journey-grid { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
    .habit-theme-wash .hd-journey-card:nth-child(even) { transform: none; }
    .habit-theme-wash .hd-journey-copy { padding: .7rem .1rem 0; }
    .habit-theme-wash .hd-journey-copy h3 { margin: .25rem 0 0; font-size: 1.45rem; }
    .habit-theme-wash .hd-preview-grid { gap: 1.5rem; }
    .habit-theme-wash .hd-preview-grid figcaption { padding-top: .45rem; }
    .habit-theme-wash .hd-purchase { padding-block: 3.3rem; }
    .habit-theme-wash .hd-purchase-shell { width: calc(100% - 28px); }
    .habit-theme-wash .hd-purchase-copy > p { font-size: 1rem; }
    .habit-theme-wash .hd-wash-included ul { grid-template-columns: minmax(0,1fr); gap: .35rem; }
    .habit-theme-wash .hd-wash-included li { font-size: .86rem; }
    .habit-theme-wash .hd-faq { padding-bottom: 4.5rem; }
    .habit-theme-brush .hd-section { padding-block: 3.3rem; }
    .habit-theme-brush .hd-heading { margin-bottom: 1.35rem; }
    .habit-theme-brush .hd-heading h2 { font-size: clamp(2.25rem,10vw,3.25rem); }
    .habit-theme-brush .hd-purpose .hd-heading > p { margin-top: .75rem; }
    .habit-theme-brush .hd-benefits { gap: 0; margin-bottom: 1.5rem; }
    .habit-theme-brush .hd-benefits article { display: flex; align-items: baseline; gap: .75rem; padding: .75rem 0; }
    .habit-theme-brush .hd-benefits h3 { margin: 0; font-size: 1.12rem; }
    .habit-theme-brush .hd-benefits p,
    .habit-theme-brush .hd-journey-copy p,
    .habit-theme-brush .hd-preview-grid figcaption span { display: none; }
    .habit-theme-brush .hd-journey-grid { gap: 1.4rem; }
    .habit-theme-brush .hd-journey-copy { padding: .7rem .1rem 0; }
    .habit-theme-brush .hd-journey-copy h3 { margin: .25rem 0 0; font-size: 1.45rem; }
    .habit-theme-brush .hd-preview-grid { gap: 1.5rem; }
    .habit-theme-brush .hd-preview-grid figure:nth-child(2) { transform: none; }
    .habit-theme-brush .hd-preview-grid figcaption { padding-top: .45rem; }
    .habit-theme-brush .hd-purchase { padding-block: 3.3rem; }
    .habit-theme-brush .hd-purchase-shell { width: calc(100% - 28px); }
    .habit-theme-brush .hd-purchase-copy > p { font-size: 1rem; }
    .habit-theme-brush .hd-brush-included ul { grid-template-columns: minmax(0,1fr); gap: .35rem; }
    .habit-theme-brush .hd-brush-included li { font-size: .86rem; }
    .habit-theme-brush .hd-faq { padding-bottom: 4.5rem; }
    .habit-theme-brush .hd-hero-art video {
        transform: translateX(clamp(24px, 10vw, 34px)) scale(1.15) !important;
    }

    /* The bedtime hero sets the mobile visual weight; each source video has different framing. */
    .habit-theme-wash .hd-hero-art video { transform: scale(1.45) !important; }
    .habit-theme-reading .hd-hero-art video { transform: translateX(clamp(24px, 8vw, 36px)) !important; }
    .habit-theme-reading .hd-hero-art .hero-video-canvas {
        width: min(117vw, 520px) !important;
        height: auto !important;
        transform: translate(-50%, -50%) translateX(clamp(24px, 8vw, 36px)) !important;
    }
    .habit-theme-reading .hd-hero-orbit:nth-of-type(2) { right: 0; }
    .habit-theme-reading .hd-hero-orbit:nth-of-type(3) { left: 2%; }
    .habit-theme-reading .reading-flow-desktop { display: none !important; }
    .habit-theme-reading .reading-flow-mobile { display: grid; gap: .4rem; }
    .habit-theme-reading .reading-flow-scene { position: relative; overflow: hidden; aspect-ratio: 1; }
    .habit-theme-reading .reading-flow-scene img {
        position: absolute;
        top: 0;
        left: 0;
        width: 300%;
        max-width: none;
        height: 100%;
        max-height: none;
        object-fit: fill;
        border-radius: 0;
    }
    .habit-theme-reading .reading-flow-scene:nth-child(2) img { left: -100%; }
    .habit-theme-reading .reading-flow-scene:nth-child(3) img { left: -200%; }
    .habit-theme-cleanup .cleanup-flow-desktop { display: none !important; }
    .habit-theme-cleanup .cleanup-flow-mobile { display: grid; gap: .4rem; }
    .habit-theme-cleanup .cleanup-flow-scene { position: relative; overflow: hidden; aspect-ratio: 1; }
    .habit-theme-cleanup .cleanup-flow-scene img {
        position: absolute;
        top: 0;
        left: 0;
        width: 300%;
        max-width: none;
        height: 100%;
        max-height: none;
        object-fit: fill;
        border-radius: 0;
    }
    .habit-theme-cleanup .cleanup-flow-scene:nth-child(2) img { left: -100%; }
    .habit-theme-cleanup .cleanup-flow-scene:nth-child(3) img { left: -200%; }
    .habit-theme-cleanup .hd-hero-art video { transform: scale(1.25) !important; }
    .habit-theme-cleanup .hd-hero-orbit:nth-of-type(2) { top: 14%; right: 4%; }

    .habit-theme-brush .hd-hero-orbit:nth-of-type(3) {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .habit-detail-page .hd-primary { transition: none; }
}

@media (min-width: 640px) and (max-width: 900px) {
    .habit-theme-brush .hd-hero-art.drink-hero-art { margin-top: 2.5rem; }
}

/* Compact the shared mobile story without hiding any of the four use scenes. */
@media (max-width: 640px) {
    .habit-detail-page .hd-hero { padding-top: 1.9rem; }
    .habit-detail-page .hd-kicker { font-size: .7rem; letter-spacing: .07em; }
    .habit-detail-page .hd-hero-actions { margin-top: 1.1rem; }
    .habit-detail-page .hd-hero-actions .hd-text-link { display: none; }
    .habit-detail-page .hd-hero-art.drink-hero-art { min-height: 390px; margin-top: 1.5rem; }
    .habit-theme-brush .hd-hero-art.drink-hero-art { margin-top: 3.25rem; }
    .habit-detail-page .hd-journey { padding-block: 3.2rem; }
    .habit-detail-page .hd-journey-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: min(77vw, 320px);
        grid-template-columns: none;
        gap: 1rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: .2rem .15rem 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }
    .habit-detail-page .hd-journey-card { scroll-snap-align: start; }
    .habit-detail-page .hd-journey-card:nth-child(n) { transform: none; }
    .habit-detail-page .habit-carousel .hd-journey-grid { grid-auto-columns: 100%; gap: 0; padding: 0; scrollbar-width: none; }
    .habit-detail-page .habit-carousel .hd-journey-grid::-webkit-scrollbar { display: none; }
    .habit-detail-page .hd-preview { padding-top: 3rem; }
    .habit-detail-page .hd-set-overview ul,
    .habit-detail-page .hd-set-overview-six ul,
    .habit-detail-page .hd-bedtime-set-overview ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
    .habit-detail-page .hd-set-overview li:nth-child(5):nth-last-child(3),
    .habit-detail-page .hd-bedtime-set-overview li:nth-child(5):nth-last-child(3),
    .habit-detail-page .hd-set-overview-six li:nth-child(5):nth-last-child(2) { grid-column: auto; }
    .habit-detail-page .hd-set-overview li:nth-child(7):last-child,
    .habit-detail-page .hd-bedtime-set-overview li:nth-child(7):last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
    .habit-detail-page .hd-set-overview img,
    .habit-detail-page .hd-bedtime-set-overview img { height: clamp(150px, 45vw, 185px); }
    .habit-detail-page .hd-set-overview,
    .habit-detail-page .hd-bedtime-set-overview { margin-top: 1.4rem; }
    .habit-detail-page .hd-dialog-visual { min-height: 0; height: clamp(105px, 18svh, 145px); padding: .2rem; }
    .habit-detail-page .hd-dialog-visual img { width: min(42%, 135px); }
    .habit-detail-page .hd-dialog-content { padding: 1rem 1.15rem 1.4rem; }
    .habit-detail-page .hd-dialog-content h2 { margin: .35rem 0; font-size: clamp(2.25rem, 9vw, 3rem); }
    .habit-detail-page .hd-dialog-intro { font-size: .88rem; }
    .habit-detail-page .hd-dialog-meta { margin: .65rem 0 .75rem; }
.habit-detail-page .hd-dialog-buy { padding-top: .65rem; }
}

@media (max-width: 400px) {
    .habit-theme-bedtime .hd-hero-art video { transform: translateX(68px) scale(2.1) !important; }
}
