/* Public pages (body.site-public). Cabinet, docs and staff do not load this file.
   Tokens, type scale and sections: docs/dev/public-redesign.md. */

body.site-public {
  --pub-bg: #ffffff;
  --pub-tile: #f3f5f4;
  --pub-night: var(--gals-color-night);
  --pub-ink: #14201b;
  --pub-muted: #5c6b64;
  --pub-on-night: var(--gals-color-on-night);
  --pub-on-night-muted: #9fb5ae;
  --pub-accent: var(--landing-accent-ink);
  --pub-accent-night: var(--gals-color-accent-bright);
  --pub-hairline: rgba(20, 32, 27, 0.10);
  --pub-hairline-width: 1px;
  --pub-radius-tile: 28px;
  --pub-radius-pill: 999px;
  --gals-font-body: Inter, "Inter Fallback", var(--gals-font-sans);
  --gals-font-display: Inter, "Inter Fallback", var(--gals-font-sans);

  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: 17px;
  line-height: 1.5;
  background: var(--pub-bg);
  color: var(--pub-ink);
  font-optical-sizing: auto;
}

@media (max-width: 860px) {
  body.site-public { --pub-radius-tile: 22px; }
}

@media (min-resolution: 2dppx) {
  body.site-public { --pub-hairline-width: 0.5px; }
}

body.site-public h1,
body.site-public h2,
body.site-public h3,
body.site-public h4 {
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}

body.site-public p {
  text-wrap: pretty;
  hyphens: manual;
  overflow-wrap: break-word;
}

body.site-public:lang(ja) h1,
body.site-public:lang(ja) h2,
body.site-public:lang(ja) h3,
body.site-public:lang(ja) h4,
body.site-public:lang(zh-hans) h1,
body.site-public:lang(zh-hans) h2,
body.site-public:lang(zh-hans) h3,
body.site-public:lang(zh-hans) h4,
body.site-public:lang(ko) h1,
body.site-public:lang(ko) h2,
body.site-public:lang(ko) h3,
body.site-public:lang(ko) h4,
body.site-public:lang(hi) h1,
body.site-public:lang(hi) h2,
body.site-public:lang(hi) h3,
body.site-public:lang(hi) h4 {
  letter-spacing: 0;
  line-height: 1.15;
}

html:has(body.site-public) { scroll-behavior: smooth; }

body.site-public ::selection { background: var(--landing-accent-soft); }

body.site-public :focus-visible {
  outline: 2px solid var(--pub-accent);
  outline-offset: 2px;
}

body.site-public .landing-wrap {
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1024px) {
  body.site-public .landing-wrap { padding-left: 40px; padding-right: 40px; }
}

body.site-public .landing-logo-text {
  font-family: "Literata Logo", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Header. Light unless JS has seen the night first screen (js-nav, not yet scrolled). */
body.site-public .landing-site {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: var(--pub-hairline-width) solid var(--pub-hairline);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 200ms, color 200ms, border-color 200ms;
}

body.site-public .landing-site-inner { height: 52px; }

body.site-public section[id] { scroll-margin-top: 52px; }

html.js-nav body.site-public .landing-site:not(.is-scrolled) {
  background: rgba(3, 17, 14, 0.55);
  color: var(--pub-on-night);
  border-bottom-color: transparent;
}

html.js-nav body.site-public .landing-site:not(.is-scrolled) .landing-logo,
html.js-nav body.site-public .landing-site:not(.is-scrolled) .landing-docs-link {
  color: var(--pub-on-night);
}

html.js-nav body.site-public .landing-site:not(.is-scrolled) .lang-picker--landing .lang-picker__trigger {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--pub-on-night);
}

body.site-public .landing-nav-cta {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--pub-radius-pill);
  background: var(--pub-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

html.js-nav body.site-public .landing-site.is-scrolled .landing-nav-cta {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 400px) {
  /* «Начать бесплатно» does not fit between the wordmark and the menu at 360px. */
  body.site-public .landing-nav-cta { display: none; }
}

/* First screen: night, type in the middle, the tree under the type. */
body.site-public .landing-hero {
  background: var(--pub-night);
  color: var(--pub-on-night);
  min-height: calc(min(100svh, 1000px) - 52px);
  padding: 28px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  border: 0;
}

body.site-public .landing-hero::before { content: none; }

body.site-public .landing-hero-copy {
  width: min(980px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(28px, 6vh, 72px);
}

body.site-public .landing-hero h1 {
  margin: 22px 0 0;
  max-width: 16ch;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--pub-on-night);
}

body.site-public .landing-hero .landing-lead,
body.site-public .landing-hero .landing-answer {
  margin: 20px auto 0;
  max-width: 36rem;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.4;
  color: var(--pub-on-night-muted);
}

body.site-public .landing-hero .landing-cta-row {
  justify-content: center;
  margin-top: 28px;
}

body.site-public .landing-hero .landing-btn-primary {
  height: 52px;
  padding: 0 26px;
  border-radius: var(--pub-radius-pill);
  background: var(--pub-accent-night);
  color: var(--pub-night);
  font-size: 17px;
  font-weight: 600;
  border: 0;
}

body.site-public .landing-hero .landing-link-secondary {
  color: var(--pub-accent-night);
}

body.site-public .landing-hero .landing-trust {
  color: var(--pub-on-night-muted);
  font-size: 14px;
  line-height: 1.45;
  justify-content: center;
}

body.site-public .landing-hero :focus-visible { outline-color: var(--pub-accent-night); }

body.site-public .landing-hero {
  position: relative;
}

body.site-public .landing-hero-copy { position: relative; z-index: 1; }

/* The tree sits under the type and is fully in the page: the hero grows with it.
   The band drawing leaves empty sky above the crown; the negative margin hides that sky.
   The copy stays above the branches. */
body.site-public .landing-hero-tree {
  position: relative;
  z-index: 0;
  width: min(640px, 72vw);
  aspect-ratio: 1.033 / 1;
  margin: -120px auto 48px;
  pointer-events: none;
}

body.site-public .landing-hero-tree::before {
  content: "";
  position: absolute;
  inset: 8% 0 0;
  background: radial-gradient(ellipse at 50% 42%, var(--gals-color-night-glow), transparent 68%);
  z-index: 0;
}

body.site-public .landing-hero-tree svg { position: relative; z-index: 1; }

@media (max-width: 860px) {
  body.site-public .landing-hero { height: auto; min-height: 88svh; }
  body.site-public .landing-hero-tree { width: min(420px, 88vw); margin-top: -72px; }
  body.site-public .landing-hero .landing-cta-row { flex-direction: column; align-items: stretch; width: min(100%, 22rem); }
  body.site-public .landing-hero .landing-btn-primary { width: 100%; justify-content: center; }
  body.site-public .landing-hero .landing-link-secondary { justify-content: center; }
}

/* Day hero: the tutor page has no tree, so it stays on white. */
body.site-public .landing-hero--day {
  background: var(--pub-bg);
  color: var(--pub-ink);
  min-height: 0;
  padding: clamp(96px, 12vw, 168px) 0;
  overflow: visible;
}

body.site-public .landing-hero--day h1 {
  color: var(--pub-ink);
  font-size: clamp(44px, 6.4vw, 80px);
}

body.site-public .landing-hero--day .landing-answer,
body.site-public .landing-hero--day .landing-lead {
  color: var(--pub-muted);
}

body.site-public .landing-hero--day .landing-btn-primary {
  background: var(--pub-accent);
  color: #fff;
}

body.site-public .landing-hero--day :focus-visible { outline-color: var(--pub-accent); }

/* Segmented switch. Markup stays: links with aria-current, or role=tab.
   How-tabs stay hidden until landing-how.js adds is-ready; without JS the slides scroll. */
body.site-public .landing-audience,
body.site-public .landing-how-tabs {
  align-items: center;
  gap: 0;
  max-width: 100%;
  padding: 4px;
  border: 0;
  border-radius: var(--pub-radius-pill);
  background: rgba(20, 32, 27, 0.06);
  position: relative;
}

body.site-public .landing-audience {
  display: inline-flex;
  margin: 0;
}

body.site-public .landing-how-tabs {
  display: none;
  width: max-content;
  margin: 28px auto 0;
  overflow-x: auto;
}

body.site-public .landing-how.is-ready .landing-how-tabs {
  display: inline-flex;
}

body.site-public .landing-hero .landing-audience {
  background: rgba(255, 255, 255, 0.10);
}

body.site-public .landing-audience-option,
body.site-public .landing-how-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--pub-radius-pill);
  background: transparent;
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  color: var(--pub-muted);
  text-decoration: none;
  cursor: pointer;
}

body.site-public .landing-audience-option::after,
body.site-public .landing-how-tab::after { content: none; }

body.site-public .landing-hero .landing-audience-option { color: var(--pub-on-night-muted); }

body.site-public .landing-audience-option[aria-current="page"],
body.site-public .landing-how-tab[aria-selected="true"] {
  background: #fff;
  color: var(--pub-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.site-public .landing-hero .landing-audience-option[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: var(--pub-on-night);
}

body.site-public .landing-how.is-ready .landing-how-tab[aria-selected="true"] {
  background: transparent;
  box-shadow: none;
  color: var(--pub-ink);
}

body.site-public .landing-seg-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: var(--pub-radius-pill);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 250ms ease, width 250ms ease;
  pointer-events: none;
}

/* Buttons */
body.site-public .landing-btn {
  border-radius: var(--pub-radius-pill);
  font-family: inherit;
}

body.site-public .landing-btn:active { transform: scale(0.98); }

@media (hover: hover) {
  body.site-public .landing-hero .landing-btn-primary:hover { filter: brightness(1.05); }
  body.site-public .landing-btn-quiet:hover {
    background: var(--landing-accent-soft);
    color: var(--pub-accent);
  }
}

body.site-public .landing-btn-quiet {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--pub-radius-pill);
  border: 1.5px solid var(--pub-accent);
  background: transparent;
  color: var(--pub-accent);
  font-weight: 600;
}

/* Three offers */
body.site-public .landing-offers {
  background: var(--pub-bg);
  border: 0;
  padding: clamp(96px, 12vw, 168px) 0;
}

body.site-public .landing-offers .landing-steps-grid {
  align-items: stretch;
}

body.site-public .landing-offer {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--pub-tile);
  border: 0;
  border-radius: var(--pub-radius-tile);
  box-shadow: none;
}

body.site-public .landing-offer .landing-step-ico {
  width: 40px;
  height: 40px;
  margin: 0 0 20px;
  color: var(--pub-accent);
  background: transparent;
  border-radius: 0;
}

body.site-public .landing-offer h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

body.site-public .landing-offer p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pub-muted);
}

body.site-public .landing-offer .landing-btn {
  margin-top: 32px;
  align-self: flex-start;
}

/* Aristotle band: type only. The tree lives on the first screen. */
body.site-public .landing-tree-band {
  background: var(--pub-bg);
  color: var(--pub-ink);
  text-align: center;
  padding: clamp(96px, 12vw, 168px) 0;
  overflow: visible;
}

body.site-public .landing-tree-band .landing-wrap { max-width: 980px; }

body.site-public .landing-tree-band h2 {
  margin: 0 auto;
  max-width: 14em;
  color: var(--pub-ink);
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.site-public .landing-tree-band p {
  margin: 20px auto 0;
  max-width: 36rem;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.4;
  color: var(--pub-muted);
}

body.site-public .landing-tree-band-video {
  height: 48px;
  margin-top: 32px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--pub-radius-pill);
  background: var(--pub-night);
  color: var(--pub-on-night);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
}

@media (hover: hover) {
  body.site-public .landing-tree-band-video:hover { background: #0a2420; color: var(--pub-on-night); }
}

/* How it works */
body.site-public .landing-how {
  background: var(--pub-tile);
  border: 0;
  padding: clamp(96px, 12vw, 168px) 0;
  text-align: center;
}

body.site-public .landing-how .landing-wrap { max-width: 1200px; }

body.site-public .landing-how h2,
body.site-public .landing-steps-head h2 {
  margin: 0 auto;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
}

body.site-public .landing-how .landing-steps-grid {
  margin-top: 48px;
  text-align: left;
  gap: 0;
  counter-reset: how-step;
}

body.site-public .landing-how .landing-step {
  margin: 0;
  padding: 28px 28px 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: var(--pub-hairline-width) solid var(--pub-hairline);
  box-shadow: none;
}

body.site-public .landing-how .landing-step::before {
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pub-accent);
}

body.site-public .landing-how .landing-step h4 {
  margin: 8px 0 0;
  font-size: clamp(21px, 1.6vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.site-public .landing-how .landing-step p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pub-muted);
}

@media (min-width: 1280px) {
  body.site-public .landing-how .landing-steps-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body.site-public .landing-how .landing-steps-grid:has(> :nth-child(5):last-child) > :nth-child(n) {
    grid-column: auto;
  }
}

/* Parent relief */
body.site-public .landing-pains {
  background: var(--pub-bg);
  border: 0;
  padding: clamp(96px, 12vw, 168px) 0;
}

body.site-public .landing-pains .landing-wrap { max-width: 980px; }

body.site-public .landing-pains-head { text-align: center; }

body.site-public .landing-pains-head h2 {
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
}

body.site-public .landing-pains-head p {
  margin: 16px auto 0;
  max-width: 36rem;
  font-size: clamp(19px, 1.6vw, 24px);
  color: var(--pub-muted);
}

body.site-public .landing-pains-cards {
  margin-top: 48px;
  gap: 0;
}

body.site-public .landing-pain-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 8px 28px;
}

body.site-public .landing-pain-q {
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pub-ink);
}

body.site-public .landing-pain-a {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pub-muted);
}

@media (min-width: 900px) {
  body.site-public .landing-pains-cards:has(> :nth-child(3):last-child) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
  body.site-public .landing-pains-cards:has(> :nth-child(3):last-child) .landing-pain-card + .landing-pain-card {
    border-left: var(--pub-hairline-width) solid var(--pub-hairline);
  }
}

/* Prices */
body.site-public .landing-pricing {
  background: var(--pub-tile);
  border: 0;
  padding: clamp(96px, 12vw, 168px) 0;
}

body.site-public .landing-pricing-head h2 {
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
}

body.site-public .landing-pricing-ladder {
  max-width: 1200px;
  gap: 0;
  background: #fff;
  border-radius: var(--pub-radius-tile);
  overflow: hidden;
}

body.site-public .landing-pricing-tier {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 48px 28px;
  border-left: var(--pub-hairline-width) solid var(--pub-hairline);
}

body.site-public .landing-pricing-tier:first-child { border-left: 0; }

body.site-public .landing-pricing-plan {
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pub-accent);
}

body.site-public .landing-pricing-amount {
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

body.site-public .landing-pricing-amount span,
body.site-public .landing-pricing-amount .landing-pricing-currency {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--pub-muted);
  vertical-align: baseline;
  letter-spacing: 0;
}

body.site-public .landing-pricing-detail {
  font-size: 17px;
  color: var(--pub-ink);
}

body.site-public .landing-pricing-tag {
  font-size: 13px;
  color: var(--pub-muted);
}

body.site-public .landing-pricing-usd-note {
  font-size: 14px;
  color: var(--pub-muted);
}

body.site-public .landing-pricing .landing-btn-primary {
  height: 52px;
  padding: 0 26px;
  border-radius: var(--pub-radius-pill);
  background: var(--pub-accent);
  color: #fff;
  border: 0;
  font-size: 17px;
  font-weight: 600;
}

@media (max-width: 800px) {
  body.site-public .landing-pricing-ladder { grid-template-columns: 1fr; }
  body.site-public .landing-pricing-tier {
    border-left: 0;
    border-top: var(--pub-hairline-width) solid var(--pub-hairline);
  }
  body.site-public .landing-pricing-tier:first-child { border-top: 0; }
}

/* Footer */
body.site-public .landing-site-footer {
  background: var(--pub-bg);
  border-top: var(--pub-hairline-width) solid var(--pub-hairline);
}

body.site-public .landing-site-footer a,
body.site-public .landing-foot-inner {
  font-size: 13px;
  color: var(--pub-muted);
}

@media (hover: hover) {
  body.site-public .landing-site-footer a:hover { color: var(--pub-ink); }
}

/* Tutor page: comparison and the five steps, same materials as the main page. */
body.site-public .landing-steps:has(.landing-compare-sheet),
body.site-public .landing-steps:has(.landing-steps-grid):not(.landing-how):not(.landing-offers) {
  background: var(--pub-tile);
}

body.site-public .landing-steps:has(.landing-compare-sheet) h2,
body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-steps-head h2 {
  text-align: center;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.08;
}

body.site-public .landing-compare-sheet {
  margin-top: 36px;
  background: #fff;
  border-radius: var(--pub-radius-tile);
  overflow: hidden;
}

body.site-public .landing-compare {
  width: 100%;
  border-collapse: collapse;
}

body.site-public .landing-compare th,
body.site-public .landing-compare td {
  padding: 20px 24px;
  border-bottom: var(--pub-hairline-width) solid var(--pub-hairline);
  text-align: left;
  font-size: 17px;
  font-weight: 400;
}

body.site-public .landing-compare thead th { font-weight: 600; }

body.site-public .landing-compare tr:last-child th,
body.site-public .landing-compare tr:last-child td { border-bottom: 0; }

body.site-public .landing-steps:not(.landing-how):not(.landing-offers) {
  padding: clamp(96px, 12vw, 168px) 0;
}

body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-step {
  background: transparent;
  border: 0;
  border-top: var(--pub-hairline-width) solid var(--pub-hairline);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 8px 8px;
}

body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-step h3 {
  font-size: clamp(21px, 1.6vw, 24px);
  letter-spacing: -0.01em;
}

body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-step p {
  font-size: 17px;
  color: var(--pub-muted);
}

body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-steps-grid {
  margin-top: 48px;
  gap: 0;
  counter-reset: how-step;
}

body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-step {
  counter-increment: how-step;
}

body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-step::before {
  content: counter(how-step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pub-accent);
}

@media (min-width: 1280px) {
  body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-steps-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body.site-public .landing-steps:not(.landing-how):not(.landing-offers) .landing-steps-grid:has(> :nth-child(5):last-child) > :nth-child(n) {
    grid-column: auto;
  }
}

body.site-public .landing-pains .landing-cta-row { justify-content: center; margin-top: 40px; }

body.site-public .landing-pains .landing-btn-primary {
  height: 52px;
  padding: 0 26px;
  border-radius: var(--pub-radius-pill);
  background: var(--pub-accent);
  color: #fff;
  border: 0;
}

/* «С чего начнём?» while the person has no profile yet: the landing's frame. */
body.site-public .start {
  padding: clamp(72px, 10vw, 120px) 0 clamp(96px, 12vw, 160px);
}

body.site-public .start-head {
  align-items: center;
  text-align: center;
  gap: 28px;
  margin-bottom: 48px;
}

body.site-public .start-head h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.site-public .start-grid { gap: 22px; }

body.site-public .start-card:hover,
body.site-public .start-card:focus-within,
body.site-public .start-card--first {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

body.site-public .start .landing-btn-primary {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--pub-radius-pill);
  background: var(--pub-accent);
  color: #fff;
  border: 0;
  box-shadow: none;
}

body.site-public .start .landing-btn-primary:hover {
  background: var(--pub-accent);
  transform: none;
  color: #fff;
}

body.site-public .start-card .landing-btn::after {
  border-radius: var(--pub-radius-tile);
}

/* Sign-in is its own night screen, the same night as the first screen.
   The landing stays in the page for the script, and is not shown behind the form:
   a white card was cutting the headline. */

body.site-public .auth-overlay__scrim {
  background: transparent;
  backdrop-filter: none;
}

body.site-public .auth-overlay__stage { width: min(100%, 480px); }

body.site-public .auth-overlay__panel {
  background: #fff;
  border: 1px solid var(--pub-hairline);
  border-radius: 28px;
  padding: 36px 32px 28px;
}

body.site-public .auth-overlay__close {
  top: 14px;
  right: 14px;
  color: var(--pub-muted);
  background: transparent;
}

body.site-public .auth-overlay__close:hover {
  color: var(--pub-ink);
  background: transparent;
}

body.site-public .auth-overlay .auth-card {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.site-public .auth-card {
  border-radius: 28px;
  border-color: var(--pub-hairline);
  box-shadow: none;
}

body.site-public .auth-card h1 {
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: -0.02em;
}

body.site-public .auth-card .landing-eyebrow {
  font-family: Inter, "Inter Fallback", var(--gals-font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pub-accent);
}

body.site-public .auth-card label {
  font-size: 14px;
  font-weight: 500;
  color: var(--pub-ink);
}

body.site-public .auth-card .input {
  height: 48px;
  border-radius: 12px;
  border-color: var(--pub-hairline);
  font-family: inherit;
  font-size: 17px;
}

body.site-public .auth-card .auth-submit,
body.site-public .auth-card .landing-btn-primary {
  height: 52px;
  border-radius: var(--pub-radius-pill);
  background: var(--pub-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

body.site-public .auth-card--student .auth-submit,
body.site-public .auth-card--student .auth-submit:hover,
body.site-public .auth-card--student .auth-submit:disabled:hover {
  background: var(--pub-accent);
  color: #fff;
}

body.site-public .auth-card--student .auth-submit:focus-visible {
  outline-color: var(--pub-accent);
}

body.site-public .auth-overlay .auth-alt-role a,
body.site-public .auth-overlay .auth-support-note,
body.site-public .auth-overlay .auth-support-note a {
  color: var(--pub-muted);
  text-shadow: none;
}

body.auth-page.site-public {
  background: var(--pub-night);
  color: var(--pub-on-night);
}

body.auth-page.site-public .landing-site {
  background: rgba(3, 17, 14, 0.55);
  color: var(--pub-on-night);
  border-bottom-color: transparent;
}

body.auth-page.site-public .landing-logo,
body.auth-page.site-public .landing-docs-link,
body.auth-page.site-public .lang-picker--landing .lang-picker__trigger {
  color: var(--pub-on-night);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

body.auth-page.site-public .auth-backdrop { display: none; }

body.auth-page.site-public .auth-overlay__panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 48px 0 0;
  color: var(--pub-on-night);
  text-align: center;
}

body.auth-page.site-public .auth-overlay__close {
  color: var(--pub-on-night-muted);
}

body.auth-page.site-public .auth-overlay__close:hover { color: var(--pub-on-night); }

body.auth-page.site-public .auth-card h1 {
  color: var(--pub-on-night);
  font-size: clamp(40px, 5vw, 56px);
}

body.auth-page.site-public .auth-card .landing-eyebrow,
body.auth-page.site-public .auth-card .auth-lead,
body.auth-page.site-public .auth-card .auth-hint,
body.auth-page.site-public .auth-card label,
body.auth-page.site-public .auth-switch,
body.auth-page.site-public .auth-legal,
body.auth-page.site-public .auth-overlay .auth-alt-role a,
body.auth-page.site-public .auth-overlay .auth-support-note,
body.auth-page.site-public .auth-overlay .auth-support-note a {
  color: var(--pub-on-night-muted);
}

body.auth-page.site-public .auth-field { text-align: left; }

body.auth-page.site-public .auth-card .input {
  background: transparent;
  color: var(--pub-on-night);
  border-color: rgba(238, 251, 247, 0.28);
}

body.auth-page.site-public .auth-card .input::placeholder { color: var(--pub-on-night-muted); }

body.auth-page.site-public .auth-card .input:focus {
  border-color: var(--pub-accent-night);
  box-shadow: none;
  outline: none;
}

body.auth-page.site-public .auth-card .input:-webkit-autofill {
  -webkit-text-fill-color: var(--pub-on-night);
  caret-color: var(--pub-on-night);
  box-shadow: 0 0 0 1000px var(--pub-night) inset;
}

body.auth-page.site-public .password-field__toggle { color: var(--pub-on-night-muted); }

body.auth-page.site-public .password-field__toggle:hover {
  color: var(--pub-on-night);
  background: transparent;
}

body.auth-page.site-public .auth-card .auth-submit,
body.auth-page.site-public .auth-card--student .auth-submit,
body.auth-page.site-public .auth-card--student .auth-submit:hover,
body.auth-page.site-public .auth-card--student .auth-submit:disabled:hover {
  background: var(--pub-accent-night);
  color: var(--pub-night);
}

body.auth-page.site-public .auth-forgot,
body.auth-page.site-public .auth-switch a,
body.auth-page.site-public .auth-legal a,
body.auth-page.site-public .auth-overlay .auth-support-note a,
body.auth-page.site-public .auth-overlay .auth-alt-role a {
  color: var(--pub-accent-night);
}

/* Reveal. The class js-reveal is set only when motion is allowed. */
html.js-reveal body.site-public [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.25, 0.1, 0.25, 1), transform 700ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

html.js-reveal body.site-public [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

html.js-reveal body.site-public [data-reveal]:nth-child(2) { transition-delay: 80ms; }
html.js-reveal body.site-public [data-reveal]:nth-child(3) { transition-delay: 160ms; }
html.js-reveal body.site-public [data-reveal]:nth-child(4) { transition-delay: 240ms; }
html.js-reveal body.site-public [data-reveal]:nth-child(5) { transition-delay: 320ms; }

body.site-public:lang(ja) h1,
body.site-public:lang(ja) h2,
body.site-public:lang(ja) h3,
body.site-public:lang(ja) h4,
body.site-public:lang(zh-hans) h1,
body.site-public:lang(zh-hans) h2,
body.site-public:lang(zh-hans) h3,
body.site-public:lang(zh-hans) h4,
body.site-public:lang(ko) h1,
body.site-public:lang(ko) h2,
body.site-public:lang(ko) h3,
body.site-public:lang(ko) h4,
body.site-public:lang(hi) h1,
body.site-public:lang(hi) h2,
body.site-public:lang(hi) h3,
body.site-public:lang(hi) h4 {
  letter-spacing: 0;
  line-height: 1.15;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.site-public) { scroll-behavior: auto; }
  body.site-public .landing-site,
  body.site-public .landing-btn,
  body.site-public .landing-seg-pill,
  html.js-reveal body.site-public [data-reveal] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
