/* ══════════════ studar.io landing page ══════════════
   Self-contained: the app's palette (brand indigo, the gray scale), Inter,
   hairline borders and 12–18px radii, light by default and dark by the
   system preference. Mobile first; every breakpoint only adds. */

:root {
  --bg: #ffffff;
  --bg-2: #f9fafb;
  --bg-3: #f3f4f6;
  --fg: #111827;
  --fg-2: #374151;
  --fg-3: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --brand: #6366f1;
  --brand-2: #4f46e5;
  --brand-soft: #eef2ff;
  --brand-ink: #3730a3;
  --accent: #4f46e5;
  --card: #ffffff;
  --nav: rgba(255, 255, 255, .82);
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -16px rgba(17, 24, 39, .18);
  --shadow-lg: 0 1px 2px rgba(17, 24, 39, .04), 0 24px 48px -24px rgba(17, 24, 39, .28);
  --live: #dc2626;
  --ok-bg: #dcfce7;
  --ok-fg: #166534;
  --ok-dot: #16a34a;
  --skel: #e5e7eb;
  /* The frame of a drawn laptop or phone, and the laptop's base. */
  --bezel: #1f2937;
  --bezel-2: #cbd5e1;
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 18px;
  /* Course tints: indigo, emerald, amber, rose, sky. */
  --c1-bg: #e0e7ff; --c1-fg: #3730a3; --c1-dot: #6366f1;
  --c2-bg: #d1fae5; --c2-fg: #065f46; --c2-dot: #10b981;
  --c3-bg: #fef3c7; --c3-fg: #92400e; --c3-dot: #f59e0b;
  --c4-bg: #ffe4e6; --c4-fg: #9f1239; --c4-dot: #f43f5e;
  --c5-bg: #e0f2fe; --c5-fg: #075985; --c5-dot: #0ea5e9;
  /* An event's category colour, from its hue. */
  --cat-l-bg: 94%; --cat-l-fg: 30%; --cat-s: 55%;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --bg-2: #111827;
    --bg-3: #1f2937;
    --fg: #f9fafb;
    --fg-2: #d1d5db;
    --fg-3: #9ca3af;
    --line: #1f2937;
    --line-2: #374151;
    --brand: #818cf8;
    --brand-2: #6366f1;
    --brand-soft: #1e1b4b;
    --brand-ink: #c7d2fe;
    --accent: #a5b4fc;
    --card: #111827;
    --nav: rgba(11, 15, 25, .82);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 48px -24px rgba(0, 0, 0, .7);
    --live: #f87171;
    --ok-bg: #14532d;
    --ok-fg: #bbf7d0;
    --ok-dot: #4ade80;
    --skel: #1f2937;
    --bezel: #374151;
    --bezel-2: #4b5563;
    --c1-bg: rgba(99, 102, 241, .22); --c1-fg: #c7d2fe; --c1-dot: #818cf8;
    --c2-bg: rgba(16, 185, 129, .2);  --c2-fg: #a7f3d0; --c2-dot: #34d399;
    --c3-bg: rgba(245, 158, 11, .2);  --c3-fg: #fde68a; --c3-dot: #fbbf24;
    --c4-bg: rgba(244, 63, 94, .2);   --c4-fg: #fecdd3; --c4-dot: #fb7185;
    --c5-bg: rgba(14, 165, 233, .2);  --c5-fg: #bae6fd; --c5-dot: #38bdf8;
    --cat-l-bg: 18%; --cat-l-fg: 84%; --cat-s: 40%;
    color-scheme: dark;
  }
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--fg-3); font-weight: 400; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: #4f46e5; color: #fff; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg-3); }
.btn-ghost .ic { color: var(--fg-3); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-xs .ic { width: 14px; height: 14px; }
/* Dark mode keeps the deeper indigo under white text: the lighter #6366f1
   is 4.47:1, short of AA for a 16 px label. */
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #4f46e5; }
  .btn-primary:hover { background: #4f46e5; filter: brightness(1.12); }
}
/* The red "record" dot on the record buttons. */
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #f87171; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); flex-shrink: 0; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 399px) { .brand-mark { display: none; } }
@media (min-width: 640px) { .nav-in { gap: 16px; } }
.brand-mark {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand); color: #fff;
}
.brand-mark .ic { width: 18px; height: 18px; }
.nav-links { display: none; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 6px 10px; border-radius: 8px; color: var(--fg-2); font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav-links a:hover { background: var(--bg-3); color: var(--fg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 880px) { .nav-links { display: flex; } }

.lang { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.lang button { padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--fg-3); }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(17, 24, 39, .08); }

/* ── Type ── */
.eyebrow { color: var(--brand-ink); font-weight: 600; font-size: 13px; letter-spacing: .01em; }
h1 { font-size: clamp(2.05rem, 8.4vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin-top: 14px; }
h1 .h1-2 { display: block; color: var(--accent); }
h1, h2 { text-wrap: balance; }
h2 .h2-2 { display: block; color: var(--fg-3); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.lead { color: var(--fg-2); font-size: clamp(1.05rem, 1.6vw, 1.175rem); line-height: 1.55; max-width: 34em; margin-top: 18px; }
.f-lead { color: var(--fg-2); font-size: 1.075rem; margin-top: 14px; max-width: 38em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-ink); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.kicker .ic { width: 16px; height: 16px; }
.sec-head { max-width: 46em; }

/* ── Sections ── */
.band { padding: 64px 0; }
.band-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 880px) { .band { padding: 96px 0; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mock { box-shadow: var(--shadow); overflow: hidden; }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-width: 0; }
.mock-title .ic { width: 16px; height: 16px; color: var(--brand); }
.code-chip { display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; line-height: 1.5; background: var(--c3-bg); color: var(--c3-fg); font-variant-numeric: tabular-nums; }

/* ══════════ Hero ══════════ */
.hero { padding: 36px 0 56px; }
.hero-in { display: grid; gap: 28px; grid-template-areas: "text" "rec" "ev"; }
.hero-text { grid-area: text; min-width: 0; }
.hero-rec { grid-area: rec; min-width: 0; }
.hero-ev { grid-area: ev; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 14px; color: var(--fg-3); font-size: 14px; }
/* What is new, in one line that leads to its section. On a narrow phone
   the sentence may take two lines, hence a radius and not a full capsule. */
.pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-bottom: 14px; padding: 4px 12px 4px 4px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--fg-2); font-size: 13px; font-weight: 500; line-height: 1.35;
  transition: border-color .15s, background-color .15s;
}
.pill:hover { border-color: var(--line-2); background: var(--bg-3); }
.pill b { flex-shrink: 0; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; }
.pill .ic { width: 14px; height: 14px; color: var(--fg-3); }
@media (max-width: 419px) {
  .cta-row .btn { flex: 1 1 100%; }
}
@media (min-width: 960px) {
  .hero { padding: 56px 0 80px; }
  .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "text rec" "ev rec";
    column-gap: 56px; row-gap: 36px;
  }
  .hero-ev { align-self: start; }
  .hero-rec { align-self: center; }
}
@media (min-width: 1100px) { .hero-in { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); column-gap: 64px; } }
/* A laptop screen (1366×768, or 1920×1080 at 125 %) leaves the page only
   650–740 px: the hero tightens so the events strip is in view beside the
   recorder, not just its title. */
@media (min-width: 960px) and (max-height: 820px) {
  .hero { padding: 28px 0 64px; }
  .hero-in { row-gap: 22px; }
  h1 { font-size: 3rem; margin-top: 10px; }
  .lead { margin-top: 12px; font-size: 1.05rem; }
  .hero .cta-row { margin-top: 18px; }
  /* The pill took a line: the eyebrow gives its own back. */
  .hero-note, .eyebrow { display: none; }
  .pill { margin-bottom: 4px; }
}

/* ── The recorder mock ── */
.rec { display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.rec-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rec-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rec-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 100% { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); } }
.rec-live .when-done { display: none; }
.rec-timer { font-size: 13px; font-weight: 600; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.rec-wave { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.rec-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--live); opacity: .75; transform: scaleY(.35); animation: wave 1.1s ease-in-out infinite; }
.rec-wave i:nth-child(2) { animation-delay: -.2s; } .rec-wave i:nth-child(3) { animation-delay: -.55s; }
.rec-wave i:nth-child(4) { animation-delay: -.35s; } .rec-wave i:nth-child(5) { animation-delay: -.8s; }
.rec-wave i:nth-child(6) { animation-delay: -.1s; } .rec-wave i:nth-child(7) { animation-delay: -.65s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.rec-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--bg-3); color: var(--fg-3); font-size: 12px; white-space: nowrap; }
.rec-lock .ic { width: 12px; height: 12px; }
/* Stopped: the notes are being written. */
.rec.is-done .rec-live i { background: var(--fg-3); animation: none; }
.rec.is-done .rec-live .when-live { display: none; }
.rec.is-done .rec-live .when-done { display: inline; }
.rec.is-done .rec-wave i { animation: none; transform: scaleY(.18); background: var(--fg-3); opacity: .5; }

.rec-course { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px 0; font-size: 13px; color: var(--fg-2); }
.rec-course-name { font-weight: 500; }
.speakers { display: inline-flex; gap: 12px; margin-left: auto; }
.speaker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); }
.speaker i { width: 8px; height: 8px; border-radius: 50%; }
.s1 i, .tr-line.s1 .who { background: var(--c1-dot); }
.s2 i, .tr-line.s2 .who { background: var(--c3-dot); }

/* Every line is laid out complete but invisible, and typed over itself —
   so the card never changes height while it plays. */
.tr-lines { padding: 12px 14px 4px; display: grid; gap: 9px; }
.tr-line { display: grid; grid-template-columns: 8px 34px minmax(0, 1fr); column-gap: 8px; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.tr-line .who { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.tr-time { font-size: 11.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tr-text { position: relative; }
.tr-ghost { visibility: hidden; }
.tr-typed { position: absolute; inset: 0; }
.tr-line.s2 .tr-typed { color: var(--fg); font-weight: 500; }
.tr-line:not(.is-on) .who, .tr-line:not(.is-on) .tr-time { visibility: hidden; }
.tr-line.is-typing .tr-typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--fg-3); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ask { margin: 10px 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.ask-q { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; font-size: 14px; min-height: 42px; }
.ask-q > .ic { width: 16px; height: 16px; color: var(--brand); }
.ask-text { flex: 1; min-width: 0; color: var(--fg); font-weight: 500; }
.ask-text:empty::before { content: attr(data-placeholder); color: var(--fg-3); font-weight: 400; }
.ask-send { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-2); color: #fff; }
.ask-send .ic { width: 13px; height: 13px; }
.ask-a { position: relative; padding: 10px 12px 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }
.ask-a b { color: var(--brand-ink); font-weight: 600; }
.ask-a-ghost { visibility: hidden; }
.ask-a-show { position: absolute; inset: 10px 12px 12px; }
.ask-a[data-state="hint"] .ask-a-show { color: var(--fg-3); }
.ask-a[data-state="thinking"] .ask-a-show { display: grid; gap: 7px; align-content: start; padding-top: 4px; }
.ask-a[data-state="thinking"] .ask-a-show i { display: block; height: 9px; border-radius: 5px; background: var(--skel); animation: skel 1.1s ease-in-out infinite alternate; }
.ask-a[data-state="thinking"] .ask-a-show i:nth-child(2) { width: 88%; animation-delay: .15s; }
.ask-a[data-state="thinking"] .ask-a-show i:nth-child(3) { width: 62%; animation-delay: .3s; }
@keyframes skel { from { opacity: .45; } to { opacity: 1; } }
.ask-a[data-state="answer"] .ask-a-show { animation: fadein .35s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.rec-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 12px 14px 14px; }
.rec-follow, .rec-ready { grid-area: 1 / 1; }
.rec-follow { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-width: 0; max-width: 100%; padding: 7px 10px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 12px; color: var(--fg-3); }
.rec-follow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-follow .ic { width: 14px; height: 14px; }
.rec-ready { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; visibility: hidden; min-width: 0; }
.rec-ready .ic { width: 16px; height: 16px; }
.rec-ready-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-ready-text span { opacity: .8; }
.rec-ready:hover { filter: brightness(.97); }
.replay { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-3); padding: 6px 8px; border-radius: 8px; visibility: hidden; }
.replay .ic { width: 14px; height: 14px; }
.replay:hover { background: var(--bg-3); color: var(--fg); }
/* A phone: status, timer and "saved on the phone" on one line — the red
   dot already says it is live — and if even that does not fit (360 px, a
   fallback font), the chip takes a line of its own rather than being cut. */
@media (max-width: 479px) {
  .rec-top { flex-wrap: wrap; row-gap: 8px; }
  .rec-wave { display: none; }
  /* Both labels share one cell, so "Recording" turning into "Saved" cannot
     move the chip between lines — the card would jump. */
  .rec-state { display: inline-grid; }
  .rec-state > span { grid-area: 1 / 1; }
  .rec .rec-live .when-done, .rec.is-done .rec-live .when-live { display: inline; visibility: hidden; }
  .rec.is-done .rec-live .when-done { visibility: visible; }
  .speakers { margin-left: 0; }
  .replay { padding: 7px; }
  .replay-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tr-line { font-size: 13.5px; }
}
@media (max-width: 399px) {
  .rec-lock { margin-left: 0; }
  /* "AI notes ready" alone, not cut off mid-count. */
  .rec-ready-text span { display: none; }
}
.rec.is-done .rec-follow { visibility: hidden; }
.rec.is-done .rec-ready { visibility: visible; animation: fadein .35s ease-out; }
.rec.is-done .replay { visibility: visible; }

/* ── The events strip in the hero ── */
.strip { box-shadow: var(--shadow); overflow: hidden; }
.strip-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 8px; }
.strip-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.strip-title .ic { width: 16px; height: 16px; color: var(--brand); }
.strip-all { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand-ink); padding: 4px 6px; border-radius: 8px; }
.strip-all:hover { background: var(--brand-soft); }
.strip-all .ic { width: 14px; height: 14px; }
.strip-list { display: grid; padding: 0 6px 6px; }
.strip-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; transition: background-color .15s; }
.strip-row:hover { background: var(--bg-2); }
.strip-list li + li .strip-row { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.strip-list li + li .strip-row:hover { border-top-color: transparent; }
.cal-tile {
  display: grid; place-items: center; align-content: center; width: 46px; height: 46px; border-radius: 11px;
  background: hsl(var(--h, 232) var(--cat-s) var(--cat-l-bg)); color: hsl(var(--h, 232) 50% var(--cat-l-fg)); line-height: 1;
}
.cal-tile small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cal-tile b { font-size: 18px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.strip-main { min-width: 0; }
.strip-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ── Tags ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: var(--bg-3); color: var(--fg-2); line-height: 1.6; white-space: nowrap;
}
.tag .ic { width: 12px; height: 12px; }
.tag-lecture { background: var(--c1-bg); color: var(--c1-fg); }
.tag-free { background: var(--ok-bg); color: var(--ok-fg); }
/* The label that keeps a made-up event honest must be easy to read. */
.tag-sample { background: var(--bg-3); color: var(--fg-2); border: 1px dashed var(--line-2); }

/* ══════════ Lecture recording ══════════ */
.rec-grid { display: grid; gap: 36px; margin-top: 36px; }
.benefits { display: grid; gap: 22px; }
.benefits li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.b-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); }
.b-ic .ic { width: 19px; height: 19px; }
.benefits h3 { font-size: 15.5px; }
.benefits p { margin-top: 3px; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.rec-visual { min-width: 0; }
@media (min-width: 640px) and (max-width: 959px) {
  .benefits { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
@media (min-width: 960px) {
  .rec-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; margin-top: 48px; }
}

/* ── The finished notes: transcript or AI notes ── */
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); flex-shrink: 0; }
.seg button { padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--fg-3); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(17, 24, 39, .08); }
.doc { box-shadow: var(--shadow-lg); }
/* Both sides share one cell, so switching never changes the card's height. */
.doc-body { display: grid; padding: 18px 18px 18px; }
.doc-side { grid-area: 1 / 1; min-width: 0; }
.doc-side.is-off { visibility: hidden; }
.doc-side:not(.is-off) { animation: fadein .25s ease-out; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--fg-3); }
.doc-h { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; margin-top: 10px; }
.doc h4 { font-size: 14px; font-weight: 600; color: var(--fg); margin-top: 16px; }
.doc ul { display: grid; gap: 4px; margin-top: 6px; padding-left: 18px; list-style: disc; font-size: 14px; color: var(--fg-2); }
.doc ul li::marker { color: var(--fg-3); }
.doc code { font: 600 12.5px/1 ui-monospace, "SF Mono", Consolas, monospace; padding: 1px 5px; border-radius: 5px; background: var(--bg-3); color: var(--fg); }
.doc-slide { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 12px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.doc-slide figcaption { display: grid; gap: 2px; font-size: 12.5px; color: var(--fg-3); line-height: 1.4; }
.doc-slide figcaption b { color: var(--fg); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.doc-slide figcaption .ic { width: 14px; height: 14px; color: var(--brand); }
/* A slide stays a white slide in dark mode too, as it does on a projector. */
.slide-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; color: #111827;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .12);
}
.slide-thumb b { font-size: 9.5px; font-weight: 700; letter-spacing: -.01em; }
.slide-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.slide-body strong { font-size: 17px; font-weight: 700; color: #4f46e5; line-height: 1; margin: 0 8px 2px 0; }
.slide-rows { display: grid; gap: 3px; }
.slide-rows span { display: flex; gap: 2px; }
.slide-rows i { width: 9px; height: 9px; border-radius: 2px; background: #818cf8; }
.slide-rows i.e { background: transparent; box-shadow: inset 0 0 0 1px #c7d2fe; }
.slide-thumb em { position: absolute; right: 7px; top: 6px; font-size: 7px; font-style: normal; color: #9ca3af; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc-to { margin-left: auto; font-size: 12px; color: var(--fg-3); }
.doc .tr-lines { padding: 12px 0 0; gap: 10px; }
.doc .tr-line { font-size: 13.5px; }
.tr-slide { display: flex; align-items: center; gap: 8px; margin-left: 50px; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 12px; color: var(--fg-3); }
.tr-slide .ic { width: 14px; height: 14px; color: var(--brand); }
.doc-fade { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 459px) {
  .doc-slide { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .doc-to { margin-left: 0; flex-basis: 100%; }
  .mock-top .seg button { padding: 4px 8px; }
}

/* ── The phone beside a lecture recorded on the laptop ── */
.duo { display: grid; gap: 32px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.duo-text { min-width: 0; }
.duo-h { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.duo-h .h2-2 { display: block; color: var(--fg-3); }
.duo-lead { margin-top: 10px; max-width: 34em; color: var(--fg-2); }
.duo-points { margin-top: 24px; gap: 18px; }
@media (min-width: 640px) { .duo-points { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 960px) { .duo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; } }

/* Two drawn devices, the phone in front. Below 640 px only the phone: it is
   the one the section is about, and a laptop that narrow reads as nothing. */
.duo-visual { display: grid; grid-template-columns: minmax(0, 1fr) 188px; align-items: end; gap: 16px; min-width: 0; max-width: 560px; }
.device { min-width: 0; }
.device-screen { background: var(--card); border: 6px solid var(--bezel); }
.device-laptop { padding: 0 12px; }
.device-laptop .device-screen { border-radius: 12px 12px 2px 2px; padding-bottom: 10px; }
.device-base { position: relative; height: 10px; margin: 0 -12px; border-radius: 2px 2px 12px 12px; background: var(--bezel-2); }
.device-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 56px; height: 4px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: var(--bezel); opacity: .35; }
.device-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.device .rec-live { font-size: 12px; }
.device .tr-lines { padding: 10px 10px 0; gap: 8px; }
.device .tr-line { font-size: 12.5px; }
.device .tr-slide { margin-left: 0; font-size: 11.5px; line-height: 1.35; }
.device-phone .device-screen { display: grid; gap: 10px; padding: 12px 10px 10px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.phone-banner { display: grid; gap: 6px; padding: 9px 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.phone-banner .rec-live { align-items: flex-start; white-space: normal; line-height: 1.3; }
.phone-banner .rec-live i { flex-shrink: 0; margin-top: 4px; }
.phone-course { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11.5px; }
.phone-live b { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); }
.phone-live p { margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.phone-actions { display: grid; gap: 6px; }
.phone-btn { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; line-height: 1.25; }
.phone-btn .ic { width: 14px; height: 14px; color: var(--brand); }
.phone-btn.is-main { background: var(--brand-2); border-color: transparent; color: #fff; }
.phone-btn.is-main .ic { color: #fff; }
@media (prefers-color-scheme: dark) { .phone-btn.is-main { background: #4f46e5; } }
.device-phone .tag-sample { justify-self: start; }
@media (max-width: 639px) {
  .duo { margin-top: 44px; padding-top: 36px; }
  .duo-visual { grid-template-columns: minmax(0, 248px); justify-content: center; max-width: none; }
  .device-laptop { display: none; }
}

/* ══════════ IS MUNI ══════════
   The same two columns as the recording section — what arrives on one side,
   a sync playing on the other — then how it is connected, in three steps. */
.sync { box-shadow: var(--shadow-lg); }
.sync-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--fg-3); white-space: nowrap; }
.sync-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.sync[data-state="busy"] .sync-state::before { background: var(--brand); animation: skel .6s ease-in-out infinite alternate; }
.sync[data-state="done"] .sync-state { color: var(--ok-fg); }
.sync[data-state="done"] .sync-state::before { background: var(--ok-dot); }
/* What the student says to the AI app; the sentence is typed over itself. */
.sync-ask { margin: 14px 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.sync-ask .ask-text { position: relative; }
.sync-ask .tr-typed:empty::before { content: attr(data-placeholder); color: var(--fg-3); font-weight: 400; }
.sync-app { padding: 0 12px 10px 36px; font-size: 11.5px; color: var(--fg-3); }
/* Every row is there from the start with its value hidden, so the card has
   its final height before the first one arrives. */
.sync-rows { display: grid; margin: 10px 14px 0; border: 1px solid var(--line); border-radius: 12px; }
.sync-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13.5px; }
.sync-row + .sync-row { border-top: 1px solid var(--line); }
.sync-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-3); color: var(--fg-3); transition: background-color .25s, color .25s; }
.sync-ic .ic { width: 15px; height: 15px; }
.sync-text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; min-width: 0; }
.sync-label { font-weight: 600; }
.sync-value { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.sync-tick { width: 16px; height: 16px; color: var(--ok-dot); stroke-width: 3; }
.sync-row:not(.is-on) .sync-value, .sync-row:not(.is-on) .sync-tick { visibility: hidden; }
.sync-row.is-on .sync-ic { background: var(--brand-soft); color: var(--brand-ink); }
.sync-row.is-on .sync-value, .sync-row.is-on .sync-tick { animation: fadein .3s ease-out; }
.sync-foot { display: flex; align-items: center; gap: 10px; margin: 12px 14px 14px; min-height: 28px; }
.sync-hint { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--fg-3); }
.sync-hint .ic { width: 13px; height: 13px; }
.sync-foot .replay { margin-left: auto; }
.sync[data-state="done"] .replay { visibility: visible; }

.is-how { margin-top: 48px; }
.is-how-h { font-size: 1.15rem; letter-spacing: -.01em; }
.is-steps { margin-top: 16px; }
.is-facts { display: grid; gap: 10px; margin-top: 22px; color: var(--fg-2); font-size: 14.5px; }
.is-facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.is-facts .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ok-dot); }
@media (min-width: 760px) { .is-facts { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.is-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.is-other { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-3); font-size: 14px; }
.is-other:hover { color: var(--fg); }
.is-other .ic { width: 14px; height: 14px; }
@media (max-width: 419px) { .is-actions .btn { flex: 1 1 100%; } }

/* ══════════ Events ══════════ */
.sources { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 13.5px; color: var(--fg-3); }
.sources li { display: inline-flex; align-items: center; gap: 7px; }
.sources .ic { width: 15px; height: 15px; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.chip-cats { display: contents; }
.chip-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; flex-shrink: 0; }
.chips button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--fg-2); background: var(--card); white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.chips button:hover { border-color: var(--fg-3); }
.chips button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips button i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h, 232) 60% 55%); }
.chips .chip-free { color: var(--ok-fg); border-color: color-mix(in srgb, var(--ok-dot) 45%, var(--line-2)); }
.chips .chip-free i { background: var(--ok-dot); }
.chips .chip-free[aria-pressed="true"] { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-dot); }
/* On a phone: the chips stay on one scrolling row, and six events are enough
   — twelve full-width tiles made the section six screens long. */
@media (max-width: 639px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex-shrink: 0; }
  .ev:nth-child(n+7) { display: none; }
}
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; margin-top: 22px; }
.ev { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: box-shadow .15s, transform .15s; }
.ev:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
/* Facebook covers are 1.91:1. Without one: the category colour, a faint dot grid. */
.ev-photo {
  position: relative; display: block; aspect-ratio: 1.91 / 1; overflow: hidden;
  background-color: hsl(var(--h, 232) var(--cat-s) var(--cat-l-bg));
  background-image: radial-gradient(hsl(var(--h, 232) 40% 50% / .16) 1px, transparent 1.6px);
  background-size: 14px 14px;
}
/* The placeholder sits under the photo, so a slow or dead link still shows it. */
.ev-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ev-photo .ev-ph { position: absolute; inset: 0; display: grid; place-items: center; color: hsl(var(--h, 232) 45% var(--cat-l-fg)); opacity: .55; }
.ev-photo .ev-ph .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.ev-photo .cal-tile { position: absolute; z-index: 2; left: 10px; top: 10px; background: var(--card); color: var(--fg); box-shadow: 0 2px 10px rgba(17, 24, 39, .16); width: 44px; height: 46px; }
.ev-photo .cal-tile small { color: var(--live); }
.ev-photo .tag-free { position: absolute; z-index: 2; right: 10px; top: 10px; box-shadow: 0 2px 10px rgba(17, 24, 39, .16); font-size: 12px; padding: 2px 10px; }
.ev-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ev-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ev-tags:empty { display: none; }
.ev-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--fg-3); }
.ev-cat i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h, 232) 60% 55%); }
.ev h3 { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev h3 a:hover { color: var(--brand-2); }
.ev-when { font-size: 13px; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.ev-where, .ev-host { font-size: 13px; color: var(--fg-3); min-width: 0; }
.ev-where { display: flex; align-items: center; gap: 6px; }
.ev-where span, .ev-host { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-where .ic { width: 13px; height: 13px; }
.ev-host { margin-top: auto; padding-top: 6px; }
.ev-tags .tag-free { display: none; }
/* On a phone: a list — a thumbnail with the date, the text beside it. */
@media (max-width: 639px) {
  .ev-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .ev { flex-direction: row; }
  .ev:hover { transform: none; }
  .ev-photo { width: 96px; flex-shrink: 0; aspect-ratio: auto; min-height: 112px; }
  .ev-photo .ev-ph { display: none; }
  .ev-photo .cal-tile { left: 8px; top: 8px; width: 40px; height: 42px; }
  .ev-photo .cal-tile b { font-size: 16px; }
  .ev-photo .tag-free { display: none; }
  .ev-tags .tag-free { display: inline-flex; }
  .ev-body { padding: 10px 12px 11px; gap: 3px; justify-content: center; }
  .ev h3 { font-size: 14.5px; }
  .ev-host { display: none; }
}
.ev-empty { margin-top: 22px; padding: 28px; text-align: center; color: var(--fg-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.ev-empty[hidden] { display: none; }
.ev-more { margin-top: 28px; }

/* ══════════ Pricing ══════════
   Absent unless the admin has credit switched on (site.js). When it is
   there, "Also in studar.io" follows it on the same white, so a hairline
   marks where that one starts. */
.pricing:not([hidden]) + .more { border-top: 1px solid var(--line); }
.pricing[hidden], .nav-links a[hidden] { display: none; }
.price-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cur-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); }
.cur-switch button { min-width: 44px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-3); }
.cur-switch button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(17, 24, 39, .1); }
.price-grid { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 560px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; min-width: 0; box-shadow: var(--shadow); }
.price-card h3 { font-size: 15px; font-weight: 600; color: var(--fg-2); }
.price-amount { margin-top: 6px; font-size: clamp(1.75rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-meta { margin-top: 8px; color: var(--fg-3); font-size: 14px; line-height: 1.45; }
.price-card.is-highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.price-badge { position: absolute; top: -11px; left: 18px; padding: 2px 9px; border-radius: 999px; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.price-start { background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.price-start h3 { color: var(--brand-ink); }
.price-start .price-amount { color: var(--brand-ink); }
.price-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 14px; color: var(--brand-ink); }
.price-cta .ic { width: 16px; height: 16px; }
.price-cta:hover { text-decoration: underline; }
.price-costs-wrap { margin-top: 36px; max-width: 40rem; }
.price-costs-wrap h3 { font-size: 15px; margin-bottom: 6px; }
.price-costs li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.price-costs li span { color: var(--fg-2); }
.price-costs li b { font-weight: 600; white-space: nowrap; }
.price-costs li b.is-free { color: var(--ok-fg); }
.price-fine { margin-top: 18px; color: var(--fg-3); font-size: 13px; }
/* The other way to pay for AI: your own keys. */
.price-keys { display: flex; align-items: flex-start; gap: 9px; max-width: 46em; margin-top: 28px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-2); font-size: 14px; }
.price-keys .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--brand); }

/* ══════════ Also in studar.io ══════════ */
.more-grid { display: grid; gap: 16px; margin-top: 32px; }
.more-card { display: flex; flex-direction: column; padding: 20px 20px 18px; min-width: 0; }
.m-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.m-ic .ic { width: 18px; height: 18px; }
.more-card h3 { margin-top: 14px; font-size: 16px; }
.more-card > p { margin-top: 6px; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.mini { margin-top: auto; padding-top: 18px; }
.mini > div { min-height: 158px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
/* Five cards: three to a row, then the canteen menu and the keys, whose small
   mocks need the width, share the second. */
@media (min-width: 800px) {
  .more-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .more-card { grid-column: span 2; }
  .more-card:nth-child(n+4) { grid-column: span 3; }
}
/* The small mocks need a wide card. */
@media (max-width: 999px) { .mini { display: none; } }
/* Narrower: three short rows, icon beside the text. */
@media (max-width: 799px) {
  .more-grid { gap: 10px; margin-top: 24px; }
  .more-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .more-card .m-ic { grid-row: 1 / span 2; }
  .more-card h3 { margin-top: 0; font-size: 15.5px; }
  .more-card > p { margin-top: 3px; font-size: 14px; }
  .mini { display: none; }
}

/* Notes, votable */
.notes-list { display: grid; gap: 8px; padding: 10px; align-content: start; }
.note {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center;
  padding: 8px 10px 8px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
}
.note.is-top { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.vote { display: flex; flex-direction: column; align-items: center; }
.vote button { width: 26px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--fg-3); }
.vote button .ic { width: 15px; height: 15px; }
.vote button:hover { background: var(--bg-3); color: var(--fg); }
.vote button[aria-pressed="true"] { color: var(--brand); }
.vote b { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 1px 0; font-variant-numeric: tabular-nums; }
.note-title { font-weight: 600; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12px; color: var(--fg-3); }
.mini-hint { padding: 0 12px 10px; font-size: 11.5px; color: var(--fg-3); }

/* Deadlines */
.dl-list { display: grid; gap: 8px; padding: 10px; align-content: start; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.dl .code { padding: 2px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 700; background: var(--tint-bg); color: var(--tint-fg); font-variant-numeric: tabular-nums; }
.dl-title { font-weight: 600; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta { font-size: 12px; color: var(--fg-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-left { font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.dl-left.is-soon { color: #b45309; }
@media (prefers-color-scheme: dark) { .dl-left.is-soon { color: #fbbf24; } }
.dl-add { display: flex; align-items: center; gap: 7px; padding: 2px 4px 0; color: var(--fg-3); font-size: 11.5px; }
.dl-add .ic { width: 13px; height: 13px; }

/* Photo → timetable */
.photo-mock { display: grid; gap: 10px; padding: 10px; align-content: start; }
.photo-shot {
  position: relative; height: 104px; border-radius: 9px; overflow: hidden;
  background: #9aa3b2;
}
@media (prefers-color-scheme: dark) { .photo-shot { background: #262c38; } }
.photo-paper {
  position: absolute; left: 9%; right: 7%; top: 10px; bottom: 8px;
  background: #f5f2ea; border-radius: 2px;
  transform: rotate(-3deg) skewX(-2deg); transform-origin: 40% 60%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  display: grid; grid-template-rows: 10px repeat(4, 1fr); gap: 2px; padding: 6px 8px;
  filter: saturate(.85) contrast(.95);
}
.photo-row { display: grid; grid-template-columns: 18px repeat(5, 1fr); gap: 2px; }
.photo-row > i { border-radius: 1px; background: #d9d4c8; }
.photo-row.head > i { background: #b8b1a4; }
.photo-row > i.b1 { background: #a8b0e8; } .photo-row > i.b2 { background: #b6d9c6; } .photo-row > i.b3 { background: #e8d3a0; } .photo-row > i.b4 { background: #e7b7c0; } .photo-row > i.b5 { background: #b2d6e8; }
.photo-row > i.none { background: transparent; }
.photo-cap { position: absolute; left: 7px; bottom: 7px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(17, 24, 39, .72); color: #fff; font-size: 10.5px; font-weight: 500; }
.photo-cap .ic { width: 11px; height: 11px; }
.photo-out { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.photo-out .ic.arr { width: 14px; height: 14px; color: var(--fg-3); }
.photo-out .tag { font-size: 11.5px; }

/* Canteen menu — dishes, diet marks, allergens; never a price */
.mini-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 0; font-size: 12.5px; }
.mini-top b { font-weight: 600; white-space: nowrap; }
.mini-top .tag-sample { margin-left: auto; }
.menu-days { display: inline-flex; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .03em; }
.menu-days span { padding: 2px 6px; border-radius: 6px; }
.menu-days .is-on { background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2); }
.menu-list { display: grid; padding: 4px 12px 8px; }
.menu-list li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 7px 0; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-n { font-size: 11px; font-weight: 700; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.menu-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.tag-diet { background: var(--ok-bg); color: var(--ok-fg); font-size: 10.5px; }
.menu-al { margin-top: 1px; font-size: 11.5px; color: var(--fg-3); }

/* Own AI keys */
.keys-list { display: grid; gap: 8px; padding: 10px; }
.keys-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
.keys-list b { font-weight: 600; }
.keys-what { min-width: 0; color: var(--fg-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.keys-list code { font: 500 12px/1 ui-monospace, "SF Mono", Consolas, monospace; color: var(--fg-2); }
/* The two wide cards stand side by side with mocks of different heights:
   both mocks fill their card, and the keys' last line sits at the bottom.
   Only where the small mocks are shown at all (see below). */
@media (min-width: 1000px) {
  .more-card:nth-child(n+4) .mini { display: flex; flex: 1; }
  .more-card:nth-child(n+4) .mini > div { flex: 1; }
}
.keys-mock { display: flex; flex-direction: column; }
.keys-mock .dl-add { margin-top: auto; padding: 0 14px 12px; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 36px auto 0; max-width: 760px; text-align: center; }
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.stats b { font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -.02em; font-weight: 700; }
.stats span { color: var(--fg-3); font-size: 12px; line-height: 1.3; }
@media (min-width: 640px) { .stats span { font-size: 14px; } }

/* ══════════ How it works ══════════
   The last band: the footer draws the line under it. */
.how { padding-bottom: 80px; border-bottom: 0; }
.steps { display: grid; gap: 14px; margin-top: 32px; }
.steps li { position: relative; padding: 20px 18px 20px 62px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); }
.step-n { position: absolute; left: 18px; top: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.steps p { margin-top: 6px; color: var(--fg-2); font-size: 14.5px; }
.closing { text-align: center; margin-top: 64px; }
.closing p { margin: 10px 0 0; color: var(--fg-2); }
.closing .cta-row { justify-content: center; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps li { padding: 24px 22px 24px; }
  .step-n { position: static; margin-bottom: 14px; }
}

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--fg-3); font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 10px 18px; }
.footer a { font-weight: 600; color: var(--fg-2); }
.footer a:hover { color: var(--brand-2); }

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rec-wave i { transform: scaleY(.5); }
  .rec-wave i:nth-child(odd) { transform: scaleY(.8); }
}
