@font-face { font-family: "Jakarta"; src: url("jakarta-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("jakarta-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("jakarta-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* The app's own colors, from lib/app/theme.dart. */
:root {
  color-scheme: light;
  --paper: #f6f5fa;
  --surface: #fff;
  --hairline: #e6e3ee;
  --ink: #14102b;
  --text: #2f2a45;
  --muted: #625c7a;
  --brand: #6246ea;
  --brand-deep: #4530b8;
  --brand-soft: #f0edff;
  --amber: #f5b73b;
  --amber-soft: #fff4db;
  --amber-ink: #9a6200;
  --success: #17804c;
  --success-soft: #e7f6ee;
  --sky: #eaf1fe;
  --sky-ink: #1e40af;
  --peach: #feede5;
  --peach-ink: #c2410c;
  --gradient: linear-gradient(135deg, #3b2a9e 0%, #6246ea 55%, #8b6cf6 100%);
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand-deep); text-underline-offset: 0.18em; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 19px; max-width: 40em; margin-top: 16px; }

/* Brand mark: the app icon. */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; color: inherit; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

/* Buttons: pills, as in the app. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.button-light { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 30px rgb(20 16 43 / 0.25); }
.button-light:hover { transform: translateY(-1px); }
.button-brand { background: var(--brand); color: #fff; }
.button-brand:hover { background: var(--brand-deep); }
.button-ghost { background: transparent; color: #fff; border: 1.5px solid rgb(255 255 255 / 0.5); }
.button-ghost:hover { background: rgb(255 255 255 / 0.12); }
.button svg { width: 20px; height: 20px; flex: none; }
.store-soon { cursor: default; }
.store-soon small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.75; line-height: 1.1; }
.store-soon span { display: block; line-height: 1.15; text-align: left; }

/* Hero: the gradient header from the Today screen. */
.hero {
  position: relative;
  background: var(--gradient);
  color: #fff;
  border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.16), transparent);
  z-index: -1;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.topbar nav { display: flex; gap: clamp(14px, 3vw, 30px); font-weight: 600; font-size: 15px; }
.topbar nav a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.topbar nav a:hover { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: end; padding-top: clamp(24px, 5vw, 56px); }
.hero-copy { padding-bottom: clamp(48px, 8vw, 104px); }
.hero h1 { color: #fff; font-size: clamp(38px, 6.2vw, 66px); letter-spacing: -0.035em; }
.hero-copy > p { font-size: clamp(18px, 2vw, 20px); color: rgb(255 255 255 / 0.86); margin-top: 22px; max-width: 32em; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.22); font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.chip svg { width: 16px; height: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { font-size: 14px; color: rgb(255 255 255 / 0.72); margin-top: 18px; }
.hero-phone { display: flex; justify-content: center; align-self: end; }
.hero-phone .phone { width: min(330px, 100%); border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: -2px; transform: translateY(0); animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards; }
.hero-phone .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 600 / 1040; object-fit: cover; object-position: top; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-phone .phone { animation: none; } }

/* A plain phone frame around the app screenshots. */
.phone {
  background: var(--ink);
  border: 10px solid var(--ink);
  border-radius: 46px;
  box-shadow: 0 30px 60px rgb(20 16 43 / 0.22);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; background: var(--paper); }

/* Try it: the note editor and the message it builds. */
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.student { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--success-soft); color: var(--success); }
.student strong { display: block; color: var(--ink); font-size: 19px; line-height: 1.2; }
.student span { color: var(--muted); font-size: 15px; }
.attendance { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: #f3f2f8; margin-bottom: 22px; }
.attendance button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.attendance button[aria-pressed="true"] { background: #fff; color: var(--brand-deep); box-shadow: 0 1px 4px rgb(20 16 43 / 0.12); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field textarea, .field input {
  display: block; width: 100%; border: 1px solid var(--hairline); border-radius: 16px; background: #fff;
  padding: 13px 16px; font-size: 16px; line-height: 1.5; resize: vertical; color: var(--ink);
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.private { position: relative; }
.private input { padding-left: 44px; }
.private svg { position: absolute; left: 15px; bottom: 15px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.message-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.message-head h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; }
.badge svg { width: 14px; height: 14px; }
.message {
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--brand-soft); border: 1px solid #d9d2fb; border-radius: var(--radius);
  padding: 22px; color: var(--ink); font-size: 16px; line-height: 1.6; min-height: 300px;
}
.message-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.message-foot p { color: var(--muted); font-size: 14px; flex: 1 1 220px; }
.kept-out { color: var(--success); font-weight: 600; }

/* A teaching afternoon: rows of screens and text. */
.afternoon { background: var(--surface); border-block: 1px solid var(--hairline); }
.rows { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; gap: clamp(56px, 8vw, 96px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.row:nth-child(even) .row-copy { order: 2; }
.row time { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--brand); font-size: 15px; margin-bottom: 12px; }
.row time::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.row h3 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.025em; }
.row p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 30em; }
.row-shots { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.row-shots .phone { width: min(290px, 100%); }
.row-shots.two .phone { width: min(250px, 48%); }
.row-shots.two .phone:last-child { margin-top: 48px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; color: var(--text); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317804c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; transform: translateY(3px); }

/* Small features: tinted icon tiles. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; }
.tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 18px; }
.tile p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.t-lavender { background: var(--brand-soft); color: var(--brand-deep); }
.t-sky { background: var(--sky); color: var(--sky-ink); }
.t-mint { background: var(--success-soft); color: var(--success); }
.t-amber { background: var(--amber-soft); color: var(--amber-ink); }
.t-peach { background: var(--peach); color: var(--peach-ink); }

/* Pricing. */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; max-width: 900px; }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.price { font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-top: 12px; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.plan .ticks { margin-top: 22px; }
.plan-pro { background: var(--gradient); color: #fff; border: 0; }
.plan-pro h3, .plan-pro .price { color: #fff; }
.plan-pro .price small, .plan-pro .sub { color: rgb(255 255 255 / 0.8); }
.plan-pro .ticks li { color: #fff; }
.plan-pro .ticks li::before { background-color: rgb(255 255 255 / 0.95); }
.plan-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 900px; }

/* Privacy band. */
.private-band { padding-top: 0; }
.private-inner { background: var(--ink); color: rgb(255 255 255 / 0.82); border-radius: clamp(24px, 4vw, 40px); padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.private-inner h2 { color: #fff; }
.private-inner .eyebrow { color: #b9a9ff; }
.private-inner p { font-size: 18px; }
.private-inner a { color: #fff; }
.private-inner .ticks li { color: #fff; }
.private-inner .ticks li::before { background-color: rgb(255 255 255 / 0.95); }

/* Closing call to action. */
.closing { text-align: center; padding-top: 0; }
.closing .card { padding: clamp(36px, 6vw, 64px) var(--gutter); background: var(--brand-soft); border-color: #ddd5fd; }
.closing img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 20px; }
.closing p { color: var(--muted); font-size: 18px; margin: 14px auto 0; max-width: 34em; }
.closing .button { margin-top: 28px; }

/* Footer. */
.foot { border-top: 1px solid var(--hairline); padding-block: 32px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot .brand { font-size: 17px; color: var(--ink); }
.foot .brand img { width: 28px; height: 28px; border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--brand-deep); }

/* Legal and support pages. */
.page-top { background: var(--gradient); color: #fff; border-radius: 0 0 32px 32px; }
.page-top .topbar { padding-block: 22px; }
.page-head { padding-block: clamp(20px, 4vw, 40px) clamp(40px, 6vw, 64px); }
.page-head h1 { color: #fff; font-size: clamp(36px, 5.4vw, 54px); letter-spacing: -0.03em; }
.page-head p { color: rgb(255 255 255 / 0.82); margin-top: 12px; font-size: 18px; max-width: 38em; }
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc > * { max-width: 760px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.02em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 17px; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.summary { background: var(--brand-soft); border: 1px solid #ddd5fd; border-radius: var(--radius); padding: 24px 28px; }
.summary h2 { margin-top: 0 !important; font-size: 20px; }
.summary ul { margin-top: 10px; }
.contact-card { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.contact-card p { color: var(--muted); }
.contact-card strong { display: block; color: var(--ink); font-size: 20px; }
details { border-bottom: 1px solid var(--hairline); }
details:first-of-type { border-top: 1px solid var(--hairline); }
summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 18px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--brand); line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 22px; color: var(--text); }
details > div p + p { margin-top: 10px; }

/* Narrow screens. */
@media (max-width: 900px) {
  .hero-grid, .try-grid, .row, .private-inner, .plans { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-phone .phone { width: min(290px, 78%); }
  .row:nth-child(even) .row-copy { order: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar nav a.optional { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .row-shots.two .phone:last-child { margin-top: 32px; }
  .foot nav { margin-left: 0; }
}
.field-note { display: block; color: var(--muted); font-size: 13px; margin-top: -10px; }
.doc > p + .summary { margin-top: 28px; }
