/* Landing page only. The Mini App loads _app_styles instead, so nothing here can reach it —
   the h2 rule below used to turn every screen title in the app into a small grey label. */
.eyebrow {
  display: inline-block; padding: var(--gap-xs) var(--gap-md); border-radius: var(--radius-pill);
  background: var(--gold-soft); color: var(--gold);
  font-size: var(--text-note); font-weight: var(--weight-bold); letter-spacing: 0.02em;
}
h1 {
  margin: 14px 0 var(--gap-md); font-size: clamp(30px, 5vw, 44px); line-height: 1.1;
  font-weight: var(--weight-heavy); letter-spacing: -0.02em;
}
h2 {
  margin: 0 0 14px; font-size: var(--text-note); font-weight: var(--weight-bold);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute);
}
.lead { margin: 0; max-width: 60ch; font-size: var(--text-lead); color: var(--mute); }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar__inner {
  max-width: 1040px; margin: 0 auto; padding: 0 16px; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; }
.nav { display: none; }
@media (min-width: 880px) { .nav { display: flex; align-items: center; gap: var(--gap-xs); } }
.nav__item {
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--radius-pill);
  color: var(--mute); font-size: 14px; font-weight: var(--weight-bold); text-decoration: none;
}
.nav__item:hover { background: var(--sunk); color: var(--ink); }
/* The topbar is 56px, so this cannot be .button — that one is sized for a page, not for a strip */
.nav__cta {
  min-height: 36px; display: inline-flex; align-items: center; margin-left: var(--gap-sm); padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: var(--weight-heavy); text-decoration: none;
}
.nav__cta:hover { filter: brightness(1.08); }
.locales { display: flex; gap: 4px; }
.locales__item {
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px;
  color: var(--mute); font-size: 14px; font-weight: 700; text-decoration: none;
}
.locales__item:hover { background: var(--sunk); color: var(--ink); }
.locales__item[aria-current] { background: var(--soft); color: var(--accent-text); }

.page { max-width: 1040px; margin: 0 auto; padding: 40px 16px 56px; }
.footer { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; color: var(--mute); font-size: 14px; }


.intro { display: grid; gap: 32px; align-items: start; margin-bottom: 40px; }
@media (min-width: 880px) { .intro { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.section { margin-top: 32px; }

.step__title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; }
.step__body { margin: 0; color: var(--mute); }

.figure { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline__item { position: relative; display: flex; gap: 16px; padding-bottom: 28px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:not(:last-child)::before {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line);
}
.timeline__num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 20px; background: var(--soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}
.timeline__content { display: flex; flex-direction: column; gap: 6px; padding-top: 7px; min-width: 0; }
.section__lead { margin: -4px 0 20px; max-width: 62ch; font-size: 18px; font-weight: 600; line-height: 1.45; }
.tip { padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); }
.tip__label { display: block; margin-bottom: 4px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tip p { margin: 0; }

/* Overview: the teacher's part and the student's part */
.overview { margin-top: 56px; }
.lanes { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 880px) { .lanes { flex-direction: row; align-items: stretch; } }
.lane { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; }
.lane--you { background: var(--soft); }
.lane--student { background: var(--student-soft); flex-grow: 1; }
.lane__label { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.lane--you .lane__label { color: var(--accent-text); }
.lane--student .lane__label { color: var(--student-text); }
.lane__nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Three nodes each side now, so both lanes share the rule and the width: a fixed two-track grid put the
   teacher's third node on a line of its own */
.lane--you { flex-grow: 1; }
@media (min-width: 880px) {
  .lane__nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.node {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--card);
  font-size: 15px; font-weight: 700; line-height: 1.35;
}
@media (min-width: 880px) { .node { flex-direction: column; align-items: flex-start; gap: 10px; } }
.node__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.lane--you .node__icon { background: var(--accent); color: var(--accent-ink); }
.lane--student .node__icon { background: var(--student); color: var(--student-ink); }
.handoff {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 8px;
  color: var(--mute); font-size: 14px; font-weight: 800; text-align: center;
}
.handoff svg { transform: rotate(90deg); flex-shrink: 0; }
@media (min-width: 880px) {
  .handoff { flex-direction: column; width: 96px; flex-shrink: 0; }
  .handoff svg { transform: none; }
}

/* Prose on the left, a mock-up on the right: the shape the two app sections share. The right track was
   sized for a figure, and a phone frame is one. */
.split { display: grid; gap: 32px; align-items: start; margin-top: 56px; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } }
/* What each app holds, one item under another. The titles and bodies are the timeline's, because that
   is what these are: a title and a line about it. */
.items { list-style: none; margin: 0 0 var(--gap-lg); padding: 0; display: grid; gap: var(--gap-lg); }

/* Signing up: the form on the landing page, and the page it posts to. The Mini App's form controls
   live in app.css and cannot reach this file, so the landing page carries its own. */
.intro__actions { display: flex; margin: var(--gap-xl) 0 0; }
.start { margin-top: 56px; }
.start__note { margin: var(--gap-lg) 0 0; max-width: 62ch; color: var(--mute); font-size: 14px; }

.signup { display: grid; gap: var(--gap-lg); }
.field { display: grid; gap: var(--gap-xs); }
.field__label { font-size: var(--text-note); font-weight: var(--weight-bold); color: var(--mute); }
.field__hint { margin: 0; max-width: 62ch; color: var(--mute); font-size: 14px; }
.form__input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: var(--text-body); font-weight: var(--weight-normal);
}
.form__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form__error {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--warn-soft); color: var(--warn); font-weight: var(--weight-bold);
}
/* One decision, so the two selects sit together wherever there is room for them */
.signup__pair { display: grid; gap: var(--gap-lg); }
@media (min-width: 560px) { .signup__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.signup input[type="submit"] { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 479px) { .signup input[type="submit"] { justify-self: stretch; } }

.welcome .lead { margin-bottom: var(--gap-xl); }
.welcome__actions { display: flex; margin: 0 0 var(--gap-md); }
.welcome__note { margin: 0 0 var(--gap-2xl); max-width: 62ch; color: var(--mute); font-size: 14px; }

/* Mini App mock-up. Hand-built like the chat above it, and for the same reason: there are no
   screenshots. It borrows the tokens and mirrors the app's component names, never app.css — .button is
   defined in both files differently, and this stylesheet is written on the assumption that the two
   cannot reach each other. The cost is deliberate duplication: if the app restyles a metric cell, the
   mock does not follow. A mock-up has to be recognisable, not pixel-identical. */
.phone { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
/* The one move that makes the whole frame blue, the same one .app--student makes in the app: four names
   rebound rather than a blue variant of every part */
.phone--student {
  --accent: var(--student); --accent-ink: var(--student-ink);
  --accent-text: var(--student-text); --soft: var(--student-soft);
}
.phone__bar {
  display: flex; align-items: center; justify-content: center; min-height: 36px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.phone__bar-title { font-size: var(--text-note); font-weight: var(--weight-bold); color: var(--mute); }
.phone__screen { padding: var(--gap-md); display: grid; gap: var(--gap-md); }
.phone__tabs { display: flex; gap: var(--gap-xs); }
/* 11px rather than the strip's own 12: the frame is narrower than the phone it mimics, and the longest
   tab name has to fit inside it without being cut in half */
.phone__tab {
  flex: 1; min-width: 0; padding: var(--gap-sm) 2px; border-radius: var(--radius-sm);
  background: var(--sunk); color: var(--mute); text-align: center; white-space: nowrap;
  font-size: 11px; font-weight: var(--weight-bold);
  overflow: hidden; text-overflow: ellipsis;
}
.phone__tab--current { background: var(--accent); color: var(--accent-ink); }
.phone__tab--icon { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 var(--gap-sm); }
/* The shared icon partial carries the app's class, which this stylesheet does not define */
.phone__tab--icon svg { width: 14px; height: 14px; }
.phone__card {
  display: grid; gap: var(--gap-xs); padding: var(--gap-md);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
/* A student who has not opened their link is the one the teacher has something to do about, which is
   the single most informative thing on that screen */
.phone__card--pending { background: var(--warn-soft); border-color: transparent; }
.phone__title { font-size: var(--text-title); font-weight: var(--weight-heavy); line-height: 1.2; }
.phone__sub { font-size: var(--text-note); color: var(--mute); }
.phone__line { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-sm); }
.phone__name { font-size: var(--text-body); font-weight: var(--weight-bold); }
.phone__search {
  padding: var(--gap-sm) var(--gap-md); border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--card); color: var(--mute); font-size: var(--text-note);
}
.phone__label {
  margin: 0; font-size: var(--text-label); font-weight: var(--weight-bold); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mute);
}
.phone__hero {
  margin-top: var(--gap-xs); padding-top: var(--gap-md); border-top: 1px solid var(--line);
  display: grid; gap: 2px; justify-items: center;
}
.phone__hero-value {
  font-size: var(--text-display); font-weight: var(--weight-heavy); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.phone__hero-label {
  font-size: var(--text-label); font-weight: var(--weight-bold); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mute);
}
/* Not .button: that name is taken on this page, and it is a 48px green landing CTA */
.phone__cta {
  align-self: start; padding: var(--gap-sm) var(--gap-md); border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink); text-align: center;
  font-size: var(--text-note); font-weight: var(--weight-bold);
}
.phone__cta--wide { align-self: stretch; margin-top: var(--gap-sm); }
.phone__cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-sm); }
.phone__cell { display: grid; gap: 2px; padding: var(--gap-md); background: var(--sunk); border-radius: var(--radius-md); }
.phone__cell--wide { grid-column: 1 / -1; background: var(--student-soft); }
.phone__cell--wide .phone__cell-value { color: var(--student-text); }
.phone__cell-value { font-size: var(--text-lead); font-weight: var(--weight-heavy); line-height: 1.2; }
.phone__cell-label {
  font-size: var(--text-label); font-weight: var(--weight-bold); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mute);
}
.phone__rows { display: grid; }
.phone__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md);
  padding: var(--gap-md) 0; border-bottom: 1px solid var(--line);
}
.phone__row-title { font-size: var(--text-body); font-weight: var(--weight-bold); }
.phone__row-note { flex-shrink: 0; font-size: var(--text-note); color: var(--mute); }
.phone__pill {
  flex-shrink: 0; padding: 1px var(--gap-sm); border-radius: var(--radius-pill);
  background: var(--card); color: var(--mute); font-size: var(--text-note); font-weight: var(--weight-bold);
}
.phone__week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--gap-xs);
  padding: var(--gap-md) var(--gap-sm); background: var(--sunk); border-radius: var(--radius-md);
}
.phone__week-col { display: grid; grid-template-rows: auto 40px auto; gap: var(--gap-xs); justify-items: center; }
.phone__week-day { font-size: 11px; font-weight: var(--weight-bold); color: var(--mute); }
.phone__week-bar {
  align-self: end; width: 100%; max-width: 14px; border-radius: var(--radius-sm); background: var(--accent);
}
/* A day with nothing keeps its place as a baseline, exactly as it does in the app: a column that
   disappears turns a quiet week into a chart with holes in it */
.phone__week-bar--empty { height: 2px; border-radius: 999px; background: var(--mute); opacity: 0.55; }
.phone__week-count { font-size: 11px; font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
/* A phone frame has no width of its own: it fills the 380px track beside the prose, and on a narrow
   screen it must stop short of the gutters — a phone screen wider than the phone it is read on is the
   one way this can look silly */
/* width, because margin-inline: auto stops a grid item stretching and leaves the frame as narrow as
   whatever is inside it — which is how the tab strip ended up narrower than its own longest name */
.figure { width: 100%; max-width: 380px; margin-inline: auto; }

/* What's next: collapsible ideas */
.roadmap { margin-top: 56px; }
.roadmap__items { display: grid; gap: 10px; align-items: start; }
@media (min-width: 880px) { .roadmap__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.idea[open] { border-color: var(--accent); }
.idea__summary {
  min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none;
  border-radius: 16px;
}
.idea__summary::-webkit-details-marker { display: none; }
.idea__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.idea__title { flex-grow: 1; font-size: 17px; font-weight: 800; line-height: 1.3; }
.idea__status {
  flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold);
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.idea__chevron { flex-shrink: 0; color: var(--mute); transition: transform 0.15s ease; }
.idea[open] .idea__chevron { transform: rotate(180deg); }
.idea__body { margin: 0; padding: 0 16px 16px; color: var(--mute); }

.contact { margin-top: 48px; background: var(--soft); border-color: transparent; }
.contact__body { margin: 0 0 18px; max-width: 62ch; font-size: 17px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 800; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button--secondary { background: var(--card); color: var(--accent-text); border: 1px solid var(--line); }
@media (max-width: 479px) { .button { flex: 1 1 100%; } }

/* Telegram chat mock-up */
.chat { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.chat__avatar {
  width: 40px; height: 40px; border-radius: 20px; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.chat__name { font-weight: 800; font-size: 15px; line-height: 1.3; }
.chat__status { font-size: 13px; color: var(--mute); }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 14px; min-height: 200px; justify-content: flex-end; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; }
.bubble__text { white-space: pre-line; overflow-wrap: anywhere; }
.bubble__button {
  margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); color: var(--accent-text);
  font-size: 14px; font-weight: 700; text-align: center;
}
.bubble--out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.bubble--in { align-self: flex-start; background: var(--card); border-bottom-left-radius: 4px; }
.chat__who { flex-grow: 1; min-width: 0; }
.chat__badge {
  flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--student-soft); color: var(--student-text);
  font-size: 12px; font-weight: 800;
}
.chat--student .chat__avatar { background: var(--student); color: var(--student-ink); }
.chat--student .bubble--out { background: var(--student-soft); }
.chat--student .bubble__button { color: var(--student-text); }
.caption { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--mute); }
