:root {
            --ink: #1a1a1a;
            --muted: #696b66;
            --line: #e4e6df;
            --paper: #ffffff;
            --canvas: #f6f7f2;
            --green: #567b2c;
            --green-soft: #eaf1db;
            --blue: #2789a6;
            --blue-soft: #e7f8fb;
            --purple: #765ed1;
            --purple-soft: #eeeaff;
            --orange: #a95d18;
            --orange-soft: #ffecdb;
            --shadow: 0 14px 40px rgba(26, 39, 68, 0.08);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            background: var(--canvas);
        }

        body {
            margin: 0;
            color: var(--ink);
            background:
                radial-gradient(circle at 88% 2%, rgba(212, 168, 85, 0.12), transparent 24rem),
                var(--canvas);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            font-size: 16px;
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
        }

        a {
            color: inherit;
        }

        button,
        a {
            -webkit-tap-highlight-color: transparent;
        }

        .page {
            width: min(100%, 720px);
            margin: 0 auto;
            padding-bottom: max(36px, env(safe-area-inset-bottom));
        }

        .hero {
            padding: 42px 20px 22px;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            color: var(--green);
            font-size: 13px;
            font-weight: 750;
            letter-spacing: 0.08em;
        }

        .eyebrow::before {
            width: 22px;
            height: 2px;
            border-radius: 2px;
            background: currentColor;
            content: "";
        }

        h1,
        h2,
        h3,
        p {
            margin-top: 0;
        }

        h1 {
            max-width: 520px;
            margin-bottom: 12px;
            font-size: clamp(32px, 8vw, 48px);
            line-height: 1.14;
            letter-spacing: -0.035em;
        }

        .hero-copy {
            max-width: 560px;
            margin-bottom: 26px;
            color: var(--muted);
            font-size: 16px;
        }

        .goal-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .goal-card {
            min-height: 116px;
            padding: 15px;
            border: 1px solid rgba(26, 26, 26, 0.07);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.86);
            box-shadow: 0 7px 22px rgba(26, 39, 68, 0.05);
            text-decoration: none;
            transition: transform 160ms ease, box-shadow 160ms ease;
        }

        .goal-card:active {
            transform: scale(0.98);
        }

        .goal-card:last-child:nth-child(odd) {
            grid-column: 1 / -1;
            min-height: auto;
        }

        .goal-label {
            display: block;
            margin-bottom: 7px;
            color: var(--muted);
            font-size: 12px;
        }

        .goal-card strong {
            display: block;
            font-size: 16px;
            line-height: 1.4;
        }

        .goal-card span:last-child {
            display: block;
            margin-top: 5px;
            color: var(--green);
            font-size: 13px;
            font-weight: 700;
        }

        .system-map {
            margin: 10px 20px 28px;
            padding: 20px;
            border-radius: 22px;
            color: #f8f9f6;
            background: #1a2744;
            box-shadow: var(--shadow);
        }

        .system-map h2 {
            margin-bottom: 6px;
            font-size: 18px;
        }

        .system-map > p {
            margin-bottom: 17px;
            color: rgba(255, 255, 255, 0.68);
            font-size: 13px;
        }

        .map-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 9px;
        }

        .map-group {
            padding: 13px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.07);
        }

        .map-group small {
            display: block;
            margin-bottom: 4px;
            color: rgba(255, 255, 255, 0.55);
        }

        .map-group strong {
            font-size: 14px;
        }

        .map-pause {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
        }

        .pause-mark {
            display: inline-flex;
            gap: 4px;
            flex: 0 0 auto;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: rgba(255, 236, 219, 0.15);
        }

        .pause-mark::before,
        .pause-mark::after {
            width: 4px;
            height: 13px;
            border-radius: 2px;
            background: #ffd9b8;
            content: "";
        }

        .topic-nav {
            position: sticky;
            z-index: 20;
            top: 0;
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 12px 20px;
            border-top: 1px solid rgba(228, 230, 223, 0.75);
            border-bottom: 1px solid rgba(228, 230, 223, 0.9);
            background: rgba(246, 247, 242, 0.9);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            scrollbar-width: none;
        }

        .topic-nav::-webkit-scrollbar {
            display: none;
        }

        .topic-nav a {
            flex: 0 0 auto;
            padding: 7px 12px;
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--muted);
            background: var(--paper);
            font-size: 13px;
            font-weight: 650;
            text-decoration: none;
            transition: color 150ms ease, background 150ms ease, border 150ms ease;
        }

        .topic-nav a:active {
            border-color: #1a2744;
            color: #fff;
            background: #1a2744;
        }

        .guide-section {
            --accent: var(--green);
            --soft: var(--green-soft);
            margin: 22px 20px 0;
            scroll-margin-top: 72px;
        }

        .guide-section.period {
            --accent: #48722f;
            --soft: #eef4e5;
        }

        .guide-section.focus {
            --accent: var(--blue);
            --soft: var(--blue-soft);
        }

        .guide-section.sleep {
            --accent: var(--purple);
            --soft: var(--purple-soft);
        }

        .guide-section.pause {
            --accent: var(--orange);
            --soft: var(--orange-soft);
        }

        .guide-section.stability {
            --accent: #2f745d;
            --soft: #e7f3ee;
        }

        .section-card {
            overflow: hidden;
            border: 1px solid rgba(26, 26, 26, 0.07);
            border-radius: 25px;
            background: var(--paper);
            box-shadow: var(--shadow);
        }

        .section-head {
            padding: 22px 22px 16px;
        }

        .section-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            margin-bottom: 13px;
            border-radius: 10px;
            color: var(--accent);
            background: var(--soft);
            font-size: 13px;
            font-weight: 800;
        }

        .section-head h2 {
            margin-bottom: 7px;
            font-size: 25px;
            line-height: 1.25;
            letter-spacing: -0.02em;
        }

        .takeaway {
            margin-bottom: 0;
            color: var(--muted);
            font-size: 15px;
        }

        .diagram {
            position: relative;
            min-height: 270px;
            margin: 0 14px;
            padding: 22px 18px;
            overflow: hidden;
            border-radius: 20px;
            background: var(--soft);
        }

        .diagram::after {
            position: absolute;
            right: -55px;
            bottom: -70px;
            width: 180px;
            height: 180px;
            border: 32px solid rgba(255, 255, 255, 0.36);
            border-radius: 50%;
            content: "";
        }

        .diagram-label {
            position: relative;
            z-index: 2;
            margin-bottom: 15px;
            color: var(--accent);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.08em;
        }

        .flow-row {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .flow-box {
            display: flex;
            flex: 1 1 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 0;
            min-height: 92px;
            padding: 10px 7px;
            border: 1px solid rgba(26, 26, 26, 0.06);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.88);
            text-align: center;
            box-shadow: 0 8px 20px rgba(26, 39, 68, 0.06);
        }

        .flow-box strong {
            margin-top: 7px;
            font-size: 13px;
            line-height: 1.35;
        }

        .flow-box small {
            margin-top: 2px;
            color: var(--muted);
            font-size: 10px;
            line-height: 1.35;
        }

        .flow-arrow {
            flex: 0 0 auto;
            color: var(--accent);
            font-size: 19px;
            font-weight: 800;
        }

        .app-stack {
            display: grid;
            grid-template-columns: repeat(2, 25px);
            gap: 4px;
        }

        .app-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 25px;
            height: 25px;
            border-radius: 8px;
            color: #fff;
            background: var(--accent);
            font-size: 10px;
            font-weight: 800;
        }

        .app-icon:nth-child(2) {
            opacity: 0.72;
        }

        .app-icon:nth-child(3) {
            opacity: 0.54;
        }

        .timer-ring {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            color: var(--accent);
            background: conic-gradient(var(--accent) 0 68%, rgba(26, 26, 26, 0.08) 68% 100%);
            font-size: 11px;
            font-weight: 850;
        }

        .timer-ring::after {
            position: absolute;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #fff;
            content: "";
        }

        .timer-ring.empty {
            background: rgba(26, 26, 26, 0.08);
        }

        .timer-ring span {
            position: relative;
            z-index: 1;
        }

        .reset-line {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 18px;
            padding: 11px 13px;
            border-radius: 13px;
            color: var(--accent);
            background: rgba(255, 255, 255, 0.62);
            font-size: 12px;
            font-weight: 700;
        }

        .reset-line::before {
            flex: 0 0 auto;
            width: 22px;
            height: 22px;
            border: 2px solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            content: "";
        }

        .timeline {
            position: relative;
            z-index: 2;
            margin-top: 38px;
        }

        .timeline-labels {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            color: var(--accent);
            font-size: 13px;
            font-weight: 800;
        }

        .timeline-track {
            position: relative;
            height: 18px;
            border: 5px solid rgba(255, 255, 255, 0.85);
            border-radius: 999px;
            background: rgba(26, 26, 26, 0.08);
        }

        .timeline-used {
            width: 42%;
            height: 100%;
            border-radius: 999px;
            background: var(--accent);
        }

        .timeline-dot {
            position: absolute;
            top: 50%;
            width: 12px;
            height: 12px;
            border: 3px solid var(--accent);
            border-radius: 50%;
            background: #fff;
            transform: translate(-50%, -50%);
        }

        .timeline-dot.start {
            left: 0;
        }

        .timeline-dot.end {
            left: 100%;
        }

        .allowance-card {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 24px;
            padding: 15px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.72);
        }

        .allowance-card div {
            flex: 1;
        }

        .allowance-card small {
            display: block;
            color: var(--muted);
            font-size: 11px;
        }

        .allowance-card strong {
            display: block;
            margin-top: 2px;
            color: var(--accent);
            font-size: 16px;
        }

        .mode-screen {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 0.92fr 1.08fr;
            gap: 13px;
            align-items: stretch;
        }

        .mode-clock,
        .allow-list {
            border: 1px solid rgba(26, 26, 26, 0.06);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.82);
        }

        .mode-clock {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 154px;
        }

        .mode-clock .timer-ring {
            width: 72px;
            height: 72px;
            background: conic-gradient(var(--accent) 0 84%, rgba(26, 26, 26, 0.08) 84% 100%);
        }

        .mode-clock .timer-ring::after {
            width: 55px;
            height: 55px;
        }

        .mode-clock strong {
            margin-top: 10px;
            color: var(--accent);
            font-size: 13px;
        }

        .allow-list {
            padding: 13px;
        }

        .allow-list > span {
            display: block;
            margin-bottom: 10px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 700;
        }

        .allow-app {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 0;
            border-top: 1px solid rgba(26, 26, 26, 0.06);
            font-size: 12px;
            font-weight: 700;
        }

        .allow-app::before {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 25px;
            height: 25px;
            border-radius: 8px;
            color: #fff;
            background: var(--accent);
            content: "✓";
            font-weight: 900;
        }

        .blocked-line {
            position: relative;
            z-index: 2;
            margin-top: 14px;
            padding: 12px 14px;
            border-radius: 14px;
            color: var(--accent);
            background: rgba(255, 255, 255, 0.62);
            font-size: 12px;
            font-weight: 750;
            text-align: center;
        }

        .sleep-steps {
            position: relative;
            z-index: 2;
            display: grid;
            gap: 9px;
        }

        .sleep-step {
            display: flex;
            align-items: center;
            gap: 11px;
            padding: 11px 13px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.74);
        }

        .sleep-step b {
            display: flex;
            flex: 0 0 auto;
            align-items: center;
            justify-content: center;
            width: 27px;
            height: 27px;
            border-radius: 9px;
            color: #fff;
            background: var(--accent);
            font-size: 12px;
        }

        .sleep-step div {
            min-width: 0;
        }

        .sleep-step strong,
        .sleep-step small {
            display: block;
        }

        .sleep-step strong {
            font-size: 13px;
        }

        .sleep-step small {
            color: var(--muted);
            font-size: 10px;
        }

        .pause-control {
            position: relative;
            z-index: 2;
            padding: 16px;
            border: 1px solid rgba(26, 26, 26, 0.06);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.84);
            box-shadow: 0 10px 24px rgba(169, 93, 24, 0.08);
        }

        .pause-control-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .pause-control-head strong {
            font-size: 14px;
        }

        .pause-control-head span {
            color: var(--muted);
            font-size: 10px;
        }

        .pause-duration-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 7px;
        }

        .pause-duration {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 43px;
            padding: 5px 3px;
            border: 1px solid rgba(169, 93, 24, 0.11);
            border-radius: 11px;
            color: var(--accent);
            background: var(--soft);
            font-size: 11px;
            font-weight: 800;
            text-align: center;
        }

        .pause-duration.active {
            color: #fff;
            background: var(--accent);
            box-shadow: 0 6px 15px rgba(169, 93, 24, 0.2);
        }

        .pause-result {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 12px;
            padding: 12px 14px;
            border-radius: 15px;
            color: #fff;
            background: var(--accent);
        }

        .pause-result small,
        .pause-result strong {
            display: block;
        }

        .pause-result small {
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
        }

        .pause-result strong {
            font-size: 15px;
        }

        .resume-chip {
            flex: 0 0 auto;
            padding: 6px 9px;
            border: 1px solid rgba(255, 255, 255, 0.34);
            border-radius: 999px;
            font-size: 10px;
            font-weight: 750;
        }

        .stability-overview {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 112px 1fr;
            gap: 14px;
            align-items: center;
        }

        .stability-score {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 112px;
            height: 112px;
            border: 10px solid var(--accent);
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.7);
        }

        .stability-score strong {
            color: var(--accent);
            font-size: 25px;
            line-height: 1.1;
        }

        .stability-score small {
            color: var(--muted);
            font-size: 10px;
        }

        .stability-checks {
            display: grid;
            gap: 7px;
        }

        .stability-check {
            position: relative;
            padding: 9px 9px 9px 30px;
            border-radius: 11px;
            background: rgba(255, 255, 255, 0.72);
            font-size: 11px;
            font-weight: 720;
        }

        .stability-check::before {
            position: absolute;
            top: 50%;
            left: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            color: #fff;
            background: var(--accent);
            content: "✓";
            font-size: 9px;
            transform: translateY(-50%);
        }

        .stability-caption {
            position: relative;
            z-index: 2;
            margin-top: 16px;
            padding: 11px 13px;
            border-radius: 13px;
            color: var(--accent);
            background: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            font-weight: 750;
        }

        .section-body {
            padding: 20px 22px 23px;
        }

        .best-for {
            display: flex;
            gap: 10px;
            margin-bottom: 18px;
            padding: 12px 13px;
            border-radius: 14px;
            background: #f6f7f4;
        }

        .best-for strong {
            flex: 0 0 auto;
            color: var(--accent);
            font-size: 12px;
        }

        .best-for span {
            color: var(--muted);
            font-size: 12px;
        }

        .faq-title {
            display: block;
            margin-bottom: 6px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
        }

        .faq-list {
            display: grid;
        }

        .faq-list details {
            position: relative;
            border-bottom: 1px solid var(--line);
        }

        .faq-list details:last-child {
            border-bottom: 0;
        }

        .faq-list summary {
            position: relative;
            padding: 11px 30px 11px 0;
            color: var(--ink);
            cursor: pointer;
            font-size: 14px;
            font-weight: 650;
            list-style: none;
        }

        .faq-list summary::-webkit-details-marker {
            display: none;
        }

        .faq-list summary::after {
            position: absolute;
            top: 50%;
            right: 4px;
            color: var(--accent);
            content: "+";
            font-size: 19px;
            font-weight: 500;
            line-height: 1;
            transform: translateY(-50%);
        }

        .faq-list details[open] summary::after {
            content: "−";
        }

        .faq-answer-inline {
            padding: 0 24px 14px 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.7;
        }

        .important-note {
            position: relative;
            z-index: 2;
            margin-top: 15px;
            padding: 12px 14px;
            border-left: 3px solid var(--accent);
            border-radius: 4px 12px 12px 4px;
            color: #61360f;
            background: rgba(255, 255, 255, 0.72);
            font-size: 12px;
            font-weight: 700;
        }

        .footer-card {
            margin: 22px 20px 0;
            padding: 28px 22px;
            border-radius: 25px;
            color: #fff;
            background: #1a2744;
            text-align: center;
        }

        .footer-card h2 {
            margin-bottom: 7px;
            font-size: 23px;
        }

        .footer-card p {
            margin-bottom: 19px;
            color: rgba(255, 255, 255, 0.68);
            font-size: 13px;
        }

        .footer-card a {
            display: block;
            width: 100%;
            padding: 12px 18px;
            border-radius: 14px;
            color: #1a2744;
            background: #fff;
            font-size: 14px;
            font-weight: 800;
            text-decoration: none;
        }

        .footer-card a + a {
            margin-top: 10px;
        }

        :focus-visible {
            outline: 3px solid rgba(39, 137, 166, 0.35);
            outline-offset: 3px;
        }

        @media (min-width: 620px) {
            .hero {
                padding-top: 56px;
            }

            .goal-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .goal-card:last-child:nth-child(odd) {
                grid-column: auto;
            }

            .guide-section,
            .footer-card {
                margin-right: 28px;
                margin-left: 28px;
            }

            .diagram {
                min-height: 292px;
                margin-right: 18px;
                margin-left: 18px;
                padding: 28px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            * {
                transition: none !important;
            }
        }
