/* desmoslock.nickymolina.com — same Notion-ish palette as the app. */

:root {
  --text: #37352f;
  --text-2: rgba(55, 53, 47, 0.8);
  --text-3: rgba(55, 53, 47, 0.7);
  --bg: #ffffff;
  --bg-2: #f9f9f7;
  --line: rgba(55, 53, 47, 0.1);
  --line-2: rgba(55, 53, 47, 0.18);
  --hover: rgba(55, 53, 47, 0.055);
  --blue: #2383e2;
  --blue-ink: #1a6fc4;
  --blue-btn: #1d74cf;
  --blue-soft: rgba(35, 131, 226, 0.1);
  --red: #e03e3e;
  --red-ink: #c4342f;
  --red-soft: rgba(224, 62, 62, 0.09);
  --amber: #d9730d;
  --green: #0f7b6c;
  --radius: 8px;
  --shadow-sm:
    0 1px 2px rgba(15, 15, 15, 0.05), 0 2px 8px rgba(15, 15, 15, 0.04);
  --shadow:
    0 1px 2px rgba(15, 15, 15, 0.04), 0 6px 16px rgba(15, 15, 15, 0.05),
    0 24px 56px -12px rgba(15, 15, 15, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --page: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(35, 131, 226, 0.22);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}

.link {
  color: var(--blue-ink);
  text-decoration: underline;
  text-decoration-color: rgba(35, 131, 226, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.link:hover {
  text-decoration-color: currentColor;
}

/* ───────────────────────────────────────────────── nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(24px, calc((100vw - var(--page)) / 2));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--text);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-style: italic;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.brand-mark.sm {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
  color: var(--text-2);
}
.nav nav a {
  padding: 6px 10px;
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav nav a:hover {
  color: var(--text);
  background: var(--hover);
}
.nav nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  background: var(--text);
  color: #fff;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 500;
}
.nav nav .nav-cta:hover {
  background: #22211d;
  color: #fff;
}

/* ───────────────────────────────────────────────── hero */

.hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 104px 24px 0;
  text-align: center;
}

h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 600px;
  margin: 26px auto 0;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.15s,
    box-shadow 0.2s,
    transform 0.2s var(--ease-out);
}
.btn:hover {
  background: #fafaf9;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}
.btn.primary {
  background: var(--blue-btn);
  border-color: var(--blue-ink);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(26, 111, 196, 0.3),
    0 6px 18px -4px rgba(35, 131, 226, 0.45);
}
.btn.primary:hover {
  background: var(--blue-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(26, 111, 196, 0.3),
    0 10px 24px -6px rgba(35, 131, 226, 0.55);
}
.btn.big {
  padding: 14px 26px;
  font-size: 16.5px;
}

.micro {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 18px;
}

/* ─────────────────────────────────────────── product stage */

.stage {
  position: relative;
  max-width: 1160px;
  margin: 72px auto 0;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}
/* Graph paper behind the windows: the calculator's own world. */
.stage::before {
  content: "";
  position: absolute;
  inset: -40px -10vw 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(55, 53, 47, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 53, 47, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(55, 53, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 53, 47, 0.035) 1px, transparent 1px);
  background-size:
    96px 96px,
    96px 96px,
    24px 24px,
    24px 24px;
  background-position: center top;
  mask-image: radial-gradient(
    ellipse 60% 70% at 50% 45%,
    #000 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 60% 70% at 50% 45%,
    #000 30%,
    transparent 75%
  );
}

.win {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}

.console {
  grid-column: 1 / span 8;
  grid-row: 1;
}
.student {
  grid-column: 8 / span 5;
  grid-row: 1;
  margin-top: 148px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.05),
    0 10px 24px rgba(15, 15, 15, 0.07),
    0 40px 80px -16px rgba(15, 15, 15, 0.22);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 12px;
  color: var(--text-3);
}
.lights {
  display: flex;
  gap: 6px;
}
.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e2e1de;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}

/* console */

.console-body {
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: 352px;
  font-size: 13px;
}
.c-side {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 12px 8px;
  color: var(--text-2);
}
.c-who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 10px;
  font-weight: 600;
  color: var(--text);
}
.c-avatar {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #e9e5df;
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.c-new {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: var(--text-3);
}
.c-label {
  padding: 16px 8px 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.c-test {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 5px;
}
.c-test.on {
  background: rgba(55, 53, 47, 0.07);
  color: var(--text);
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot.green {
  background: var(--green);
}
.dot.muted {
  background: rgba(55, 53, 47, 0.25);
}
.state-dot {
  background: var(--red);
  transition: background 0.3s;
}

.c-main {
  padding: 18px 22px 20px;
  min-width: 0;
}
.c-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.c-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.pill {
  display: inline-grid;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--red-soft);
  color: var(--red-ink);
  transition:
    background 0.3s,
    color 0.3s;
}
.pill > span {
  grid-area: 1 / 1;
  transition:
    opacity 0.2s,
    transform 0.4s var(--ease-spring);
}
.pill-open {
  opacity: 0;
  transform: translateY(-6px);
}

.c-lockbtn {
  display: inline-grid;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.09s ease-out,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.c-lockbtn > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.18s;
}
.lb-lock {
  opacity: 0;
}

.c-stats {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.stat small {
  display: block;
  font-size: 11px;
  color: var(--text-3);
}
.stat b {
  display: block;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.stat.code {
  background: var(--blue-soft);
  border-color: transparent;
}
.stat.code b {
  color: var(--blue-ink);
  letter-spacing: 0.06em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 18px;
}
.flags {
  display: grid !important;
  color: var(--amber);
}
.flags > span {
  grid-area: 1 / 1;
  transition:
    opacity 0.2s,
    transform 0.45s var(--ease-spring);
}
.f-before {
  opacity: 0;
  transform: translateY(-8px);
}

.c-feedlabel {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.feed {
  list-style: none;
  margin-top: 6px;
}
.feed-row {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.feed-row > div {
  overflow: hidden;
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-2);
  margin-bottom: 3px;
  transition:
    opacity 0.35s,
    transform 0.5s var(--ease-out),
    background 1.2s;
}
.feed-row b {
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}
.feed-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-left: 12px;
}
.feed-row.bad > div {
  background: var(--red-soft);
}
.feed-row.bad b {
  color: var(--red-ink);
}
.feed-row:nth-child(n + 4) > div {
  opacity: 0.55;
}

/* student */

.s-bar {
  display: grid;
  height: 36px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.s-bar > span {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.s-wait {
  background: var(--bg-2);
  color: var(--text-3);
  font-weight: 500;
}
.s-locked {
  background: var(--red-ink);
  color: #fff;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.42s var(--ease-out);
}
.s-locked .ico {
  transition: transform 0.4s var(--ease-spring) 0.28s;
}

.calc {
  display: grid;
  grid-template-columns: 148px 1fr;
}
.calc-exprs {
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}
.expr {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-right: 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.expr .n {
  align-self: stretch;
  width: 22px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  font-family:
    ui-sans-serif,
    -apple-system,
    sans-serif;
  font-style: normal;
  font-size: 10px;
  color: var(--text-3);
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.swatch.red {
  background: #c74440;
}
.swatch.blue {
  background: #2d70b3;
}
.graph {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.graph text {
  font-family:
    ui-sans-serif,
    -apple-system,
    sans-serif;
}

/* stage phases: default (no JS, reduced motion) is the finished "alert" state */

.stage[data-phase="open"] .pill,
.stage[data-phase="press"] .pill {
  background: rgba(15, 123, 108, 0.1);
  color: var(--green);
}
.stage[data-phase="open"] .pill-open,
.stage[data-phase="press"] .pill-open {
  opacity: 1;
  transform: none;
}
.stage[data-phase="open"] .pill-locked,
.stage[data-phase="press"] .pill-locked {
  opacity: 0;
  transform: translateY(6px);
}
.stage[data-phase="open"] .state-dot,
.stage[data-phase="press"] .state-dot {
  background: var(--green);
}
.stage[data-phase="open"] .c-lockbtn,
.stage[data-phase="press"] .c-lockbtn {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.stage[data-phase="press"] .c-lockbtn {
  transform: scale(0.95);
}
.stage[data-phase="open"] .lb-lock,
.stage[data-phase="press"] .lb-lock {
  opacity: 1;
}
.stage[data-phase="open"] .lb-unlock,
.stage[data-phase="press"] .lb-unlock {
  opacity: 0;
}
.stage[data-phase="open"] .s-locked,
.stage[data-phase="press"] .s-locked {
  clip-path: inset(0 100% 0 0);
}
.stage[data-phase="open"] .s-locked .ico,
.stage[data-phase="press"] .s-locked .ico {
  transform: scale(0.4) rotate(-20deg);
}
.stage[data-phase="open"] .calc,
.stage[data-phase="press"] .calc {
  opacity: 0.55;
}
.calc {
  transition: opacity 0.5s var(--ease-out) 0.1s;
}
.stage:not([data-phase="alert"])[data-phase] .feed-row.new {
  grid-template-rows: 0fr;
}
.stage:not([data-phase="alert"])[data-phase] .feed-row.new > div {
  opacity: 0;
  transform: translateY(-10px);
  background: transparent;
}
.stage:not([data-phase="alert"])[data-phase] .f-after {
  opacity: 0;
  transform: translateY(8px);
}
.stage:not([data-phase="alert"])[data-phase] .f-before {
  opacity: 1;
  transform: none;
}
.stage[data-phase="alert"] .feed-row.new > div {
  background: rgba(224, 62, 62, 0.16);
  transition:
    opacity 0.35s,
    transform 0.5s var(--ease-out),
    background 1.6s ease-out 0.6s;
}
.stage[data-phase="alert"] .flags > span {
  transition-delay: 0.18s;
}

/* ─────────────────────────────────────────── bands */

.band {
  padding: 112px 24px;
}
.band.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band + .band.alt,
.band.alt + .band {
  border-top: 0;
}

h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}
.band-lede {
  max-width: 600px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 17.5px;
  color: var(--text-2);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* steps */

.steps {
  list-style: none;
  max-width: 1000px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.steps li {
  position: relative;
}
.step-art {
  height: 124px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  background-image:
    linear-gradient(rgba(55, 53, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 53, 47, 0.045) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
}
.art-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue-ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px 8px 20px;
  box-shadow: var(--shadow-sm);
}
.art-field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 190px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.art-field small {
  width: 36px;
  font-size: 11px;
  color: var(--text-3);
}
.art-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 16px -4px rgba(15, 15, 15, 0.35);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.steps h3 {
  font-size: 17px;
}
.steps p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-2);
}

/* lock grid */

.band-head {
  max-width: 1080px;
  margin: 0 auto;
}
.grid {
  max-width: 1080px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
}
.cell {
  padding: 30px 32px 34px 0;
  border-bottom: 1px solid var(--line);
}
.cell:not(:nth-child(3n + 1)) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.cell-ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.cell p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* forfeit */

.two {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.two-copy h2 {
  text-align: left;
  margin-bottom: 24px;
}
.two-copy p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 34em;
}
.two-copy p + p {
  margin-top: 16px;
}
.two-copy b {
  color: var(--text);
  font-weight: 600;
}
.kbd-ish {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-size: 0.9em;
  background: #fff;
  white-space: nowrap;
}

.two-art {
  position: relative;
  padding-bottom: 84px;
}
.dialog {
  position: relative;
  z-index: 2;
  width: min(380px, 92%);
  margin: 0 0 0 auto;
  padding: 26px 24px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.05),
    0 12px 28px rgba(15, 15, 15, 0.08),
    0 40px 80px -20px rgba(15, 15, 15, 0.24);
  text-align: center;
}
.dialog-ico {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dialog-title {
  margin-top: 10px;
  font-weight: 650;
  font-size: 15.5px;
}
.dialog-body {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.dbtn {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-2);
}
.dbtn.danger {
  background: var(--red-ink);
  border-color: var(--red-ink);
  color: #fff;
}
.roster {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 260px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  transform: rotate(-1.5deg);
}
.roster-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
}
.roster-row.gone {
  background: var(--red-soft);
}
.roster-row.gone .r-name {
  text-decoration: line-through;
  color: var(--text-3);
}
.r-state {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.r-state.ok {
  color: var(--green);
}
.r-state.bad {
  color: var(--red-ink);
  font-weight: 600;
}

/* faq */

.faq-wrap {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.faq-head {
  position: sticky;
  top: 104px;
}
.faq-head h2 {
  text-align: left;
}
.faq-head p {
  margin-top: 16px;
  color: var(--text-2);
}
.faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq details:first-child {
  border-top: 1px solid var(--line-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--blue-ink);
}
.faq-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.7;
  stroke-linecap: round;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] .faq-ico {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 40px 22px 2px;
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 62ch;
}
.faq details[open] p {
  animation: faq-in 0.35s var(--ease-out);
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* closer */

.closer {
  position: relative;
  padding: 136px 24px 144px;
  text-align: center;
  overflow: hidden;
}
.closer h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.035em;
  max-width: 14em;
  margin: 0 auto 36px;
}

/* footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px max(24px, calc((100vw - var(--page)) / 2));
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-2);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
footer a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
footer a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}
footer .dim {
  color: var(--text-3);
}

/* ─────────────────────────────────────────── responsive */

@media (max-width: 960px) {
  .stage {
    display: block;
    padding-bottom: 72px;
  }
  .student {
    width: min(440px, 78%);
    margin: -120px 0 0 auto;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cell:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .cell:nth-child(even) {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }
  .two,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .faq-head {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding-top: 64px;
  }
  .lede {
    font-size: 17px;
  }
  .stage {
    margin-top: 52px;
    padding: 0 16px 56px;
  }
  .console-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .c-side {
    display: none;
  }
  .c-main {
    padding: 14px 14px 12px;
  }
  .c-stats {
    gap: 6px;
  }
  .stat {
    padding: 8px 9px;
  }
  .stat b {
    font-size: 17px;
  }
  .stat.code b {
    font-size: 15px;
  }
  .feed-row:nth-child(n + 4) {
    display: none;
  }
  .student {
    width: 86%;
    margin-top: -16px;
  }
  .calc {
    grid-template-columns: 120px 1fr;
  }
  .band {
    padding: 80px 20px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 440px;
    margin-top: 48px;
  }
  .grid {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }
  .cell,
  .cell:nth-child(even) {
    padding: 24px 0 26px;
    border-left: 0;
  }
  .two-copy h2 {
    margin-bottom: 18px;
  }
  .roster {
    width: 230px;
  }
  .closer {
    padding: 96px 20px 104px;
  }
  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }
}
