html {
    background-color: #0f172a;
    scrollbar-gutter: stable;
}

body {
    background-color: #0f172a;
    background-image: radial-gradient(700px 700px at 12% 16%, rgba(96,165,250,.12), transparent 68%),
                radial-gradient(760px 760px at 88% 30%, rgba(168,85,247,.11), transparent 70%),
                radial-gradient(680px 680px at 52% 82%, rgba(56,189,248,.08), transparent 72%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Noto Sans JP", sans-serif;
    color: #f8fafc;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-shell {
    position: relative;
    z-index: 1;
}

.page-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .9;
    transform: translateZ(0);
}

.page-bg-orb--1 {
    width: 720px;
    height: 720px;
    left: -120px;
    top: -40px;
    background: rgba(96,165,250,.14);
}

.page-bg-orb--2 {
    width: 760px;
    height: 760px;
    right: -160px;
    top: 220px;
    background: rgba(168,85,247,.13);
}

.page-bg-orb--3 {
    width: 700px;
    height: 700px;
    left: 24%;
    top: 1200px;
    background: rgba(56,189,248,.10);
}

.page-bg-orb--4 {
    width: 720px;
    height: 720px;
    right: -140px;
    top: 2100px;
    background: rgba(168,85,247,.10);
}

.page-bg-orb--5 {
    width: 680px;
    height: 680px;
    left: -100px;
    top: 3000px;
    background: rgba(96,165,250,.09);
}

.snap-section {
    scroll-margin-top: 64px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-b {
    background: linear-gradient(to right, #c084fc, #84a2fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hp-grid-bg {
    background-image: linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,.15));
}

.hp-section-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hp-card {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.hp-stat {
    background: radial-gradient(circle at top, rgba(96,165,250,.14), transparent 55%), rgba(255,255,255,.03);
}

.hp-number {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hp-flow-line {
    position: absolute;
    left: 1rem;
    top: 2.6rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(96,165,250,.45), rgba(168,85,247,.1));
}

.hp-flow-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 3px solid rgba(15,23,42,.95);
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    box-shadow: 0 0 0 6px rgba(96,165,250,.1);
    flex-shrink: 0;
    margin-top: .25rem;
}

.hp-table-wrap {
    overflow-x: auto;
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(14px);
}

.hp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.hp-table th, .hp-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
    font-size: .96rem;
}

.hp-table th {
    color: #cbd5e1;
    background: rgba(15,23,42,.7);
    font-weight: 700;
    white-space: nowrap;
}

.hp-table tr:last-child td {
    border-bottom: 0;
}

.hp-chip {
    display: inline-flex;
    align-items: center;
    padding: .42rem .72rem;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #e2e8f0;
    font-size: .9rem;
}

.hp-mini-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.hp-mini-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(96,165,250,.95), rgba(168,85,247,.95));
}

.hp-compare th:first-child, .hp-compare td:first-child {
    position: sticky;
    left: 0;
    background: rgba(15,23,42,.98);
    z-index: 1;
}

.hp-ok {
    color: #93c5fd;
    font-weight: 800;
}

.hp-ng {
    color: #fda4af;
    font-weight: 800;
}

.hero-photo-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 20%;
    transform: translateY(20px) scale(1.10);
    filter: brightness(0.92) saturate(1.02);
}

.hero-photo-img {
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 35%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,0) 85%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 50%,
        rgba(0,0,0,0) 90%,
        transparent 100%
    );
}

/* @media (max-width: 767px) {
    .hero-photo-img {
        object-fit: cover;
        object-position: center top;
        transform: scale(0.88);
    }
} */

@media (max-width: 767px) {
    .hero-photo-wrap {
        inset: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
    }

    .hero-photo-img {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center top;
        transform: translateY(50px) translateX(-50px) scale(1.7);
    }
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(20deg,
                    rgba(2, 6, 23, 0.0) 0%,
                    rgba(2, 6, 23, 0.0) 55%,
                    rgba(2, 6, 23, 0.474) 80%,
                    rgba(2, 6, 23, 0.632) 90%,
                    rgb(2, 6, 23) 100%),
                linear-gradient(350deg,
                    rgba(2, 6, 23, 0.0) 0%,
                    rgba(2, 6, 23, 0.0) 50%,
                    rgba(2, 6, 23, 0.442) 70%,
                    rgb(2, 6, 23) 100%);
}

.hero-bottom-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.95));
}

.hero-content-wrap {
    position: relative;
    z-index: 10;
    max-width: 760px;
}

.hero-cta-wrap {
    margin-top: 3rem;
    max-width: 1120px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 56px;
    padding: .95rem 1.4rem;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.cta-button svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.cta-button--primary {
    color: #eff6ff;
    background: linear-gradient(135deg, rgba(37,99,235,.9), rgba(129,140,248,.82));
    box-shadow: 0 20px 50px rgba(37,99,235,.24);
}

.cta-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(37,99,235,.3);
}

.cta-button--disabled {
    color: #94a3b8;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    cursor: not-allowed;
    opacity: .78;
}

.evidence-highlight-grid {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.evidence-highlight-card {
    position: relative;
    overflow: hidden;
}

.evidence-highlight-card::after {
    content: "";
    position: absolute;
    inset: auto -14% -28% auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96,165,250,.2), transparent 70%);
    pointer-events: none;
}

.evidence-highlight-card p {
    position: relative;
    z-index: 1;
}

.promo-video-stage {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    background: radial-gradient(circle at 24% 22%, rgba(96,165,250,.24), transparent 30%),
                radial-gradient(circle at 78% 76%, rgba(168,85,247,.22), transparent 32%),
                linear-gradient(180deg, rgba(15,23,42,.92), rgba(2,6,23,1));
    margin-top: 82px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(216,180,254,.18);
    animation: promoVideoBreath 3.6s ease-in-out infinite;
}



.promo-video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.promo-video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-video-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(15,23,42,.45), rgba(15,23,42,.12)),
        radial-gradient(circle at center, rgba(255,255,255,.06), transparent 55%);
    pointer-events: none;
}

.promo-video-placeholder-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.promo-video-play {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
    transition: transform .25s ease, background .25s ease;
}

.promo-video-play svg {
    width: 28px;
    height: 28px;
    margin-left: 2px;
}

.promo-video-placeholder:hover .promo-video-play {
    transform: scale(1.00);
    background: rgba(83, 90, 101, 0.68);
}



.promo-video-stage video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

@media (max-width: 767px) {
    .promo-video-stage {
        margin-top: 0px;
    }

    .hero-cta-wrap {
        margin-top: 2.5rem;
    }

    .hero-cta-row {
        align-items: stretch;
        gap: .85rem;
    }

    .cta-button {
        width: 100%;
    }
}

.app-feature-card {
    position: relative;
    overflow: hidden;
}

.app-feature-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(96,165,250,.14), transparent 70%);
    pointer-events: none;
}

.app-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.app-point-num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #bfdbfe;
    font-size: .82rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: .15rem;
}

.app-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

.app-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #e2e8f0;
    font-size: .9rem;
}

.app-pill-dot {
    width: .45rem;
    height: .45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    flex-shrink: 0;
}

.app-device-stack {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
}

.app-device-glow {
    position: absolute;
    inset: 8% -12% -8% -12%;
    background: radial-gradient(circle at 30% 25%, rgba(96,165,250,.22), transparent 34%),
                radial-gradient(circle at 72% 70%, rgba(168,85,247,.22), transparent 35%);
    filter: blur(30px);
    pointer-events: none;
}

.app-phone {
    position: relative;
    z-index: 2;
    margin-inline: auto;
    height: min(82vh, 760px);
    width: min(100%, 320px);
    aspect-ratio: 390 / 844;
    border-radius: 2.7rem;
    padding: 12px;
    background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.02)),
                linear-gradient(180deg, #111827 0%, #020617 100%);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 30px 90px rgba(2,6,23,.55),
                inset 0 1px 0 rgba(255,255,255,.16);
}

.app-phone::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 34%;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 0 0 1rem 1rem;
    background: rgba(2,6,23,.95);
    z-index: 4;
}

.app-phone-inner {
    position: relative;
    height: 100%;
    border-radius: 2.1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(2,6,23,1));
    border: 1px solid rgba(255,255,255,.06);
}

.app-phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 1.2rem .75rem;
    font-size: .72rem;
    color: rgba(226,232,240,.8);
    letter-spacing: .04em;
}

.app-phone-slides {
    position: relative;
    height: calc(100% - 52px);
}

.app-phone-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
    padding: 1rem .82rem 1rem;
}

.app-phone-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.app-ui-card {
    border-radius: 1.3rem;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.app-ui-heading {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.app-ui-sub {
    color: #94a3b8;
    font-size: .78rem;
}

.app-phone-nav {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.app-phone-tab {
    appearance: none;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #cbd5e1;
    border-radius: 999px;
    padding: .65rem .9rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: all .2s ease;
}

.app-phone-tab.is-active, .app-phone-tab:hover {
    color: #fff;
    border-color: rgba(96,165,250,.32);
    background: linear-gradient(90deg, rgba(59,130,246,.18), rgba(168,85,247,.16));
    box-shadow: 0 12px 30px rgba(15,23,42,.22);
}

.app-phone-slide::-webkit-scrollbar {
    display: none;
}

.app-home-hero {
    position: relative;
    padding: 1rem;
    border-radius: 1.35rem;
    background: radial-gradient(circle at 70% 14%, rgba(191,219,254,.22), transparent 18%),
                linear-gradient(180deg, rgba(14, 116, 214, .92) 0%, rgba(15, 23, 42, .96) 100%);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}

.app-home-hero::before {
    content: "";
    position: absolute;
    inset: auto -8% -24% -8%;
    height: 46%;
    background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.14), transparent 32%),
                linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
    border-radius: 45% 45% 0 0 / 30% 30% 0 0;
    pointer-events: none;
}

.app-home-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: rgba(255,255,255,.9);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.app-status-live {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #bbf7d0;
    border: 1px solid rgba(255,255,255,.08);
}

.app-status-live::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: #86efac;
    box-shadow: 0 0 0 5px rgba(134,239,172,.14);
}

.app-home-title {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.app-home-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.app-home-metric {
    min-height: 92px;
    padding: .9rem .9rem 1rem;
    border-radius: 1.1rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.app-home-metric span {
    display: block;
    font-size: .68rem;
    opacity: .9;
}

.app-home-metric strong {
    display: block;
    margin-top: .55rem;
    font-size: 1.00rem;
    line-height: 1.15;
    font-weight: 900;
}

.app-home-metric--blue {
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(96,165,250,.92));
}

.app-home-metric--green {
    background: linear-gradient(135deg, rgba(4,120,87,.92), rgba(110,231,183,.92));
}

.app-home-metric--violet {
    background: linear-gradient(135deg, rgba(67,56,202,.86), rgba(192,132,252,.82));
}

.app-home-metric--gold {
    background: linear-gradient(135deg, rgba(146,123,35,.88), rgba(250,204,21,.86));
    color: #fffbe8;
}

.app-setting-list {
    display: grid;
    gap: .75rem;
    margin-top: .95rem;
}

.app-setting-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .8rem;
    align-items: center;
    padding: .8rem .9rem;
    border-radius: 1rem;
    background: rgba(15,23,42,.56);
    border: 1px solid rgba(255,255,255,.06);
}

.app-setting-item strong {
    display: block;
    color: #fff;
    font-size: .84rem;
    line-height: 1.25;
}

.app-setting-item span {
    display: block;
    color: #94a3b8;
    font-size: .68rem;
    margin-top: .22rem;
}

.app-setting-item em {
    color: #dbeafe;
    font-style: normal;
    font-size: .8rem;
    font-weight: 700;
}

.app-toggle {
    position: relative;
    width: 2.95rem;
    height: 1.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59,130,246,.88), rgba(96,165,250,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
    flex-shrink: 0;
}

.app-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 1.38rem;
    height: 1.38rem;
    border-radius: 999px;
    background: #f8fafc;
    box-shadow: 0 4px 14px rgba(15,23,42,.24);
}

.app-report-tabs {
    display: flex;
    gap: .45rem;
    margin-top: .2rem;
}

.app-report-chip {
    padding: .34rem .6rem;
    border-radius: 999px;
    font-size: .66rem;
    color: #94a3b8;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

.app-report-chip.is-active {
    color: #dbeafe;
    border-color: rgba(96,165,250,.26);
    background: rgba(59,130,246,.14);
}

.app-date-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .95rem;
    color: #e2e8f0;
    font-size: .78rem;
    font-weight: 700;
}

.app-date-arrow {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: #cbd5e1;
    flex-shrink: 0;
}

.app-sleep-duration {
    display: flex;
    align-items: flex-end;
    gap: .18rem;
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.app-sleep-duration strong {
    font-size: 2rem;
    letter-spacing: -.04em;
}

.app-sleep-duration span {
    font-size: .76rem;
    color: #cbd5e1;
    margin-bottom: .22rem;
}

.app-data-note {
    margin-top: .75rem;
    color: #cbd5e1;
    font-size: .72rem;
    line-height: 1.65;
}

.app-sleep-track {
    position: relative;
    height: 104px;
    margin-top: .9rem;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px),
                linear-gradient(180deg, rgba(15,23,42,.34), rgba(15,23,42,.08));
    background-size: 100% 25%, 16% 100%, auto;
}

.app-sleep-layer {
    position: absolute;
    inset: 0;
}

.app-sleep-layer span {
    position: absolute;
    height: 14px;
    border-radius: .45rem;
}

.app-layer-sleep {
    background: rgba(139,92,246,.88);
    top: 48px;
}

.app-layer-awake {
    background: rgba(221,214,254,.88);
    top: 28px;
}

.app-layer-snore {
    background: rgba(245,158,11,.96);
    top: 70px;
    height: 16px !important;
}

.app-layer-action {
    background: rgba(45,212,191,.92);
    top: 90px;
    height: 8px !important;
}

.app-layer-away {
    background: rgba(241,228,220,.86);
    top: 16px;
    height: 8px !important;
}

.app-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem .75rem;
    margin-top: .85rem;
}

.app-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #cbd5e1;
    font-size: .68rem;
}

.app-legend-item i {
    width: .7rem;
    height: .7rem;
    border-radius: .2rem;
    display: inline-block;
}

.app-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: .9rem;
}

.app-kpi-card {
    padding: .9rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.app-kpi-card strong {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.app-kpi-card span {
    display: block;
    color: #94a3b8;
    font-size: .68rem;
    margin-top: .35rem;
    line-height: 1.5;
}

.app-month-score-card {
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.08);
}

.app-month-score-card .label {
    color: #94a3b8;
    font-size: .7rem;
}

.app-month-score-card .value {
    margin-top: .45rem;
    color: #60a5fa;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.app-calendar {
    margin-top: .95rem;
    padding: .9rem;
    border-radius: 1.2rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

.app-calendar-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .4rem;
    margin-top: .7rem;
    color: #94a3b8;
    font-size: .62rem;
    text-align: center;
    font-weight: 700;
}

.app-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .7rem;
}

.app-calendar-cell {
    min-height: 52px;
    border-radius: .95rem;
    padding: .45rem .32rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,.06);
}

.app-calendar-cell small {
    color: inherit;
    font-size: .56rem;
    opacity: .86;
}

.app-calendar-cell strong {
    color: inherit;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1;
}

.app-calendar-cell.is-empty {
    background: rgba(148,163,184,.12);
    color: #64748b;
}

.app-calendar-cell.is-good {
    background: linear-gradient(180deg, rgba(52,211,153,.22), rgba(52,211,153,.34));
    color: #dcfce7;
}

.app-calendar-cell.is-ok {
    background: linear-gradient(180deg, rgba(250,204,21,.22), rgba(245,158,11,.30));
    color: #fef3c7;
}

.app-calendar-cell.is-caution {
    background: linear-gradient(180deg, rgba(251,113,133,.24), rgba(244,114,182,.30));
    color: #ffe4e6;
}

.app-calendar-legend {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    margin-top: .7rem;
    color: #cbd5e1;
    font-size: .62rem;
    flex-wrap: wrap;
}

.app-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.app-calendar-legend i {
    width: .62rem;
    height: .62rem;
    border-radius: 999px;
    display: inline-block;
}

.app-mini-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: .9rem;
}

.app-mini-chart-card {
    padding: .85rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.app-mini-chart-title {
    color: #cbd5e1;
    font-size: .68rem;
    line-height: 1.4;
}

.app-mini-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .28rem;
    height: 64px;
    margin-top: .65rem;
}

.app-mini-bars span {
    display: block;
    width: 100%;
    border-radius: .45rem .45rem .2rem .2rem;
    background: rgba(96,165,250,.92);
}

.app-mini-bars.is-teal span {
    background: rgba(52,211,153,.88);
}

.app-mini-bars.is-pink span {
    background: rgba(251,113,133,.88);
}

.app-week-score {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.app-week-score strong {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
}

.app-week-score span {
    color: #94a3b8;
    font-size: .7rem;
}

.app-week-score .value {
    color: #f8fafc;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.app-week-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .45rem;
    align-items: end;
    height: 112px;
    margin-top: .95rem;
}

.app-week-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .32rem;
    height: 100%;
}

.app-week-bar {
    width: 100%;
    border-radius: .55rem .55rem .2rem .2rem;
    margin-top: auto;
}

.app-week-bar-col small {
    color: #94a3b8;
    font-size: .58rem;
}

.app-week-text {
    margin-top: .9rem;
    padding: .95rem 1rem;
    border-radius: 1.05rem;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    color: #cbd5e1;
    font-size: .78rem;
    line-height: 1.9;
}

.app-week-text strong {
    color: #fff;
}

.app-inline-highlight {
    color: #bfdbfe;
    font-weight: 800;
}

.app-mini-week-card {
    margin-top: .85rem;
    padding: .85rem .95rem;
    border-radius: 1rem;
    background: rgba(15,23,42,.56);
    border: 1px solid rgba(255,255,255,.06);
}

.app-mini-week-card p {
    margin-top: .35rem;
    color: #cbd5e1;
    font-size: .72rem;
    line-height: 1.7;
}

.exploded-stage-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.3));
    pointer-events: none;
    opacity: .7;
}

@media (max-width: 639px) {
    .app-home-grid, .app-kpi-grid, .app-mini-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .mech-perspective-stage {
        border-radius: 1.5rem;
        padding: .8rem;
    }

    .mech-label {
        padding: .55rem .78rem;
        font-size: .68rem;
    }

    .mech-label:hover,
    .mech-label:focus-visible {
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
}

.mech-perspective-stage {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    padding: clamp(1rem, 2vw, 1.6rem);
    height: clamp(380px, 34vw, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 18% 24%, rgba(96,165,250,.12), transparent 24%),
                radial-gradient(circle at 78% 74%, rgba(168,85,247,.12), transparent 26%),
                linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 28px 80px rgba(2,6,23,.34);
}

.mech-perspective-figure {
    position: relative;
    width: min(100%, 1180px);
    margin: 0;
    aspect-ratio: 1338 / 1106;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none), (pointer: coarse) {
    .mech-hover-detail.is-switching .mech-hover-title,
    .mech-hover-detail.is-switching .mech-hover-desc {
        opacity: 1;
    }
}

.mech-perspective-image, .mech-part-glow {
    grid-area: 1 / 1;
    width: 120%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.mech-perspective-image {
    filter: drop-shadow(0 26px 45px rgba(2,6,23,.35));
}

.mech-part-glow {
    pointer-events: none;
    opacity: 0;
    transform: scale(1);
    transition: opacity .22s ease,
                transform .22s ease,
                filter .22s ease;
    will-change: opacity, transform, filter;
    mix-blend-mode: normal;
}

.mech-part-glow.is-active {
    opacity: .72;
    transform: scale(1.005);
    filter: drop-shadow(0 0 6px rgba(196, 181, 253, .72))
                drop-shadow(0 0 14px rgba(168, 85, 247, .62))
                drop-shadow(0 0 24px rgba(147, 51, 234, .48))
                drop-shadow(0 0 34px rgba(109, 40, 217, .32));
}

.mech-label {
    position: absolute;
    transform: translate3d(-50%, -50%, 0) scale(1);
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    pointer-events: none;
    user-select: none;
    z-index: 3;
    color: rgba(255, 255, 255, 0.46);
    font-size: clamp(.72rem, .9vw, .95rem);
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.15;
    white-space: nowrap;
    transition: transform .22s ease,
                color .22s ease,
                opacity .22s ease,
                text-shadow .22s ease;
}

.mech-label.is-active {
    transform: translate3d(-50%, -50%, 0) scale(1.08);
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 0 8px rgba(196, 181, 253, .26),
                0 0 16px rgba(168, 85, 247, .24),
                0 0 24px rgba(109, 40, 217, .18);
}

.mech-hover-detail {
    position: relative;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.mech-hover-detail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(96,165,250,.08), rgba(196,181,253,.05));
    pointer-events: none;
}

.mech-hover-title {
    position: relative;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,.96);
    transition: opacity .26s ease, transform .26s ease;
    will-change: opacity, transform;
}

.mech-hover-desc {
    position: relative;
    margin-top: .5rem;
    margin-bottom: 0;
    font-size: .94rem;
    line-height: 1.8;
    color: rgba(226,232,240,.88);
    transition: opacity .26s ease, transform .26s ease;
    will-change: opacity, transform;
}

.mech-hover-detail.is-switching .mech-hover-title, .mech-hover-detail.is-switching .mech-hover-desc {
    opacity: .35;
}

@media (max-width: 767px) {
    .hp-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hp-table, .hp-table thead, .hp-table tbody, .hp-table tr, .hp-table th, .hp-table td {
        display: block;
        width: 100%;
    }

    .hp-table {
        min-width: 0;
        border-collapse: separate;
    }

    .hp-table thead {
        display: none;
    }

    .hp-table tbody {
        display: grid;
        gap: 1rem;
    }

    .hp-table tr {
        padding: 1rem 1rem .9rem;
        border-radius: 1.1rem;
        border: 1px solid rgba(255,255,255,.08);
        background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
        box-shadow: 0 14px 34px rgba(2,6,23,.18);
    }

    .hp-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .9rem;
        padding: .72rem 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: .9rem;
        text-align: right;
    }

    .hp-table td:first-child {
        display: block;
        padding: 0 0 .85rem 0;
        margin-bottom: .15rem;
        border-bottom: 1px solid rgba(255,255,255,.10);
        font-size: 1rem;
        font-weight: 800;
        color: #fff;
        text-align: left;
        background: none;
        position: static;
    }

    .hp-table td:last-child {
        border-bottom: 0;
    }

    .hp-compare th:first-child, .hp-compare td:first-child {
        position: static;
        left: auto;
        z-index: auto;
    }

    .hp-compare td:nth-child(2)::before, .hp-compare td:nth-child(3)::before, .hp-compare td:nth-child(4)::before {
        font-size: .78rem;
        font-weight: 700;
        color: #94a3b8;
        text-align: left;
        flex: 1 1 auto;
    }

    .hp-compare td:nth-child(2)::before {
        content: "Hyper NemupiT";
    }

    .hp-compare td:nth-child(3)::before {
        content: "音声識別デバイス";
    }

    .hp-compare td:nth-child(4)::before {
        content: "ウェアラブルデバイス";
    }

    .hp-compare td.hp-ok, .hp-compare td.hp-ng {
        font-size: 1.05rem;
        font-weight: 800;
    }
}


.snap-anchor {
    height: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .evidence-section {
        min-height: 100svh;
        padding-top: 72px;
        padding-bottom: 28px;
    }

    .evidence-section .max-w-7xl {
        width: 100%;
    }

    .evidence-section .hp-section-title {
        font-size: clamp(1.9rem, 2.4vw, 2.5rem);
        line-height: 1.15;
        margin-top: 0.35rem;
    }

    .evidence-section h3.text-gradient-b {
        font-size: 2rem;
        line-height: 1.05;
        margin-top: 0.2rem;
    }

    .evidence-section .evidence-highlight-card {
        padding: 1rem 1rem 0.9rem;
    }

    .evidence-section .hp-number {
        font-size: clamp(1.8rem, 2.2vw, 2.4rem);
        line-height: 1;
    }

    .evidence-section .evidence-highlight-card p {
        margin-top: 0.45rem;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .evidence-section .hp-table {
        font-size: 0.92rem;
    }

    .evidence-section .hp-table th, .evidence-section .hp-table td {
        padding: 0.58rem 0.8rem;
        line-height: 1.25;
    }

    .evidence-section .hp-card.rounded-3xl {
        padding: 1rem 1rem 0.9rem;
    }

    .evidence-section .hp-mini-bar {
        height: 8px;
        margin-top: 0.7rem;
    }

    .evidence-section [data-aos="fade-up"] + [data-aos="fade-up"] {
        margin-top: 0.75rem;
    }
}

@keyframes promoVideoBreath {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(192,132,252,.22),
                    0 0 18px rgba(168,85,247,.18),
                    0 0 34px rgba(168,85,247,.10);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(216,180,254,.42),
                    0 0 30px rgba(168,85,247,.34),
                    0 0 68px rgba(168,85,247,.22),
                    0 0 110px rgba(96,165,250,.10);
    }
}

.sleep-story-section {
    position: relative;
    padding: 1.5rem 0 2rem;
    /* background: radial-gradient(circle at 14% 16%, rgba(96,165,250,.14), transparent 28%),
                radial-gradient(circle at 84% 78%, rgba(168,85,247,.14), transparent 30%),
                linear-gradient(180deg, rgba(15,23,42,.42), rgba(2,6,23,.18)); */
    background: transparent;
}

.sleep-story-shell {
    min-height: calc(80vh - 100px);
    padding: 1.45rem 1.45rem 2.3rem;
    background: radial-gradient(circle at 16% 18%, rgba(96,165,250,.10), transparent 26%),
                radial-gradient(circle at 82% 76%, rgba(168,85,247,.10), transparent 30%),
                linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,.46));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 70px rgba(2,6,23,.24);
    position: relative;
    border-radius: 2rem;
    overflow: visible;
}

.sleep-story-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.45));
    pointer-events: none;
}

.sleep-story-head {
    margin-bottom: 1rem;
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2rem 1rem;
    align-items: flex-end;
}

.sleep-story-head-copy {
    max-width: 760px;
}

.sleep-story-track {
    position: relative;
    display: grid;
    padding: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

.sleep-story-card {
    grid-area: 1 / 1;
    position: relative;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.sleep-story-card.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: sleepStoryFade .8s ease both;
}

.sleep-story-card-body {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
}

.sleep-story-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "head head"
                "copy data";
    gap: 1.25rem 1.25rem;
    align-items: start;
}

.sleep-story-card-head {
    grid-area: head;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: .15rem;
}

.sleep-story-copy-panel {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sleep-story-data-panel {
    grid-area: data;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@keyframes sleepStoryFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sleep-story-card-title {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    line-height: 1.12;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.04em;
}

.sleep-story-card-sub {
    color: #cbd5e1;
    font-size: .96rem;
    line-height: 1.78;
    max-width: 32rem;
}

.sleep-story-metric {
    padding: 1.2rem 1.25rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(circle at top right, rgba(96,165,250,.12), transparent 34%),
                rgba(255,255,255,.045);
}

.sleep-story-metric-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #93c5fd;
}

.sleep-story-metric-value {
    margin-top: .55rem;
    font-size: clamp(2.2rem, 3.2vw, 3.4rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.06em;
    color: #fff;
}

.sleep-story-metric-note {
    margin-top: .75rem;
    color: #cbd5e1;
    line-height: 1.75;
    font-size: .94rem;
}

.sleep-story-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.sleep-story-stat-chip {
    padding: .95rem 1rem;
    border-radius: 1.2rem;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.sleep-story-stat-chip strong {
    display: block;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.sleep-story-stat-chip span {
    display: block;
    margin-top: .34rem;
    color: #94a3b8;
    font-size: .76rem;
    line-height: 1.6;
}

.sleep-story-panel, .sleep-story-table-wrap {
    border-radius: 1.35rem;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.sleep-story-panel {
    padding: .95rem 1rem;
}

.sleep-story-panel-title {
    color: #fff;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.35;
}

.sleep-story-panel-sub {
    margin-top: .32rem;
    color: #94a3b8;
    font-size: .76rem;
    line-height: 1.6;
}

.sleep-story-bar-list {
    display: grid;
    gap: .72rem;
    margin-top: .9rem;
}

.sleep-story-bar-row {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
}

.sleep-story-bar-label, .sleep-story-bar-value {
    font-size: .8rem;
    font-weight: 700;
}

.sleep-story-bar-label {
    color: #e2e8f0;
}

.sleep-story-bar-value {
    color: #cbd5e1;
    white-space: nowrap;
}

.sleep-story-bar-track {
    position: relative;
    height: .95rem;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px),
                rgba(255,255,255,.04);
    background-size: 12.5% 100%, auto;
}

.sleep-story-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar-w, 50%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(96,165,250,.98), rgba(168,85,247,.92));
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
}

.sleep-story-bar-fill.is-highlight {
    background: linear-gradient(90deg, rgba(251,191,36,.96), rgba(251,146,60,.96));
}

.sleep-story-people {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.sleep-story-person {
    display: grid;
    place-items: center;
    border-radius: 1rem;
    padding: .7rem .35rem .8rem;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    color: #64748b;
}

.sleep-story-person svg {
    width: 34px;
    height: 62px;
    display: block;
}

.sleep-story-person.is-highlight {
    color: #c4b5fd;
    box-shadow: inset 0 0 0 1px rgba(196,181,253,.22);
    background: linear-gradient(180deg, rgba(124,58,237,.16), rgba(124,58,237,.06));
}

.sleep-story-person span {
    margin-top: .45rem;
    font-size: .68rem;
    font-weight: 700;
    color: #cbd5e1;
}

.sleep-story-age-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.sleep-story-age-card {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.sleep-story-age-card strong {
    display: block;
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
}

.sleep-story-age-card p {
    margin-top: .4rem;
    color: #cbd5e1;
    font-size: .8rem;
    line-height: 1.7;
}

.sleep-story-dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.sleep-story-dual-item {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.sleep-story-dual-item strong {
    display: block;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1;
}

.sleep-story-dual-item span {
    display: block;
    margin-top: .4rem;
    color: #cbd5e1;
    font-size: .78rem;
}

.sleep-story-dual-item .sleep-story-bar-track {
    margin-top: .75rem;
}

.sleep-story-table-wrap {
    overflow: hidden;
}

.sleep-story-table-title {
    padding: 1rem 1.05rem .55rem;
    color: #fff;
    font-size: .96rem;
    font-weight: 800;
}

.sleep-story-table {
    width: 100%;
    border-collapse: collapse;
}

.sleep-story-table th, .sleep-story-table td {
    padding: .78rem .85rem;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .8rem;
    line-height: 1.55;
}

.sleep-story-table th {
    color: #cbd5e1;
    background: rgba(15,23,42,.62);
    font-weight: 800;
    white-space: nowrap;
}

.sleep-story-table td {
    color: #e2e8f0;
    vertical-align: top;
}

.sleep-story-progress {
    position: absolute;
    left: 1.35rem;
    right: 1.35rem;
    height: 2px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    overflow: hidden;
    z-index: 5;
}

.sleep-story-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(125,211,252,.95), rgba(196,181,253,.95));
    animation: sleepStoryProgress var(--sleep-story-duration, 15s) linear forwards;
}

.sleep-story-progress.is-paused > span {
    animation-play-state: paused;
}

@keyframes sleepStoryProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (max-width: 1023px) {
    .sleep-story-head {
        padding: 1.45rem 1.2rem .7rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .sleep-story-track {
        inset: 11rem 1rem 1rem;
    }

    .sleep-story-card-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "copy"
            "data";
        gap: .9rem;
        align-items: start;
    }

    .sleep-story-card-head {
        grid-area: head;
        margin-bottom: 0;
        gap: .45rem;
    }

    .sleep-story-copy-panel {
        grid-area: copy;
    }

    .sleep-story-data-panel {
        grid-area: data;
    }

    .sleep-story-card-title {
        font-size: 1.55rem;
        line-height: 1.14;
    }

    .sleep-story-card-sub {
        font-size: .92rem;
        line-height: 1.72;
    }

    .sleep-story-card-body {
        padding: .9rem;
    }
}

@media (max-width: 767px) {
    .sleep-story-section {
        padding: .5rem 0 1.25rem;
    }

    .sleep-story-shell {
        min-height: auto;
        border-radius: 1.6rem;
    }

    .sleep-story-head {
        padding: 1.2rem 1rem .65rem;
        gap: .85rem;
    }

    .sleep-story-track {
        position: relative;
        inset: auto;
        min-height: 0;
        padding: 0 0 1rem;
    }

    .sleep-story-card {
        position: relative;
        inset: auto;
        padding: .45rem .65rem 0;
        display: none;
        opacity: 1;
        transform: none;
    }

    .sleep-story-card.is-active {
        display: block;
    }

    .sleep-story-card-body {
        min-height: 0;
        max-height: none;
    }


    .sleep-story-metric-value {
        font-size: 2.55rem;
    }

    .sleep-story-stat-row, .sleep-story-age-grid, .sleep-story-dual {
        grid-template-columns: 1fr;
    }

    .sleep-story-people {
        display: none;
    }

    .sleep-story-table {
        display: block;
        overflow-x: auto;
    }

    .sleep-story-progress {
        left: 1rem;
        right: 1rem;
        bottom: .55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sleep-story-card, .sleep-story-progress > span {
        transition: none !important;
        animation: none !important;
    }
}

.sleep-story-arrow {
    position: absolute;
    top: 50vh;
    transform: translateY(-50%);
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 4.8rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.72);
    cursor: pointer;
    transition: transform .22s ease,
                color .22s ease,
                opacity .22s ease,
                filter .22s ease;
}

.sleep-story-arrow--prev {
    left: 1rem;
}

.sleep-story-arrow--next {
    right: 1rem;
}

.sleep-story-arrow svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.22));
}

.sleep-story-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 2.2rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.28));
    opacity: .55;
    transition: opacity .22s ease, transform .22s ease;
}

.sleep-story-arrow--prev::after {
    left: 1.1rem;
    transform: translateY(-50%);
}

.sleep-story-arrow--next::after {
    right: 1.1rem;
    transform: translateY(-50%) scaleX(-1);
}

.sleep-story-arrow:hover {
    color: rgba(255,255,255,.96);
    filter: brightness(1.08);
}

.sleep-story-arrow--prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.sleep-story-arrow--next:hover {
    transform: translateY(-50%) translateX(4px);
}

.sleep-story-arrow:hover::after {
    opacity: .9;
}

.sleep-story-arrow:active {
    opacity: .72;
}

@media (max-width: 1024px) {
    .sleep-story-arrow {
        width: 2rem;
        height: 4rem;
    }

    .sleep-story-arrow--prev {
        left: .35rem;
    }

    .sleep-story-arrow--next {
        right: .35rem;
    }
}

@media (max-width: 767px) {
    .sleep-story-arrow {
        width: 1.7rem;
        height: 3.2rem;
        color: rgba(255,255,255,.82);
    }

    .sleep-story-arrow::after {
        display: none;
    }

    .sleep-story-arrow--prev {
        left: .1rem;
    }

    .sleep-story-arrow--next {
        right: .1rem;
    }
}

.sleep-story-root {
    position: relative;
}

.evidence-note-odi {
    margin-top: 0.75rem;
    text-align: right;
    font-size: 0.74rem;
    line-height: 1.6;
    color: rgba(203, 213, 225, 0.82);
    letter-spacing: 0.01em;
}

@media (max-width: 767px) {
    .evidence-note-odi {
        text-align: left;
        font-size: 0.7rem;
        margin-top: 0.65rem;
    }
}

@media (max-width: 767px) {
    .sleep-story-progress {
        left: 1rem;
        right: 1rem;
        top: .55rem;
        bottom: auto;
    }
}