:root {
  --ink: #1e1b2e;
  --muted: #6d687c;
  --paper: #fbfaf6;
  --white: #ffffff;
  --purple: #5137d9;
  --purple-dark: #3923b6;
  --purple-soft: #ebe7ff;
  --lime: #dfff72;
  --peach: #ffded1;
  --sky: #d9eeff;
  --line: #e5e1ec;
  --shadow: 0 24px 70px rgba(47, 32, 105, 0.13);
  --radius-lg: 30px;
  --radius-md: 20px;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  width: var(--shell);
  height: 78px;
  margin: 14px auto 0;
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(32, 23, 62, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--purple);
  border-radius: 10px;
  font-size: 23px;
  font-weight: 850;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #555064;
  font-size: 14px;
  font-weight: 650;
}

.site-nav > a:not(.button) {
  transition: color 160ms ease;
}

.site-nav > a:not(.button):hover {
  color: var(--purple);
}

.button {
  min-height: 52px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--purple);
  box-shadow: 0 11px 30px rgba(81, 55, 217, 0.26);
}

.button-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 14px 34px rgba(81, 55, 217, 0.34);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 12px;
}

.button-ghost {
  color: white;
  background: var(--ink);
}

.button-dark {
  color: white;
  background: var(--ink);
}

.button-outline {
  border: 1px solid var(--line);
  background: white;
}

.button-white {
  color: var(--purple-dark);
  background: white;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f0edf7;
}

.menu-button span {
  width: 18px;
  height: 2px;
  margin: 5px auto;
  display: block;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  min-height: 820px;
  padding-top: 150px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 68px;
}

.eyebrow,
.kicker {
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid #d9d2ff;
  border-radius: 999px;
  background: #f4f1ff;
  letter-spacing: 0.5px;
  text-transform: none;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d60ff;
  box-shadow: 0 0 0 4px #e6e0ff;
}

.hero h1,
.section-heading h2,
.method-intro h2,
.pricing-heading h2,
.final-cta h2 {
  margin: 22px 0;
  font-size: clamp(48px, 5.5vw, 79px);
  line-height: 0.99;
  letter-spacing: -4.5px;
}

h1 em,
h2 em {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link {
  padding-block: 12px;
  border-bottom: 1px solid #c8c2d2;
  font-size: 14px;
  font-weight: 750;
}

.student-proof {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-stack {
  display: flex;
  padding-left: 8px;
}

.avatar-stack span {
  width: 33px;
  height: 33px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: #3d3151;
  background: var(--peach);
  font-size: 9px;
  font-weight: 850;
}

.avatar-stack span:nth-child(2) { background: var(--lime); }
.avatar-stack span:nth-child(3) { background: var(--sky); }
.avatar-stack span:nth-child(4) { background: #ddd5ff; }

.student-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.student-proof strong {
  color: var(--ink);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -2;
  inset: 8% -5% -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #dcd5ff 0, #efecff 48%, transparent 70%);
  content: "";
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px dashed #b9abe9;
  border-radius: 50%;
}

.orbit-one { inset: 10% -5% -3% 3%; transform: rotate(-12deg); }
.orbit-two { inset: -3% 8% 5% -6%; transform: rotate(15deg); }

.app-preview {
  overflow: hidden;
  width: 100%;
  max-width: 590px;
  margin-inline: auto;
  border: 8px solid white;
  border-radius: 32px;
  background: #f7f6fb;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.preview-topbar {
  height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e6ef;
  background: white;
}

.preview-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 850;
}

.preview-logo span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--purple);
}

.preview-user {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #463b05;
  background: var(--lime);
  font-size: 11px;
  font-weight: 850;
}

.preview-content { padding: 28px; }

.preview-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title-row small,
.mini-label {
  color: #898394;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.1px;
}

.preview-title-row h2 {
  margin: 7px 0 20px;
  font-size: 26px;
  letter-spacing: -1.1px;
}

.preview-title-row h2 span { color: #775aef; }

.preview-title-row button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--purple);
  font-size: 23px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 13px;
}

.focus-card,
.ai-card,
.today-card {
  border: 1px solid #ebe8f0;
  border-radius: 17px;
  background: white;
}

.focus-card,
.ai-card { min-height: 158px; padding: 17px; }

.focus-progress {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.focus-progress p { margin: 4px 0 0; color: #8a8492; font-size: 9px; }
.focus-progress > div:last-child strong { font-size: 12px; }

.progress-ring {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 7px solid #e8e3ff;
  border-top-color: var(--purple);
  border-right-color: var(--purple);
  border-radius: 50%;
  transform: rotate(20deg);
}

.progress-ring strong,
.progress-ring small { grid-area: 1 / 1; transform: rotate(-20deg); }
.progress-ring strong { margin-right: 7px; font-size: 16px; }
.progress-ring small { margin: 2px 0 0 25px; font-size: 7px; }

.progress-line { height: 4px; margin-top: 15px; border-radius: 3px; background: #eeeaf8; }
.progress-line span { width: 72%; height: 100%; display: block; border-radius: 3px; background: var(--purple); }

.ai-card {
  color: #292139;
  background: var(--lime);
}

.ai-card .mini-label { display: block; margin: 13px 0 8px; color: #686229; }
.ai-card strong { font-size: 12px; }
.ai-card p { margin: 6px 0 0; color: #625e38; font-size: 9px; line-height: 1.45; }
.ai-icon { font-size: 19px; }

.today-card { margin-top: 13px; padding: 17px; }
.card-heading { margin-bottom: 6px; display: flex; justify-content: space-between; font-size: 12px; }
.card-heading span { color: #8f8998; font-size: 9px; }

.preview-task {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #eeeaf2;
}

.preview-task:last-child { border-bottom: 0; }
.preview-task > span { width: 18px; height: 18px; display: grid; place-items: center; border: 1.5px solid #d9d3e2; border-radius: 6px; color: white; font-size: 9px; }
.preview-task.done > span { border-color: var(--purple); background: var(--purple); }
.preview-task div { display: flex; flex-direction: column; gap: 3px; }
.preview-task strong { font-size: 10px; }
.preview-task small { color: #958f9d; font-size: 8px; }
.preview-task b { padding: 4px 6px; border-radius: 5px; color: #634cdf; background: #efebff; font-size: 7px; }

.floating-note {
  position: absolute;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 15px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 14px 35px rgba(49, 39, 96, .14);
  animation: float 4s ease-in-out infinite;
}

.floating-note > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--purple-dark); background: var(--purple-soft); font-size: 12px; font-weight: 850; }
.floating-note div { display: flex; flex-direction: column; gap: 3px; }
.floating-note strong { font-size: 10px; }
.floating-note small { color: var(--muted); font-size: 8px; }
.note-left { left: -38px; bottom: 18%; }
.note-right { right: -22px; top: 21%; animation-delay: -2s; }
.note-right > span { color: #514a0b; background: var(--lime); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

.marquee {
  overflow: hidden;
  padding: 17px 0;
  color: white;
  background: var(--purple);
  transform: rotate(-1deg) scale(1.02);
}

.marquee div {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 34px;
  animation: scroll 25s linear infinite;
}

.marquee span { font-size: 13px; font-weight: 850; letter-spacing: 2px; }
.marquee i { color: var(--lime); font-style: normal; }

@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding-top: 145px; padding-bottom: 145px; }

.section-heading {
  margin-bottom: 58px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading h2,
.pricing-heading h2,
.final-cta h2 { font-size: clamp(42px, 5vw, 67px); }
.section-heading p { max-width: 360px; margin: 0 0 7px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feature-card {
  min-height: 475px;
  overflow: hidden;
  padding: 34px 34px 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.feature-copy { max-width: 430px; }
.feature-number { color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.feature-card h3 { margin: 13px 0 11px; font-size: 29px; letter-spacing: -1.2px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.mini-calendar {
  width: 78%;
  margin: 38px auto -30px;
  padding: 22px;
  border: 1px solid #e5e1eb;
  border-radius: 20px 20px 0 0;
  background: #fbfaff;
  box-shadow: 0 15px 40px rgba(38, 30, 77, .1);
  transform: rotate(-2deg);
}

.calendar-month { margin-bottom: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.calendar-month span { color: #9992a3; }
.calendar-days,
.calendar-dates { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-days { margin-bottom: 12px; color: #aaa4b1; font-size: 8px; font-weight: 750; }
.calendar-dates { row-gap: 10px; font-size: 10px; }
.calendar-dates span { position: relative; min-height: 25px; display: grid; place-items: center; }
.calendar-dates .active { color: white; border-radius: 8px; background: var(--purple); }
.calendar-dates .has-event::after { position: absolute; bottom: 0; width: 3px; height: 3px; border-radius: 50%; background: #ff816c; content: ""; }

.feature-ai { background: #f0edff; }
.ai-bubble { margin: 54px 0 0 auto; width: 83%; padding: 27px; border-radius: 24px 24px 5px 24px; background: white; box-shadow: 0 18px 40px rgba(62, 42, 143, .11); transform: rotate(2deg); }
.ai-bubble > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: white; background: var(--purple); }
.ai-bubble p { margin: 18px 0; color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.45; }
.ai-bubble button { padding: 10px 14px; border: 0; border-radius: 9px; color: #403815; background: var(--lime); font-size: 11px; font-weight: 800; }

.chat-demo { width: 90%; margin: 52px auto 0; padding: 12px; border-radius: 20px 20px 0 0; background: #f7f6fa; transform: rotate(1.5deg); }
.chat-demo > div { margin-bottom: 8px; padding: 15px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border-radius: 13px; background: white; box-shadow: 0 5px 15px rgba(36, 28, 67, .05); }
.chat-demo > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--purple-dark); background: var(--purple-soft); font-size: 10px; font-weight: 850; }
.chat-demo > div:nth-child(2) > span { color: #7c4a38; background: var(--peach); }
.chat-demo p { display: flex; flex-direction: column; }
.chat-demo strong { color: var(--ink); font-size: 11px; }
.chat-demo small { margin-top: 4px; color: #8b8594; font-size: 9px; }
.chat-demo time { color: #aaa4b1; font-size: 8px; }

.feature-reminders { background: var(--lime); }
.reminder-demo { width: 84%; margin: 58px auto 0; padding: 24px; display: flex; align-items: center; gap: 18px; border-radius: 20px; background: #24202d; box-shadow: 0 20px 35px rgba(47, 45, 11, .18); transform: rotate(-2deg); }
.reminder-demo .bell { position: relative; width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: white; background: var(--purple); font-size: 24px; }
.reminder-demo .bell span { position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border: 2px solid #24202d; border-radius: 50%; background: #ff7469; }
.reminder-demo div:last-child { display: flex; flex-direction: column; gap: 4px; }
.reminder-demo small { color: #a49fac; font-size: 8px; font-weight: 850; letter-spacing: .8px; }
.reminder-demo strong { color: white; font-size: 13px; }
.reminder-demo p { color: #b9b4bf; font-size: 10px; }

.method-section {
  padding: 130px 0;
  color: white;
  background: var(--purple);
}

.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; }
.method-intro { position: sticky; top: 130px; align-self: start; }
.method-intro .kicker { color: var(--lime); }
.method-intro h2 { font-size: clamp(43px, 4.4vw, 66px); }
.method-intro p { max-width: 390px; margin: 0 0 30px; color: #d8d1ff; font-size: 17px; line-height: 1.6; }
.method-intro .button-dark { background: var(--lime); color: #302a0f; }

.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { padding: 38px 0; display: grid; grid-template-columns: 63px 1fr; gap: 23px; border-bottom: 1px solid rgba(255,255,255,.18); }
.steps-list li:first-child { padding-top: 5px; }
.steps-list li > span { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--lime); font-family: Georgia, serif; font-size: 21px; }
.steps-list h3 { margin: 2px 0 9px; font-size: 24px; }
.steps-list p { max-width: 420px; margin: 0; color: #d8d1ff; line-height: 1.6; }

.pricing-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; }
.pricing-heading { padding-top: 50px; }
.pricing-heading h2 { font-size: clamp(43px, 4.5vw, 63px); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 14px; }
.price-card { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 26px; background: white; }
.price-card > div:first-child { min-height: 170px; }
.plan-name { color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: 1.4px; }
.price-card h3 { margin: 15px 0 10px; font-size: 40px; letter-spacing: -2px; }
.price-card h3 small { font-size: 11px; letter-spacing: 0; }
.price-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.price-card ul { min-height: 170px; margin: 22px 0; padding: 0; list-style: none; }
.price-card li { padding: 8px 0 8px 25px; position: relative; color: #5d5868; font-size: 12px; line-height: 1.4; }
.price-card li::before { position: absolute; left: 0; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: var(--purple-soft); content: "✓"; font-size: 9px; font-weight: 850; }
.price-featured { position: relative; color: white; border-color: var(--purple); background: var(--purple); transform: translateY(-20px); box-shadow: 0 20px 50px rgba(61, 38, 174, .25); }
.price-featured .plan-name { color: var(--lime); }
.price-featured p, .price-featured li { color: #dcd6ff; }
.price-featured li::before { color: #453e13; background: var(--lime); }
.popular-label { position: absolute; top: 17px; right: 17px; padding: 6px 8px; border-radius: 6px; color: #48400f; background: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .6px; }

.final-cta {
  position: relative;
  overflow: hidden;
  margin-bottom: 70px;
  padding: 100px 30px;
  text-align: center;
  border-radius: 34px;
  background: var(--lime);
}

.final-cta h2 { margin: 20px 0; }
.final-cta h2 em { color: var(--purple-dark); }
.final-cta p { margin: 0 0 28px; color: #625f43; }
.final-cta .spark { position: absolute; color: var(--purple); font-size: 50px; opacity: .22; }
.spark-one { top: 28px; left: 7%; transform: rotate(20deg); }
.spark-two { right: 9%; bottom: 25px; transform: rotate(-15deg); }

.site-footer {
  padding: 45px 0 35px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.site-footer p { color: var(--muted); font-size: 13px; }
.site-footer > div { display: flex; gap: 22px; color: #5d5867; font-size: 12px; font-weight: 650; }
.site-footer small { grid-column: 1 / -1; color: #aaa4b1; font-size: 10px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1);
}

.reveal[data-delay="1"] { transition-delay: 110ms; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Application */
.app-page {
  min-height: 100vh;
  background: #f6f5fa;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e7e3ed;
  background: #fcfbfd;
}

.sidebar-close { display: none; }
.app-sidebar .brand { margin: 0 8px 42px; }
.app-nav { display: flex; flex-direction: column; gap: 7px; }
.app-nav button {
  width: 100%;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: #716b7b;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.app-nav button:hover { background: #f1eefb; }
.app-nav button.active { color: var(--purple); background: var(--purple-soft); }
.nav-icon { width: 25px; font-size: 18px; text-align: center; }
.nav-badge { margin-left: auto; padding: 3px 7px; border-radius: 999px; color: #3b3515; background: var(--lime); font-size: 9px; }

.sidebar-upgrade { margin-top: auto; padding: 19px; border-radius: 18px; background: var(--ink); color: white; }
.sidebar-upgrade > span { color: var(--lime); font-size: 19px; }
.sidebar-upgrade strong { margin-top: 12px; display: block; font-size: 13px; }
.sidebar-upgrade p { margin: 5px 0 14px; color: #bdb8c5; font-size: 10px; line-height: 1.5; }
.sidebar-upgrade a { color: var(--lime); font-size: 10px; font-weight: 800; }

.app-main { min-width: 0; }
.app-topbar { height: 82px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7e3ed; background: rgba(255,255,255,.76); backdrop-filter: blur(14px); }
.mobile-sidebar-button { display: none; }
.search-box { width: min(370px, 42vw); height: 43px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 1px solid #e6e2eb; border-radius: 12px; color: #aaa4b1; background: white; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.icon-button { width: 40px; height: 40px; border: 1px solid #e6e2eb; border-radius: 12px; color: #706a7b; background: white; cursor: pointer; }
.user-chip { padding: 5px 10px 5px 5px; display: flex; align-items: center; gap: 9px; border: 1px solid #e6e2eb; border-radius: 13px; background: white; }
.user-chip span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #403a13; background: var(--lime); font-size: 11px; font-weight: 850; }
.user-chip strong { font-size: 11px; }
.user-chip small { display: block; margin-top: 2px; color: #9b95a2; font-size: 8px; }

.dashboard { max-width: 1380px; margin-inline: auto; padding: 40px 42px 65px; }
.dashboard-welcome { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.dashboard-welcome small { color: #9b94a4; font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.dashboard-welcome h1 { margin: 7px 0 0; font-size: 35px; letter-spacing: -1.5px; }
.dashboard-welcome h1 span { color: var(--purple); }
.add-task-button { min-height: 43px; }

.week-strip { margin: 30px 0 22px; padding: 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; border: 1px solid #e7e3ed; border-radius: 18px; background: white; }
.week-day { min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; color: #8c8695; background: transparent; cursor: pointer; }
.week-day span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.week-day strong { color: #4f4959; font-size: 14px; }
.week-day.today { color: white; background: var(--purple); box-shadow: 0 8px 18px rgba(81,55,217,.2); }
.week-day.today strong { color: white; }
.week-day.has-task::after { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); content: ""; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 20px; }
.dashboard-card { border: 1px solid #e7e3ed; border-radius: 20px; background: white; }
.card-header { padding: 21px 22px 14px; display: flex; align-items: center; justify-content: space-between; }
.card-header h2 { margin: 0; font-size: 16px; letter-spacing: -.4px; }
.card-header a, .card-header button { border: 0; color: var(--purple); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }

.task-list { padding: 0 13px 13px; }
.task-row { padding: 14px 10px; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 10px; border-top: 1px solid #f0edf3; }
.task-row:first-child { border-top: 0; }
.task-check { width: 21px; height: 21px; display: grid; place-items: center; border: 1.5px solid #d9d3df; border-radius: 7px; color: white; background: white; cursor: pointer; }
.task-row.completed .task-check { border-color: var(--purple); background: var(--purple); }
.task-row.completed .task-title { color: #a5a0aa; text-decoration: line-through; }
.task-info { min-width: 0; }
.task-title { overflow: hidden; display: block; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { margin-top: 5px; display: flex; align-items: center; gap: 8px; color: #9993a0; font-size: 9px; }
.subject-tag { padding: 5px 7px; border-radius: 7px; color: #5b45cc; background: #eeeaff; font-size: 8px; font-weight: 850; }
.subject-tag.bio { color: #42651a; background: #e7f7c0; }
.subject-tag.lit { color: #9a4f3c; background: #ffebe4; }
.subject-tag.his { color: #256383; background: #e0f2ff; }
.empty-tasks { padding: 40px 20px; color: #938d9b; font-size: 12px; text-align: center; }

.focus-summary { padding: 22px; color: white; background: var(--purple); }
.focus-summary .card-header { padding: 0 0 20px; }
.focus-summary .card-header h2 { color: white; }
.focus-summary .card-header span { color: #d5ceff; font-size: 9px; }
.focus-score { display: flex; align-items: center; gap: 17px; }
.large-ring { width: 76px; height: 76px; display: grid; place-items: center; border: 8px solid rgba(255,255,255,.2); border-top-color: var(--lime); border-right-color: var(--lime); border-radius: 50%; transform: rotate(25deg); }
.large-ring span { font-size: 19px; font-weight: 850; transform: rotate(-25deg); }
.focus-score strong { display: block; font-size: 15px; }
.focus-score p { margin: 6px 0 0; color: #d9d3fa; font-size: 10px; line-height: 1.5; }
.streak { margin-top: 22px; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); font-size: 10px; }
.streak b { color: var(--lime); }

.schedule-card { margin-top: 20px; }
.timeline { padding: 0 22px 22px; }
.timeline-item { display: grid; grid-template-columns: 47px 10px 1fr; gap: 10px; min-height: 66px; }
.timeline-item time { padding-top: 4px; color: #8e8897; font-size: 9px; }
.timeline-line { position: relative; display: flex; justify-content: center; }
.timeline-line::before { position: absolute; top: 8px; bottom: -8px; width: 1px; background: #e5e1ea; content: ""; }
.timeline-item:last-child .timeline-line::before { display: none; }
.timeline-line::after { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 4px; border: 2px solid white; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 1px var(--purple); content: ""; }
.timeline-item:nth-child(2) .timeline-line::after { background: #7bab35; box-shadow: 0 0 0 1px #7bab35; }
.timeline-content strong { display: block; font-size: 11px; }
.timeline-content span { margin-top: 5px; display: block; color: #9993a0; font-size: 9px; }

.ai-coach-card { grid-column: 1 / -1; padding: 25px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; border-color: #d4ed83; background: var(--lime); }
.coach-icon { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 16px; color: white; background: var(--purple); font-size: 22px; }
.ai-coach-card small { color: #716b29; font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.ai-coach-card h2 { margin: 6px 0 4px; font-size: 15px; }
.ai-coach-card p { margin: 0; color: #68633a; font-size: 11px; }
.coach-action { min-height: 40px; padding: 0 16px; border: 0; border-radius: 11px; color: white; background: var(--ink); cursor: pointer; font-size: 10px; font-weight: 800; }

.view-section { display: none; }
.view-section.active { display: block; }
.secondary-view { min-height: calc(100vh - 82px); padding: 40px 42px; }
.secondary-view > h1 { margin: 0 0 7px; font-size: 33px; letter-spacing: -1.4px; }
.secondary-view > p { margin: 0 0 28px; color: var(--muted); }
.placeholder-panel { min-height: 420px; padding: 26px; border: 1px solid #e7e3ed; border-radius: 22px; background: white; }

.agenda-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.agenda-column { min-height: 340px; padding: 15px; border-radius: 16px; background: #f6f4f9; }
.agenda-column h3 { margin: 0 0 15px; font-size: 12px; }
.agenda-item { margin-bottom: 10px; padding: 14px; border-radius: 12px; background: white; box-shadow: 0 4px 14px rgba(37,28,68,.05); }
.agenda-item strong { display: block; font-size: 11px; }
.agenda-item span { margin-top: 6px; display: block; color: #918a98; font-size: 9px; }

.assistant-layout { min-height: 430px; display: grid; grid-template-rows: 1fr auto; }
.chat-messages { padding: 10px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { max-width: 76%; padding: 13px 15px; border-radius: 14px 14px 14px 3px; color: #595363; background: #f1eef7; font-size: 12px; line-height: 1.55; }
.chat-message.user { align-self: end; color: white; border-radius: 14px 14px 3px 14px; background: var(--purple); }
.chat-composer { padding-top: 15px; display: flex; gap: 10px; border-top: 1px solid #eeeaf1; }
.chat-composer input { flex: 1; padding: 12px 14px; border: 1px solid #ded9e4; border-radius: 12px; outline: none; }
.chat-composer input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.chat-composer button { width: 44px; border: 0; border-radius: 12px; color: white; background: var(--purple); cursor: pointer; }

.messages-list { max-width: 720px; }
.message-row { padding: 16px; display: grid; grid-template-columns: 45px 1fr auto; gap: 13px; align-items: center; border-bottom: 1px solid #eeeaf1; }
.message-row > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: var(--purple-dark); background: var(--purple-soft); font-size: 11px; font-weight: 850; }
.message-row strong { display: block; font-size: 12px; }
.message-row p { margin: 5px 0 0; color: #8a8491; font-size: 10px; }
.message-row time { color: #aaa4b1; font-size: 9px; }

.task-dialog { width: min(470px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 30px 90px rgba(35,26,69,.28); }
.task-dialog::backdrop { background: rgba(26,20,46,.42); backdrop-filter: blur(3px); }
.dialog-header { padding: 23px 25px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eeeaf1; }
.dialog-header h2 { margin: 0; font-size: 19px; }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f1eef5; cursor: pointer; }
.task-form { padding: 22px 25px 25px; }
.form-field { margin-bottom: 15px; display: flex; flex-direction: column; gap: 7px; }
.form-field label { color: #6f6878; font-size: 10px; font-weight: 800; }
.form-field input, .form-field select { width: 100%; height: 45px; padding: 0 12px; border: 1px solid #ded9e4; border-radius: 11px; outline: 0; background: white; }
.form-field input:focus, .form-field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }

.toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; padding: 14px 18px; border-radius: 13px; color: white; background: var(--ink); box-shadow: 0 15px 35px rgba(25,19,47,.25); font-size: 12px; transform: translateY(80px); opacity: 0; transition: transform 220ms ease, opacity 220ms ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 150px; grid-template-columns: 1fr; gap: 70px; }
  .hero-copy { max-width: 690px; }
  .hero-visual { width: min(650px, 96%); margin-inline: auto; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .method-grid { grid-template-columns: 1fr; gap: 70px; }
  .method-intro { position: static; }
  .pricing-section { grid-template-columns: 1fr; gap: 40px; }
  .pricing-heading { padding-top: 0; }
  .pricing-grid { max-width: 720px; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; z-index: 90; left: 0; width: 248px; transform: translateX(-105%); box-shadow: 15px 0 50px rgba(30,23,57,.18); transition: transform 200ms ease; }
  .app-sidebar.open { transform: translateX(0); }
  .sidebar-close { position: absolute; top: 20px; right: 15px; display: block; border: 0; background: transparent; cursor: pointer; font-size: 20px; }
  .mobile-sidebar-button { display: block; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(260px,.7fr); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { height: 64px; margin-top: 8px; border-radius: 17px; }
  .site-header .brand { font-size: 19px; }
  .site-header .brand-mark { width: 30px; height: 30px; }
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 78px 14px auto; padding: 25px; align-items: stretch; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 160ms ease, transform 160ms ease; }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav > a { padding: 13px 8px; }
  .site-nav .button { margin-top: 10px; }
  .hero { padding-top: 120px; padding-bottom: 70px; gap: 56px; }
  .hero h1 { letter-spacing: -3px; }
  .hero-lede { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .text-link { text-align: center; }
  .hero-visual { width: 100%; }
  .app-preview { border-width: 5px; border-radius: 23px; }
  .preview-content { padding: 18px; }
  .preview-grid { grid-template-columns: 1fr; }
  .ai-card { min-height: 125px; }
  .floating-note { display: none; }
  .orbit { display: none; }
  .section { padding-top: 95px; padding-bottom: 95px; }
  .section-heading { margin-bottom: 35px; }
  .section-heading h2, .pricing-heading h2, .final-cta h2 { letter-spacing: -2.8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 440px; padding-inline: 24px; }
  .feature-card h3 { font-size: 25px; }
  .mini-calendar { width: 92%; }
  .method-section { padding: 90px 0; }
  .method-intro h2 { letter-spacing: -2.8px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .price-card > div:first-child, .price-card ul { min-height: auto; }
  .final-cta { padding: 75px 18px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .brand, .site-footer > div { justify-self: center; }
  .site-footer small { grid-column: auto; }
  .app-topbar { height: 70px; padding: 0 14px; }
  .search-box { display: none; }
  .user-chip > div { display: none; }
  .dashboard, .secondary-view { padding: 28px 14px 50px; }
  .dashboard-welcome { align-items: start; flex-direction: column; }
  .dashboard-welcome h1 { font-size: 28px; }
  .week-strip { overflow-x: auto; grid-template-columns: repeat(7, 62px); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .ai-coach-card { grid-column: auto; grid-template-columns: auto 1fr; }
  .coach-action { grid-column: 1 / -1; }
  .agenda-board { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
