/* Easyexam — site and account. Light, airy, by Cluely's layout: sky hero, serif headline, glossy blue button,
   the product shown live on a desktop. See docs/DESIGN.md. */
:root {
  --bg: #ffffff;
  --bg-2: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --line: #e7eaf1;
  --line-2: #d9dee8;
  --fg: #0e1116;
  --fg-2: #3a4150;
  --muted: #6c7486;
  --soft: #97a0b3;
  --blue: #1f5fe6;
  --blue-2: #1e82e0;
  --blue-soft: #e9f0fe;
  --good: #1f9d55;
  --bad: #d93a2b;
  /* the product overlay is always dark glass, whatever the page */
  --ov: rgba(28, 29, 34, .9);
  --ov-line: rgba(255, 255, 255, .12);
  --ov-fg: #f1f2f5;
  --ov-muted: #a3a8b5;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --r: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
/* glossy blue, the one call to action */
.btn.blue {
  border: 0; color: #fff;
  background: radial-gradient(100% 100% at 65% 82%, rgba(255, 255, 255, .5), transparent),
              radial-gradient(115% 115% at 10% 17%, var(--blue-2), #1c38ea);
  box-shadow: 18px 18px 24px rgba(148, 172, 243, .38), inset -3px -3px 4px rgba(191, 229, 251, .4), inset 4px 4px 4px rgba(19, 26, 228, .1);
}
.btn.blue:hover { filter: brightness(1.06); background: radial-gradient(100% 100% at 65% 82%, rgba(255, 255, 255, .5), transparent), radial-gradient(115% 115% at 10% 17%, var(--blue-2), #1c38ea); }
.btn.dark { border: 0; color: #fff; background: linear-gradient(180deg, #34363c, #16171a); box-shadow: 0 10px 22px rgba(15, 17, 22, .22), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn.dark:hover { background: linear-gradient(180deg, #3d4047, #1b1c20); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.off, .btn:disabled { pointer-events: none; opacity: .5; box-shadow: none; }
.btn.danger { color: var(--bad); border-color: #f2c7c2; }
.btn.danger:hover { background: #fdf1f0; }
.btn svg { flex: none; }
.link { color: var(--fg-2); text-decoration: none; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.link:hover { color: var(--fg); }

kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface);
  font: 500 11px/1 var(--mono); color: var(--fg-2);
}

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; transition: background .25s, box-shadow .25s, color .25s; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.top.scrolled { color: var(--fg); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 19px/1 var(--sans); letter-spacing: -.02em; }
.logo { width: 24px; height: 24px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 8px; font: 500 14px var(--sans); text-decoration: none; opacity: .92; }
.nav a:hover { opacity: 1; background: rgba(127, 140, 170, .12); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang { background: none; border: 0; font: 500 13px var(--sans); cursor: pointer; padding: 8px 10px; opacity: .8; color: inherit; }
.lang:hover { opacity: 1; }
.top .acc-link { font: 500 14px var(--sans); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.top .acc-link:hover { background: rgba(127, 140, 170, .12); }
.top .btn.dl-nav { height: 38px; font-size: 14px; padding: 0 16px; border-radius: 11px; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .25s, transform .25s; }
.top.scrolled .btn.dl-nav, .top.solid .btn.dl-nav { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 880px) { .nav { display: none; } }
@media (max-width: 520px) { .top .btn.dl-nav { display: none; } .top .wrap { gap: 12px; } }

/* ---------- landing (dark): the real answer window, half-transparent over a lesson slide ---------- */
body.home { --bg: #0b0b0d; background: var(--bg); }
.home .top:not(.scrolled) { background: transparent; box-shadow: none; }
.home .top { --logo-ink: #0b0b0d; }

.hero { position: relative; padding-top: calc(120px + env(safe-area-inset-top, 0px)); text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 40% at 50% 62%, rgba(80, 120, 255, .26), transparent 70%), radial-gradient(25% 25% at 64% 58%, rgba(140, 110, 255, .14), transparent); }
.hero h1 { margin: 0; font: 600 clamp(64px, 11vw, 148px)/.92 var(--sans); letter-spacing: -.06em; }
.hero h1 b { font-weight: 600; color: var(--blue); }
.hero .lead { margin: 20px auto 0; max-width: 22em; font: 500 clamp(20px, 2.2vw, 28px)/1.3 var(--sans); letter-spacing: -.02em; color: var(--fg-2); text-wrap: balance; }
.hero-cta { margin-top: 34px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* the screen: a monitor showing a slide, the app on top */
.screen-wrap { margin: 64px auto 0; max-width: 1080px; }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; padding: 10px; background: #000; box-shadow: 0 0 0 1px #26262c, 0 50px 120px -30px rgba(60, 100, 255, .45); }
.screen .glass { position: relative; height: 100%; border-radius: 10px; overflow: hidden; container-type: inline-size; background: #f6f5f1; }
.slide { position: absolute; inset: 0; color: #17171a; text-align: left; padding: 5cqw 6cqw; }
.slide .top-row { display: flex; justify-content: space-between; font: 500 max(8px, 1.15cqw)/1 var(--sans); color: #8a8a90; letter-spacing: .02em; }
.slide h4 { margin: 3.4cqw 0 0; font: 600 max(16px, 4.6cqw)/1 var(--sans); letter-spacing: -.03em; }
.slide p { margin: 1.6cqw 0 0; max-width: 21em; font: 400 max(10px, 2.15cqw)/1.35 var(--sans); color: #3b3b40; }
.slide p i { font-family: "Cambria Math", "STIX Two Math", Georgia, serif; font-style: italic; }
.slide svg { position: absolute; left: 7cqw; bottom: 7cqw; width: 34cqw; height: auto; }
.slide .pg { position: absolute; right: 3cqw; bottom: 2.4cqw; font: 500 max(8px, 1.1cqw) var(--sans); color: #a0a0a6; }
/* the app, at the opacity you would set in "Окно ответа" */
.app { position: absolute; right: 3cqw; top: 3cqw; width: 58cqw; display: grid; gap: .6cqw; opacity: .82; filter: drop-shadow(0 1.4cqw 2.4cqw rgba(0, 0, 0, .35)); }
.app img { width: 100%; height: auto; }
@media (max-width: 640px) {
  .screen { aspect-ratio: 3 / 4; padding: 6px; border-radius: 14px; }
  .slide { padding: 6cqw; } .slide h4 { font-size: 8cqw; } .slide p { font-size: 4cqw; max-width: none; } .slide .top-row { font-size: 2.6cqw; }
  .slide svg { width: 50cqw; left: 6cqw; bottom: 30cqw; opacity: .8; }
  .app { width: 88cqw; right: 6cqw; top: auto; bottom: 6cqw; }
}

/* hero desktop: Windows 11 wallpaper, a presentation window, the app on top, the taskbar */
.screen .glass.desk { background: radial-gradient(60% 75% at 62% 78%, #cfe0ff 0%, #7fa8ff 22%, #3d6cf0 48%, transparent 70%), radial-gradient(70% 80% at 30% 100%, #5b8bff, transparent 60%), linear-gradient(160deg, #0d2a7c, #183fae 45%, #2a5be0); }
.desk .win { position: absolute; left: 6%; right: 6%; top: 5%; bottom: 11%; border-radius: .9cqw; overflow: hidden; background: #f6f5f1; box-shadow: 0 2cqw 5cqw rgba(5, 15, 60, .45); display: flex; flex-direction: column; }
.desk .wbar { flex: none; height: 3cqw; display: flex; align-items: center; gap: .8cqw; padding: 0 1.2cqw; background: #c43e1c; color: #fff; font: 500 max(8px, 1cqw)/1 var(--sans); }
.desk .wbar .pp { width: 1.6cqw; height: 1.6cqw; border-radius: .3cqw; background: #fff; color: #c43e1c; display: grid; place-items: center; font: 700 max(6px, .95cqw)/1 var(--sans); font-style: normal; }
.desk .wbar .wc { margin-left: auto; display: flex; gap: 2cqw; opacity: .9; }
.desk .slide { position: relative; inset: auto; flex: 1; }
.desk .app { left: 50%; right: auto; top: 9%; transform: translateX(-50%); width: 58cqw; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 5.2cqw; display: flex; align-items: center; justify-content: center; gap: .9cqw; background: rgba(32, 34, 44, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 255, 255, .08); }
.taskbar i { width: 2.8cqw; height: 2.8cqw; border-radius: .6cqw; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font: 700 max(6px, 1.1cqw)/1 var(--sans); font-style: normal; color: #fff; }
.taskbar i.w11 { background: none; grid-template-columns: 1fr 1fr; place-items: stretch; gap: 2px; padding: .45cqw; }
.taskbar i.w11 b { background: #5aa2ff; border-radius: 1px; }
.taskbar i.ppt { background: #c43e1c; }
.taskbar i.ee { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 19l3-6 3 6M20 19l3-6 3 6M13.5 16.5l1.25 2.5 1.25-2.5 1.25 2.5 1.25-2.5'/%3E%3C/g%3E%3C/svg%3E") center / 75% no-repeat; border-radius: 50%; }
.taskbar i.on { box-shadow: 0 .6cqw 0 -.35cqw #9cc2ff; }
.taskbar .clock { position: absolute; right: 1.4cqw; font: 500 max(7px, .95cqw)/1.3 var(--sans); color: #fff; text-align: right; }
@media (max-width: 640px) {
  .desk .win { left: 4%; right: 4%; top: 4%; bottom: 10%; }
  .desk .wbar { height: 6cqw; font-size: 2.4cqw; } .desk .wbar .pp { width: 3.4cqw; height: 3.4cqw; }
  .desk .app { width: 92cqw; top: auto; bottom: 14%; }
  .taskbar { height: 9cqw; } .taskbar i { width: 5.6cqw; height: 5.6cqw; } .taskbar .clock { font-size: 2.4cqw; }
}
/* features, as sketched: a wide card with the picture on the right, then a tall card with the picture below */
.feats { display: grid; gap: 20px; padding-top: 140px; }
.fcard { border-radius: 24px; background: #121215; box-shadow: 0 0 0 1px #202026; padding: 40px; }
.fcard h2 { margin: 0; font: 600 clamp(26px, 3vw, 40px)/1.1 var(--sans); letter-spacing: -.035em; text-wrap: balance; max-width: 16em; }
.fcard.side { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.fcard.tall .vis { margin-top: 36px; }
@media (max-width: 900px) { .fcard { padding: 24px; } .fcard.side { grid-template-columns: 1fr; gap: 24px; } .feats { padding-top: 96px; } }

/* card 1: what the screen share shows: the lesson, and only a dashed outline where the window is */
.share { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; padding: 6px; background: #000; box-shadow: 0 0 0 1px #2a2a30; }
.share .glass { position: relative; height: 100%; border-radius: 7px; overflow: hidden; background: #f6f5f1; container-type: inline-size; }
.share .slide { padding: 6cqw; }
.share .slide h4 { font-size: 7cqw; margin-top: 2cqw; } .share .slide p { font-size: 3.6cqw; }
.share .slide svg { width: 34cqw; left: 6cqw; bottom: 5cqw; }
.share .ghost { position: absolute; right: 4cqw; top: 4cqw; width: 50cqw; height: 22cqw; border-radius: 2.4cqw; border: 2px dashed #c3c3cc; display: grid; place-items: center; color: #8c8c95; font: 500 max(10px, 2.6cqw)/1.2 var(--sans); text-align: center; padding: 0 3cqw; }
.share .live { position: absolute; left: 50%; top: 2.4cqw; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 1cqw; padding: 1cqw 2cqw; border-radius: 99px; background: #e5484d; color: #fff; font: 600 max(9px, 2.2cqw)/1 var(--sans); white-space: nowrap; }
.share .live::before { content: ""; width: 1.4cqw; height: 1.4cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #fff; }

/* card 2: the shortcut that sends the screen */
.send { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 40px 0 10px; }
.cap { min-width: 96px; height: 96px; padding: 0 22px; border-radius: 22px; display: inline-grid; place-items: center; font: 600 22px var(--sans); color: #e8e8ee;
       background: linear-gradient(180deg, #24242b, #18181d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px #2e2e36, 0 7px 0 #0e0e12, 0 22px 34px rgba(0, 0, 0, .55); }
.cap.hot { color: #fff; background: linear-gradient(180deg, #7aa0ff, #3f6cf0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 7px 0 #2747b8, 0 0 50px rgba(90, 130, 255, .45); }
.send .plus { color: #4d4d57; font: 400 28px var(--sans); }
.send .arrow { color: #4d4d57; font: 400 34px var(--sans); margin: 0 6px; }
.send .to { width: min(420px, 100%); }
.send .to img { width: 100%; height: auto; opacity: .92; }
@media (max-width: 640px) { .cap { min-width: 64px; height: 64px; font-size: 16px; border-radius: 16px; padding: 0 14px; } .send .arrow { transform: rotate(90deg); } }

/* pricing */
.prices { padding-top: 140px; text-align: center; }
.prices h2, .faq-h { margin: 0; font: 600 clamp(36px, 4.4vw, 56px)/1.05 var(--sans); letter-spacing: -.04em; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 40px auto 0; text-align: left; }
.plan { position: relative; padding: 32px; border-radius: 24px; background: #121215; box-shadow: 0 0 0 1px #202026; min-height: 260px; display: flex; flex-direction: column; }
.plan.best { background: linear-gradient(160deg, rgba(107, 147, 255, .16), rgba(107, 147, 255, .04) 60%), #121215; box-shadow: 0 0 0 1px rgba(107, 147, 255, .5); }
.plan .nm { display: flex; justify-content: space-between; align-items: center; font: 600 20px var(--sans); }
.plan .badge { font: 600 13px var(--sans); color: #fff; background: var(--blue); padding: 4px 10px; border-radius: 99px; }
.plan .price { margin-top: auto; padding-top: 40px; font: 600 64px/1 var(--sans); letter-spacing: -.05em; }
.plan .price small { font: 400 17px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan .was { margin-top: 10px; color: var(--muted); font-size: 15px; min-height: 22px; }
.plan .was s { color: var(--soft); }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } .plan { min-height: 0; } }

/* faq */
.faqs { padding-top: 140px; padding-bottom: 120px; max-width: 920px; }
.faq { display: grid; gap: 12px; margin-top: 40px; }
.faq details { border-radius: 16px; background: #121215; box-shadow: 0 0 0 1px #202026; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font: 500 18px var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 24px 22px; color: var(--muted); max-width: 46em; }

/* footer */
footer { background: #0e0e10; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 36px; border-top: 1px solid var(--line); }
.foot h4 { margin: 0 0 14px; font: 600 14px var(--sans); }
.foot a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.foot a:hover { color: var(--fg); }
.foot a.brand { display: inline-flex; color: var(--fg); padding: 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* reveal on scroll, from a visible resting state */
.rv { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv:not(.in) { opacity: .001; transform: translateY(18px); }

/* ---------- auth pages (login, device) ---------- */
.auth-page { position: relative; display: grid; place-items: center; padding: calc(120px + env(safe-area-inset-top, 0px)) 20px 96px; min-height: 100vh; isolation: isolate; }
.auth-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/sky.webp) center bottom / cover no-repeat, linear-gradient(#1f6fe0, #e3f0fb); }
.auth { width: 100%; max-width: 420px; text-align: center; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 28px; padding: 40px 32px 32px; box-shadow: 0 30px 80px rgba(20, 50, 140, .25); }
.auth .logo { width: 44px; height: 44px; margin: 0 auto; }
.auth h1 { margin: 20px 0 8px; font: 500 34px/1.1 var(--serif); }
.auth .lead { margin: 0 0 28px; color: var(--muted); }
.auth .stack { display: grid; gap: 12px; }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 13px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-slot { min-height: 40px; display: grid; place-items: center; }
.fine { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.code-in { width: 100%; height: 64px; text-align: center; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--fg); font: 500 28px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.code-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.code-big { font: 600 34px/1 var(--mono); letter-spacing: .1em; }
.panel { border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); padding: 22px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; text-align: left; border: 1px solid; }
.alert.error { color: #a5281c; border-color: #f2c7c2; background: #fdf1f0; }
.alert.ok { color: #17713e; border-color: #bfe6cf; background: #eefaf3; }

/* ---------- account ---------- */
body[data-page="account"] { background: var(--bg-2); }
.acc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 96px; align-items: start; }
.acc-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.who-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 600; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.who-card .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-card .pl { font-size: 13px; color: var(--muted); }
.who-card .pl.on { color: var(--blue); }
.acc-nav { display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--fg-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.acc-nav a svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.acc-nav a:hover { background: rgba(127, 140, 170, .1); }
.acc-nav a[aria-current="page"] { color: var(--fg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(20, 30, 60, .04); }
.acc-nav a[aria-current="page"] svg { color: var(--blue); }
.acc-side .out { justify-self: start; padding-left: 12px; font-size: 14px; color: var(--muted); }
.acc-main h1 { margin: 0; font: 500 40px/1.1 var(--serif); }
.acc-main .sub-h { margin: 8px 0 0; color: var(--muted); }
.block { margin-top: 28px; }
.block > .lbl { font: 600 13px var(--sans); color: var(--muted); margin-bottom: 10px; }
.box { border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 2px 10px rgba(20, 30, 60, .03); overflow: hidden; }
.box-body { padding: 24px; }
.box-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.big { font: 500 60px/1 var(--serif); letter-spacing: -.02em; }
.big small { font: 400 15px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; font: 600 12.5px var(--sans); background: var(--surface-2); color: var(--muted); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.on { color: var(--good); background: #eaf7ef; } .state.trial { color: var(--blue); background: var(--blue-soft); } .state.off { color: var(--bad); background: #fdf1f0; }
.cells { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; margin-top: 22px; }
.cells i { height: 26px; border-radius: 6px; background: #edf0f6; }
.cells i.on { background: linear-gradient(180deg, #4f86ff, #2457ea); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--fg-2); width: 100%; }
.perks li { display: flex; gap: 10px; }
.perks svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--blue); }
.mini-plans { display: grid; grid-template-columns: 1fr 1fr; }
.mini-plans > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.mini-plans > div + div { border-left: 1px solid var(--line); background: linear-gradient(170deg, #f5f8ff, #edf2ff); }
.mini-plans .nm { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.mini-plans .nm .badge { font: 600 12px var(--sans); color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 99px; }
.mini-plans .pr { font: 500 36px/1.1 var(--serif); margin-top: 10px; }
.mini-plans .pr small { font: 400 13px var(--sans); color: var(--muted); margin-left: 4px; }
.mini-plans .btn { margin-top: 14px; align-self: flex-start; }
.empty { padding: 26px 24px; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 14px; }
.empty svg { width: 22px; height: 22px; color: var(--soft); flex: none; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font: 600 12.5px var(--sans); color: var(--muted); padding: 14px 24px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 24px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats > div { padding: 22px 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats .n { font: 500 44px/1 var(--serif); font-variant-numeric: tabular-nums; }
.stats .l { margin-top: 8px; font-size: 14px; color: var(--muted); }
.chart { padding: 24px 24px 18px; }
.bars { display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: 4px; height: 170px; background: repeating-linear-gradient(to top, transparent 0 42px, #f0f2f7 42px 43px); }
.bars .b { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bars .b i { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 2px 2px; background: #dde3ef; }
.bars .b.has i { background: #9db8f7; }
.bars .b.today i { background: linear-gradient(180deg, #4f86ff, #2457ea); }
.bars .b:hover i { background: var(--blue); }
.bars .b .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 5px 8px; border-radius: 7px; background: var(--fg); color: #fff; font: 500 12px var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; z-index: 2; }
.bars .b:hover .tip, .bars .b:focus-visible .tip { opacity: 1; }
.axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.dev { display: flex; align-items: center; gap: 16px; padding: 18px 24px; }
.dev + .dev { border-top: 1px solid var(--line); }
.dev .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); flex: none; }
.dev .ic svg { width: 20px; height: 20px; }
.dev .info { flex: 1; min-width: 0; }
.dev .info .nm { font-weight: 600; }
.dev .info .mt { font-size: 13.5px; color: var(--muted); }
.dev .online { color: var(--good); }
.idn { display: flex; align-items: center; gap: 14px; padding: 16px 24px; }
.idn + .idn { border-top: 1px solid var(--line); }
.idn .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); flex: none; }
.idn .info { flex: 1; min-width: 0; }
.idn .info .mt { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head .nm { font: 500 26px/1.1 var(--serif); }
.profile-head .em { color: var(--muted); font-size: 14px; }
.confirm { display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .acc { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .acc-side { position: static; }
  .acc-nav { display: flex; overflow-x: auto; gap: 4px; margin: 0 -24px; padding: 2px 24px; scrollbar-width: none; }
  .acc-nav a { flex: none; padding: 8px 12px; }
  .acc-side .out { display: none; }
  .perks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; } .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .bars { gap: 2px; }
  .mini-plans { grid-template-columns: 1fr; } .mini-plans > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .table th:nth-child(3), .table td:nth-child(3) { display: none; }
  .table th, .table td { padding-left: 16px; padding-right: 16px; }
}

/* ---------- privacy ---------- */
.prose { padding-top: 120px; padding-bottom: 96px; }
.prose h1 { font: 500 48px/1.1 var(--serif); margin: 0 0 28px; }
.prose p { color: var(--fg-2); max-width: 42em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv:not(.in) { opacity: 1; transform: none; }
}

/* ---------- dark inner pages (account, sign-in, device, privacy) ---------- */
body.dark {
  --bg: #141416; --bg-2: #141416; --surface: #1c1c20; --surface-2: #26262b; --line: #2a2a30; --line-2: #3a3a42;
  --fg: #ececef; --fg-2: #c4c4cb; --muted: #8f8f99; --soft: #66666f; --blue: #6b93ff; --blue-soft: rgba(107, 147, 255, .14);
  --good: #4cc488; --bad: #ff7a6b;
  --logo-ink: #141416;
  color-scheme: dark; background: var(--bg); color: var(--fg);
}
body.dark::before { background: var(--bg); }
body.dark .top, body.dark .top.scrolled { color: var(--fg); background: rgba(20, 20, 22, .86); box-shadow: 0 1px 0 var(--line); --logo-ink: #141416; }
body.dark .btn { background: var(--surface-2); border-color: var(--line-2); color: var(--fg); }
body.dark .btn:hover { background: #2f2f35; }
body.dark .btn.blue { border: 0; color: #fff; background: radial-gradient(100% 100% at 65% 82%, rgba(255, 255, 255, .35), transparent), radial-gradient(115% 115% at 10% 17%, #3f86f0, #2a4cf0); box-shadow: 0 14px 30px -8px rgba(60, 100, 255, .55), inset -3px -3px 4px rgba(191, 229, 251, .25), inset 4px 4px 4px rgba(19, 26, 228, .1); }
body.dark .btn.blue:hover { filter: brightness(1.08); }
body.dark .btn.danger { color: var(--bad); border-color: rgba(255, 122, 107, .35); background: transparent; }
body.dark .btn.danger:hover { background: rgba(255, 122, 107, .1); }
body.dark kbd { background: var(--surface-2); border-color: var(--line-2); color: var(--fg-2); }
body.dark footer.plain { background: #111113; }
body.dark .foot, body.dark .foot-bottom, body.dark footer.plain .foot { border-color: var(--line); }
body.dark .foot a { color: var(--muted); } body.dark .foot a:hover, body.dark .foot a.brand { color: var(--fg); }
body.dark .alert.error { color: #ffb4aa; border-color: rgba(255, 122, 107, .35); background: rgba(255, 122, 107, .08); }
body.dark .alert.ok { color: #9fe3bf; border-color: rgba(76, 196, 136, .35); background: rgba(76, 196, 136, .08); }

/* sign-in and device: a dark field with one soft light, the card on top */
body.dark .auth-page::before { background: radial-gradient(50% 45% at 50% 40%, rgba(80, 120, 255, .22), transparent 70%), var(--bg); }
body.dark .auth { background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .5); }
body.dark .auth .logo circle { fill: #fff; } body.dark .auth .logo g { stroke: #141416; }
body.dark .code-in { background: var(--bg); border-color: var(--line-2); color: var(--fg); }
body.dark .panel { background: var(--bg); border-color: var(--line); }

/* account, like a settings page: quiet sidebar, rows with hairlines instead of boxes */
body.dark .acc { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
body.dark .acc-main { max-width: 860px; }
body.dark .who-card { background: transparent; box-shadow: none; padding: 4px 12px 8px; }
.side-lbl { padding: 0 12px; font: 500 13px var(--sans); color: var(--muted); }
body.dark .acc-nav a { color: var(--fg-2); font-weight: 400; }
body.dark .acc-nav a svg { color: var(--fg-2); }
body.dark .acc-nav a:hover { background: rgba(255, 255, 255, .04); }
body.dark .acc-nav a[aria-current="page"] { background: var(--surface-2); box-shadow: none; color: var(--fg); font-weight: 500; }
body.dark .acc-nav a[aria-current="page"] svg { color: var(--fg); }
body.dark .acc-main h1 { font: 600 24px/1.2 var(--sans); letter-spacing: -.01em; }
body.dark .box { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
body.dark .box-foot { background: transparent; }
body.dark .bars { background: repeating-linear-gradient(to top, transparent 0 42px, #232328 42px 43px); }
body.dark .bars .b i { background: #2c2c33; } body.dark .bars .b.has i { background: #4b6cc4; }
body.dark .bars .b .tip { background: #fff; color: #111; }
body.dark .state.on { background: rgba(76, 196, 136, .12); } body.dark .state.off { background: rgba(255, 122, 107, .12); }
body.dark .avatar { background: var(--blue-soft); color: var(--blue); }

.plan-row { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 26px 24px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.plan-ic { width: 64px; height: 64px; flex: none; color: var(--fg-2); }
.plan-ic svg { width: 100%; height: 100%; }
.plan-tx { flex: 1; min-width: 0; }
.plan-tx .pt { font: 600 17px var(--sans); }
.plan-tx .ps { margin-top: 2px; color: var(--fg-2); }
.plan-tx .pn { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 10px 0 8px; max-width: 320px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.plan-row .btn { flex: none; }
@media (max-width: 640px) { .plan-row { flex-wrap: wrap; } .plan-row .btn { width: 100%; } .plan-ic { width: 48px; height: 48px; } }
.rh { margin: 40px 0 0; font: 600 17px var(--sans); }
.rnote { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 46em; }
.r { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rh + .r, .rnote + .r { margin-top: 8px; border-top: 1px solid var(--line); }
.r .rl { font-size: 15.5px; }
.r .rd { margin-top: 2px; color: var(--muted); font-size: 14px; }

/* plan picker */
.plan-dlg { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--fg); box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px rgba(0, 0, 0, .6); }
.plan-dlg::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.plan-dlg .dh { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.plan-dlg h2 { margin: 0; font: 600 20px var(--sans); }
.plan-dlg .x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.plan-dlg .x:hover { background: var(--surface-2); color: var(--fg); }
.plan-dlg .dl { margin: 6px 24px 0; color: var(--muted); font-size: 14.5px; }
.plan-dlg .opts { display: grid; gap: 10px; padding: 18px 24px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .on { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--soft); }
.opt:has(input:checked) { box-shadow: 0 0 0 1.5px var(--blue); background: var(--blue-soft); }
.opt:has(input:checked) .on { box-shadow: inset 0 0 0 5px var(--blue); }
.opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.opt .ox { flex: 1; min-width: 0; display: grid; gap: 2px; }
.opt .on2 { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.opt .badge { font: 600 11.5px var(--sans); color: #fff; background: var(--blue); padding: 2px 7px; border-radius: 99px; }
.opt .cur { font: 500 12px var(--sans); color: var(--muted); }
.opt .od { color: var(--muted); font-size: 13.5px; }
.opt .op { font: 600 20px var(--sans); white-space: nowrap; }
.opt .op small { font: 400 13px var(--sans); color: var(--muted); margin-left: 3px; }
.plan-dlg .df { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px 22px; border-top: 1px solid var(--line); }
/* ---------- monochrome: dark ground, white and grey only, no gradients, no glow ---------- */
body.dark { --bg: #0c0c0d; --surface: #141416; --surface-2: #1c1c1f; --line: #242427; --line-2: #333338; --fg: #f2f2f2; --fg-2: #bdbdc2; --muted: #85858c; --soft: #5e5e65;
  --blue: #f2f2f2; --blue-soft: rgba(255, 255, 255, .08); --good: #f2f2f2; --bad: #bdbdc2; --logo-ink: #0c0c0d; background: var(--bg); }
body.home { --bg: #0c0c0d; }
.hero::before { display: none; }
.hero h1 { font-weight: 600; letter-spacing: -.055em; }
.hero h1 b { color: #6f6f76; }
.hero .lead { color: var(--fg-2); }
body.dark .btn, body.dark .btn:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); border: 0; filter: none; }
body.dark .btn:hover { background: #242428; }
body.dark .btn.blue, body.dark .btn.blue:hover { background: #f2f2f2; color: #0c0c0d; box-shadow: none; }
body.dark .btn.blue:hover { background: #fff; }
.screen { background: #000; box-shadow: 0 0 0 1px #26262a; }
.screen .glass.desk { background: #26262a; }
.desk .wbar { background: #3a3a40; }
.desk .wbar .pp { color: #3a3a40; }
.desk .win { box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, .45); }
.taskbar { background: #18181b; border-top-color: #2a2a2f; -webkit-backdrop-filter: none; backdrop-filter: none; }
.taskbar i { background: #2c2c31; }
.taskbar i.w11 b { background: #d6d6da; }
.taskbar i.ppt { background: #4a4a50; }
.taskbar i.on { box-shadow: 0 .6cqw 0 -.35cqw #d6d6da; }
.fcard, .plan, .faq details { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cap { background: #1c1c20; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px #2e2e34, 0 7px 0 #09090a, 0 18px 30px rgba(0, 0, 0, .5); }
.cap.hot { background: #f2f2f2; color: #0c0c0d; box-shadow: 0 0 0 1px #f2f2f2, 0 7px 0 #8d8d93, 0 18px 30px rgba(0, 0, 0, .5); }
.plan.best { background: var(--surface); box-shadow: 0 0 0 1px #6a6a71; }
.plan .badge, .opt .badge, .mini-plans .nm .badge { background: #f2f2f2; color: #0c0c0d; }
.share .live { background: #2a2a2e; color: #f2f2f2; }
.share .live::before { background: #f2f2f2; }
body.dark .auth-page::before { background: var(--bg); }
body.dark .bars .b.has i { background: #6f6f76; }
body.dark .bars .b.today i, body.dark .meter i { background: #f2f2f2; }
body.dark .state.on, body.dark .state.trial, body.dark .state.off { color: var(--fg); background: rgba(255, 255, 255, .08); }
body.dark .who-card .pl.on { color: var(--fg-2); }
.top .acc-link.btn { height: 34px; padding: 0 16px; font-size: 14px; }/* the lesson's heading sits below the app window, so the window reads as on top of it */
.desk .slide h4 { margin-top: 17cqw; }
@media (max-width: 640px) { .desk .slide h4 { margin-top: 3cqw; } }
.desk .slide svg { left: auto; right: 7cqw; bottom: 5cqw; width: 30cqw; }
@media (max-width: 640px) { .desk .slide svg { right: 6cqw; bottom: 34cqw; width: 44cqw; } }

/* header link to /admin, shown to admins only */
.top .adm-link { color: var(--muted); text-decoration: none; font-size: 14px; margin-right: 8px; }
.top .adm-link:hover { color: var(--fg); }

/* language switch in the header */
.lang-sw { height: 34px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-2, #a0a0a6);
  font: 500 13px var(--mono, monospace); letter-spacing: .04em; cursor: pointer; }
.lang-sw:hover { color: var(--fg, #f2f2f2); background: rgba(255, 255, 255, .06); }
/* account on narrow screens: one column in the dark theme too (its two-column rule above wins otherwise) */
@media (max-width: 900px) { body.dark .acc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; } }

/* sign-in: one card, buttons on the left, the sleeping mascot and what you get on the right */
body.dark .auth-page { padding: calc(110px + env(safe-area-inset-top, 0px)) 20px 72px; min-height: 100vh; }
body.dark .auth-page::before { background: radial-gradient(40% 40% at 50% 45%, rgba(98, 130, 255, .12), transparent 70%), var(--bg); }
.auth2 { width: min(100%, 880px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: 28px; overflow: hidden;
  background: #141416; box-shadow: 0 0 0 1px #242427, 0 40px 100px rgba(0, 0, 0, .6); text-align: left; }
.auth-main { padding: 52px 48px 48px; display: grid; align-content: center; }
.auth-main h1 { margin: 0; font: 600 clamp(30px, 3.4vw, 40px)/1.05 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.auth-main .lead { margin: 12px 0 30px; color: var(--muted); font-size: 16px; max-width: 26em; }
.auth-main .stack { display: grid; gap: 10px; }
.auth-main #msg { margin-bottom: 14px; }
body.dark .g-btn, body.dark .g-btn:hover { background: #f2f2f2; color: #0c0c0d; box-shadow: none; gap: 10px; }
body.dark .g-btn:hover { background: #fff; }
body.dark .g-btn.off { background: var(--surface-2); color: var(--muted); pointer-events: none; }
body.dark .tg-btn { gap: 10px; }
.tg-btn .ico { display: inline-grid; }
.auth-main .tg-slot { min-height: 50px; display: block; }
.auth-side { position: relative; padding: 52px 44px; display: grid; align-content: center; gap: 22px; background: #18181b; border-left: 1px solid #242427; isolation: isolate; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.cat-mini { position: relative; width: max-content; padding: 22px 26px; border-radius: 22px; background: #202023; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 0 #0b0b0c, 0 20px 40px rgba(0, 0, 0, .4); }
.cat-mini span { font: 700 34px/1 var(--mono); color: var(--fg); white-space: nowrap; letter-spacing: -.02em; display: block; animation: catBreathe 4s ease-in-out infinite; }
.cat-mini em { position: absolute; right: 10px; top: 12px; font: 700 14px/1 var(--mono); font-style: normal; color: var(--muted); opacity: 0; animation: catZ 3.6s ease-in-out infinite; }
.cat-mini em:nth-of-type(2) { animation-delay: 1.2s; } .cat-mini em:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes catZ { 0% { opacity: 0; transform: translate(0, 8px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(22px, -30px) scale(1.15); } }
@keyframes catBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04) translateY(1px); } }
.side-h { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.lperks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--fg-2); }
.lperks li { display: flex; gap: 10px; align-items: flex-start; }
.lperks li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%;
  background: rgba(76, 196, 136, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2L11.5 5.7' fill='none' stroke='%234cc488' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
@media (max-width: 760px) {
  body.dark .auth-page { padding-top: calc(92px + env(safe-area-inset-top, 0px)); place-items: start center; }
  .auth2 { grid-template-columns: 1fr; border-radius: 24px; }
  .auth-main { padding: 32px 22px 28px; }
  .auth-side { padding: 26px 22px 30px; border-left: 0; border-top: 1px solid #242427; gap: 16px; }
  .cat-mini { padding: 16px 20px; } .cat-mini span { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .cat-mini span, .cat-mini em { animation: none; } .cat-mini em { opacity: .6; } }
/* account: the site font everywhere (no serif), numbers a bit tighter */
body.dark { --serif: "Geist", "Segoe UI", system-ui, sans-serif; }
body.dark .acc-main h1 { font-weight: 600; letter-spacing: -.03em; }
body.dark .stats .n, body.dark .big, body.dark .mini-plans .pr { font-weight: 600; letter-spacing: -.04em; }
body.dark .profile-head .nm { font-weight: 600; letter-spacing: -.02em; }

/* privacy policy and terms of use */
.doc { padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 96px; max-width: 760px; }
.doc h1 { margin: 0; font: 600 clamp(32px, 4.4vw, 48px)/1.08 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.doc .doc-date { margin: 10px 0 36px; color: var(--muted); font-size: 15px; }
.doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.doc h2 { margin: 0 0 12px; font: 600 19px/1.3 var(--sans); letter-spacing: -.01em; }
.doc p, .doc li { color: var(--fg-2); line-height: 1.6; }
.doc p { margin: 0; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc a, .fine a, .plans-legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.doc a:hover, .fine a:hover, .plans-legal a:hover { text-decoration-color: currentColor; }
.auth-main .fine { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.plans-legal { margin: 10px 0 0; text-align: center; }
.foot-bottom a { color: inherit; text-decoration: none; } .foot-bottom a:hover { color: var(--fg); }
.review-word { opacity: .7; }

/* temporary review sign-in under the buttons */
.review-box { margin-top: 16px; }
.review-box summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.review-box summary::-webkit-details-marker { display: none; }
.review-box summary:hover { color: var(--fg); }
.review-form { display: grid; gap: 10px; margin-top: 12px; }
.review-form input { height: 46px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2); font: 400 15px var(--sans); }
.review-form input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--fg-2); }
