/* Stagelight "Glass": the look grown from the footer's link box. Loaded after style.css.
   Used by every page, loaded after style.css: the public pages, the host pages (setup, studio,
   emails, admin) and the class page.

   Five parts make up every screen:
   1. Page: warm grey (day) or near black (night), never pure white.
   2. Photo panel: a large rounded picture with a gutter around it (.photo-panel, --photo).
   3. Glass: a frosted frame that blurs whatever lies behind it (.glass).
   4. Well: a sunken panel inside the glass for text, fields and screenshots (.well).
   5. Raised button: the one light, lifted button for the main action (.raised, button.primary).
   Orange stays the accent (arrows, ticks, eyebrows), yellow the logo's light. */

/* Headings: Fraunces (Google Fonts, SIL Open Font License), self-hosted like Switzer. One variable
   file per character set, weights 500–700, its "soft" (rounded) style built in; the optical size
   follows the font size by itself, so big headlines get finer detail than small ones. */
@font-face { font-family: 'Fraunces'; font-weight: 500 700; font-display: swap; src: url('fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-weight: 500 700; font-display: swap; src: url('fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --font-display: 'Fraunces', Georgia, 'Times New Roman', serif; }
/* Fraunces at 600 has the weight Zodiak had at 700. */
h1, h2, .scard-title, .rail-card h3, .count strong, .number-grid strong, .t-video h3, .t-cta h3, .become-done h3, .now-body h2 { font-weight: 600; }
.hero-panel .hero h1 { letter-spacing: -0.025em; }

:root {
  --bg: #d9d6d2;
  --bg-light: #e6e3df;
  --surface: rgb(255 255 255 / 0.42);
  --field: rgb(255 255 255 / 0.5);
  --field-border: rgb(0 0 0 / 0.1);
  --text: #1b1a18;
  --muted: #5b5651;
  --border: rgb(0 0 0 / 0.09);
  --glass: rgb(244 242 239 / 0.48);
  --glass-solid: rgb(238 236 233 / 0.84);
  --glass-edge: rgb(255 255 255 / 0.72);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.75), 0 30px 60px -30px rgb(60 45 30 / 0.38), 0 8px 20px -14px rgb(60 45 30 / 0.25);
  --well: rgb(0 0 0 / 0.045);
  --well-shadow: inset 0 2px 5px rgb(0 0 0 / 0.08), inset 0 0 0 1px rgb(0 0 0 / 0.04);
  --raised: linear-gradient(180deg, #ffffff, #ebe8e4);
  --raised-text: #1a1a1a;
  --raised-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.2), 0 10px 22px -10px rgb(0 0 0 / 0.5);
  --raised-shadow-hover: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.08), 0 2px 3px rgb(0 0 0 / 0.22), 0 16px 30px -12px rgb(0 0 0 / 0.55);
  --frost: blur(22px) saturate(1.35);
  --photo-dim: 1;
  --r-panel: 28px;
  --r-frame: 22px;
  --r-well: 15px;
  --r-button: 12px;
  --radius: 10px;
  --radius-large: 18px;
  --gutter: clamp(8px, 1.2vw, 14px);
}
:root[data-theme="dark"] {
  --bg: #0f0e0d;
  --bg-light: #1a1816;
  --surface: rgb(255 255 255 / 0.05);
  --field: rgb(0 0 0 / 0.3);
  --field-border: rgb(255 255 255 / 0.12);
  --text: #f1efec;
  --muted: #a7a19a;
  --border: rgb(255 255 255 / 0.09);
  --glass: rgb(32 29 27 / 0.42);
  --glass-solid: rgb(26 24 22 / 0.86);
  --glass-edge: rgb(255 255 255 / 0.12);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 34px 70px -28px rgb(0 0 0 / 0.85);
  --well: rgb(0 0 0 / 0.34);
  --well-shadow: inset 0 2px 6px rgb(0 0 0 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.04);
  --photo-dim: 0.62;
}

/* A soft light at the top of the window; drawn once (no-repeat), so short pages show no bands. */
body {
  min-height: 100vh;
  background:
    radial-gradient(90% 60% at 50% -10%, var(--bg-light), transparent 70%) top / 100% 100vh no-repeat,
    var(--bg);
}

/* One width for the start page: bar, sections and the card stack line up. */
.landing .wrap { max-width: 1180px; }
.landing .steps-stack { width: min(1140px, calc(100% - 40px)); }
html { overflow-x: clip; }

/* Photos are given in the page as --img (and --img-phone, a smaller copy for phones); the parts
   below read them as --photo. */
[style*="--img"] { --photo: var(--img); }
@media (max-width: 720px) { [style*="--img"] { --photo: var(--img-phone, var(--img)); } }

/* --- The five parts ------------------------------------------------------------------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-frame);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.glass.solid { background: var(--glass-solid); }
/* Dark glass, on photos and the footer, in both themes. */
.glass.dark {
  --muted: rgb(255 255 255 / 0.66);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03)), rgb(20 14 10 / 0.25);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 34px 70px -28px rgb(0 0 0 / 0.7);
  color: #fff;
}
.well {
  background: var(--well);
  border-radius: var(--r-well);
  box-shadow: var(--well-shadow);
}
.glass.dark .well { background: rgb(14 8 4 / 0.55); box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.05); }

.raised, button.primary, .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-button);
  background: var(--raised);
  color: var(--raised-text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--raised-shadow);
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.25s;
}
.raised .arr { color: var(--accent-deep); transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1); }
.raised:hover, button.primary:hover:not(:disabled), .button.primary:hover { transform: translateY(-1px); box-shadow: var(--raised-shadow-hover); }
.raised:hover .arr { transform: translate(3px, -3px); }
.raised:active, button.primary:active { transform: translateY(0); }
.raised.small { padding: 8px 16px; font-size: 0.92rem; border-radius: 10px; }

/* A large rounded picture with the page's grey around it. The picture comes from --photo;
   at night it's dimmed, so glass and white text keep their contrast. */
.photo-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* --shut: 1 = rounded with the grey gutter, 0 = edge to edge (--open from js/panels.js). */
  --shut: calc(1 - var(--open, 0));
  margin: 0 calc(var(--gutter) * var(--shut));
  border-radius: calc(var(--r-panel) * var(--shut));
  background: #8f857b;
}
/* The photo is always soft (blurred): it sets light and colour, the content stays in front.
   A panel can lay a scrim over it with --scrim. The grain sits on its own layer above, so it
   stays sharp. */
.photo-panel::before {
  content: "";
  position: absolute;
  inset: calc(-2 * var(--photo-blur, 18px));
  z-index: -1;
  background: var(--scrim, none), var(--photo) center / cover no-repeat;
  filter: blur(var(--photo-blur, 18px)) brightness(var(--photo-dim));
}
.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--noise) 0 0 / 200px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.photo-panel.dark-photo { --photo-dim: 1; background: #120f0d; }
:root[data-theme="dark"] .photo-panel.dark-photo::before { filter: brightness(0.8); }

/* Fields and secondary buttons follow the parts too, so forms look the same everywhere. */
input, textarea, select {
  background: var(--well);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--well-shadow);
}
input:hover, textarea:hover, select:hover { border-color: var(--field-border); }
input[type="checkbox"], input[type="radio"] { box-shadow: none; }
button, .button {
  border-radius: var(--r-button);
  background: var(--glass);
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.card, .panel {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-frame);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}

/* Day/night switch: a sunken track with a raised knob (like a real switch). */
.theme-switch {
  width: 64px;
  height: 34px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: var(--well);
  box-shadow: var(--well-shadow);
}
.theme-switch::before {
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(0 0 0 / 0.25), 0 4px 10px -3px rgb(0 0 0 / 0.35);
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.theme-switch[aria-checked="true"]::before { transform: translateX(30px); }
.theme-switch span { color: var(--muted); }
.theme-switch[aria-checked="false"] span:first-child, .theme-switch[aria-checked="true"] span:last-child { color: #1a1a1a; }
.theme-switch:hover:not(:disabled) { border: 0; }

/* --- Top bar: a floating glass bar ---------------------------------------------------- */

.site-nav {
  padding: var(--gutter) var(--gutter) 0;
  background: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0 !important;
}
.site-nav .nav-inner {
  max-width: 1180px;
  padding: 8px 8px 8px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* Over the hero photo the bar is clear with white text; once scrolled it turns to glass. */
.site-nav .nav-inner { background: rgb(255 255 255 / 0); }
.site-nav.scrolled .nav-inner {
  background: var(--glass-solid);
  border-color: var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.landing .site-nav:not(.scrolled) .nav-inner :is(.brand, nav a:not(.raised)) { color: #fff; }
.landing .site-nav:not(.scrolled) .nav-inner {
  background: rgb(22 15 10 / 0.24);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.site-nav .nav-inner nav a.raised { color: var(--raised-text); opacity: 1; }
.landing main { margin-top: -57px; display: flow-root; /* flow-root: the hero's own top margin adds up instead of merging */ } /* the hero panel slides under the bar, a gutter from the top */

/* --- Hero: the photo panel with the headline and the link box -------------------------- */

.hero-panel {
  margin-top: calc(-1 * var(--gutter) * var(--open, 0));
  --photo-blur: 9px;
  --scrim: linear-gradient(180deg, rgb(10 6 4 / 0.35), transparent 26%), linear-gradient(20deg, rgb(10 6 4 / 0.62) 8%, rgb(10 6 4 / 0.12) 55%, transparent 75%);
  min-height: min(calc(100svh - 2 * var(--gutter)), 900px);
  display: flex;
}
.hero-panel .hero {
  width: 100%;
  align-self: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: end;
  padding-top: 120px;
  padding-bottom: clamp(24px, 4vw, 48px);
  max-width: 1180px;
  color: #fff;
}
.hero-panel .hero h1 { margin: 0; font-size: clamp(2.8rem, 7.4vw, 5.6rem); text-shadow: 0 2px 30px rgb(0 0 0 / 0.25); }
.hero-panel .eyebrow { color: #ffd9a8; }
.hero-panel .link-box { flex: none; }
.hero-panel .hero-more { color: rgb(255 255 255 / 0.75); }
.hero-panel .hero-more:hover { color: #fff; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 0 6px; }
@media (max-width: 860px) {
  .hero-panel .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { min-height: auto; }
}

/* The link box (the original part), now built from glass + well + raised. */
.link-box { padding: 6px; }
.link-box > .well { padding: clamp(18px, 2.6vw, 26px) clamp(18px, 2.6vw, 28px); margin: 0; color: rgb(255 255 255 / 0.82); line-height: 1.6; font-size: 0.97rem; }
.link-box-bar { padding: 6px 0 0 14px; }

/* --- Now on Stagelight --------------------------------------------------------------- */

/* Every class card has the same shape: a picture area (the class picture, or the logo on a stage
   when there is none) and the text beside it, title at most two lines, the button at the bottom. */
.now-list { padding-top: clamp(40px, 6vw, 72px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); grid-auto-rows: 1fr; }
.now-card, .now-card:not(:has(img:not([hidden]))) { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch; gap: 22px; padding: 8px; min-height: 250px; }
.now-thumb { position: relative; overflow: hidden; min-height: 220px; border-radius: var(--r-well); background: url(img/logo.svg) center / auto 42% no-repeat, var(--mood); box-shadow: var(--well-shadow); }
.now-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.now-body { display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 14px 0; }
.now-body h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px; font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.12; }
.now-body .now-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now-body .raised { margin-top: auto; align-self: flex-start; }
.now-body .now-meta:last-of-type { margin-bottom: 16px; }
@media (max-width: 560px) {
  .now-list { grid-auto-rows: auto; }
  .now-card, .now-card:not(:has(img:not([hidden]))) { grid-template-columns: minmax(0, 1fr); padding: 8px 8px 0; }
  .now-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .now-body { padding: 8px 12px 18px; }
}

/* --- How it works: glass cards stacked over a photo ------------------------------------ */

.steps-pin::before {
  content: "";
  position: absolute;
  inset: 76px var(--gutter) var(--gutter);
  border-radius: var(--r-panel);
  background: var(--photo, none) center / cover no-repeat;
  filter: brightness(var(--photo-dim));
}
.steps-show.static .steps-pin::before { display: none; }
.steps-stack > .scard, .steps-show.static .steps-stack > .scard {
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-frame);
  background: var(--glass-solid);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.scard--paper { background: rgb(246 240 232 / 0.86) !important; }
:root[data-theme="dark"] .scard--paper { background: rgb(33 28 24 / 0.88) !important; }
.scard--stage { background: rgb(28 20 15 / 0.9) !important; }
.scard--stage.stage-bg::before, .scard--stage.stage-bg::after { opacity: 0.6; }
.scard-tab { border-bottom: 0 !important; }
.scard-tab::after { left: 28px; right: 28px; width: auto; bottom: 0; height: 2px; border-radius: 2px; transform-origin: left; transform: scaleX(var(--fill, 1)); }
.scard-media img { border-radius: 12px; border: 0; box-shadow: 0 0 0 6px var(--well), 0 24px 50px -18px rgb(0 0 0 / 0.35); }
.scard--stage .scard-media img { box-shadow: 0 0 0 6px rgb(255 255 255 / 0.06), 0 24px 50px -18px rgb(0 0 0 / 0.6); }

/* --- In numbers: dark photo panel with three wells --------------------------------------- */

.numbers-panel { margin-top: clamp(48px, 7vw, 88px); color: #fff; }
.numbers-panel .numbers { margin: 0 auto; max-width: 1180px; padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 48px); border-radius: 0; background: none; }
.numbers-panel .number-grid > div { padding: 24px; }
.numbers-panel .number-grid p { color: rgb(255 255 255 / 0.7); }
.numbers-panel .eyebrow { color: #ffd9a8; border-bottom: 0; padding-bottom: 0; }

/* --- Features: glass tiles on a photo ---------------------------------------------------- */

/* The photo runs the full width (gutter to gutter) although the section sits in .wrap. */
.features-panel { margin-inline: calc(var(--gutter) * var(--shut) + (100% - 100vw) / 2) !important; padding: clamp(10px, 4vw, 56px) clamp(10px, 3vw, 40px); }
.features-panel .bento { max-width: 1180px; margin: 0 auto; }
.tile {
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-frame);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.tile:hover { border-color: var(--glass-edge); background: var(--glass-solid); }
:root[data-theme="dark"] .tile:hover { border-color: rgb(255 255 255 / 0.2); }
.t-cta { justify-content: space-between; padding: 6px !important; }
.t-cta h3 { padding: 26px 24px; margin: 0; flex: 1; display: flex; align-items: center; }
.t-cta .go { align-self: flex-end; margin: 6px; }
.t-cta .go span { color: var(--accent-deep); }
.features .section-head { padding: 0 4px; }

/* --- Questions: one glass frame, each answer in a well ----------------------------------- */

.faq-list { padding: 8px; gap: 6px; max-width: 860px; }
.faq-item { border: 0; border-radius: var(--r-well); background: transparent; transition: background-color 0.25s, box-shadow 0.25s; }
.faq-item:hover, .faq-item[open] { background: var(--well); box-shadow: var(--well-shadow); }

/* --- Become a host: a photo panel with two glass frames ----------------------------------- */

/* On the plain page (the footer right after it is the last big panel): text left, form in glass. */
.become-panel { margin-top: 0; }
.become-panel .become-host { max-width: 1180px; gap: 32px 64px; align-items: center; }
.become-panel .become-text { padding: 0; }
.become-panel .become-form { padding: clamp(20px, 2.6vw, 28px); }
.become-panel .become-form button.primary { width: 100%; }

/* --- Footer: a rounded orange panel ------------------------------------------------------ */

.site-footer { --shut: calc(1 - var(--open, 0)); margin: clamp(56px, 8vw, 104px) calc(var(--gutter) * var(--shut)) calc(var(--gutter) * var(--shut)); border-radius: calc(var(--r-panel) * var(--shut)); overflow: hidden; }
/* The orange glow is a photo now, darkened a little towards the links. */
.site-footer { background: var(--noise-soft) 0 0 / 200px, linear-gradient(180deg, rgb(24 8 2 / 0.1), rgb(24 8 2 / 0.5)), url(img/bg/footer.webp) center / cover, #5c1e05; background-blend-mode: overlay, normal, normal, normal; }
@media (max-width: 720px) { .site-footer { background-image: var(--noise-soft), linear-gradient(180deg, rgb(24 8 2 / 0.1), rgb(24 8 2 / 0.5)), url(img/bg/footer-phone.webp); } }

/* --- Phones -------------------------------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --r-panel: 22px; --r-frame: 18px; }
  .landing main { margin-top: -51px; }
  .site-nav .nav-inner { padding: 6px 6px 6px 12px; }
  .steps-pin::before { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .tile, .card, .panel, .scard { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass:not(.dark), .tile, .card, .panel { background: var(--glass-solid) !important; }
}

/* --- Part 6: grain --------------------------------------------------------------------------
   Fine film grain over a colour or a photo, so plain backgrounds feel like paper or film instead of
   flat screen colour. Any element with .grain gets it (it needs no extra markup). */
:root {
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* The same grain, half see-through: laid straight over photos (background-blend-mode: overlay). */
  --noise-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--noise);
  background-size: 200px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

/* Colour moods: muted, darkish tones with soft light from one corner, all made for white text.
   Used for the rail's stage (and for the cards themselves on phones). A step can take a photo
   instead with --photo, laid over its mood. */
.mood-sand  { --mood: radial-gradient(60% 85% at 82% 0%, rgb(253 214 150 / 0.42), transparent 66%), linear-gradient(160deg, #6c5c4a, #2a231c); }
.mood-sage  { --mood: radial-gradient(60% 85% at 85% 0%, rgb(214 228 198 / 0.32), transparent 66%), linear-gradient(160deg, #56604f, #20251e); }
.mood-stage { --mood: radial-gradient(45% 80% at 70% -12%, rgb(254 210 125 / 0.5), rgb(254 210 125 / 0.08) 60%, transparent 78%), linear-gradient(165deg, #2e231c, #110d0b); }
.mood-clay  { --mood: radial-gradient(60% 85% at 18% 0%, rgb(246 182 140 / 0.4), transparent 66%), linear-gradient(160deg, #7a4530, #29130a); }
.mood-dusk  { --mood: radial-gradient(60% 85% at 90% 0%, rgb(162 182 208 / 0.34), transparent 66%), linear-gradient(160deg, #3e4859, #161a21); }
.mood-ember { --mood: radial-gradient(70% 90% at 50% -22%, rgb(232 112 63 / 0.62), transparent 68%), linear-gradient(165deg, #67240b, #1f0a03); }

/* --- How it works: the stage rail ----------------------------------------------------------
   The section is tall; its pane sticks while you scroll and the row of glass steps slides
   sideways. Behind them the stage (a rounded panel) crossfades from one step's colour to the
   next. js/steps-rail.js sets --rail-run, the transforms, each layer's opacity and --p. */
.rail { position: relative; height: calc(100vh + var(--rail-run, 0px)); margin-top: clamp(40px, 6vw, 72px); color: #fff; }
/* The pane fills the window below the bar; the stage inside is at most 900px tall and centred, so
   tall windows and big monitors get a calm band instead of a towering panel. */
.rail-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; padding: 78px 0 var(--gutter); }
.rail-frame { --shut: calc(1 - var(--open, 0)); position: relative; isolation: isolate; width: calc(100% - 2 * var(--gutter) * var(--shut)); height: min(100%, 900px); margin: 0 auto; overflow: hidden; border-radius: calc(var(--r-panel) * var(--shut)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: clamp(18px, 3vh, 34px) 0 16px; }

.rail-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; /* the frame's corners: square while open */ background: #1c1714; }
/* Each layer: the step's photo, slightly soft and darkened (most at the top, behind the heading)
   for white text, over its mood colour (shown while
   the photo loads, or if there is none). */
.rail-bg { position: absolute; inset: -40px; filter: blur(14px); background: linear-gradient(180deg, rgb(12 9 7 / 0.74), rgb(12 9 7 / 0.32) 30%, rgb(12 9 7 / 0.3) 70%, rgb(12 9 7 / 0.66)), var(--photo, none) center / cover no-repeat, var(--mood); opacity: 0; will-change: opacity, transform; }
.rail-bg:first-child { opacity: 1; }
.rail-grain { position: absolute; inset: 0; background: var(--noise); background-size: 200px; mix-blend-mode: overlay; opacity: 0.7; }
/* The spotlight: soft light on the stage where the pointer is (top right while it's elsewhere). */
.rail-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px circle at var(--mx, 75%) var(--my, 0%), rgb(255 222 170 / 0.2), transparent 60%); mix-blend-mode: screen; pointer-events: none; transition: background-position 0.2s; }

.rail-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 40px; padding: 0 clamp(20px, 4vw, 56px) clamp(14px, 2.4vh, 26px); max-width: 1260px; width: 100%; }
.rail-head .eyebrow { color: #ffd9a8; }
.rail-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.06; letter-spacing: -0.025em; }
.rail-lead { margin: 0; max-width: 30em; color: rgb(255 255 255 / 0.7); }
.rail-viewport { position: relative; min-height: 0; }
/* The steps beside the middle one are cut off at the stage's edges (.rail-frame's overflow). No
   clip-path or perspective here: either would stop the glass from frosting the photo behind it;
   each card brings its own perspective (js/steps-rail.js). */

/* Steps keep a landscape shape on any window: never taller than 0.6 × their width (and 660px). */
.rail-track {
  --card-w: min(1040px, 78vw);
  --card-h: min(100%, 660px, calc(var(--card-w) * 0.6));
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  will-change: transform;
}
.rail-card {
  position: relative;
  isolation: isolate;
  flex: none;
  width: var(--card-w);
  height: var(--card-h);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  padding: clamp(22px, 3vw, 44px);
  border-radius: var(--r-frame);
  border: 1px solid rgb(255 255 255 / 0.2);
  background: var(--noise-soft) 0 0 / 200px, linear-gradient(160deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.03)), rgb(16 12 9 / 0.34);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 50px 90px -45px rgb(0 0 0 / 0.7);
  -webkit-backdrop-filter: blur(34px) saturate(1.35);
  backdrop-filter: blur(34px) saturate(1.35);
  color: #fff;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* The huge outlined step number, drifting faster than the card. */
.rail-num {
  position: absolute;
  right: -1%;
  bottom: -14%;
  z-index: -1;
  font-family: var(--font-display);
  font-size: min(27rem, calc(var(--card-w) * 0.34));
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.3);
  transform: translateX(var(--num-x, 0));
  pointer-events: none;
}
.rail-text { display: grid; gap: clamp(10px, 1.6vh, 16px); align-content: center; }
.rail-tab { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); }
.rail-tab span { font-size: 0.9rem; letter-spacing: 0.02em; margin-right: 8px; color: #fff; }
.rail-tab i { font-style: normal; margin: 0 3px; color: #f0a06e; }
.rail-card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.02; letter-spacing: -0.025em; }
.rail-copy { margin: 0; font-size: 1rem; line-height: 1.6; color: rgb(255 255 255 / 0.76); }
.rail-points { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; font-size: 0.93rem; font-weight: 500; }
.rail-points li { display: flex; gap: 10px; align-items: baseline; }
.rail-points li::before { content: "✓"; flex: none; color: #f0a06e; font-weight: 700; }

/* The screenshot in a glass frame, drifting a little against the card. */
.rail-media {
  margin: 0;
  min-height: 0;
  padding: 7px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 30px 60px -26px rgb(0 0 0 / 0.75);
  transform: translateX(var(--media-x, 0));
}
.rail-media img { display: block; width: 100%; height: auto; max-height: calc(var(--card-h) - 2 * clamp(22px, 3vw, 44px) - 16px); object-fit: contain; border-radius: 12px; }
/* Step 6 keeps its laptop, tablet and phone, without a frame. */
.rail-media.scard-media--devices { align-self: stretch; height: 100%; padding: 0; background: none; border: 0; box-shadow: none; }
.rail-media.scard-media--devices img { max-height: none; border-radius: 0; }

/* Step names under the rail, with the progress line; each jumps to its step. */
.rail-steps { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; padding: 14px 20px 0; width: calc(100% - 2 * var(--gutter) - 48px); max-width: 1080px; margin: 0 auto; }
.rail-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.18); overflow: hidden; }
.rail-bar i { position: absolute; inset: 0; background: #f0a06e; transform-origin: left; transform: scaleX(var(--p, 0)); }
.rail-steps button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: rgb(255 255 255 / 0.62); font-size: 0.85rem; font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.rail-steps button span { font-variant-numeric: tabular-nums; opacity: 0.6; margin-right: 4px; }
.rail-steps button:hover { color: #fff; }
.rail-steps button[aria-current="step"] { color: #fff; background: rgb(0 0 0 / 0.28); box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(255 255 255 / 0.08); }

/* Phones, short windows and reduced motion: a row of cards to swipe through. Without the stage
   behind them, each card shows its own photo, frosted (blurred) inside the card. */
.rail.static { height: auto; color: var(--text); }
.rail.static .rail-pin { position: static; height: auto; overflow: visible; padding: 0; display: block; }
.rail.static .rail-frame { width: auto; height: auto; display: block; padding: 0; overflow: visible; border-radius: 0; }
.rail.static .rail-stage { display: none; }
.rail.static .rail-head { padding: 0 20px 18px; }
.rail.static .rail-head .eyebrow { color: var(--accent); }
.rail.static .rail-lead { color: var(--muted); }
.rail.static .rail-viewport { perspective: none; }
.rail.static .rail-track { --card-w: min(86vw, 560px); position: static; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding: 4px max(20px, calc((100vw - var(--card-w)) / 2)) 18px; transform: none !important; }
.rail.static .rail-track::-webkit-scrollbar { display: none; }
.rail.static .rail-card { height: auto; align-items: start; grid-template-columns: minmax(0, 1fr); scroll-snap-align: center; transform: none !important; opacity: 1 !important; background: var(--mood); -webkit-backdrop-filter: none; backdrop-filter: none; }
.rail.static .rail-card::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: linear-gradient(180deg, rgb(12 9 7 / 0.25), rgb(12 9 7 / 0.45)), var(--photo, none) center / cover no-repeat; filter: blur(22px) saturate(1.3); pointer-events: none; }
.rail.static .rail-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); background-size: 200px; mix-blend-mode: overlay; opacity: 0.5; pointer-events: none; }
.rail.static .rail-media { transform: none; }
.rail.static .rail-media img { max-height: none; }
.rail.static .rail-media.scard-media--devices { height: auto; container-type: inline-size; }
.rail.static .devices { width: 100%; }
.rail.static .rail-num { font-size: 12rem; bottom: -6%; }
.rail.static .rail-bar { background: var(--border); }
.rail.static .rail-bar i { background: var(--accent); }
.rail.static .rail-steps button { color: var(--muted); }
.rail.static .rail-steps button:hover, .rail.static .rail-steps button[aria-current="step"] { color: var(--text); }
.rail.static .rail-steps button[aria-current="step"] { background: var(--well); box-shadow: var(--well-shadow); }
.rail.static .rail-steps { width: auto; margin: 0 20px; }

/* --- In numbers: three giant figures under a soft spotlight --------------------------------- */
.count-band { position: relative; isolation: isolate; padding-top: clamp(72px, 10vw, 128px); }
.count-band::before {
  content: "";
  position: absolute;
  inset: -180px 0 -10%; /* starts above the section, so the light has room to fade in */
  z-index: -1;
  background:
    conic-gradient(from 160deg at 50% -20%, transparent 0deg, rgb(254 210 125 / 0.16) 12deg, rgb(254 210 125 / 0.22) 20deg, rgb(254 210 125 / 0.16) 28deg, transparent 40deg),
    radial-gradient(45% 60% at 50% 30%, rgb(254 210 125 / 0.22), transparent 70%);
  /* Fades in from nothing at the top and out at the bottom: no hard edge against the grey. */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 55%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 32%, #000 55%, transparent);
  pointer-events: none;
}
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; border-top: 1px solid var(--border); }
.count { padding: clamp(20px, 3vw, 36px) clamp(16px, 2.6vw, 36px) 0; }
.count:first-child { padding-left: 0; }
.count + .count { border-left: 1px solid var(--border); }
.count strong {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text) 35%, color-mix(in srgb, var(--text) 35%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.count strong small { font-family: var(--font-ui); font-size: clamp(0.95rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: 0.02em; -webkit-text-fill-color: var(--muted); }
.count h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.count p { margin: 0; max-width: 28ch; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 720px) {
  .counts { grid-template-columns: minmax(0, 1fr); }
  .count, .count:first-child { padding: 24px 0; }
  .count + .count { border-left: 0; border-top: 1px solid var(--border); }
}

/* --- Articles (/zoom-alternative, /compare, /teach-online) -------------------------------------
   Headline and lead on a photo panel at the top (opens to full width like the start page's hero),
   then the text on the plain page with its boxes, tables and questions in glass. */
.article-hero { min-height: min(72svh, 680px); }
.article-hero-inner { align-self: end; width: 100%; max-width: 1180px; padding-top: 140px; padding-bottom: clamp(28px, 4vw, 52px); color: #fff; }
.article-hero h1 { margin: 0 0 18px; max-width: 20ch; font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.03; letter-spacing: -0.025em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.25); }
.article-hero h1 .eyebrow { display: flex; width: fit-content; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.12em; line-height: 1.55; }
.article-hero .lead { margin: 0; max-width: 46em; color: rgb(255 255 255 / 0.84); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.65; }
.article { padding-top: clamp(36px, 5vw, 64px); }
.article > h2:first-child { margin-top: 0; }
.point {
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-frame);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  padding: 18px 20px;
}
.table-scroll { padding: 6px; border: 1px solid var(--glass-edge); border-radius: var(--r-frame); background: var(--glass); box-shadow: var(--glass-shadow); }
.compare-table { border-radius: var(--r-well); overflow: hidden; }
.compare-table thead th { background: var(--well); }
.compare-table .us { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.article-cta { padding: clamp(20px, 3vw, 30px); }
@media (max-width: 720px) {
  .article-hero { min-height: auto; }
  .article-hero-inner { padding-top: 110px; }
}

/* --- Signup page (/<host>) ------------------------------------------------------------------
   The host's header picture, heavily blurred and faded, tints the whole page; the form and the
   picture itself sit in glass. Without a picture the page is the plain grey. */
.signup-backdrop {
  position: fixed;
  inset: -80px;
  z-index: -1;
  background: var(--photo, none) center / cover no-repeat;
  filter: blur(70px) saturate(1.25);
  opacity: 0.42;
  pointer-events: none;
}
:root[data-theme="dark"] .signup-backdrop { opacity: 0.3; }
.signup-backdrop::after { content: ""; position: absolute; inset: 0; background: var(--noise) 0 0 / 200px; mix-blend-mode: overlay; opacity: 0.6; }
.signup-page .hero-image { padding: 7px; border: 1px solid var(--glass-edge); border-radius: var(--r-frame); background: var(--glass); box-shadow: var(--glass-shadow); }
.signup-page .card { padding: clamp(20px, 3vw, 28px); }
.signup-page form.card button.primary { width: 100%; }
.signup-page .upcoming { border-color: var(--glass-edge); }

/* --- Viewer guide ---------------------------------------------------------------------------- */
.guide-facts li { border: 1px solid var(--glass-edge); border-radius: var(--r-frame); background: var(--glass); box-shadow: var(--glass-shadow); }
.guide-shot img { border: 0; border-radius: 14px; box-shadow: 0 0 0 6px var(--well), 0 24px 50px -22px rgb(0 0 0 / 0.4); }
.guide-tip { border-radius: var(--r-well); }

/* --- Privacy and terms: the text in one frosted sheet ----------------------------------------- */
.wrap.legal {
  margin: clamp(12px, 4vw, 48px) auto;
  padding: clamp(22px, 4.5vw, 52px);
  max-width: 780px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-panel);
  background: var(--glass-solid);
  box-shadow: var(--glass-shadow);
}
@media (max-width: 720px) { .wrap.legal { margin-inline: var(--gutter); } }

/* --- Consent notice (js/consent.js) ------------------------------------------------------------
   Built like the link box: a frosted frame, the question in a sunken panel, the two answers below.
   Both answers are the same raised button: saying no is exactly as easy as saying yes. */
.consent-banner {
  bottom: var(--gutter);
  left: var(--gutter);
  right: var(--gutter);
  gap: 0;
  padding: 6px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-frame);
  background: var(--glass-solid);
  box-shadow: var(--glass-shadow), 0 30px 60px -20px rgb(0 0 0 / 0.35);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.consent-banner > p { padding: 14px 16px; border-radius: var(--r-well); background: var(--well); box-shadow: var(--well-shadow); line-height: 1.55; }
.consent-actions { padding: 6px 0 0; gap: 6px; }
.consent-actions button {
  padding: 9px 18px;
  border: 0;
  border-radius: var(--r-button);
  background: var(--raised);
  color: var(--raised-text);
  font-weight: 600;
  box-shadow: var(--raised-shadow);
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.25s;
}
.consent-actions button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--raised-shadow-hover); }
@media (max-width: 480px) { .consent-actions button { flex: 1; } }

/* --- App pages: setup, studio, emails, admin and the class page --------------------------------
   The header bar is a frosted bar (instead of the line with the yellow mark); the logo in it is a
   link to the home page. Panels, fields and buttons follow the parts above. */
.wrap:has(> .app-bar) { padding-top: var(--gutter); }
.app-bar {
  padding: 10px 12px 10px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  background: var(--glass-solid);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  position: relative;
  z-index: 40; /* its language menu must open above the video and the document */
}
.app-bar h1 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
.brand-link { display: block; flex: none; border-radius: 8px; transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1); }
.brand-link:hover { transform: translateY(-1px); }
.brand-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand-link .brand-mark { border-radius: 8px; }
.panel { padding: clamp(18px, 2.4vw, 26px); }
/* The video and the chat: the same rounded shapes as the rest (the studio's preview too). */
.stage { border-radius: var(--r-well); }
.chat-panel { border: 1px solid var(--glass-edge); border-radius: var(--r-frame); background: var(--glass-solid); box-shadow: var(--glass-shadow); }

/* Host pages opening with a saved login (html.signing-in, js/theme.js + js/common.js): instead of
   the sign-in form flashing up, the Stagelight logo (light cone and name) glows in the middle; then
   the page fades in. */
html.signing-in main:has(> #login) > #login { display: none; }
html.signing-in main:has(> #login)::after {
  content: "Stagelight";
  display: block;
  width: max-content;
  margin: 16vh auto 0;
  padding-top: 96px;
  background: url(img/logo.svg) top center / auto 84px no-repeat;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  animation: stage-glow 1.6s ease-in-out infinite;
}
/* The logo breathes: the light cone glows warmer and brighter, then settles. */
@keyframes stage-glow {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 0 rgb(254 210 125 / 0)); }
  50% { opacity: 1; filter: drop-shadow(0 4px 22px rgb(254 190 90 / 0.75)); }
}
main:has(> #login) > #studio:not([hidden]) { animation: page-in 0.35s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  html.signing-in main:has(> #login)::after { animation: none; opacity: 0.8; }
  main:has(> #login) > #studio:not([hidden]) { animation: none; }
}

/* Host pages (setup, studio, emails, admin: the pages with a sign-in form): the main action of
   each form (Save, Send, Add host, Go live, Sign in …) is the raised button filled in the orange
   accent, so it stands out among the light glass buttons. */
:root:has(main > #login) :is(button.primary, .button.primary) {
  background: linear-gradient(180deg, #cf5522, #a83a0d);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 -1px 0 rgb(0 0 0 / 0.18), 0 1px 2px rgb(0 0 0 / 0.25), 0 10px 22px -10px rgb(184 65 15 / 0.7);
}
:root:has(main > #login) :is(button.primary, .button.primary):hover:not(:disabled) {
  background: linear-gradient(180deg, #d95d28, #b2400f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -1px 0 rgb(0 0 0 / 0.18), 0 2px 3px rgb(0 0 0 / 0.25), 0 16px 30px -12px rgb(184 65 15 / 0.75);
}
:root[data-theme="dark"]:has(main > #login) :is(button.primary, .button.primary) { background: linear-gradient(180deg, #e8733f, #c4511f); }
:root[data-theme="dark"]:has(main > #login) :is(button.primary, .button.primary):hover:not(:disabled) { background: linear-gradient(180deg, #ef7d48, #cc5823); }

/* Host pages: actions that also write something, beside the main orange button (the Add buttons in
   the calendar, Send links, Send test): an orange outline and orange text, so they stand out from
   the plain buttons without competing with Save. */
:is(#fillWeekdays, #dayAdd, #dayAddReplay, #replayFillForm button[type="submit"], #sendUnsent, [data-action="test"]) {
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent);
  color: var(--accent-deep);
}
:is(#fillWeekdays, #dayAdd, #dayAddReplay, #replayFillForm button[type="submit"], #sendUnsent, [data-action="test"]):hover:not(:disabled) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--glass-solid));
}
:root[data-theme="dark"] :is(#fillWeekdays, #dayAdd, #dayAddReplay, #replayFillForm button[type="submit"], #sendUnsent, [data-action="test"]) { color: var(--accent); }

/* Class page: the picture from the email that brought the viewer here (js/watch.js), large,
   blurred and grainy behind the top of the page, fading out towards the middle. */
.page-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(110vh, 1100px);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  /* An eased fade (many small steps, a long soft tail) instead of a straight one: a straight fade
     shows as a visible seam on the dark background. */
  --fade: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.94) 14%, rgb(0 0 0 / 0.82) 26%, rgb(0 0 0 / 0.66) 37%,
    rgb(0 0 0 / 0.49) 47%, rgb(0 0 0 / 0.33) 57%, rgb(0 0 0 / 0.2) 66%, rgb(0 0 0 / 0.11) 75%,
    rgb(0 0 0 / 0.05) 84%, rgb(0 0 0 / 0.015) 92%, transparent 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.page-glow.on { opacity: 0.6; }
:root[data-theme="dark"] .page-glow.on { opacity: 0.45; }
.page-glow::before { content: ""; position: absolute; inset: -90px; background: var(--photo, none) center 30% / cover no-repeat; filter: blur(46px) saturate(1.3); }
.page-glow::after { content: ""; position: absolute; inset: 0; background: var(--noise) 0 0 / 200px; mix-blend-mode: overlay; opacity: 0.7; }
/* The document beside the video: a glass frame with the toolbar on top and the pages in a sunken
   panel below (like the link box), instead of the hard grey frame. */
.doc-panel { border: 1px solid var(--glass-edge); border-radius: var(--r-frame); background: var(--glass-solid); box-shadow: var(--glass-shadow); }
.doc-toolbar { border-bottom: 0; }
.doc-view { background: color-mix(in srgb, var(--text) 16%, var(--bg)); }
.layout .doc-panel { padding: 0 6px 6px; }
.layout .doc-view { border-radius: var(--r-well); box-shadow: var(--well-shadow); }

/* --- Pricing (/pricing): four plan cards and the viewer-hour calculator --------------------------- */
.article > .plans { max-width: none; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 26px 0 14px; }
.plan { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 28px); }
.plan h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.plan-price { margin: 6px 0 0; color: var(--muted); }
.plan-price strong { font-family: var(--font-display); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; color: var(--text); }
.plan-hours { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.plan-hours strong { color: var(--text); font-size: 1.15rem; }
.plan-fits { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 0.94rem; line-height: 1.5; }
.plan-fits li { margin: 0; padding-left: 1.2em; position: relative; }
.plan-fits li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .raised { margin-top: auto; align-self: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.article > .calc { max-width: 860px; }
.calc { padding: 8px; margin: 18px 0 8px; }
.calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: clamp(14px, 2vw, 22px); }
.calc .field > span { font-size: 0.86rem; font-weight: 600; }
.calc-result { padding: clamp(16px, 2.4vw, 24px); }
.calc-result p { margin: 0; }
.calc-result strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15em; }
.calc-bar { height: 8px; margin: 14px 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; }
.calc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #f0a06e); transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
@media (max-width: 720px) { .calc-fields { grid-template-columns: minmax(0, 1fr); } }
.site-nav nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1.5px; }

/* Monthly / Yearly switch above the plan cards (js/pricing.js). */
.article > .billing { max-width: none; }
.billing { display: inline-flex; gap: 2px; padding: 4px; margin: 22px 0 0; border-radius: 999px; background: var(--well); box-shadow: var(--well-shadow); }
.billing button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--muted); font-weight: 600; }
.billing button small { margin-left: 6px; font-weight: 600; color: var(--accent); }
.billing button:hover:not(:disabled) { color: var(--text); border: 0; }
.billing button[aria-pressed="true"] { background: var(--raised); color: var(--raised-text); box-shadow: var(--raised-shadow); }
.billing button[aria-pressed="true"] small { color: var(--accent-deep); }
.plan-alt { margin: -2px 0 0; color: var(--muted); font-size: 0.9rem; }

/* /pricing, below the plan cards: no floating boxes. The calculator, the feature list, the questions and
   the closing call sit straight on the page, divided by thin lines; the plan cards stay the only boxes. */
.pricing-flat :is(.calc, .faq-list, .article-cta).glass { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pricing-flat .calc { padding: 0; margin: 20px 0 0; }
.pricing-flat .calc-fields { padding: 0; }
.pricing-flat .calc-result.well { margin-top: 24px; padding: 22px 0 0; border-top: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; }
.pricing-flat .included { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: 860px; }
.pricing-flat .included li { position: relative; margin: 0; padding-left: 1.6em; line-height: 1.55; color: var(--muted); }
.pricing-flat .included li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-flat .included strong { color: var(--text); font-weight: 600; }
.pricing-flat .faq-list { padding: 0; gap: 0; border-top: 1px solid var(--border); }
.pricing-flat .faq-item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; background: none; box-shadow: none; }
.pricing-flat .faq-item:hover, .pricing-flat .faq-item[open] { background: none; box-shadow: none; }
.pricing-flat .faq-item > summary { padding: 18px 2px; }
.pricing-flat .faq-item > p { margin: 0; padding: 0 2px 20px; }
.pricing-flat .article-cta { margin-top: 64px; padding: 32px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
@media (max-width: 720px) { .pricing-flat .included { grid-template-columns: minmax(0, 1fr); } }

/* /pricing: the sections below the cards use the whole page width: the heading on the left, the content on the right. */
.pricing-flat .pf-section { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr); gap: 20px clamp(32px, 6vw, 96px); margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.pricing-flat .pf-head h2 { margin: 0 0 14px; }
.pricing-flat .pf-head p { margin: 0; max-width: 28em; color: var(--muted); }
.pricing-flat .pf-body { min-width: 0; }
.pricing-flat .calc { max-width: none; margin: 0; }
.pricing-flat .included { max-width: none; margin: 0; }
.pricing-flat .faq-list { max-width: none; border-top: 0; }
.pricing-flat .faq-item:first-child { border-top: 0; }
.article.pricing-flat > .article-cta { max-width: none; margin-top: 64px; }
@media (max-width: 900px) {
  .pricing-flat .pf-section { grid-template-columns: minmax(0, 1fr); margin-top: 48px; padding-top: 32px; }
}

/* The popular plan (Teacher): orange outline, a soft orange tint, an orange "Popular" tag and an orange button. */
.plan { position: relative; }
.plan-popular {
  border: 1.5px solid color-mix(in srgb, var(--accent) 75%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 55%), var(--glass);
  box-shadow: var(--glass-shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 9%, transparent);
}
.plan-badge {
  position: absolute;
  top: clamp(18px, 2.2vw, 26px);
  right: clamp(18px, 2.2vw, 26px);
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cf5522, #a83a0d);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-popular .raised {
  background: linear-gradient(180deg, #cf5522, #a83a0d);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 -1px 0 rgb(0 0 0 / 0.18), 0 1px 2px rgb(0 0 0 / 0.25), 0 10px 22px -10px rgb(184 65 15 / 0.7);
}
.plan-popular .raised .arr { color: #fff; }
.plan-popular .raised:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -1px 0 rgb(0 0 0 / 0.18), 0 2px 3px rgb(0 0 0 / 0.25), 0 16px 30px -12px rgb(184 65 15 / 0.75); }
:root[data-theme="dark"] .plan-popular .raised { background: linear-gradient(180deg, #e8733f, #c4511f); }

/* Three plans (since the move to $10 / $25 / $60), and the "Coming soon" tag for the AI tools on Studio. */
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.tag-soon {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-radius: 999px;
  color: var(--accent-deep);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
:root[data-theme="dark"] .tag-soon { color: var(--accent); }
.plan-ai { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.plan-ai .tag-soon { margin-right: 4px; }
.pf-head h2 .tag-soon { margin-left: 8px; position: relative; top: -0.2em; }

/* Optional company-invoice details above the plan buttons (js/pricing.js): passed into the Polar checkout. */
.invoice-box { margin: 6px 0 14px; padding: 14px clamp(16px, 2.4vw, 24px); }
.invoice-box > summary { cursor: pointer; font-weight: 600; }
.invoice-box[open] > summary { margin-bottom: 8px; }
.invoice-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.invoice-fields .field > span { font-size: 0.86rem; font-weight: 600; }
.invoice-fields .field em { font-style: normal; font-weight: 400; color: var(--muted, inherit); }
@media (max-width: 900px) { .invoice-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .invoice-fields { grid-template-columns: minmax(0, 1fr); } }

/* Start page: the short explainer video, text beside a framed player. */
.explainer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.explainer h2 { margin: 6px 0 14px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.explainer-text p { max-width: 30em; }
.explainer-player { padding: 8px; border-radius: var(--r-frame); }
.explainer-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: calc(var(--r-frame) - 6px); background: #111; }
@media (max-width: 820px) { .explainer { grid-template-columns: minmax(0, 1fr); } }

/* Class page: until the viewer joins, one blurred layer over the video and the document, with a big "Join webinar". */
.layout { position: relative; }
.join-layer { position: absolute; inset: 0; z-index: 30; display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(56px, 16vh, 180px) 16px 16px; border-radius: var(--r-frame);
  background: rgb(20 18 16 / 0.3); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.join-layer[hidden] { display: none; }
.join-layer-box { position: sticky; top: 22vh; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 30em;
  padding: clamp(22px, 4vw, 34px) clamp(24px, 5vw, 44px); border-radius: var(--r-panel); background: var(--glass-solid);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.join-layer-message { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.join-layer-hint { margin: 0; color: var(--muted); font-size: 0.92rem; }
#joinBig { background: var(--live); border-color: var(--live); color: #fff; padding: 14px 40px; font-size: 1.15rem; font-weight: 700; }
#joinBig:hover:not(:disabled) { background: #b82424; border-color: #b82424; box-shadow: 0 8px 24px rgb(212 47 47 / 0.4); }

/* ---- Live class feedback, 25 November 2026 ------------------------------------------------------ */

/* While a class is live the page uses the whole width of the browser (class page and studio). */
.wrap:has(.layout.with-chat), .wrap:has(.layout.with-doc), .wrap:has(.studio.on-air) { max-width: none; }
/* …but the video and the document never grow taller than the screen. */
.layout .doc-view { --doc-max-h: max(420px, calc(100dvh - 210px)); }
@media (min-width: 761px) {
  .layout > .stage { width: min(100%, calc((100dvh - 190px) * 16 / 9)); justify-self: center; }
  .layout.with-doc > .stage { width: 100%; }
}

/* Phones: two fingers zoom the document (js/watch.js); the browser leaves the page itself alone there. */
.doc-view { touch-action: pan-x pan-y; }

/* The chat folds like the documents list (js/watch.js setChatFolded). */
.fold-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; color: inherit; font: inherit; cursor: pointer; }
.fold-toggle:hover:not(:disabled) { background: none; box-shadow: none; }
.fold-toggle h2 { margin: 0; font-size: 1rem; }
.fold-arrow { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transition: transform 0.15s; }
.chat-panel.folded .fold-arrow { transform: rotate(-90deg); }
.chat-panel.folded > :not(.chat-head) { display: none; }
.chat-panel.folded .chat-head { border-bottom: 0; }
@media (min-width: 761px) { .layout.with-chat:not(.with-doc) .chat-panel.folded { flex: 0 0 auto; } }

/* Over time: red, for the viewers too (the teacher's clock in the studio already is). */
.live-timer.over { color: var(--live); font-weight: 700; }

/* An admin looking at someone else's live class: a red notice and the emergency button (js/common.js setAdminLock). */
.admin-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 18px; padding: 12px 16px;
  border: 1px solid var(--live); border-radius: var(--r-frame); background: color-mix(in srgb, var(--live) 9%, var(--glass-solid)); }
.admin-lock p { margin: 0; flex: 1 1 320px; }
.admin-lock .error { flex-basis: 100%; }
[data-admin-locked] { opacity: 0.5; }

/* Fullscreen on the class page shows the whole page, trimmed to fit the screen (js/watch.js). */
html.is-fullscreen body { overflow: hidden; }
html.is-fullscreen .wrap { max-width: none; height: 100dvh; padding: 8px 12px; display: flex; flex-direction: column; }
html.is-fullscreen .page-glow, html.is-fullscreen .calendar-links, html.is-fullscreen .guide-link, html.is-fullscreen #status { display: none; }
html.is-fullscreen .app-bar { padding-bottom: 6px; margin-bottom: 8px; }
html.is-fullscreen .view-bar { margin-bottom: 6px; }
html.is-fullscreen .controls { margin-top: 8px; }
html.is-fullscreen .layout { flex: 1 1 0; min-height: 0; }
html.is-fullscreen .layout > .stage { max-height: 100%; }
@media (min-width: 761px) {
  html.is-fullscreen .layout { grid-template-rows: minmax(0, 1fr); }
  html.is-fullscreen .layout.with-doc.with-chat { grid-template-rows: auto minmax(0, 1fr); }
  html.is-fullscreen .layout > .stage { width: min(100%, calc((100dvh - 150px) * 16 / 9)); align-self: center; }
  html.is-fullscreen .layout.with-doc > .stage { width: 100%; align-self: start; }
  html.is-fullscreen .layout > .side { min-height: 0; align-self: stretch; } /* with a document shown, the chat column gets the row's height, not just its content's */
  html.is-fullscreen .layout .chat-panel { flex: 1 1 0; min-height: 0; }
  html.is-fullscreen .layout .chat-panel.folded { flex: 0 0 auto; }
  html.is-fullscreen .layout .chat-list { max-height: none; min-height: 0; }
  html.is-fullscreen .layout .doc-view { --doc-max-h: calc(100dvh - 170px); }
}

/* The document fills its whole panel, for viewers on wider screens (the studio's is in style.css): a slide is
   scaled to fit whole, other pages fit the width and scroll. On phones the window keeps its 4:3 to 16:9 shape. */
@media (min-width: 761px) {
  .layout.with-doc > #docPanel { display: flex; flex-direction: column; height: max(480px, calc(100dvh - 170px)); }
  .layout.with-doc > #docPanel .doc-view { --doc-fill: 1; flex: 1 1 0; min-height: 0; width: 100%; aspect-ratio: auto; }
  .layout.with-doc > .side { align-self: stretch; min-height: 0; }
  html.is-fullscreen .layout.with-doc > #docPanel { height: 100%; }
}

/* --- Languages (js/lang.js, lib/i18n.php) ----------------------------------------------------------
   The switcher sits beside the day/night switch. Chinese and Japanese use the device's own fonts (no font
   files to download): after Switzer in the list, so numbers and Latin letters stay in Switzer. Their
   headings use the same sans-serif (the Latin serif has no Chinese letters), without the tight letter
   spacing, italics or capitals that suit Latin only. German and French break long words. */
.lang-switch { position: relative; flex: none; }
.lang-switch.floating { position: fixed; top: 12px; right: 12px; z-index: 60; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 0; border-radius: 999px;
  background: var(--well); box-shadow: var(--well-shadow); color: var(--text); font: 600 13px/1 var(--font-ui); cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { background: var(--glass-solid); }
.lang-btn svg { flex: none; opacity: 0.75; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 160px; margin: 0; padding: 6px; list-style: none;
  border-radius: 16px; background: var(--glass-solid); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
  box-shadow: var(--glass-shadow); border: 1px solid var(--glass-edge);
}
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.lang-menu a:hover { background: var(--well); }
.lang-menu a[aria-current] { font-weight: 700; background: var(--well); }
.landing .site-nav:not(.scrolled) .lang-btn { color: #fff; background: rgb(255 255 255 / 0.16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25); }
.nav-inner .lang-switch { margin-left: 4px; }
.i18n-notice { margin: 0 0 22px; padding: 12px 16px; border-radius: var(--r-well); background: var(--well); box-shadow: var(--well-shadow); font-size: 0.92rem; color: var(--muted); }

body { overflow-wrap: break-word; }
html:lang(de) :is(p, li, dd, .well, .lede, td), html:lang(fr) :is(p, li, dd, .well, .lede, td) { hyphens: auto; -webkit-hyphens: auto; }
html:lang(de) :is(h1, h2, h3), html:lang(fr) :is(h1, h2, h3) { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

:root:lang(zh-Hant) { --font-ui: 'Switzer', system-ui, -apple-system, 'PingFang TC', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei', 'Heiti TC', sans-serif; }
:root:lang(zh-Hans) { --font-ui: 'Switzer', system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', 'Heiti SC', sans-serif; }
:root:lang(ja) { --font-ui: 'Switzer', system-ui, -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans CJK JP', 'Yu Gothic', 'Meiryo', sans-serif; }
:root:is(:lang(zh-Hant), :lang(zh-Hans), :lang(ja)) { --font-display: var(--font-ui); }
:root:is(:lang(zh-Hant), :lang(zh-Hans), :lang(ja)) body { line-break: strict; word-break: normal; line-height: 1.75; }
:root:is(:lang(zh-Hant), :lang(zh-Hans), :lang(ja)) :is(h1, h2, h3, h4, .hero-title, .scard-title, .rail-card h3, .count strong, .number-grid strong, .t-video h3, .t-cta h3, .plan h3, .explainer h2, .eyebrow, .overlay #message) {
  letter-spacing: 0.01em; line-height: 1.3; text-transform: none; font-weight: 700;
}
:root:is(:lang(zh-Hant), :lang(zh-Hans), :lang(ja)) :is(em, i, cite, address) { font-style: normal; }
:root:is(:lang(zh-Hant), :lang(zh-Hans), :lang(ja)) :is(.eyebrow, .badge, button, .button, label) { letter-spacing: 0.02em; text-transform: none; }

/* Longer words in the top bar (German, French): one line each and a little closer together, so the bar doesn't wrap. */
.nav-inner nav a { white-space: nowrap; }
html:lang(de) .nav-inner nav, html:lang(fr) .nav-inner nav { gap: 14px; font-size: 0.84rem; }
html:lang(de) .nav-inner, html:lang(fr) .nav-inner { gap: 14px; }
@media (max-width: 1100px) {
  html:lang(de) .nav-inner nav a:not(.raised):not([href="host.html"]), html:lang(fr) .nav-inner nav a:not(.raised):not([href="host.html"]) { display: none; }
}

/* Signup page: a small Stagelight logo and name at the top, linking to the home page. */
.signup-home { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 clamp(14px, 3vw, 26px); padding: 4px 10px 4px 4px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; transition: color 0.2s, background 0.2s; }
.signup-home .brand-mark { height: 26px; width: 26px; border-radius: 7px; }
.signup-home:hover { color: var(--text); background: var(--well); }
.signup-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* About page. First the four problems as numbered steps (a counter, no extra text), then the four values as a bento of
   icon tiles in two widths. Both use the glass look of the rest of the site and lift a little under the pointer. */
.article > :is(.about-steps, .about-bento) { max-width: 1040px; }
.about-steps { list-style: none; margin: 26px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.about-step { position: relative; overflow: hidden; counter-increment: step; margin: 0; padding: clamp(22px, 2.6vw, 30px); padding-top: clamp(64px, 6.4vw, 78px);
  border: 1px solid var(--glass-edge); border-radius: var(--r-frame); background: var(--glass); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s; }
.about-step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 14px; left: clamp(20px, 2.4vw, 28px);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: 0.85; }
.about-step h3 { margin: 0 0 8px; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.01em; }
.about-step p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.65; }

.about-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 26px 0 8px; }
.about-tile { grid-column: span 2; margin: 0; padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--glass-edge); border-radius: var(--r-frame);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--glass);
  box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.3s; }
/* The first value is the main one: a wide tile on its own row, icon beside the text. */
.about-tile:nth-child(1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.about-tile:nth-child(1) .about-icon { grid-row: 1 / span 2; width: 58px; height: 58px; margin: 0; border-radius: 18px; }
.about-tile:nth-child(1) .about-icon svg { width: 26px; height: 26px; }
.about-tile:nth-child(1) h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
.about-tile:nth-child(1) p { max-width: 44em; font-size: 1.02rem; }
.about-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.about-tile h3 { margin: 0 0 8px; font-size: 1.18rem; line-height: 1.25; letter-spacing: -0.01em; }
.about-tile p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
@media (hover: hover) {
  .about-step:hover, .about-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-edge)); }
}
@media (prefers-reduced-motion: reduce) { .about-step, .about-tile { transition: none; } .about-step:hover, .about-tile:hover { transform: none; } }
@media (max-width: 820px) {
  .about-tile:nth-child(n+2) { grid-column: span 3; }
  .about-tile:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .about-steps { grid-template-columns: minmax(0, 1fr); }
  .about-bento { grid-template-columns: minmax(0, 1fr); }
  .about-tile:nth-child(n) { grid-column: auto; }
  .about-tile:nth-child(1) { display: block; }
  .about-tile:nth-child(1) .about-icon { width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; }
  .about-tile:nth-child(1) .about-icon svg { width: 22px; height: 22px; }
}
