/* Likit site — v4 "Glass" (20 Oct 2026), after the app's 1.0.6 look:
   the yellow-to-pink backdrop, frosted white glass with a bright rim, the
   wordmark's deep red as the one accent, pastel washes for the three modes,
   near-black type and pill buttons. */
/* The app's type (user, 20 Oct 2026): Noto Sans Thai Looped, Latin included. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai+Looped:wght@400;500;600;700&display=swap');

:root {
  --sky: #ebf5ff;
  --paper: #ffffff;
  --ink: #0a0d12;
  --charcoal: #181d27;
  --graphite: #535862;
  --fog: #93979f;
  --line: rgba(10, 13, 18, 0.08);
  --brand: #8a1c2a;          /* the red in the wordmark */
  --brand-deep: #6e1520;
  --brand-soft: #ffd6de;     /* the app's selection pink */
  --ok: #1e8e5a;
  --warn: #c27a00;
  --wash-sky: #cce7ff;
  --wash-lavender: #f1e6ff;
  --wash-mint: #d3f6e3;
  --wash-peach: #ffe4d6;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --rim: rgba(255, 255, 255, 0.95);
  --shadow: 0 18px 40px -12px rgba(28, 78, 128, 0.22), 0 2px 6px rgba(10, 13, 18, 0.05);
  --shadow-lg: 0 40px 80px -24px rgba(28, 78, 128, 0.32), 0 8px 18px rgba(10, 13, 18, 0.06);
  --bg: linear-gradient(180deg, #fffbe6 0%, #fff6e9 30%, #fff0f4 45%, #ffedf2 100%);
  /* kept for older rules */
  --navy: var(--ink);
  --burgundy: var(--brand);
  --cream: var(--sky);
  --ink-soft: var(--graphite);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Noto Sans Thai Looped", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(th) body, html[lang="th"] body { line-height: 1.75; }

[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--ink); }

/* ------------------------------------------------------------ glass */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ------------------------------------------------------------ top bar */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 0 16px;
}
.topbar .inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
}
.topbar .mark { display: flex; align-items: center; }
.topbar .mark img { height: 30px; width: auto; display: block; }
.topbar .links { display: flex; gap: 2px; margin-left: 8px; flex: 1; }
.topbar .links a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.topbar .links a:hover { background: rgba(255, 255, 255, 0.8); color: var(--ink); }
.topbar .end { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.signin, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  border: 1px solid var(--charcoal);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(10, 13, 18, 0.35);
  transition: transform 0.12s ease, background 0.12s ease;
}
.signin:hover, .btn:hover { background: var(--ink); color: #fff; }
.signin:active, .btn:active { transform: scale(0.97); }
.signin.ghost, .btn.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border-color: rgba(10, 13, 18, 0.1);
  box-shadow: none;
}
.signin.ghost:hover, .btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.red { background: var(--brand); border-color: var(--brand); }
/* Signed in: the top bar says as whom (account.js). */
.signin.me { background: rgba(255, 255, 255, 0.9); color: var(--ink); border-color: var(--line); padding: 4px 14px 4px 4px; box-shadow: none; }
.signin.me:hover { background: #fff; color: var(--ink); }
.signin.me i { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; flex: none; }
.signin.me .who-name { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .signin.me .who-name { max-width: 8ch; } }
.btn.red:hover { background: var(--brand-deep); }
.btn.lg { font-size: 15px; padding: 12px 22px; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }

/* Language toggle: one pill, two halves. */
.langbar { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.7); border: 1px solid var(--line); }
.langbar button {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--graphite);
  border-radius: 999px;
  cursor: pointer;
}
.langbar button.on { background: var(--charcoal); color: #fff; }

/* ------------------------------------------------------------ pages */
header {
  padding: 28px 24px 8px;
  text-align: center;
}
header img { width: min(210px, 52vw); height: auto; }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.card {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--rim);
  border-radius: 28px;
  padding: 28px 28px 24px;
  margin: 0 24px 20px;
  box-shadow: var(--shadow);
}
@media (min-width: 1170px) { .card { margin-left: 0; margin-right: 0; } }

h1 { font-size: 32px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; margin: 28px 0 8px; }
h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; color: var(--brand); }
p, li { font-size: 15px; }
ul { padding-left: 20px; }

nav.links { text-align: center; margin: 8px 0 24px; }
nav.links a {
  display: inline-block;
  margin: 4px 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
nav.links a:hover { background: #fff; }

footer {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--graphite);
  font-size: 13px;
}
footer a { color: var(--graphite); }

.meta { color: var(--graphite); font-size: 13px; }
.note { font-size: 13px; color: var(--graphite); margin: 12px 0 0; }

/* ------------------------------------------------------------ store badges */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 9px 15px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(10, 13, 18, 0.5);
  transition: transform 0.12s ease;
}
.badge:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.badge.soon { background: rgba(255,255,255,0.8); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.badge.soon:hover { background: #fff; color: var(--ink); }
.badge svg { width: 20px; height: 20px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.badge small { font-size: 10px; opacity: 0.75; letter-spacing: 0.2px; }
.badge b { font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------ home: hero */
.hero2 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(255, 214, 222, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero2 h1 {
  font-size: clamp(36px, 5.6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 18px 0 0;
}
html[lang="th"] .hero2 h1 { letter-spacing: -0.01em; line-height: 1.2; }
.hero2 h1 em { font-style: normal; color: var(--brand); }
.hero2 .lede { font-size: 18px; color: var(--graphite); margin: 18px 0 0; max-width: 34ch; }

.stage { position: relative; }
.stage .mascot {
  position: absolute;
  width: 23%;
  left: -9%;
  bottom: -6%;
  z-index: 3;
  filter: drop-shadow(0 14px 18px rgba(138, 28, 42, 0.18));
}
.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.chip.c1 { top: 6%; right: -3%; }
.chip.c2 { top: 44%; right: -6%; }
.chip.c2 i { background: var(--brand); }
.chip.c3 { bottom: 12%; right: 6%; }
.chip.c3 i { background: #2ec48a; }

/* The tablet: a dark bezel, a rounded screen, a soft lift. */
.tablet {
  position: relative;
  padding: 2.2%;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a2f39, #0d1016);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.tablet::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.9%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #3a404c;
}
.tablet img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 885;
  border-radius: 18px;
  background: #fff6ee;
}
.stage .tablet { transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transform-origin: 30% 50%; }

/* ------------------------------------------------------------ home: sections */
.section { max-width: 1120px; margin: 0 auto; padding: 64px 24px 8px; scroll-margin-top: 80px; }
.section .kicker { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; }
html[lang="th"] .section .kicker { letter-spacing: 0; text-transform: none; }
.section h2.big {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 8px 0 0;
}
.section .sub { color: var(--graphite); font-size: 17px; margin: 12px 0 0; max-width: 60ch; }

/* The three modes: a segmented switch and one big showcase. */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-top: 28px;
  border-radius: 999px;
}
.seg button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button .dot { width: 10px; height: 10px; border-radius: 50%; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -4px rgba(28, 78, 128, 0.25); }

.show {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 26px;
  border-radius: 36px;
}
.show .words h3 { font-size: 26px; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.show .words .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.show .words p { color: var(--graphite); margin: 10px 0 0; font-size: 16px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; font-size: 15px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%238a1c2a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.pane { display: none; }
.pane.on { display: contents; }
.pane .tablet { animation: rise 0.35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.w-sky { background: var(--wash-sky); color: #1d4f86; }
.w-peach { background: var(--wash-peach); color: #8a3f1c; }
.w-mint { background: var(--wash-mint); color: #1e6b47; }
.d-sky { background: #5aa9f0; }
.d-peach { background: #f08a5a; }
.d-mint { background: #2ec48a; }

/* For teachers: words beside a live dashboard. */
.duo { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-top: 8px; }
.mini {
  border-radius: 28px;
  padding: 18px;
  font-size: 13px;
}
.mini .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mini .bar b { font-size: 15px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--graphite);
  white-space: nowrap;
}
.pill.live { background: var(--brand); color: #fff; }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.pill.ok { background: #e3f6eb; color: var(--ok); }
.pill.warn { background: #fff1d6; color: var(--warn); }
.pill.bad { background: #fde3e6; color: var(--brand); }
.pill.blue { background: #e3effd; color: #1d4f86; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: rgba(255, 255, 255, 0.85); border-radius: 16px; padding: 10px 12px; }
.stat b { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { color: var(--graphite); font-size: 12px; }
.rows { background: rgba(255, 255, 255, 0.85); border-radius: 18px; overflow: hidden; }
.r { display: grid; grid-template-columns: 14px 1.4fr 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); }
.r:first-child { border-top: 0; }
.r .who b { display: block; font-size: 13px; font-weight: 600; }
.r .who span, .r .dev { color: var(--graphite); font-size: 12px; }
.on-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #c5cad3; box-shadow: 0 0 0 3px rgba(197, 202, 211, 0.3); }
.on-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }

/* Three promises in a row. */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.promise { border-radius: 26px; padding: 22px; }
.promise .ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.promise .ico svg { width: 22px; height: 22px; }
.promise h3 { color: var(--ink); font-size: 17px; margin: 0 0 4px; }
.promise p { color: var(--graphite); margin: 0; font-size: 14.5px; }

.cta {
  margin: 64px auto 0;
  max-width: 1072px;
  text-align: center;
  padding: 44px 24px;
  border-radius: 36px;
}
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.cta .badges { justify-content: center; }

/* ------------------------------------------------------------ legacy (carousel, tiles) */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 24px 24px 8px; }
.mode { border-radius: 24px; padding: 18px; text-decoration: none; color: var(--ink); }
.ipad { padding: 12px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.ipad img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 960px) {
  .topbar .links { display: none; }
  .hero2 { grid-template-columns: 1fr; padding-top: 36px; gap: 48px; }
  .stage { margin: 0 4% 0 8%; }
  .show { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topnav { flex-wrap: wrap; gap: 10px; padding: 14px 16px 0; }
  .topbar { padding: 0 10px; top: 8px; }
  .topbar .inner { padding: 6px 6px 6px 14px; gap: 8px; }
  .topbar .mark img { height: 24px; }
  .topbar .end .langbar button { padding: 4px 9px; }
  .topbar .end .signin { padding: 8px 12px; font-size: 13px; }
  .hero2, .section { padding-left: 16px; padding-right: 16px; }
  .stage .tablet { transform: none; }
  .stage .tablet { border-radius: 22px; }
  .tablet img { border-radius: 12px; }
  .chip { font-size: 11.5px; padding: 6px 10px; }
  .chip.c1 { right: 2%; top: -5%; }
  .chip.c2 { display: none; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 9px 6px; font-size: 13.5px; }
  .seg button .dot { display: none; }
  .show { padding: 14px; border-radius: 26px; gap: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .r { grid-template-columns: 12px 1fr auto; }
  .r .dev { display: none; }
  .card { padding: 22px 18px 20px; margin: 0 16px 16px; border-radius: 24px; }
  .cta { margin-left: 16px; margin-right: 16px; }
}

/* Light only (user, 20 Oct 2026): a dark page lost the navy logo and the
   glass cards. Browsers in dark mode get the light page too. */

/* ------------------------------------------------------------ compact
   On a computer the type was far too big (user, 20 Oct 2026): one step
   smaller everywhere, tighter spacing. Phones keep the same sizes. */
body { font-size: 14px; line-height: 1.55; }
p, li { font-size: 14px; }
h1 { font-size: 24px; }
h2 { font-size: 17px; margin: 22px 0 6px; }
h3 { font-size: 15px; }
.topbar { margin-top: 10px; }
.topbar .inner { padding: 6px 6px 6px 16px; gap: 10px; }
.topbar .mark img { height: 24px; }
.topbar .links a { font-size: 13px; padding: 6px 10px; }
.signin, .btn { font-size: 13px; padding: 7px 14px; }
.btn.lg { font-size: 14px; padding: 9px 18px; }
.signin.me { padding: 3px 12px 3px 3px; }
.signin.me i { width: 26px; height: 26px; font-size: 12px; }
.langbar button { font-size: 12px; padding: 4px 10px; }
.card { padding: 22px 24px 18px; border-radius: 22px; }
.hero2 { padding: 36px 24px 8px; gap: 32px; }
.hero2 h1 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 14px; }
.hero2 .lede { font-size: 15px; margin-top: 12px; }
.eyebrow { font-size: 12px; }
.badges { margin-top: 16px; }
.badge { padding: 7px 16px 7px 12px; }
.badge b { font-size: 14px; }
.section { padding: 40px 24px 4px; }
.section .kicker { font-size: 12px; }
.section h2.big { font-size: clamp(21px, 2.3vw, 28px); }
.section .sub { font-size: 15px; }
.seg { margin-top: 18px; }
.seg button { font-size: 14px; padding: 8px 16px; }
.show { padding: 18px; gap: 24px; margin-top: 16px; border-radius: 28px; }
.show .words h3 { font-size: 19px; }
.show .words p, .ticks li { font-size: 14px; }
.trio { margin-top: 18px; gap: 12px; }
.promise { padding: 18px; border-radius: 22px; }
.promise h3 { font-size: 15px; }
.promise p { font-size: 13.5px; }
.mini { padding: 14px; font-size: 12.5px; }
.stat b { font-size: 19px; }
footer { font-size: 12px; padding: 20px 24px; }

/* The top bar (user, 20 Oct 2026: keep this look; make it slimmer, and
   everything on one line). nav.links' old page margins stay out of it;
   every control is 32 px tall and centred. */
.topbar { top: 10px; }
.topbar .inner { padding: 5px 5px 5px 16px; gap: 8px; min-height: 0; }
.topbar .mark, .topbar .mark img { display: block; height: 22px; line-height: 0; }
.topbar .links { margin: 0; display: flex; align-items: center; gap: 2px; text-align: left; }
.topbar .links a { margin: 0; display: inline-flex; align-items: center; height: 32px; padding: 0 11px; line-height: 1; background: transparent; border: 0; font-size: 13px; }
.topbar .end { gap: 6px; }
.topbar .langbar { display: inline-flex; align-items: center; height: 32px; padding: 2px; box-sizing: border-box; }
.topbar .langbar button { height: 26px; padding: 0 10px; line-height: 1; }
.topbar .signin { height: 32px; padding: 0 14px; line-height: 1; box-sizing: border-box; }
.topbar .signin.me { padding: 0 12px 0 3px; }
.topbar .signin.me i { width: 26px; height: 26px; }
@media (max-width: 960px) { .topbar .links { display: none; } }
@media (max-width: 560px) { .topbar .inner { padding-left: 12px; } .topbar .signin.me .who-name { max-width: 8ch; } }

/* Home: the logo and the motto, large and centred above the hero (user,
   20 Oct 2026). */
.brand { text-align: center; padding: 34px 24px 0; }
.brand img { display: block; margin: 0 auto; width: min(300px, 64vw); height: auto; }
.brand .motto { margin: 6px 0 0; color: var(--graphite); font-size: 17px; font-weight: 500; letter-spacing: 0.01em; }
.brand + .hero2 { padding-top: 22px; }
/* Pages whose old top row keeps only the Home button: it stays on the right. */
.topnav > :only-child { margin-left: auto; }

/* Home, one more step down on a computer (user, 21 Oct 2026: type and
   pictures still too big). The top bar is left as it is. */
.brand { padding-top: 24px; }
.brand img { width: min(220px, 56vw); }
.brand .motto { font-size: 15px; }
.hero2 { max-width: 1000px; grid-template-columns: 1fr 1fr; gap: 28px; }
.brand + .hero2 { padding-top: 14px; }
.hero2 h1 { font-size: clamp(24px, 2.6vw, 34px); }
.hero2 .lede { font-size: 14px; max-width: 38ch; }
.stage { max-width: 470px; justify-self: end; width: 100%; }
.chip { font-size: 12px; padding: 6px 11px; }
.section { max-width: 1000px; padding-top: 32px; }
.section h2.big { font-size: clamp(19px, 2vw, 24px); }
.section .sub { font-size: 14px; }
.show { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.show .tablet { max-width: 440px; justify-self: center; width: 100%; }
.show .words h3 { font-size: 17px; }
.duo { grid-template-columns: 1fr 1fr; gap: 28px; }
.mini { max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 960px) {
  .hero2, .show, .duo { grid-template-columns: 1fr; }
  .stage, .mini { justify-self: center; }
}

/* Home, reorganised (user, 21 Oct 2026): each picture once, little text.
   Logo, motto, one line, the stores; three modes side by side; one line
   for teachers. */
.brand .intro { margin: 14px 0 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.brand .badges { justify-content: center; }
.modes3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m3 { border-radius: 24px; padding: 14px 14px 18px; }
.m3 .tablet { padding: 2.6%; border-radius: 18px; }
.m3 .tablet img { border-radius: 10px; }
.m3 h3 { color: var(--ink); font-size: 16px; margin: 14px 4px 4px; display: flex; align-items: center; gap: 8px; }
.m3 .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.m3 p { margin: 0 4px; color: var(--graphite); font-size: 13.5px; }
.teach { border-radius: 24px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.teach h2 { margin: 0 0 4px; font-size: 18px; }
.teach p { margin: 0; color: var(--graphite); }
#teachers { padding-bottom: 32px; }
@media (max-width: 860px) { .modes3 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
#modes { padding-bottom: 36px; }

/* One notch back up on a computer (user, 21 Oct 2026: now too small).
   Between the first, oversized pass and the compact one; the top bar is
   unchanged. */
@media (min-width: 900px) {
  body, p, li { font-size: 15px; }
  .brand { padding-top: 32px; }
  .brand img { width: min(260px, 56vw); }
  .brand .motto { font-size: 17px; }
  .brand .intro { font-size: 21px; margin-top: 16px; }
  .badge b { font-size: 15px; }
  .section { max-width: 1120px; }
  .modes3 { gap: 20px; }
  .m3 { padding: 16px 16px 22px; }
  .m3 h3 { font-size: 18px; margin-top: 16px; }
  .m3 p { font-size: 15px; }
  .card { padding: 26px 28px 22px; }
  footer { font-size: 13px; }
}

/* Home in one column (user, 21 Oct 2026): each part in turn, what it does
   in a few bullets, two pictures — the tablet, and the app or the web view
   that goes with it. */
.parts { display: flex; flex-direction: column; gap: 22px; max-width: 1000px; }
.part { border-radius: 28px; padding: 24px 26px 26px; }
.part-head { display: flex; align-items: center; gap: 12px; }
.part-head .ico2 { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; flex: none; }
.part-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.part .ticks { margin: 14px 0 0; columns: 2; column-gap: 32px; }
.part .ticks li { break-inside: avoid; margin: 0 0 8px; }
.pics { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.pics figure { margin: 0; }
.pics .tablet img { border-radius: 12px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
.shot.app img { max-width: 300px; margin: 0 auto; }
.shot.web img { border: 1px solid rgba(10, 13, 18, 0.06); }
.shot figcaption { text-align: center; color: var(--graphite); font-size: 13px; margin-top: 10px; }
@media (max-width: 860px) {
  .part { padding: 18px; }
  .part .ticks { columns: 1; }
  .pics { grid-template-columns: 1fr; }
}
.pics:has(.shot.web) { grid-template-columns: 0.85fr 1.35fr; }
@media (max-width: 860px) { .pics:has(.shot.web) { grid-template-columns: 1fr; } }

/* Home pictures a size down (user, 1 Nov 2026). */
.pics { max-width: 720px; margin-left: auto; margin-right: auto; gap: 16px; }
.shot.app img { max-width: 230px; }
@media (max-width: 860px) { .pics { max-width: 440px; } }

/* Home, compact (user, 1 Nov 2026): one type size, the top bar's 13 px; the
   three modes as a cover flow of the app's home cards, each in its own
   colour (Notes sky, Exams lemon, Labbook mint; strong tile, white icon). */
body.home, body.home p, body.home li { font-size: 13px; line-height: 1.5; }
body.home .brand { padding: 18px 16px 0; }
body.home .brand img { width: min(170px, 46vw); }
body.home .brand .motto { font-size: 13px; margin-top: 2px; }
body.home .brand .badges { margin-top: 12px; gap: 8px; }
body.home .badge { padding: 5px 13px 5px 10px; }
body.home .badge b { font-size: 13px; }
body.home .badge svg { width: 17px; height: 17px; }
body.home footer { font-size: 12px; }

.flowwrap { position: relative; overflow: hidden; padding: 18px 0 8px; }
.flow { display: grid; perspective: 1500px; padding: 6px 0 22px; outline: none; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.flow.dragging { cursor: grabbing; }
.card3 {
  grid-area: 1 / 1; justify-self: center; align-self: start; width: min(560px, 84vw); box-sizing: border-box;
  border-radius: 22px; padding: 14px 16px 16px; border: 1px solid rgba(10, 13, 18, 0.06);
  box-shadow: 0 24px 50px -24px rgba(28, 50, 90, 0.45), 0 2px 6px rgba(10, 13, 18, 0.05);
  transform-origin: 50% 50%; will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.22, 0.9, 0.24, 1), opacity 0.8s ease, filter 0.8s ease;
}
.flow.dragging .card3 { transition: none; }
.card3.notes { background: #d2eaff; }
.card3.exams { background: #fff6d1; }
.card3.labs { background: #e0f7ea; }
.card3:not(.front) { cursor: pointer; }
.card3:not(.front) * { pointer-events: none; }
.c3-head { display: flex; align-items: center; gap: 10px; }
.c3-head h2 { margin: 0; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.ico3 { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.ico3 svg { width: 18px; height: 18px; }
.notes .ico3 { background: #1e88e5; }
.exams .ico3 { background: #e0a100; }
.labs .ico3 { background: #1e9e5e; }
.card3 .ticks { margin: 10px 0 0; columns: 2; column-gap: 18px; }
.card3 .ticks li { margin: 0 0 4px; padding-left: 22px; break-inside: avoid; }
.card3 .ticks li::before { top: 2px; width: 16px; height: 16px; background-size: 16px; background-color: rgba(255, 255, 255, 0.8); }
.c3-pics { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; align-items: center; margin-top: 12px; }
.c3-pics figure { margin: 0; }
.c3-pics .tablet { padding: 2.4%; border-radius: 16px; box-shadow: 0 12px 26px -14px rgba(10, 13, 18, 0.55); }
.c3-pics .tablet img { border-radius: 9px; }
.c3-pics .shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 22px -12px rgba(10, 13, 18, 0.45); background: #fff; }
.c3-pics .shot.app img { max-width: 150px; margin: 0 auto; }
.card3 img { -webkit-user-drag: none; }

.flowdots { display: flex; justify-content: center; gap: 6px; }
.flowdots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(10, 13, 18, 0.18); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.flowdots button[aria-selected="true"] { width: 22px; background: var(--charcoal); }
@media (max-width: 560px) {
  .card3 .ticks { columns: 1; }
  .c3-pics { grid-template-columns: 1fr; }
  .c3-pics .shot { display: none; }
}

/* One type scale for the whole site (user, 1 Nov 2026: smaller, the same
   everywhere): 11 px for small print, 12 px for text, menus and buttons,
   14 px for card titles, 18 px for a page's heading. Last in the file, so
   it wins over the older passes above. */
/* One step up for the two smallest sizes (user, 2 Nov 2026: too small,
   the top bar too). */
:root { --fs-s: 12px; --fs: 13px; --fs-t: 14px; --fs-h: 18px; }
body, p, li, td, input, textarea, select, button,
body.home, body.home p, body.home li { font-size: var(--fs); }
@media (min-width: 900px) { body, p, li { font-size: var(--fs); } }
h1 { font-size: var(--fs-h); }
h2, h3 { font-size: var(--fs-t); }
small, figcaption, footer, body.home footer { font-size: var(--fs-s); }
.topbar .links a, nav.links a { font-size: var(--fs); }
.langbar button, .topbar .langbar button { font-size: var(--fs-s); }
.signin, .btn, .topbar .signin { font-size: var(--fs); }
.badge b, body.home .badge b { font-size: var(--fs); }
.badge small { font-size: 10px; }
body.home .badge { padding: 4px 12px 4px 9px; border-radius: 10px; }
body.home .badge svg { width: 15px; height: 15px; }
body.home .brand .motto { font-size: var(--fs); }
body.home .brand img { width: min(150px, 42vw); }

/* The cover flow a size down. */
.card3 { width: min(470px, 82vw); padding: 12px 14px 14px; border-radius: 20px; }
.c3-head h2 { font-size: var(--fs-t); }
.ico3 { width: 26px; height: 26px; border-radius: 8px; }
.ico3 svg { width: 16px; height: 16px; }
.card3 .ticks { margin-top: 8px; }
.card3 .ticks li { font-size: var(--fs); padding-left: 20px; margin-bottom: 3px; }
.card3 .ticks li::before { width: 14px; height: 14px; background-size: 14px; top: 2px; }
.c3-pics { margin-top: 10px; gap: 10px; }
.c3-pics .shot.app img { max-width: 120px; }
.flow { padding-bottom: 16px; }

/* Text pages (support, privacy, terms, delete account) under the same glass
   top bar as home (user, 1 Nov 2026): one readable column, compact. */
.topbar .links a[aria-current="page"] { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
body.doc main.doc { max-width: 760px; padding: 18px 16px 32px; }
body.doc .card { margin: 0 0 14px; padding: 18px 22px 16px; border-radius: 20px; }
body.doc h1 { font-size: var(--fs-h); margin: 0 0 6px; }
body.doc h2 { font-size: var(--fs-t); margin: 18px 0 6px; }
body.doc h3 { font-size: var(--fs); font-weight: 700; margin: 14px 0 2px; color: var(--ink); }
body.doc p, body.doc li { font-size: var(--fs); line-height: 1.6; margin: 0 0 6px; }
body.doc footer { font-size: var(--fs-s); }

/* Filled buttons in the app's blue, as the app's LikitPrimaryButton (user,
   1 Nov 2026: no more navy). Outlined and white buttons keep their look;
   the wordmark red stays for live dots and the like. */
:root { --app-blue: #0a7aff; --app-blue-deep: #0063d6; }
.signin, .btn, .btn.red, .badge {
  background: var(--app-blue); border-color: var(--app-blue); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(10, 122, 255, 0.55);
}
.signin:hover, .btn:hover, .btn.red:hover, .badge:hover { background: var(--app-blue-deep); border-color: var(--app-blue-deep); color: #fff; }
.langbar button.on, .langbar button[aria-pressed="true"] { background: var(--app-blue); color: #fff; }
.fchip[aria-pressed="true"] { background: var(--app-blue); border-color: var(--app-blue); color: #fff; }
.flowdots button[aria-selected="true"] { background: var(--app-blue); }

/* Sign out, next to the account chip (2 Nov 2026): a quiet text button of
   the same height, so the chip stays the thing you see. */
.signout { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--ink); font: inherit; font-size: var(--fs); cursor: pointer; white-space: nowrap; }
.signout:hover { background: #fff; border-color: var(--app-blue); color: var(--app-blue); }
@media (max-width: 560px) { .signout { padding: 0 8px; } }

/* The name in the account chip clips its own text (ellipsis), and the top
   bar sets line-height 1, which cut the tail off g, y, p (user, 2 Nov 2026:
   "Nongnual"). Room for descenders inside the clip. */
.signin.me .who-name, .topbar .signin.me .who-name { line-height: 1.4; padding-bottom: 1px; }

/* Home: a little air above and below the logo (user, 2 Nov 2026: a touch
   too dense). */
body.home .brand { padding-top: 40px; }
body.home .brand .motto { margin-top: 12px; }
body.home .brand .badges { margin-top: 16px; }
@media (max-width: 560px) { body.home .brand { padding-top: 28px; } }

/* Website | App (user, 2 Nov 2026): the same capsule on likit.cc and
   app.likit.cc. The half for where you are is blue, the other grey; each
   half leads to its own home page. */
.sites { display: inline-flex; align-items: center; height: 32px; padding: 2px; box-sizing: border-box; border-radius: 999px; background: #eef0f3; border: 1px solid var(--line); }
.sites a { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: var(--fs); font-weight: 600; line-height: 1; color: #8a9099; text-decoration: none; white-space: nowrap; }
.sites a:hover { color: var(--ink); }
.sites a[aria-current="page"] { background: var(--app-blue); color: #fff; }
@media (max-width: 560px) { .sites a { padding: 0 9px; } }
