@font-face {
  font-family: 'DM Sans';
  src: url('./dm-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #faf8f4;
  --surface: #fffdf9;
  --ink: #211c29;
  --muted: #625a68;
  --accent: #5632a1;
  --accent-deep: #40217e;
  --lavender: #f0e9fa;
  --rule: #e4dcd8;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.landing-page {
  --rule: #e3daf0;
  background: radial-gradient(ellipse 58rem 36rem at 80% 8%, #e8e1fc, transparent 75%), #f7f5fe;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.frame { width: min(100% - 64px, 1224px); margin-inline: auto; }
.site-header {
  height: 88px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; gap: 13px; text-decoration: none;
  font: normal 700 2.15rem/1 'DM Sans', system-ui, sans-serif; letter-spacing: -.045em;
  white-space: nowrap;
}
.brand > span:last-child { padding-bottom: .06em; }
.wordmark-dot { color: var(--accent); }
.mark {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px;
  width: 33px; height: 33px; transform: rotate(-10deg); flex: none;
}
.mark i { display: block; background: var(--accent); border-radius: 4px; }
.mark i:nth-child(2), .mark i:nth-child(3) { background: #9c82d0; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.about-link { font-size: .93rem; text-underline-offset: 5px; text-decoration-color: transparent; }
.about-link:hover { text-decoration-color: currentColor; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 19px;
  font-weight: 675; text-decoration: none; white-space: nowrap;
  transition: color .18s, background-color .18s, border-color .18s;
}
.primary { background: var(--accent); color: white; box-shadow: 0 4px 10px #40217e25; }
.primary:hover { background: var(--accent-deep); }
.sign-in {
  min-width: 88px; min-height: 46px; padding: 10px 16px;
  border-radius: 12px;
}
.button-outline { border-color: #d4c4eb; background: #faf8fe; color: var(--accent-deep); }
.button-outline:hover { border-color: var(--accent); background: var(--lavender); }
.text-button { color: var(--accent-deep); text-underline-offset: 5px; }
.text-button:hover { background: var(--lavender); text-decoration: underline; }
.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 76px);
  align-items: center; padding-block: clamp(48px, 6vw, 86px) clamp(60px, 8vw, 110px);
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.9rem); font-weight: 750; line-height: 1.02;
  letter-spacing: -.076em; max-width: 13.5ch;
}
.hero-copy h1 em {
  color: var(--accent); font-family: var(--serif); font-weight: 400; letter-spacing: -.065em;
}
.entry h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 5.6vw, 5.55rem);
  line-height: .99; letter-spacing: -.065em;
}
.hero-copy > p {
  color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.21rem); line-height: 1.58;
  max-width: 34ch; margin-block: 24px 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-art {
  position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1.1; overflow: hidden; display: grid; place-items: center;
  border: 1px solid #7b64b2; border-radius: 1.65rem;
  background: radial-gradient(circle at 53% 45%, #6245a6, transparent 65%), linear-gradient(140deg, #241747, #443178 64%, #382852);
  box-shadow: 0 1.7rem 2.6rem #3b22622b;
}
.orbit { position: absolute; width: 75%; aspect-ratio: 1; border: 1px solid #cfc0fa37; border-radius: 50%; transform: scaleY(.82) rotate(-18deg); }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 11%; border: 1px solid #cfc0fa27; border-radius: 50%; }
.orbit::after { inset: -11%; }
.art-mark {
  display: block; position: relative; width: 39%; padding: 0; border: 0; border-radius: 12%;
  color: inherit; background: transparent; transform: rotate(-12deg) translate(3%, -4%);
  filter: drop-shadow(0 1.2rem 1.2rem #180d414d);
}
.art-mark .mark { width: 100%; height: auto; aspect-ratio: 1; gap: 5%; transform: none; }
.art-mark i {
  border-radius: 23%;
  box-shadow: inset 0 1px 1px #ffffff75, inset 0 -12px 30px #27125724;
}
.art-mark i:nth-child(1) { background: #635fe4; }
.art-mark i:nth-child(2) { background: #a7a2f6; }
.art-mark i:nth-child(3) { background: #bfbcff; }
.art-mark i:nth-child(4) { background: #7974ee; }
.art-mark:focus-visible { outline-color: #f1e6ff; outline-offset: 6px; }
.art-mark:disabled { cursor: default; }
.sequence { pointer-events: none; position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.sequence li { position: absolute; display: flex; align-items: center; gap: .5rem; border: 1px solid #dfd1ff40; border-radius: .72rem; padding: .52rem .72rem; color: #fff; background: #34225af5; font-size: clamp(.7rem, 1.25vw, .86rem); font-weight: 650; white-space: nowrap; box-shadow: 0 .6rem 1.1rem #170f3355; }
.sequence li span { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; background: #d4c5ff; border-radius: .35rem; color: #3f2974; font-size: .76rem; }
.sequence-priority { top: 13%; left: 8%; }
.sequence-time { right: 7%; top: 49%; }
.sequence-focus { bottom: 12%; left: 15%; }
.sequence .sequence-focus span { background: #b8f0df; color: #125646; }
.sequence-focus span::before { content: ""; width: 9px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.about { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.about h2, .areas h2, .closing h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.055em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 1.65rem 0 0; }
.features > li { min-width: 0; padding: clamp(1.2rem, 3vw, 1.8rem); border: 1px solid var(--rule); border-radius: 1.25rem; background: #fff; }
.features h3 { margin: .25rem 0; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; }
.features p { margin: .6rem 0 0; color: var(--muted); font-size: .96rem; }
.features .feature-name { margin-top: 1.25rem; color: #593a9d; font-size: .85rem; font-weight: 700; }
.feature-illustration {
  height: 144px; display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 12px; border: 1px solid #e9e0f4; border-radius: 12px;
  background: #f8f5fd; color: var(--ink); font-size: .875rem; line-height: 1.2;
}
.task-row {
  display: flex; align-items: center; gap: 8px; min-height: 29px;
  padding: 4px 7px; border-radius: 6px; color: #655b73;
}
.task-marker {
  display: grid; place-items: center; flex: 0 0 15px; height: 15px;
  border: 1px solid #b7acc8; border-radius: 4px; font-size: .7rem;
}
.selected-task { background: #e9defb; color: #412377; }
.priority-pin { flex: 0 0 15px; color: #6746b4; }
.timeline-row {
  display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #655b73;
  font-variant-numeric: tabular-nums;
}
.timeline-rule { flex: 1; height: 1px; background: #ded4ea; }
.timeline-block {
  display: grid; gap: 3px; padding: 6px 8px; border: solid #ddccf5; border-width: 1px 1px 1px 3px;
  border-left-color: #7858be; border-radius: 6px; background: #eee4fc; color: #412377;
}
.timeline-time { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.focus-illustration {
  align-items: center; gap: 7px; background: #eff9f5; border-color: #d8efe6; color: #234b3e;
}
.illustration-ring {
  display: grid; place-items: center; width: 82px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(#71c8a9 84%, #d7eee5 0);
}
.illustration-ring span {
  display: grid; place-items: center; width: 70px; aspect-ratio: 1; border-radius: 50%;
  background: #fafffc; color: #184b3a; font-size: 1.3rem; font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.areas { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 1.6rem; background: #eee7fb; }
.areas h2 { max-width: 15ch; }
.areas p, .closing p { margin: .85rem 0 0; color: var(--muted); }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.area-list li { display: flex; align-items: center; gap: .65rem; padding: .95rem .8rem; border: 1px solid #dfd2f2; border-radius: .75rem; background: #fcfaff; font-size: .9rem; font-weight: 650; }
.area-list span { width: .72rem; height: .72rem; flex: 0 0 .72rem; border-radius: .2rem; background: #7756c6; }
.area-list li:nth-child(2) span { background: #397d69; }
.area-list li:nth-child(3) span { background: #ab678b; }
.area-list li:nth-child(4) span { background: #5968af; }
.closing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; margin-block: clamp(2.5rem, 5vw, 4rem); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.site-footer .brand { font-size: 1.6rem; }
.site-footer .mark { width: 23px; height: 23px; }
.entry { padding-block: 65px; }
.entry h1 { max-width: 16ch; }
.entry p { color: var(--muted); margin-block: 18px 24px; max-width: 48ch; line-height: 1.6; }
@media (max-width: 860px) {
  .frame { width: min(100% - 40px, 600px); }
  .hero-art { aspect-ratio: 1.25; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 40px 54px; }
  .hero-copy h1 { font-size: clamp(2.65rem, 9.2vw, 4.1rem); }
  .hero-copy > p { margin-block: 15px 16px; }
  .features, .areas { grid-template-columns: 1fr; }
  .areas { gap: 1.2rem; }
  .site-footer .about-link { display: inline-flex; }
}
@media (max-width: 480px) {
  .frame { width: calc(100% - 32px); }
  .site-header { height: 72px; }
  .brand { font-size: 1.78rem; gap: 10px; }
  .brand .mark { width: 28px; height: 28px; }
  .about-link { display: none; }
  .hero { padding-block-start: 28px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 10.8vw, 3.2rem); }
  .hero-actions { gap: 3px; }
  .hero-actions .button { padding-inline: 11px; }
  .hero-art { border-radius: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

[hidden] { display: none !important; }
.account-panel { width: min(100%, 420px); margin-top: 26px; }
.account-entry form { display: grid; gap: 16px; }
.account-field { display: grid; gap: 6px; }
.account-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-entry form input {
  width: 100%; min-height: 46px; border: 1px solid #b9abd2; border-radius: 8px;
  padding: 8px 12px; font: inherit; background: white; color: inherit;
}
.account-entry form label { font-weight: 650; }
.account-entry form .remember-device {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  font-size: .9rem;
}
.account-entry form .remember-device input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent-deep);
}
.account-entry form label span, .account-entry form small { color: var(--muted); font-weight: 400; }
.account-link {
  border: 0; padding: 0; background: transparent; color: var(--accent-deep);
  font: inherit; font-size: .9rem; font-weight: 650; text-underline-offset: 3px;
}
.account-link:hover { text-decoration: underline; }
.account-link:disabled, .account-submit:disabled { opacity: .65; cursor: wait; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; inset-block: 4px; right: 4px; min-width: 59px; }
.password-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 6px 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.password-checklist li { display: flex; align-items: baseline; gap: 8px; }
.password-rule-icon { width: 14px; flex: 0 0 14px; text-align: center; font-weight: 700; }
.password-rule-icon::before { content: '○'; }
.password-checklist [data-met] { color: #216b59; }
.password-checklist [data-met] .password-rule-icon::before { content: '✓'; }
.password-rule-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.account-entry .password-completion { margin: 0; color: #216b59; font-size: .82rem; }
.account-entry .password-completion:empty { height: 0; }
.account-submit { width: 100%; min-height: 48px; margin-top: 4px; }
.account-entry .account-switch { margin-top: 17px; }
body:not(.email-verification) .account-entry[data-account-mode=login] #account-status[data-auth-error] {
  margin-block: 10px 0;
}
.account-entry[data-account-mode=signup] #account-status[data-auth-error] { margin-bottom: 0; }
.account-entry[data-account-mode=signup] #account-status[data-auth-error] + .account-switch { margin-top: 4px; }
.account-entry[data-account-mode=signup] .account-switch .account-link { text-decoration: underline; }
.account-field .account-error { color: #a11b37; }
.account-field input[aria-invalid=true] { border-color: #a11b37; }
/* Apply the compact layout only during email verification. */
.email-verification .account-entry { width: min(100% - 40px, 420px); padding-block: 58px 40px; }
.email-verification .account-entry h1 {
  font-size: clamp(2.2rem, 6.8vw, 3.05rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}
.email-verification .account-panel { margin-top: 18px; }
.email-verification .verify-help { margin: 0 0 20px; max-width: 36ch; }
.email-verification .verify-resend { margin: 18px 0 0; font-size: .9rem; }
.verify-resend .account-link { min-height: 32px; text-decoration: underline; }
.email-verification .verify-status, .email-verification #account-status { margin: 8px 0 0; font-size: .9rem; }
.verify-sign-out { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--rule); }
.verify-sign-out .account-link { min-height: 44px; color: var(--muted); font-weight: 550; }
#account-status:empty, #verification-link-status:empty { display: none; }
@media (min-width: 521px) {
  body.email-verification { display: grid; min-height: 100vh; grid-template-rows: auto 1fr; }
  .email-verification .account-entry { align-self: center; padding-block: 24px; }
}
@media (min-width: 861px) {
  body:not(.email-verification) .account-entry[data-account-mode=login] {
    width: 420px;
    padding-block-start: max(48px, calc((100svh - 520px) / 2));
  }
  body:not(.email-verification) .account-entry[data-account-mode=login] h1 {
    max-width: none;
    font-size: 3.25rem;
    line-height: 1.05;
  }
}

.password-reset-dialog {
  width: min(420px, calc(100% - 32px));
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid #ddd2e8;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 18px 50px #21163b26;
}
.password-reset-dialog::backdrop { background: #21163b70; }
.password-reset-dialog h2 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.2; }
.password-reset-dialog p { margin: 0; color: var(--muted); }
.password-reset-dialog strong { overflow-wrap: anywhere; }
.password-reset-dialog .account-link { margin-top: 14px; padding-block: 6px; }
#password-reset-status:not(:empty) { margin-top: 12px; }
.account-entry p[data-auth-error] { color: #a11b37; }
