@font-face { font-family: Maison; src: url('assets/MaisonNeueBook.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Maison; src: url('assets/MaisonNeue-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Maison; src: url('assets/MaisonNeue-Demi.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: dark;
  font: 100%/1.5 Maison, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --base: #111113;
  --today: #141416;
  --inset: #161618;
  --panel: #1f1f22;
  --card: #242427;
  --field: #262629;
  --text: #f4f4f6;
  --secondary: #b4b1bd;
  --muted: #aaa6b3;
  --accent: #c9bcff;
  --accent-strong: #a98cff;
  --line: #34333b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--base); color: var(--text); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .75rem 1rem; border-radius: .5rem; background: var(--accent); color: var(--base); }
.skip-link:focus { top: 1rem; }
.section-container { width: min(100%, 40rem); margin-inline: auto; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 500; letter-spacing: .08em; line-height: 1.5; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 2.5rem, 70rem); min-height: 4.5rem; margin-inline: auto; }
.wordmark { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.75rem; font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.wordmark img { width: 1.625rem; height: 1.625rem; }
.wordmark-dot { margin-left: -.375rem; color: var(--accent); }
.header-status { color: var(--secondary); font-size: .75rem; text-align: right; }
.header-help { display: none; min-height: 2.75rem; align-items: center; color: var(--secondary); font-size: .875rem; }
.header-help:hover { color: var(--text); }

.hero { padding: 2.25rem 1.5rem 2rem; }
.hero-copy { width: min(100%, 42rem); margin-inline: auto; text-align: center; }
h1 { margin-top: 1rem; font-size: clamp(2.5rem, 10.6vw, 4rem); font-weight: 500; line-height: 1.06; letter-spacing: -.05em; }
#hero-title:focus { outline: none; }
.hero-description { margin: 1.125rem auto 0; color: var(--secondary); font-size: 1rem; line-height: 1.5; }
.hero-actions { display: flex; justify-content: center; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; min-height: 3.25rem; padding: .875rem 1.5rem; border-radius: .875rem; font-size: 1rem; font-weight: 500; line-height: 1.25; transition: transform 100ms ease-out, background-color 100ms ease-out; }
.hero-actions .button { width: min(100%, 19rem); }
.button svg { width: 1.25rem; height: 1.25rem; }
.button-lavender, .button-dark { background: var(--accent); color: var(--base); }
.button-lavender:hover, .button-dark:hover { background: #dbd1ff; }
.launch-note { display: flex; justify-content: center; align-items: center; gap: .375rem; margin-top: .875rem; color: var(--secondary); font-size: .8125rem; }
.launch-note svg { width: .875rem; height: 1.125rem; flex-shrink: 0; }

/* Keep the browser hint useful without taking over the first screen. */
.browser-help { position: relative; max-width: 28rem; margin: 0 auto 1.75rem; padding: 1rem 3.25rem 1rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); text-align: left; }
.browser-help h2 { font-size: 1rem; font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }
.browser-help p { margin-top: .375rem; color: var(--secondary); font-size: .875rem; line-height: 1.5; }
.browser-help strong { color: var(--text); font-weight: 500; }
.browser-help-dismiss { position: absolute; top: .375rem; right: .375rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; background: transparent; color: var(--secondary); font-size: 1.5rem; line-height: 1; }
.browser-help-dismiss:hover, .browser-help-dismiss:active { background: var(--line); color: var(--text); }

.experience { padding: .25rem 1rem 2.5rem; }
.experience-header { margin-bottom: 1rem; color: var(--secondary); text-align: center; font-size: .875rem; }
.demo-shell { padding: .75rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--panel); transform-origin: top center; }
.feature-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .25rem; border-radius: .875rem; background: var(--base); }
.feature-links a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 2.75rem; padding: .5rem; border-radius: .625rem; color: var(--secondary); font-size: .875rem; font-weight: 500; transition: background-color 100ms ease-out, color 100ms ease-out, transform 100ms ease-out; }
.feature-links a:hover { color: var(--text); }
.feature-links a[aria-selected='true'] { background: var(--accent); color: var(--base); }
.feature-panel { min-height: 31rem; }
.feature-panel + .feature-panel:not([role='tabpanel']) { margin-top: 2rem; }
.feature-copy { padding: 1.25rem .5rem 1rem; text-align: center; }
.feature-copy h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
.feature-copy > p { margin-top: .375rem; color: var(--secondary); font-size: .875rem; line-height: 1.5; }
.demo-area { width: 100%; }
.demo-today { padding: 1rem; border-radius: 1rem; background: var(--today); }
.demo-rank { display: none; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.mini-label { display: block; color: var(--secondary); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; line-height: 1.5; }
.demo-heading h4 { margin-top: .25rem; font-size: 1.75rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.demo-tag { display: inline-block; padding: .25rem .5rem; border: 1px solid var(--line); border-radius: .375rem; color: var(--secondary); font-size: .625rem; letter-spacing: .06em; line-height: 1.5; }
.demo-progress { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 .625rem; color: var(--secondary); font-size: .8125rem; }
.demo-progress strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.progress-track { height: .25rem; overflow: hidden; border-radius: 1rem; background: var(--line); }
.progress-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 180ms ease-out; }
.habit-list { display: grid; gap: .625rem; margin-top: 1rem; }
.habit-toggle { display: flex; align-items: center; gap: .625rem; width: 100%; min-height: 4.75rem; padding: .75rem; border: 1px solid var(--line); border-radius: .875rem; background: var(--card); text-align: left; transition: background-color 100ms ease-out, transform 100ms ease-out; }
.habit-icon { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: .625rem; background: #332c42; color: var(--accent); }
.habit-icon svg { width: 1.125rem; height: 1.125rem; }
.habit-text { min-width: 0; }
.habit-text strong { display: block; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.habit-text small { display: block; margin-top: .25rem; color: var(--secondary); font-size: .8125rem; line-height: 1.4; }
.habit-checkbox { display: grid; place-items: center; flex-shrink: 0; width: 1.375rem; height: 1.375rem; margin-left: auto; border: 1px solid #91859e; border-radius: 50%; transition: background-color 100ms ease-out, border-color 100ms ease-out; }
.habit-checkbox svg { width: .875rem; height: .875rem; opacity: 0; }
.habit-toggle[aria-pressed='true'] .habit-checkbox { border-color: var(--accent); background: var(--accent); color: var(--base); }
.habit-toggle[aria-pressed='true'] .habit-checkbox svg { opacity: 1; }
.habit-toggle:hover { background: #2b2832; }
.habit-toggle:active { background: #383140; }
.habit-feedback { min-height: 1.25rem; margin-top: 1rem; color: var(--secondary); font-size: .8125rem; line-height: 1.5; text-align: center; }
.demo-disclaimer { margin-top: .875rem; color: var(--secondary); font-size: .75rem; line-height: 1.5; text-align: center; }

.focus-demo { padding: 1.25rem 1rem; border-radius: 1rem; background: var(--today); text-align: center; }
.focus-demo > .demo-tag { display: none; }
.focus-label { color: var(--secondary); font-size: .75rem; font-weight: 500; letter-spacing: .08em; }
.timer-ring { display: flex; flex-direction: column; justify-content: center; gap: .375rem; width: 12rem; height: 12rem; margin: 1.25rem auto; border: 3px solid transparent; border-radius: 50%; background: linear-gradient(#141416, #141416) padding-box, conic-gradient(#a98cff calc(var(--timer-progress, 0) * 1turn), #3e354b 0) border-box; }
.timer-ring > span:first-child { color: var(--text); font-size: 3.25rem; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.timer-ring > span:last-child { color: var(--secondary); font-size: .8125rem; }
.timer-status { min-height: 2.5rem; margin-bottom: .75rem; color: var(--secondary); font-size: .875rem; line-height: 1.4; }
.timer-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .625rem; }
.timer-controls .button { min-height: 3rem; padding: .75rem 1.25rem; font-size: .875rem; }
.timer-reset { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: .875rem; background: var(--card); color: var(--accent); font-size: 1.5rem; transition: transform 100ms ease-out, background-color 100ms ease-out; }
.demo-footnote { max-width: 23rem; margin: 1rem auto 0; color: var(--secondary); font-size: .75rem; line-height: 1.5; }

.rank-section { padding: 0 .25rem 1rem; }
.rank-display { text-align: center; }
.rank-halo { display: none; }
.rank-display > img { width: 12rem; height: 12rem; margin: -.5rem auto -.25rem; object-fit: contain; }
.rank-caption > span { color: var(--secondary); font-size: .6875rem; letter-spacing: .08em; }
.rank-caption h3 { margin-top: .125rem; font-size: 1.5rem; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.rank-caption p { margin-top: .25rem; color: var(--secondary); font-size: .875rem; }
.rank-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; margin-top: 1.25rem; }
.rank-picker button { display: flex; align-items: center; justify-content: center; flex-direction: column; min-width: 0; min-height: 4.75rem; padding: .25rem; border: 1px solid transparent; border-radius: .75rem; background: transparent; transition: background-color 100ms ease-out, transform 100ms ease-out; }
.rank-picker button img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.rank-picker button > span { color: var(--secondary); font-size: .8125rem; line-height: 1.4; }
.rank-picker button[aria-pressed='true'] { border-color: #9d80ba; background: #c9bcff12; }
.rank-picker button[aria-pressed='true'] > span { color: var(--text); }
.rank-picker button:hover { background: #ffffff08; }

.faq-section { padding: .75rem 1.5rem 2.5rem; }
.faq-layout h2 { margin-bottom: .75rem; font-size: 1.75rem; font-weight: 500; letter-spacing: -.035em; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding-block: 1rem; list-style: none; font-size: .9375rem; font-weight: 500; line-height: 1.4; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { flex-shrink: 0; color: var(--accent); font-size: 1.375rem; transition: transform 120ms ease-out; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details > p { padding: 0 1.5rem 1.25rem 0; color: var(--secondary); font-size: .875rem; line-height: 1.65; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; width: min(100% - 3rem, 70rem); margin-inline: auto; padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
footer .wordmark { font-size: 1.25rem; }
footer .wordmark img { width: 1.375rem; height: 1.375rem; }
footer > span { color: var(--secondary); font-size: .75rem; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .75rem; background: transparent; color: var(--secondary); font-size: .75rem; }
.motion-toggle[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); }
.button:active, .timer-reset:active, .rank-picker button:active, .feature-links a:active, .motion-toggle:active { transform: scale(.98); transition-duration: 80ms; }

@media (min-width: 40rem) {
  .site-header { min-height: 6rem; }
  .wordmark { font-size: 1.75rem; }
  .wordmark img { width: 1.875rem; height: 1.875rem; }
  .header-status { margin-left: auto; font-size: .875rem; }
  .header-help { display: inline-flex; margin-left: 1.5rem; }
  .hero { padding-top: 2.75rem; padding-bottom: 2.5rem; }
  h1 { font-size: clamp(4rem, 6vw, 5rem); }
  .hero-description { margin-top: 1.5rem; font-size: 1.125rem; }
  .hero-actions { margin-top: 1.75rem; }
  .hero-actions .button { width: auto; min-width: 12rem; }
  .launch-note { font-size: .875rem; }
  .experience { padding-inline: 2rem; padding-bottom: 3.5rem; }
  .experience-header { font-size: 1rem; }
  .demo-shell { padding: 1rem; border-radius: 1.75rem; }
  .feature-links a { min-height: 3rem; font-size: .9375rem; }
  .feature-panel { min-height: 33rem; }
  .feature-copy { padding: 1.5rem 1rem 1.25rem; }
  .feature-copy h3 { font-size: 1.375rem; }
  .feature-copy > p { font-size: .9375rem; }
  .demo-today { padding: 1.5rem; }
  .demo-rank { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; margin-top: -.5rem; }
  .demo-rank img { width: 3.75rem; height: 3.75rem; }
  .demo-rank strong { display: block; font-size: 1rem; font-weight: 500; }
  .demo-rank-note { margin-left: auto; color: var(--secondary); font-size: .875rem; }
  .habit-toggle { min-height: 4.5rem; padding: .875rem 1rem; gap: .875rem; }
  .habit-text strong { font-size: .9375rem; }
  .habit-text small { font-size: .875rem; }
  .habit-icon { width: 2.25rem; height: 2.25rem; }
  .demo-progress, .habit-feedback { font-size: .875rem; }
  .focus-demo { padding: 1.5rem; }
  .timer-ring { width: 14rem; height: 14rem; }
  .timer-ring > span:first-child { font-size: 3.75rem; }
  .timer-status { min-height: 1.5rem; }
  .rank-display > img { width: 15rem; height: 15rem; }
  .rank-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 1.5rem; }
  .rank-picker button { min-height: 5.25rem; }
  .rank-picker button img { width: 3.25rem; height: 3.25rem; }
  .faq-section { padding: 1rem 2rem 4rem; }
  .faq-layout h2 { font-size: 2rem; }
  footer { padding-block: 1.5rem; }
}
@media (max-width: 22rem) {
  .site-header { width: calc(100% - 2rem); gap: .5rem; }
  .wordmark { font-size: 1.375rem; }
  .header-status { max-width: 8rem; }
  .hero { padding: 1.75rem 1.25rem 1.75rem; }
  .eyebrow { font-size: .6875rem; letter-spacing: .045em; }
  .browser-help { padding-left: .875rem; }
  .experience { padding-inline: .75rem; }
  .demo-shell { padding: .625rem; }
  .feature-copy { padding-inline: .25rem; }
  .feature-copy h3 { font-size: 1.0625rem; }
  .demo-today { padding: .875rem; }
  .habit-text small { display: none; }
  .habit-toggle { min-height: 4rem; padding: .75rem .625rem; }
  .habit-icon { width: 1.875rem; height: 1.875rem; }
  .feature-panel { min-height: 29.5rem; }
  .timer-controls .button { padding-inline: 1rem; }
  .faq-section { padding-inline: 1.25rem; }
  footer { width: calc(100% - 2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:active, .timer-reset:active, .rank-picker button:active, .feature-links a:active, .motion-toggle:active { transform: none; filter: brightness(.92); }
}
html[data-reduced-motion='true'] { scroll-behavior: auto; }
html[data-reduced-motion='true'] *, html[data-reduced-motion='true'] *::before, html[data-reduced-motion='true'] *::after { animation: none !important; transition: none !important; }
html[data-reduced-motion='true'] .button:active, html[data-reduced-motion='true'] .timer-reset:active, html[data-reduced-motion='true'] .rank-picker button:active, html[data-reduced-motion='true'] .feature-links a:active, html[data-reduced-motion='true'] .motion-toggle:active { transform: none; filter: brightness(.92); }
@media (prefers-contrast: more) {
  .demo-shell, .browser-help, .habit-toggle, .demo-tag, .timer-reset, .faq-list details, .motion-toggle { border-color: #9381a3; }
  .habit-checkbox { border-color: #d2c6df; }
  .rank-picker button[aria-pressed='true'] { border-color: var(--accent); background: #41314f; }
  :root { --secondary: #d3cfdc; }
}

/* Launch updates sit alongside the existing browser preview. */
.hero-actions { flex-wrap: wrap; gap: .625rem; }
.button-preview { background: transparent; border: 1px solid var(--line); color: var(--text); }
.button-preview:hover { background: var(--panel); }
.faq-waitlist { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
