.time-page {
    --paper: #fbfcfa;
    --paper-warm: #eef3ef;
    --paper-deep: #e2ebe6;
    --lavender: #68799d;
    --lavender-soft: #e3e7f1;
    --rose: #c87975;
    --rose-soft: #f2ddda;
    --sage: #5f8b7d;
    --sage-soft: #dceae4;
    --gold: #b88f4b;
    --gold-soft: #f0e4ca;
    --header-bg: rgba(251, 252, 250, 0.86);
}

.tw-dark .time-page {
    --paper: #111413;
    --paper-warm: #171c19;
    --paper-deep: #202823;
    --lavender: #abb5d7;
    --lavender-soft: #303648;
    --rose: #e0a09b;
    --rose-soft: #422e2c;
    --sage: #9ac2b4;
    --sage-soft: #293a34;
    --gold: #d9b873;
    --gold-soft: #3e3523;
    --header-bg: rgba(23, 28, 25, 0.88);
}

.time-page .time-hero {
    min-height: 690px;
    padding: 165px 0 96px;
    background:
        linear-gradient(180deg, transparent 0%, transparent 74%, var(--paper) 100%),
        radial-gradient(circle at 16% 22%, var(--lavender-soft) 0, transparent 30%),
        radial-gradient(circle at 88% 70%, var(--sage-soft) 0, transparent 28%),
        var(--paper-warm);
}

.time-page .hero-glow-one {
    top: 16%;
    left: 67%;
    background: var(--rose);
    opacity: 0.2;
}

.time-page .hero-glow-two {
    right: auto;
    bottom: 3%;
    left: 5%;
    background: var(--sage);
    opacity: 0.22;
}

.time-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.time-page .time-hero h1 {
    max-width: 930px;
    font-size: clamp(58px, 7.2vw, 94px);
    line-height: 0.93;
}

.time-page .time-hero .hero-lede {
    max-width: 700px;
    margin: 27px auto 0;
}

.time-page .time-hero .reassurance-list {
    margin-top: 26px;
    justify-content: center;
}

.time-page .time-hero .reassurance-list i {
    color: var(--sage);
}

.hero-scroll {
    display: inline-flex;
    margin-top: 38px;
    padding-bottom: 4px;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    transition: gap 180ms ease, border-color 180ms ease;
}

.hero-scroll:hover {
    gap: 13px;
    border-color: currentColor;
}

.calculator-section {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    padding: 0 0 120px;
    scroll-margin-top: 115px;
}

.calculator-card {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--card-solid);
    box-shadow: var(--shadow);
}

.calculator-form,
.result-panel {
    padding: clamp(32px, 4.2vw, 52px);
}

.calculator-form h2 {
    max-width: 480px;
    font-size: clamp(42px, 4.1vw, 55px);
}

.panel-intro {
    max-width: 520px;
    margin: 18px 0 34px;
    color: var(--muted);
    font-size: 15px;
}

.form-field {
    min-width: 0;
    margin: 0 0 25px;
    padding: 0;
    border: 0;
}

.field-label {
    display: flex;
    margin: 0 0 10px;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.field-hint {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    text-align: right;
}

.relation-grid,
.horizon-grid {
    display: grid;
    gap: 8px;
}

.relation-grid {
    grid-template-columns: repeat(4, 1fr);
}

.horizon-grid {
    grid-template-columns: repeat(2, 1fr);
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.choice span {
    display: flex;
    min-height: 48px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.horizon-grid .choice span {
    min-height: 54px;
}

.choice span:hover {
    border-color: var(--line-strong);
    color: var(--ink);
    transform: translateY(-1px);
}

.choice input:checked+span {
    border-color: color-mix(in srgb, var(--lavender) 62%, var(--line));
    background: var(--lavender-soft);
    color: var(--lavender);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lavender) 22%, transparent);
}

.choice input:focus-visible+span {
    outline: 3px solid var(--lavender);
    outline-offset: 3px;
}

.form-control {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: 0;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-control:focus {
    border-color: var(--lavender);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--lavender) 14%, transparent);
}

.inline-field {
    display: grid;
    margin-top: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 1fr);
    gap: 12px;
    align-items: center;
}

.inline-field span {
    color: var(--muted);
    font-size: 12px;
}

.is-hidden {
    display: none !important;
}

.field-note {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.range-heading {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.range-heading .field-label {
    margin-bottom: 5px;
}

.range-value {
    color: var(--lavender);
    font-size: 15px;
    font-weight: 600;
}

.time-page input[type="range"] {
    width: 100%;
    accent-color: var(--lavender);
    cursor: pointer;
}

.calculate-button {
    width: 100%;
    margin-top: 2px;
}

.form-error {
    min-height: 22px;
    margin: 8px 0 -12px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 600;
}

.result-panel {
    display: flex;
    min-height: 755px;
    flex-direction: column;
    border-left: 1px solid var(--line);
    background:
        radial-gradient(circle at 92% 7%, var(--lavender-soft), transparent 34%),
        linear-gradient(150deg, var(--paper-warm), var(--card-solid) 67%);
}

.result-empty {
    max-width: 310px;
    margin: auto;
    color: var(--muted);
    text-align: center;
}

.result-empty strong {
    display: block;
    margin-top: 27px;
    color: var(--ink);
    font-family: "Newsreader", serif;
    font-size: 27px;
    font-weight: 500;
}

.result-empty p {
    margin: 8px 0 0;
    font-size: 13px;
}

.orbit-visual {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 1px solid color-mix(in srgb, var(--lavender) 32%, transparent);
    border-radius: 50%;
}

.orbit-visual::before {
    position: absolute;
    inset: 27px;
    content: "";
    border: 1px solid color-mix(in srgb, var(--lavender) 32%, transparent);
    border-radius: 50%;
}

.orbit-visual::after {
    position: absolute;
    inset: 60px;
    content: "";
    border-radius: 50%;
    background: var(--lavender);
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--lavender) 14%, transparent);
}

.orbit-visual span {
    position: absolute;
    top: 11px;
    right: 23px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--rose) 12%, transparent);
}

.result-content {
    display: none;
    height: 100%;
    flex-direction: column;
}

.result-content.is-active {
    display: flex;
}

.result-label,
.result-number,
.result-caption {
    margin: 0;
}

.result-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-number {
    margin-top: 17px;
    color: var(--lavender);
    font-family: "Newsreader", serif;
    font-size: clamp(72px, 8vw, 105px);
    font-weight: 500;
    letter-spacing: -0.07em;
    line-height: 0.82;
}

.result-caption {
    margin-top: 10px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

.result-sentence {
    margin: 20px 0 24px;
    color: var(--muted);
    font-size: 15px;
}

.math-card {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--card-solid) 78%, transparent);
    font-variant-numeric: tabular-nums;
}

.math-line {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.math-line strong {
    color: var(--lavender);
}

.math-card>p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.dot-section {
    margin-top: 24px;
}

.dot-heading {
    display: flex;
    margin-bottom: 11px;
    gap: 12px;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
}

.meeting-dots {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 7px;
}

.meeting-dot {
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--lavender);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--lavender) 10%, transparent);
    opacity: 0.86;
}

.reflection {
    margin: 25px 0 0;
    padding: 0 0 0 17px;
    border-left: 3px solid var(--sage);
    font-family: "Newsreader", serif;
    font-size: 18px;
    line-height: 1.45;
}

.reflection span {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    line-height: 1.55;
}

.result-actions {
    display: flex;
    margin-top: auto;
    padding-top: 27px;
    gap: 9px;
    align-items: stretch;
}

.result-actions .button {
    flex: 1;
    padding-inline: 16px;
    font-size: 13px;
}

.secondary-button {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 15px;
    gap: 7px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--card-solid);
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: transform 180ms ease, border-color 180ms ease;
}

.secondary-button:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.secondary-button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.share-explainer {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.privacy-inline {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.privacy-inline i {
    margin-right: 4px;
    color: var(--sage);
}

.why-section {
    border-block: 1px solid var(--line);
    background: var(--paper-warm);
}

.time-section-heading {
    max-width: 780px;
}

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

.principle-card {
    min-height: 285px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.principle-number {
    display: inline-flex;
    width: 45px;
    height: 45px;
    margin-bottom: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--sage-soft);
    color: var(--sage);
    font-family: "Newsreader", serif;
    font-size: 17px;
}

.principle-card:nth-child(2) .principle-number {
    background: var(--lavender-soft);
    color: var(--lavender);
}

.principle-card:nth-child(3) .principle-number {
    background: var(--gold-soft);
    color: var(--gold);
}

.principle-card h3 {
    font-family: "Newsreader", serif;
    font-size: 27px;
    font-weight: 500;
}

.principle-card p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.memory-section {
    overflow: hidden;
}

.memory-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(55px, 9vw, 115px);
    align-items: center;
}

.memory-visual {
    position: relative;
    display: flex;
    min-height: 620px;
    align-items: center;
    justify-content: center;
}

.memory-halo {
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 20%, var(--lavender-soft), transparent 34%),
        var(--sage-soft);
}

.memory-visual img {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    max-height: 640px;
    object-fit: contain;
    filter: drop-shadow(0 30px 35px rgba(31, 43, 37, 0.22));
    transform: rotate(-2deg);
}

.memory-note {
    position: absolute;
    right: -8px;
    bottom: 80px;
    z-index: 2;
    width: 190px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff9df;
    color: #393027;
    box-shadow: var(--shadow);
    font-family: "Newsreader", serif;
    font-size: 20px;
    line-height: 1.1;
    transform: rotate(6deg);
}

.memory-note::before {
    position: absolute;
    top: -7px;
    left: 50%;
    width: 58px;
    height: 17px;
    content: "";
    background: rgba(215, 193, 160, 0.58);
    transform: translateX(-50%) rotate(-3deg);
}

.memory-note span {
    color: #956c67;
    font-family: "Caveat", cursive;
    font-size: 22px;
}

.memory-copy h2 {
    max-width: 650px;
}

.memory-copy>p:not(.section-kicker) {
    max-width: 620px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.memory-points {
    display: grid;
    max-width: 620px;
    margin: 27px 0 31px;
    padding: 0;
    gap: 14px;
    list-style: none;
}

.memory-points li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
}

.memory-points i {
    flex: 0 0 24px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--sage);
}

.memory-points strong {
    color: var(--ink);
}

.privacy-section {
    padding-top: 0;
}

.privacy-card {
    display: grid;
    padding: clamp(38px, 6vw, 70px);
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: clamp(35px, 8vw, 90px);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 90% 8%, var(--sage-soft), transparent 30%),
        var(--paper-warm);
    box-shadow: var(--shadow-soft);
}

.privacy-card h2 {
    max-width: 690px;
}

.privacy-card>div>p:last-child {
    max-width: 690px;
    margin: 23px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.privacy-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.privacy-list li {
    display: flex;
    min-height: 49px;
    padding: 12px 15px;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: color-mix(in srgb, var(--card-solid) 78%, transparent);
    font-size: 13px;
    font-weight: 600;
}

.privacy-list i {
    color: var(--sage);
    font-size: 17px;
}

.time-page .faq-section {
    padding-top: 30px;
}

.time-page .cta-card {
    background:
        radial-gradient(circle at 12% 18%, var(--rose-soft), transparent 27%),
        radial-gradient(circle at 90% 84%, var(--sage-soft), transparent 30%),
        var(--paper-warm);
}

.time-page .cta-doodle {
    color: var(--sage);
}

@media (max-width: 920px) {
    .calculator-card {
        grid-template-columns: 1fr;
    }

    .result-panel {
        min-height: 650px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principle-card {
        min-height: 0;
    }

    .principle-number {
        margin-bottom: 28px;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .memory-copy {
        order: -1;
    }

    .memory-visual {
        width: min(100%, 610px);
        margin-inline: auto;
    }

    .privacy-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .time-page .time-hero {
        min-height: 620px;
        padding: 126px 0 88px;
    }

    .time-page .time-hero h1 {
        font-size: clamp(48px, 14.5vw, 68px);
    }

    .time-page .time-hero .reassurance-list {
        max-width: 310px;
    }

    .calculator-section {
        margin-top: -18px;
        padding-bottom: 82px;
    }

    .calculator-card {
        border-radius: 24px;
    }

    .calculator-form,
    .result-panel {
        padding: 28px 20px;
    }

    .calculator-form h2 {
        font-size: 40px;
    }

    .relation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-label {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .field-hint {
        text-align: left;
    }

    .inline-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .result-panel {
        min-height: 610px;
    }

    .result-number {
        font-size: 82px;
    }

    .meeting-dots {
        grid-template-columns: repeat(12, 1fr);
        gap: 6px;
    }

    .dot-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .result-actions {
        flex-direction: column;
    }

    .secondary-button {
        width: 100%;
    }

    .principle-card {
        padding: 25px;
    }

    .memory-visual {
        min-height: 510px;
    }

    .memory-visual img {
        width: 310px;
        max-height: 500px;
    }

    .memory-note {
        right: -5px;
        bottom: 45px;
        width: 160px;
        font-size: 17px;
    }

    .privacy-card {
        padding: 36px 22px;
        border-radius: 25px;
    }
}

@media (max-width: 370px) {
    .horizon-grid {
        grid-template-columns: 1fr;
    }

    .memory-note {
        right: -12px;
        width: 145px;
    }
}
