.landing-page {
  min-height: 100svh;
  overflow: hidden;
  color: #f2f2f3;
  background:
    radial-gradient(ellipse 55% 48% at 51% -14%, rgb(190 191 198 / .085), transparent 76%),
    radial-gradient(ellipse 46% 54% at 105% 78%, rgb(122 126 141 / .04), transparent 75%),
    #08090b;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.landing-nav {
  position: fixed;
  z-index: 10;
  inset: 12px 24px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  max-width: 1536px;
  margin-inline: auto;
  padding: 10px 20px;
  border: 1px solid rgb(255 255 255 / .06);
  border-radius: 16px;
  background: linear-gradient(145deg, rgb(43 44 49 / .76), rgb(23 24 28 / .76));
  box-shadow: inset 0 1px rgb(255 255 255 / .09), 0 10px 28px rgb(0 0 0 / .2);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.landing-brand { color: #f2f2f3; text-decoration: none; font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.landing-nav-actions { display: flex; align-items: center; gap: 8px; }
.landing-login, .landing-secondary-cta { color: #a5a6ac; text-decoration: none; }
.landing-login { padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.landing-login:hover, .landing-secondary-cta:hover { color: #f2f2f3; }
.landing-nav-cta, .landing-primary-cta { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: #17181b; background: #dfe0e3; font-weight: 600; text-decoration: none; }
.landing-nav-cta { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.landing-nav-cta:hover, .landing-primary-cta:hover { background: #f0f0f2; }
.landing-nav button:disabled { opacity: .55; cursor: default; }
.landing-session-error { position: fixed; z-index: 11; inset: 84px 24px auto; width: fit-content; max-width: min(420px, calc(100% - 48px)); margin: 0 auto; padding: 8px 12px; border: 1px solid rgb(224 128 112 / .24); border-radius: 8px; color: #e08070; background: rgb(32 24 26 / .92); font-size: 13px; }
.landing-hero { display: flex; align-items: center; min-height: 100dvh; padding: max(6rem, calc(env(safe-area-inset-top, 0px) + 5rem)) 56px 56px; }
.landing-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; width: 100%; max-width: 1280px; margin-inline: auto; }
.landing-copy { max-width: 560px; }
.landing-copy h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.6rem, 6vw, 6rem); font-weight: 300; line-height: 1; letter-spacing: .02em; }
.landing-lead { max-width: 34rem; margin: 28px 0 0; color: #f2f2f3; font-size: clamp(1.65rem, 2.8vw, 2.55rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.landing-description { max-width: 28rem; margin: 20px 0 0; color: #a5a6ac; font-size: 16px; line-height: 1.625; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.landing-primary-cta { min-height: 44px; padding: 12px 20px; font-size: 14px; line-height: 20px; }
.landing-secondary-cta { font-size: 14px; text-underline-offset: 4px; }
.landing-workspace { min-width: 0; padding: 12px; border-radius: 26px; background: linear-gradient(145deg, rgb(40 41 46 / .6), rgb(17 18 22 / .69)); box-shadow: inset 0 1px rgb(255 255 255 / .095), 0 30px 70px rgb(0 0 0 / .25); backdrop-filter: blur(24px) saturate(1.1); -webkit-backdrop-filter: blur(24px) saturate(1.1); }
.landing-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.landing-carousel-track { display: contents; }
.landing-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; height: 260px; min-height: 0; padding: 20px; border-radius: 17px; background: linear-gradient(160deg, rgb(29 30 34 / .94), rgb(20 21 25 / .95)); box-shadow: inset 0 1px rgb(255 255 255 / .045); }
.landing-card-tasks { grid-column: 1 / -1; height: 180px; }
.landing-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.landing-card-header h2 { margin: 0; color: #f2f2f3; font-size: 14px; font-weight: 600; }
.landing-card-header span { color: #a5a6ac; font-size: 12px; }
.landing-task-list, .landing-rates { display: flex; flex: 1; min-height: 0; flex-direction: column; justify-content: center; gap: 6px; }
.landing-task { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 0; padding: 4px 6px; border: 0; border-radius: 8px; color: #f2f2f3; background: transparent; font: inherit; font-size: 14px; line-height: 20px; font-weight: 400; text-align: left; transition: transform 150ms ease, background-color 150ms ease; }
.landing-task:active, .landing-day:active { transform: scale(.97); }
button.landing-task:hover { background: rgb(255 255 255 / .05); }
.landing-checkbox { display: grid; flex: 0 0 16px; place-items: center; width: 16px; height: 16px; border: 1px solid rgb(255 255 255 / .2); border-radius: 5px; color: #101012; font-size: 11px; }
.landing-checkbox svg { width: 12px; height: 12px; }
.landing-checkbox-done { border-color: #9baec5; background: #9baec5; }
.landing-task-done { color: #a5a6ac; text-decoration: line-through; }
.landing-habits-body { display: flex; flex: 1; min-height: 0; flex-direction: column; justify-content: center; gap: 12px; }
.landing-habit-preview { display: flex; flex-direction: column; gap: 6px; color: #f2f2f3; font-size: 14px; }
.landing-habit-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.landing-habit-streak { color: #a5a6ac; font-size: 12px; }
.landing-days { display: flex; gap: 6px; }
.landing-day { flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 6px; background: rgb(255 255 255 / .055); transition: transform 150ms ease, background-color 150ms ease; }
button.landing-day { cursor: pointer; }
.landing-day-done { background: #9baec5; }
.landing-day-today { box-shadow: inset 0 0 0 1px rgb(242 242 243 / .55); }
.landing-rates { gap: 0; }
.landing-rates div { display: grid; flex: 1; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; min-height: 0; border-bottom: 1px solid rgb(255 255 255 / .055); }
.landing-rates div:last-child { border-bottom: 0; }
.landing-rates b { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 600; }
.landing-rates span { color: #e08070; font-size: 12px; white-space: nowrap; }
.landing-rates strong { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; font-weight: 300; white-space: nowrap; }
.landing-carousel-controls { display: none; }
.landing-page a:focus-visible, .landing-page button:focus-visible { outline: 2px solid rgb(155 174 197 / .65); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

html:has(.landing-app.auth-open), body:has(.landing-app.auth-open) { overflow: hidden; overscroll-behavior: none; }
.landing-app.auth-open .landing-page { pointer-events: none; user-select: none; }
.landing-auth-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 24px; overflow: auto; background: rgb(0 0 0 / .6); animation: ui-overlay-backdrop-in .22s ease-out both; }
.landing-auth-panel { width: min(448px, 100%); max-height: 88dvh; overflow: auto; animation: ui-overlay-panel-in .22s cubic-bezier(.22,1,.36,1) both; }
.landing-auth-panel .account-panel { max-width: none; margin: 0; border: 1px solid rgb(255 255 255 / .08); }
.auth-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.auth-panel-header h1 { margin: 0; }
.landing-auth-panel .password-field input { padding-right: 92px; }
.landing-auth-panel .password-toggle { position: absolute; right: 8px; top: 50%; width: auto; min-height: 32px; transform: translateY(-50%); padding: 4px 8px; border: 0; border-radius: 6px; color: #a5a6ac; background: transparent; font-size: 12px; font-weight: 400; }
.landing-auth-panel .password-toggle:hover:not(:disabled) { color: #f2f2f3; background: rgb(255 255 255 / .08); }
.landing-auth-panel .account-submit { width: 100%; min-height: 44px; margin-top: 8px; padding: 12px 16px; border: 0; border-radius: 6px; color: #17181b; background: #dfe0e3; font-size: 14px; font-weight: 600; }
.landing-auth-panel .account-submit:hover:not(:disabled) { background: #f0f0f2; }
.landing-auth-panel .dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px; padding: 7px; border: 0; border-radius: 8px; color: #a5a6ac; background: transparent; }
.landing-auth-panel .dialog-close:hover { color: #f2f2f3; background: rgb(255 255 255 / .08); }
.landing-auth-panel .auth-switch-button { min-height: 0; padding: 0; border: 0; border-radius: 0; color: #f2f2f3; background: transparent; font-size: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 2px; }
.landing-auth-panel .auth-switch-button:hover { color: #fff; background: transparent; }

@media (max-width: 1023px) {
  .landing-hero { padding-inline: 32px; }
  .landing-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .landing-copy { max-width: none; }
  .landing-workspace { width: 100%; }
}
@media (max-width: 639px) {
  html:has(.landing-page), body:has(.landing-page) { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .landing-page { height: 100dvh; min-height: 100dvh; overflow: hidden; overscroll-behavior: none; }
  .landing-nav { inset: 12px 12px auto; min-height: 56px; padding: 8px 12px; border-radius: 14px; }
  .landing-brand { font-size: 25px; }
  .landing-login { padding-inline: 8px; }
  .landing-nav-cta { min-height: 38px; padding-inline: 14px; }
  .landing-hero { height: 100%; min-height: 0; padding: max(4rem, calc(env(safe-area-inset-top, 0px) + 1.5rem)) 20px max(1rem, env(safe-area-inset-bottom, 0px)); touch-action: pan-x; }
  .landing-hero-grid { gap: 28px; }
  .landing-copy h1 { font-size: 3.6rem; line-height: 1; }
  .landing-lead { margin-top: 28px; font-size: 1.65rem; }
  .landing-description { margin-top: 20px; font-size: 16px; line-height: 1.625; }
  .landing-actions { margin-top: 32px; gap: 10px 24px; }
  .landing-workspace { padding: 10px; border-radius: 24px; }
  .landing-cards { position: relative; display: block; height: 264px; overflow: hidden; touch-action: pan-x; overscroll-behavior: contain; outline: none; }
  .landing-carousel-track { display: flex; flex-direction: column; gap: 8px; height: 100%; transform: translate3d(0, var(--carousel-offset), 0); transition: transform 560ms cubic-bezier(.22,1,.36,1); will-change: transform; }
  .landing-card { position: static; display: flex; flex: 0 0 calc(100% - 22px); flex-direction: column; height: auto; min-height: 0; padding: 16px 12px 12px; border-radius: 17px; background: linear-gradient(160deg, rgb(31 32 37 / .85), rgb(19 20 24 / .82)); box-shadow: inset 0 1px rgb(255 255 255 / .055); }
  .landing-card:last-child { flex-basis: 100%; }
  .landing-card.landing-card-active { pointer-events: auto; }
  .landing-card-tasks { min-height: 0; }
  .landing-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 4px; border-top: 1px solid rgb(255 255 255 / .065); }
  .landing-dots { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  .landing-dots span { display: block; width: 12px; height: 2px; border-radius: 99px; background: rgb(255 255 255 / .2); transition: width 300ms ease, background-color 300ms ease; }
  .landing-dots span.landing-dot-active { width: 20px; background: #9aafc5; }
  .landing-carousel-count { color: #a5a6ac; font-size: 11px; letter-spacing: .04em; }
}
@media (max-width: 639px) and (max-height: 720px) {
  .landing-hero { padding-top: max(2.5rem, calc(env(safe-area-inset-top, 0px) + 1rem)); padding-bottom: max(.75rem, env(safe-area-inset-bottom, 0px)); }
  .landing-hero-grid { gap: 20px; }
  .landing-copy h1 { font-size: 3rem; }
  .landing-lead { margin-top: 1rem; font-size: 1.4rem; }
  .landing-description { display: none; }
  .landing-actions { margin-top: 1.25rem; column-gap: .5rem; row-gap: .5rem; }
  .landing-cards { height: 236px; }
  .landing-workspace { padding-bottom: 10px; }
}
@media (min-width: 640px) { .landing-card { transition: none; } }
@media (prefers-reduced-motion: reduce) { .landing-page * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

@keyframes hero-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hero-enter, .hero-enter-d1, .hero-enter-d2, .hero-enter-d3 { animation: hero-enter .4s ease-out both; }
.hero-enter-d1 { animation-delay: .06s; }
.hero-enter-d2 { animation-delay: .12s; }
.hero-enter-d3 { animation-delay: .18s; }

@keyframes ui-overlay-panel-in { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes auth-mode-in-login { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes auth-mode-in-register { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.auth-mode-login { animation: auth-mode-in-login .22s ease-out both; }
.auth-mode-register { animation: auth-mode-in-register .22s ease-out both; }
@media (max-width: 899px) {
  .landing-auth-backdrop { align-items: start; padding: max(2.5rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 16px max(1rem, env(safe-area-inset-left, 0px)); }
  .landing-auth-panel { max-height: min(calc(100svh - max(2.5rem, env(safe-area-inset-top, 0px)) - 1rem), 32rem); animation-name: ui-overlay-sheet-in; }
}
@media (prefers-reduced-motion: reduce) { .hero-enter, .hero-enter-d1, .hero-enter-d2, .hero-enter-d3, .landing-auth-backdrop, .landing-auth-panel, .auth-mode-swap { animation: none; } }
