@font-face { font-family: 'Cherry Bomb One'; font-style: normal; font-weight: 400; font-display: swap; src: url('/welcome/fonts/cherry-bomb-one-clock.ttf') format('truetype'); }
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; color: #282720; background: #f8f7f3; --muted: #79786e; --accent: #b84430; --ease: cubic-bezier(.19,1,.22,1); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 34px 5vw; }
.brand { color: inherit; text-decoration: none; font-size: 27px; font-weight: 650; letter-spacing: -.065em; }
.brand span { color: var(--accent); display: inline-block; margin-left: 2px; }
main { display: grid; place-items: center; flex: 1; min-height: 470px; padding: 60px 24px 90px; }
.scene { width: min(100%, 880px); text-align: center; }
h1 { font-size: clamp(48px, 7.4vw, 96px); font-weight: 440; line-height: 1.07; letter-spacing: -.065em; margin: 0; outline: none; }
.line { display: block; }
.word { display: inline-block; white-space: pre; }
.serif { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.065em; color: var(--accent); }
.aside { color: var(--muted); margin: 27px auto 0; font-size: 15px; line-height: 1.65; min-height: 25px; }
.actions { margin: 35px auto 0; min-height: 57px; display: flex; justify-content: center; align-items: start; }
.answer { height: 46px; padding: 0; border: 1px solid #d8d7ce; border-radius: 7px; background: #fffefa; font-size: 14px; color: #343329; cursor: pointer; display: inline-flex; align-items: center; gap: 0; box-shadow: 0 3px 0 #cccbc0, 0 5px 8px #36312307; transition: background .2s, transform .2s, box-shadow .2s; }
.answer:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 3px 0 #cccbc0, 0 6px 16px #3631230c; }
.answer:active { transform: translateY(2px); box-shadow: 0 1px 0 #cccbc0; }
.answer:disabled { cursor: default; }
/* Match the label inset to the visible arrow inset, including SVG whitespace. */
.answer-label { padding: 0 8px 0 16px; }
.answer-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
footer { padding: 24px 5vw 28px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 11px; color: var(--muted); }
footer nav { display: flex; align-items: center; gap: 15px; }
footer button { border: 0; background: none; color: #68675d; cursor: pointer; padding: 12px 0; font-size: 11px; }
footer button:hover { color: var(--accent); }
.thinking-word { display: inline-block; font-family: "Iowan Old Style", Georgia, serif; font-style: italic; letter-spacing: -.055em; }
.dots { display: inline-flex; color: var(--accent); }
.dots span { animation: think .7s ease-in-out 2; }
.dots span:nth-child(2) { animation-delay: .1s; }
.dots span:nth-child(3) { animation-delay: .2s; }
.no-script { text-align: center; color: var(--accent); }
body[data-still="true"] *, body[data-hidden="true"] * { animation-play-state: paused !important; }
body[data-still="true"] * { transition: none !important; }
@keyframes think { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.075em); } }
@media (max-width: 600px) { .masthead { padding: 25px 24px; } main { padding: 40px 20px 60px; min-height: 430px; } h1 { font-size: clamp(45px, 10.7vw, 64px); } .aside { font-size: 14px; } footer { padding: 16px 24px 20px; gap: 10px; } footer nav { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

[hidden] { display: none !important; }

/* Each pending state exits after two bounces and a short resting interval. */
main[data-scene="bridge"] .dots span { animation-duration: .85s; }
.no-answer, .sign-in-link { color: #68675d; font-size: 14px; text-decoration: none; padding: 14px 12px; }
.no-answer:hover, .sign-in-link:hover { color: var(--accent); }
.actions { gap: 12px; }
footer a { color: inherit; text-decoration: none; padding-block: 12px; }
footer a:hover { text-decoration: underline; }
@media (max-width: 450px) { footer { flex-wrap: wrap; justify-content: center; column-gap: 24px; row-gap: 0; } footer nav { flex-wrap: wrap; justify-content: center; } }

/* Keep conversation controls quiet and visually consistent with the welcome. */
.choice-primary { padding: 0 24px; min-width: 86px; justify-content: center; }
button.no-answer { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14px; }
.conversation-note { font-size: 14px; color: #68675d; line-height: 1.6; margin: 24px auto 0; }
.research-summary { max-width: 560px; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; margin: 28px auto 18px; color: #55544b; }
.citation { color: var(--accent); font-size: 13px; text-underline-offset: 4px; }
main[data-scene="research-offer"] h1, main[data-scene="remember"] h1, main[data-scene="ideal"] h1, main[data-scene="research"] h1 { font-size: clamp(38px, 5.8vw, 74px); }
/* Treat the time editor as one control with consistent proportions in every state. */
.time-form { margin: 36px auto 0; }
.clock-entry { display: inline-flex; align-items: center; gap: 4px; padding: 8px; border: 1px solid #d8d7ce; border-radius: 10px; background: #fffefa; box-shadow: 0 3px 0 #deddd4; }
.time-combobox { position: relative; width: 82px; border-radius: 6px; }
.time-combobox:focus-within { background: #b8443008; }
.clock-entry input { width: 100%; min-width: 0; height: 60px; padding: 0 5px; border: 0; border-radius: 6px; background: transparent; color: #282720; font-family: 'Cherry Bomb One', sans-serif; font-size: 38px; font-weight: 400; letter-spacing: -.025em; text-align: center; font-variant-numeric: tabular-nums; }
.clock-entry input::placeholder { color: #aaa89c; font-size: inherit; letter-spacing: inherit; }
.clock-entry input:focus { outline: 1px solid #b8443060; outline-offset: 0; }
.clock-colon { font-size: 28px; font-weight: 300; color: #b8b6aa; }
.clock-period { display: flex; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid #e5e3d9; }
.clock-period button { width: 42px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #79786e; font-size: 12px; cursor: pointer; }
.clock-period button[aria-pressed="true"] { color: var(--accent); background: #b8443010; }
.clock-period button:hover { color: var(--accent); }
.time-options { position: absolute; z-index: 5; top: calc(100% + 16px); left: -8px; width: calc(100% + 16px); max-height: 205px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid #deddd4; border-radius: 10px; background: #fffefa; box-shadow: 0 12px 32px #28272016; scrollbar-width: thin; scrollbar-color: #d8d7ce transparent; }
.time-options [role="option"] { padding: 9px 0; border-radius: 5px; font-family: 'Cherry Bomb One', sans-serif; font-size: 24px; font-variant-numeric: tabular-nums; cursor: pointer; }
.time-options [role="option"]:hover { background: #f2f0e9; }
.time-options [aria-selected="true"] { background: #b8443010; color: var(--accent); }
@media (max-width: 600px) { main { padding-bottom: 35px; } .research-summary { max-width: 32ch; } footer { flex-wrap: wrap; justify-content: center; } }
@media (max-width: 360px) { .time-combobox { width: 70px; } .clock-period { padding-left: 4px; margin-left: 2px; } .clock-period button { width: 36px; } }

/* Reserve room for minutes and two-digit hours without moving the action row. */
.wake-confirm { min-width: min(224px, calc(100vw - 110px)); white-space: nowrap; }

/* Long answers remain distinct choices instead of competing in one row. */
main[data-scene="difference"] h1, main[data-scene="schedule"] h1, main[data-scene="ideal-time"] h1 { font-size: clamp(36px, 5.6vw, 72px); }
main[data-scene="schedule"] .actions { display: grid; width: min(100%, 450px); gap: 12px; }
main[data-scene="schedule"] .answer { height: auto; min-height: 52px; padding: 14px 20px; line-height: 1.45; white-space: normal; }
main[data-scene="ideal-time"] .wake-confirm { min-width: min(260px, calc(100vw - 110px)); }
