:root {
    --ink: #3f1d25;
    --ink-strong: #2f151b;
    --muted: #7b6060;
    --cream: #f7ede1;
    --cream-2: #f0e2d4;
    --rose-900: #4b2f34;
    --rose-800: #56353a;
    --rose-700: #704b4d;
    --rose-600: #7c585a;
    --rose-soft: #e6d6cb;
    --stroke: #d0b7b1;
    --stroke-soft: rgba(208, 183, 177, 0.54);
    --shadow: rgba(34, 16, 20, 0.28);
    --sage: #5e715f;
    --sky: #536a81;
    --lavender: #665276;
    --sand: #7a6853;
    --peach: #8a6454;
    --page-max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(145deg, var(--rose-600) 0%, var(--rose-800) 45%, var(--rose-900) 100%);
    font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
    line-height: 1.75;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.hero {
    min-height: 92vh;
    padding: 22px 24px 46px;
}

.site-nav {
    width: min(var(--page-max), calc(100vw - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 243, 245, 0.95);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    border-radius: 12px;
    box-shadow: 0 14px 26px rgba(35, 18, 22, 0.32);
}

.site-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 18px;
    color: rgba(255, 243, 245, 0.76);
    font-size: 0.92rem;
}

.site-nav__links a {
    text-decoration: none;
}

.site-nav__links a:hover {
    color: #fff3f5;
}

.hero__inner {
    width: min(var(--page-max), calc(100vw - 48px));
    margin: 0 auto;
    min-height: calc(92vh - 94px);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: center;
}

.hero__copy {
    color: #fff3f5;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rose-soft);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
    overflow-wrap: anywhere;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(3.1rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: 0;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
    overflow-wrap: normal;
    word-break: keep-all;
}

html[lang="ja"] .hero__copy h1 {
    font-size: clamp(2.85rem, 5.2vw, 4.35rem);
    white-space: nowrap;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.16;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.12rem;
}

.hero__lead {
    max-width: 620px;
    color: rgba(255, 243, 245, 0.82);
    font-size: 1.08rem;
}

.hero__actions,
.policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: var(--rose-900);
    background: var(--rose-soft);
    border: 1px solid var(--stroke);
    box-shadow: 0 16px 34px rgba(28, 14, 18, 0.24);
}

.button--quiet {
    color: var(--ink);
    background: rgba(247, 237, 225, 0.88);
    border: 1px solid var(--stroke);
}

.button--disabled {
    cursor: default;
}

.button--disabled:hover {
    transform: none;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 0;
}

.hero-facts div {
    padding: 12px;
    border: 1px solid rgba(230, 214, 203, 0.24);
    border-radius: 8px;
    background: rgba(255, 243, 245, 0.08);
}

.hero-facts dt {
    color: var(--rose-soft);
    font-size: 0.8rem;
    font-weight: 900;
}

.hero-facts dd {
    margin: 2px 0 0;
    color: rgba(255, 243, 245, 0.8);
    font-size: 0.88rem;
}

.app-showcase {
    position: relative;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(250px, 0.84fr) minmax(270px, 1fr);
    gap: 18px;
    align-items: center;
}

.phone-frame,
.session-card,
.detail-panel,
.screen-card,
.settings-grid article,
.support-panel,
.document {
    background: linear-gradient(145deg, var(--cream), var(--cream-2));
    border: 1px solid var(--stroke);
    box-shadow: 0 26px 54px rgba(34, 16, 20, 0.24);
}

.phone-frame {
    width: 100%;
    min-width: 0;
    min-height: 480px;
    padding: 22px 16px;
    border-radius: 28px;
}

.phone-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.phone-toolbar div {
    display: flex;
    gap: 8px;
}

.phone-toolbar button,
.row-actions button,
.detail-panel__top button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--rose-700);
    background: var(--rose-soft);
    border: 1px solid var(--stroke);
    border-radius: 50%;
}

.phone-frame h2 {
    margin-bottom: 18px;
    font-size: 2rem;
    color: var(--ink);
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
}

.timer-list-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #dcc3ba;
    background: linear-gradient(145deg, #f7ede1, #f0e2d4);
}

.phone-frame .timer-list-card {
    grid-template-columns: 42px minmax(0, 1fr);
}

.phone-frame .timer-list-card .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.set-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--rose-700);
    background: var(--rose-soft);
    border: 1px solid var(--stroke);
    font-weight: 900;
}

.set-icon--sage {
    color: var(--sage);
}

.timer-list-card strong,
.timer-list-card span,
.detail-panel strong,
.detail-panel span,
.detail-panel small {
    display: block;
}

.timer-list-card strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 1.02rem;
}

.timer-list-card span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.timer-list-card i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--rose-700);
}

.row-actions {
    display: flex;
    gap: 7px;
}

.session-card {
    width: 100%;
    min-width: 0;
    padding: 18px;
    border-radius: 28px;
    color: #fff3f5;
    background: linear-gradient(160deg, #3a1822, #2b1118);
    border-color: #7a3a49;
}

.session-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.session-header span {
    font-weight: 900;
}

.session-header small {
    color: rgba(255, 243, 245, 0.66);
    font-size: 0.78rem;
    text-align: right;
}

.progress-ring {
    width: min(240px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, #2b1118 0 58%, transparent 59%),
        conic-gradient(#f0a0b2 0 72%, rgba(255, 255, 255, 0.15) 72% 100%);
}

.progress-ring span {
    font-size: clamp(2.1rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
}

.timeline-bar {
    height: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.timeline-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #f0a0b2;
}

.timeline-list,
.edit-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 12px;
    color: rgba(255, 243, 245, 0.54);
}

.timeline-list li::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 50%;
    background: rgba(255, 243, 245, 0.35);
}

.timeline-list .is-current {
    color: #fff3f5;
    background: rgba(240, 160, 178, 0.18);
    font-weight: 900;
}

.timeline-list .is-current::before {
    background: #f0a0b2;
}

.timeline-list small {
    color: inherit;
    opacity: 0.74;
}

.section {
    width: min(var(--page-max), 100% - 48px);
    margin: 0 auto;
    padding: 84px 0;
}

.section__head {
    max-width: 760px;
    margin-bottom: 30px;
    color: var(--cream);
}

.section__head p,
.split-copy p,
.watch-copy p,
.support-panel p,
.privacy-summary p {
    color: rgba(255, 243, 245, 0.76);
}

.screen-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.screen-card,
.settings-grid article {
    min-height: 220px;
    padding: 22px;
    border-radius: 8px;
}

.screen-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border-radius: 50%;
    color: var(--rose-700);
    background: var(--rose-soft);
    border: 1px solid var(--stroke);
    font-weight: 900;
}

.screen-card h3,
.settings-grid h3,
.settings-grid strong,
.detail-panel strong {
    color: var(--ink);
}

.screen-card p,
.settings-grid p,
.detail-panel,
.privacy-summary {
    color: var(--muted);
}

.section--split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: center;
}

.split-copy,
.watch-copy {
    color: var(--cream);
}

.detail-panel {
    padding: 18px;
    border-radius: 24px;
}

.detail-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.summary-strip span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--rose-700);
    background: var(--rose-soft);
    border: 1px solid var(--stroke);
    font-size: 0.9rem;
    font-weight: 900;
}

.edit-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 249, 239, 0.58);
    border: 1px solid rgba(208, 183, 177, 0.58);
}

.edit-list span {
    color: var(--ink);
    font-weight: 800;
}

.section--deep-band {
    width: 100%;
    max-width: none;
    padding: 86px 24px;
    background: linear-gradient(145deg, #2b1118, #43202a);
}

.deep-band__inner {
    width: min(var(--page-max), 100%);
    margin: 0 auto;
}

.section__head--light {
    color: #fff3f5;
}

.session-layout-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.orientation-card {
    min-height: 130px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 243, 245, 0.09);
    border: 1px solid rgba(255, 243, 245, 0.16);
}

.orientation-card strong,
.orientation-card span {
    display: block;
}

.orientation-card strong {
    color: #fff3f5;
    font-size: 1.1rem;
}

.orientation-card span {
    margin-top: 8px;
    color: rgba(255, 243, 245, 0.7);
}

.settings-grid article span {
    color: var(--rose-700);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.settings-grid article strong {
    display: block;
    margin: 8px 0;
    font-size: 1.15rem;
}

.section--watch {
    align-items: stretch;
}

.watch-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.watch-list span {
    min-height: 86px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 8px;
    color: var(--ink);
    background: linear-gradient(145deg, var(--cream), var(--cream-2));
    border: 1px solid var(--stroke);
    text-align: center;
    font-weight: 900;
    box-shadow: 0 20px 40px rgba(34, 16, 20, 0.18);
}

.support-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 26px;
    align-items: center;
    padding: 26px;
    border-radius: 24px;
}

.support-panel .eyebrow {
    color: var(--rose-700);
}

.support-panel p {
    color: var(--muted);
}

.support-actions {
    display: grid;
    gap: 10px;
}

.support-actions span {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 249, 239, 0.58);
    border: 1px solid rgba(208, 183, 177, 0.62);
    font-weight: 800;
}

.privacy-summary {
    max-width: 760px;
    text-align: center;
}

.privacy-summary img,
.cta img {
    margin-bottom: 18px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(34, 16, 20, 0.24);
}

.privacy-summary .eyebrow {
    color: var(--rose-soft);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 24px;
    color: rgba(255, 243, 245, 0.76);
    background: rgba(43, 17, 24, 0.76);
}

.footer p {
    margin: 0;
}

.footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.document-page {
    min-height: 100vh;
}

.document-header {
    padding: 28px 24px 46px;
}

.document-header .brand,
.document-header h1,
.document-header p {
    width: min(860px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.document-header h1 {
    margin-top: 48px;
    margin-bottom: 8px;
    color: #fff3f5;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    overflow-wrap: anywhere;
    line-break: strict;
}

.document-header p {
    color: rgba(255, 243, 245, 0.72);
}

.document {
    width: min(860px, calc(100vw - 40px));
    margin: 0 auto 72px;
    padding: 18px 28px 22px;
    border-radius: 24px;
}

.document section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(208, 183, 177, 0.72);
}

.document section:last-child {
    border-bottom: 0;
}

.document h2 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1.28rem;
}

.document p,
.document li {
    color: var(--muted);
}

.document a {
    color: var(--rose-700);
    font-weight: 800;
}

@media (max-width: 980px) {
    .hero__inner,
    .app-showcase,
    .section--split,
    .support-panel {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        min-height: auto;
        padding-top: 22px;
    }

    .app-showcase {
        max-width: 680px;
    }

    .phone-frame {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav__links {
        width: 100%;
        justify-content: flex-start;
    }

    .screen-grid,
    .settings-grid,
    .session-layout-demo {
        grid-template-columns: 1fr;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero,
    .section--deep-band {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section {
        width: min(calc(100vw - 36px), var(--page-max));
        padding: 66px 0;
    }

    .site-nav,
    .hero__inner,
    .app-showcase,
    .phone-frame,
    .session-card {
        width: 100%;
        max-width: 100%;
    }

    .hero__copy,
    .hero__lead,
    .phone-frame,
    .session-card,
    .timer-list-card,
    .timeline-list li {
        min-width: 0;
    }

    .hero__lead,
    .section__head p,
    .split-copy p,
    .watch-copy p,
    .support-panel p,
    .privacy-summary p,
    .document p {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    h1 {
        font-size: clamp(2.35rem, 11vw, 2.85rem);
    }

    .site-nav__links {
        gap: 10px 12px;
        font-size: 0.86rem;
    }

    .hero__actions,
    .policy-links {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }

    .hero__lead {
        font-size: 1rem;
    }

    .session-header {
        flex-wrap: wrap;
    }

    .session-header small {
        text-align: left;
    }

    .document-header h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .timer-list-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .session-card {
        padding: 18px;
    }

    .row-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .watch-list {
        grid-template-columns: 1fr;
    }

    .support-panel,
    .document {
        border-radius: 16px;
        padding: 20px;
    }

    .footer {
        flex-direction: column;
    }

    .footer div {
        justify-content: flex-start;
    }
}
