/*
  learn.ugmi.ca, WATnow waitlist page. Claymorphism direction.
  Every surface is soft modelling clay on a powder blue ground: one outer drop shadow,
  a darker inner shade at the lower right and a lighter inner edge at the upper left.
  Brand yellow stays reserved for the product: the buttons, the changed date and the mark.
*/

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin-opsz-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ground: #dde6f3;
  --glow-a: #e9eefa;
  --glow-b: #d1dcef;
  --slab: #eef2f9;
  --tile: #f8f9fd;
  --tile-hover: #ffffff;
  --ink: #1f2440;
  --ink-soft: #4f5675;
  --ink-faint: #8a90aa;
  --chip-ink: #1f2440;

  --yellow: #ffe15a;
  --yellow-wash: #fff5c4;
  --on-yellow: #1f2440;
  --red: #c93a31;
  --green: #2c7449;

  --hl-pink: #ffb3cf;
  --hl-green: #a6e6bb;
  --hl-orange: #ffc98a;
  --hl-blue: #a9d3ff;
  --hl-violet: #cfbfff;

  --mark-line: #a3a9c2;
  --focus: #1f2440;

  --clay: 16px 20px 40px -8px rgba(62, 78, 128, 0.3),
    inset -6px -8px 14px rgba(98, 116, 168, 0.2),
    inset 6px 8px 14px rgba(255, 255, 255, 0.95);
  --clay-sm: 6px 9px 18px -4px rgba(62, 78, 128, 0.28),
    inset -3px -4px 8px rgba(98, 116, 168, 0.16),
    inset 3px 4px 8px rgba(255, 255, 255, 0.95);
  --clay-lift: 18px 24px 36px -10px rgba(62, 78, 128, 0.42),
    inset -5px -7px 12px rgba(98, 116, 168, 0.2),
    inset 5px 7px 12px rgba(255, 255, 255, 1);
  --clay-yellow: 8px 12px 22px -6px rgba(170, 120, 0, 0.42),
    inset -4px -6px 10px rgba(196, 140, 0, 0.35),
    inset 4px 5px 9px rgba(255, 250, 215, 0.95);
  --clay-yellow-press: 2px 3px 8px -4px rgba(170, 120, 0, 0.4),
    inset 5px 7px 12px rgba(196, 140, 0, 0.35),
    inset -3px -3px 8px rgba(255, 250, 215, 0.8);
  --blob: inset -3px -4px 7px rgba(40, 40, 90, 0.16), inset 3px 4px 6px rgba(255, 255, 255, 0.75);
  --groove: inset 4px 6px 10px rgba(80, 98, 150, 0.2), inset -4px -5px 10px rgba(255, 255, 255, 0.85);

  --display: "Bricolage Grotesque", "Figtree", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 44px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swipe: cubic-bezier(0.3, 0.6, 0.15, 1);
  --ease-squish: cubic-bezier(0.3, 1.6, 0.5, 1);

  --gutter: 20px;
}

/* Dark: the same clay under a dim lamp. Light is the default; the header button sets data-theme="dark". */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #1a1e2c;
  --glow-a: #232a3e;
  --glow-b: #161a26;
  --slab: #232839;
  --tile: #2b3146;
  --tile-hover: #313851;
  --ink: #eef0f8;
  --ink-soft: #b3b9cf;
  --ink-faint: #737a95;
  --yellow-wash: #3d3a2a;
  --red: #ff8a7a;
  --green: #7ed39b;
  --hl-pink: #f7a6c6;
  --hl-green: #97dcae;
  --hl-orange: #f7bf80;
  --hl-blue: #9bc9f5;
  --hl-violet: #c4b3f7;
  --mark-line: #7d84a0;
  --focus: #ffe15a;
  --clay: 16px 20px 40px -8px rgba(0, 0, 0, 0.55),
    inset -6px -8px 14px rgba(0, 0, 0, 0.3),
    inset 6px 8px 14px rgba(255, 255, 255, 0.06);
  --clay-sm: 6px 9px 18px -4px rgba(0, 0, 0, 0.5),
    inset -3px -4px 8px rgba(0, 0, 0, 0.28),
    inset 3px 4px 8px rgba(255, 255, 255, 0.07);
  --clay-lift: 18px 24px 36px -10px rgba(0, 0, 0, 0.7),
    inset -5px -7px 12px rgba(0, 0, 0, 0.3),
    inset 5px 7px 12px rgba(255, 255, 255, 0.09);
  --clay-yellow: 8px 12px 22px -6px rgba(0, 0, 0, 0.55),
    inset -4px -6px 10px rgba(196, 140, 0, 0.4),
    inset 4px 5px 9px rgba(255, 250, 215, 0.8);
  --blob: inset -3px -4px 7px rgba(20, 20, 50, 0.22), inset 3px 4px 6px rgba(255, 255, 255, 0.5);
  --groove: inset 4px 6px 10px rgba(0, 0, 0, 0.35), inset -3px -4px 8px rgba(255, 255, 255, 0.05);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--ground);
  background-image:
    radial-gradient(900px 640px at 80% 12%, var(--glow-a) 0%, transparent 70%),
    radial-gradient(760px 560px at 0% 60%, var(--glow-b) 0%, transparent 70%),
    radial-gradient(900px 640px at 100% 95%, var(--glow-a) 0%, transparent 70%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--yellow);
  color: var(--on-yellow);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 10px;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.ico {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The mark sits on its own clay tile, so the symbol's square is left unpainted. */
.mark-ground {
  fill: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hl-pink { --hl: var(--hl-pink); }
.hl-green { --hl: var(--hl-green); }
.hl-orange { --hl: var(--hl-orange); }
.hl-blue { --hl: var(--hl-blue); }
.hl-violet { --hl: var(--hl-violet); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--hl, var(--yellow));
  box-shadow: var(--blob);
  color: var(--chip-ink);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.mark-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--tile);
  box-shadow: var(--clay-sm);
}

.mark-tile svg {
  display: block;
}

.mark-tile-sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--tile);
  box-shadow: var(--clay-sm);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms var(--ease-squish), box-shadow 180ms ease, background-color 180ms ease;
}

.btn .ico {
  transition: transform 180ms var(--ease-out);
}

.btn-primary {
  background: var(--yellow);
  box-shadow: var(--clay-yellow);
  color: var(--on-yellow);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--groove);
}

.btn-primary:active {
  box-shadow: var(--clay-yellow-press);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px) scale(1.02);
  }

  .btn-quiet:hover {
    background: var(--tile-hover);
  }

  .btn:hover .ico {
    transform: translateX(3px);
  }
}

.btn-sm {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-lg {
  min-height: 62px;
  padding: 0 30px 0 34px;
  font-size: 19px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tile);
  box-shadow: var(--clay-sm);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms var(--ease-squish), box-shadow 180ms ease;
}

.theme-toggle:active {
  transform: scale(0.94);
  box-shadow: var(--groove);
}

@media (hover: hover) {
  .theme-toggle:hover {
    transform: translateY(-2px) rotate(-8deg);
  }
}

.theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-block: 28px 72px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 .hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.hero h1 .hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.1em;
  top: 0.14em;
  bottom: 0;
  border-radius: 0.22em 0.34em 0.26em 0.3em;
  background: var(--yellow);
  box-shadow: var(--clay-yellow);
  transform: rotate(-1.4deg);
}

.hero h1 .hl {
  color: var(--on-yellow);
}

.lede {
  margin-top: 24px;
  max-width: 36ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 32px;
}

/* ---------- Hero demo: the side panel in clay ---------- */

.demo {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.panel {
  position: relative;
  z-index: 1;
  padding: 18px 16px 8px;
  border-radius: var(--r-xl);
  background: var(--slab);
  box-shadow: var(--clay);
  font-size: 1rem;
  line-height: 1.5;
}

.p-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.p-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.p-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  box-shadow: var(--groove);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

.p-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #56c48a;
  box-shadow: inset -1px -2px 3px rgba(0, 80, 40, 0.35), inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.p-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.p-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 14px;
}

.gh {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 8px 0;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.gh-sub,
.gh-count {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.gh-count {
  margin-left: auto;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: var(--groove);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-md);
  background: var(--tile);
  box-shadow: var(--clay-sm);
  transition: background-color 420ms var(--ease-out), box-shadow 320ms ease, rotate 360ms var(--ease-squish);
}

/* The circle you tick is a small pressed dimple. */
.ring {
  justify-self: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: var(--groove), inset 0 0 0 1.5px var(--ink-faint);
}

.row-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

.title {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;
}

.due {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
  white-space: nowrap;
}

.due-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.due-bottom {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.moved {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-soft);
  white-space: nowrap;
}

.was {
  position: relative;
}

.was::after,
.d-start::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 2.5px;
  margin-top: -1px;
  border-radius: 3px;
  background: var(--red);
  transform-origin: left center;
}

.d-start {
  position: relative;
  display: none;
}

.d-start::after {
  transform: scaleX(0);
}

/* The new date is a raised yellow clay pill. */
.is-moved .due-top {
  padding: 5px 11px;
  margin: -5px -4px -3px 0;
  border-radius: 11px 14px 10px 13px;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: var(--clay-yellow);
  color: var(--on-yellow);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  rotate: -1.5deg;
  transition: box-shadow 260ms ease 200ms;
}

/* Finished state: the moved tile sits a little proud and tilted. */
html:not(.anim) .is-moved,
.demo[data-step="end"] .is-moved:not(.is-travelling) {
  z-index: 2;
  box-shadow: var(--clay-lift);
  rotate: -1.2deg;
}

/* Order of the list. The default is the finished state: Assignment 1 sits in next week. */
.o-h1 { order: 1; }
.o-quiz { order: 2; }
.o-a1 { order: 6; }
.o-h2 { order: 4; }
.o-psych { order: 5; }
.o-lab { order: 7; }

.n-start {
  display: none;
}

/* Start state: only when the page can animate and before the move has played. */
html.anim .demo:not([data-step="end"]) .o-a1 { order: 3; }
html.anim .demo:not([data-step="end"]) .n-start { display: inline; }
html.anim .demo:not([data-step="end"]) .n-end { display: none; }
html.anim .demo:not([data-step="end"]) .d-start { display: inline; }
html.anim .demo:not([data-step="end"]) .d-end { display: none; }
html.anim .demo:not([data-step="end"]) .moved { display: none; }
html.anim .demo:not([data-step="end"]) .p-list { padding-bottom: 35px; }
html.anim .demo:not([data-step="end"]) .is-moved .due-top,
html.anim .demo .is-travelling .due-top {
  padding-inline: 0;
  margin-right: 0;
  background-size: 0% 100%;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  rotate: 0deg;
  transition: none;
}

/* Step 1: the tile warms to yellow and the old date gets struck out in red */
.row.is-striking {
  background: var(--yellow-wash);
}

.is-striking .d-start::after {
  animation: strike 400ms var(--ease-swipe) 140ms both;
}

/* Step 2: the tile lifts off the slab and travels to its new week */
.row.is-travelling {
  z-index: 3;
  box-shadow: var(--clay-lift);
}

.is-travelling .moved {
  opacity: 0;
}

html.anim .demo .is-travelling .d-start { display: inline; }
html.anim .demo .is-travelling .d-end { display: none; }

html.anim .demo .is-travelling .d-start::after {
  transform: scaleX(1);
}

/* Step 3: it lands, the new date fills yellow and the old date appears struck */
.is-landing .due-top {
  animation: swipe 460ms var(--ease-swipe) 60ms both;
}

.is-landing .moved {
  animation: fade-up 320ms var(--ease-out) both;
}

.is-landing .was::after {
  animation: strike 380ms var(--ease-swipe) 180ms both;
}

@keyframes strike {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes swipe {
  from {
    background-size: 0% 100%;
    color: var(--ink);
  }
  40% {
    color: var(--on-yellow);
  }
  to {
    background-size: 100% 100%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* A chunky clay highlighter leaning on the panel, wide screens only. */
.marker {
  display: none;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 64px;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "opsz" 72;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section p {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.section .small {
  font-size: 1rem;
}

.cols {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

/* ---------- Dates section ---------- */

.dates-copy {
  display: grid;
  gap: 20px;
}

.dates-copy h2 {
  max-width: 22ch;
}

.scan-lede {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.125rem;
}

.dates-copy .scan-lede {
  margin-top: 0;
}

/* ---------- First scan ---------- */

.section.scan {
  padding-block-start: 0;
}

.scan h2 {
  max-width: 24ch;
}

.found {
  margin-top: 36px;
}

.sheet {
  border-radius: var(--r-lg);
  background: var(--slab);
  box-shadow: var(--clay);
}

.found-sheet {
  padding: 22px 16px 16px;
}

.found-head {
  padding: 0 6px 18px;
}

.section .found-title {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section .found-sub {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
}

.found-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.course {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--tile);
  box-shadow: var(--clay-sm);
}

.c-name {
  flex: 1 1 100%;
  order: 3;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.c-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  box-shadow: var(--groove);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.c-count .ico {
  color: var(--green);
  stroke-width: 2.6;
}

.mid-cta {
  margin-top: 40px;
}

/* ---------- Reminders ---------- */

.split {
  display: grid;
  gap: 48px;
}

.rem-copy h2 {
  max-width: 16ch;
}

.rem-copy p {
  margin-top: 18px;
  max-width: 50ch;
}

.rem-visual {
  position: relative;
  max-width: 540px;
}

.notif {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 -26px 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--tile);
  box-shadow: var(--clay-lift);
  rotate: 1.5deg;
}

.section .notif-app {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.section .notif-title {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

.section .notif-body {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.rem-sheet {
  padding: 44px 18px 18px;
}

.section .rs-title {
  padding-left: 4px;
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.matrix {
  width: 100%;
  margin-top: 10px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.matrix thead th {
  width: 22%;
  padding: 0 2px 2px;
  vertical-align: bottom;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink-soft);
}

.matrix thead th:first-child {
  width: auto;
  padding-left: 14px;
  text-align: left;
}

.matrix tbody th,
.matrix tbody td {
  height: 50px;
  padding: 0;
  background: var(--tile);
}

.matrix tbody th {
  padding-left: 14px;
  border-radius: 16px 0 0 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.matrix tbody td {
  text-align: center;
}

.matrix tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.box {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  border-radius: 9px;
  box-shadow: var(--groove), inset 0 0 0 1.5px var(--ink-faint);
}

.box.on {
  background: var(--yellow);
  box-shadow: var(--clay-yellow);
}

.box.on::after {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--on-yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 10.4l3.4 3.2 7.4-7.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 10.4l3.4 3.2 7.4-7.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.quiet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
  padding: 10px 10px 10px 14px;
  border-radius: 16px;
  background: var(--tile);
  font-size: 15px;
}

.quiet-label {
  margin-right: auto;
  font-weight: 700;
}

.fake-select {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 32px 0 14px;
  border-radius: 999px;
  background-color: var(--slab);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  box-shadow: var(--groove);
  font-weight: 600;
}

/* ---------- Privacy ---------- */

.privacy {
  padding-block: 8px 64px;
}

.privacy-band {
  padding: 28px 22px 32px;
  border-radius: var(--r-xl);
  background: var(--slab);
  box-shadow: var(--clay);
}

.lock-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: var(--hl-violet);
  box-shadow: var(--blob), 6px 9px 18px -4px rgba(62, 78, 128, 0.3);
  color: var(--chip-ink);
  rotate: -4deg;
}

.privacy-band h2 {
  max-width: 18ch;
}

.privacy-band p {
  max-width: 50ch;
}

.privacy-band strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Waitlist ---------- */

.waitlist-inner {
  display: grid;
  gap: 28px;
}

.waitlist-copy p {
  margin-top: 12px;
  max-width: 46ch;
}

.form-sheet {
  padding: 20px 18px 10px;
  border-radius: var(--r-lg);
  background: var(--slab);
  box-shadow: var(--clay);
  color: var(--ink);
}

/* The Tally embed draws dark text on a transparent background, so it sits on a light clay tile. */
.form-sheet iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--r-md);
  background: #f8f9fd;
  color-scheme: light;
}

.form-fallback {
  padding: 6px 4px 14px;
}

.section .form-fallback p {
  font-size: 1rem;
}

.section .form-fallback .fallback-title {
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section .form-help,
.section .form-pending {
  margin-top: 14px;
  font-size: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  gap: 14px;
  padding-block: 32px 44px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.site-footer p {
  max-width: 64ch;
}

.logo-small {
  gap: 10px;
}

.logo-small .mark-tile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.logo-small .wordmark {
  font-size: 21px;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .privacy-band {
    padding: 44px;
  }

  .found-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 22px 22px 10px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 48px;
  }

  .site-header {
    padding-block: 26px 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 64px;
    padding-block: 40px 88px;
  }

  .demo {
    justify-self: end;
  }

  .panel {
    rotate: 1.2deg;
  }

  .marker {
    position: absolute;
    right: -118px;
    bottom: -34px;
    z-index: 3;
    display: block;
    width: 250px;
    height: 70px;
    transform: rotate(-38deg) scale(0.74);
    pointer-events: none;
  }

  .m-body {
    position: absolute;
    left: 40px;
    top: 6px;
    width: 170px;
    height: 58px;
    border-radius: 30px 22px 22px 30px;
    background: var(--yellow);
    box-shadow: 14px 18px 26px -8px rgba(40, 40, 60, 0.35),
      inset -6px -10px 14px rgba(196, 140, 0, 0.45),
      inset 6px 8px 12px rgba(255, 250, 215, 1);
  }

  .m-band {
    position: absolute;
    left: 150px;
    top: 6px;
    width: 22px;
    height: 58px;
    background: #f7d33a;
    box-shadow: inset -3px -6px 8px rgba(196, 140, 0, 0.4), inset 3px 4px 6px rgba(255, 250, 215, 0.7);
  }

  .m-tip {
    position: absolute;
    left: 6px;
    top: 18px;
    width: 50px;
    height: 34px;
    border-radius: 8px 4px 4px 14px;
    background: #ffd43a;
    clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 82%);
    box-shadow: inset 3px 3px 6px rgba(255, 250, 215, 0.8), inset -3px -4px 6px rgba(180, 120, 0, 0.5);
  }

  .m-cap {
    position: absolute;
    left: 204px;
    top: 2px;
    width: 44px;
    height: 66px;
    border-radius: 12px 26px 26px 12px;
    background: #1f2440;
    box-shadow: 10px 14px 20px -8px rgba(20, 24, 60, 0.45),
      inset -5px -8px 10px rgba(0, 0, 0, 0.45),
      inset 4px 6px 8px rgba(140, 150, 200, 0.55);
  }

  .section {
    padding-block: 112px;
  }

  .dates-copy {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 64px;
  }

  .dates-copy .scan-lede {
    padding-bottom: 6px;
  }

  .found {
    margin-top: 48px;
  }

  .found-sheet {
    padding: 30px 26px 26px;
  }

  .found-head {
    padding: 0 6px 22px;
  }

  .found-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .course {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px 16px;
  }

  .course:nth-child(odd) {
    rotate: -1deg;
  }

  .course:nth-child(even) {
    rotate: 1deg;
  }

  .c-name {
    flex: none;
    order: 0;
    width: 100%;
    min-height: 2.7em;
  }

  .c-count {
    margin-left: 0;
    margin-top: auto;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 88px;
  }

  .rem-visual {
    order: -1;
    width: 100%;
    padding-top: 44px;
  }

  .notif {
    position: absolute;
    top: 0;
    right: -36px;
    width: 350px;
    margin: 0;
  }

  .rem-sheet {
    padding: 84px 26px 26px;
  }

  .privacy {
    padding-block: 0 112px;
  }

  .privacy-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 64px;
    padding: 60px;
  }

  .privacy-band .lock-mark,
  .privacy-band h2 {
    grid-column: 1;
  }

  .privacy-band .cols {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
  }

  .waitlist-inner {
    grid-template-columns: minmax(0, 580px);
    justify-content: center;
    gap: 32px;
  }

  .form-sheet {
    padding: 28px 28px 14px;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 40px;
  }

  .site-footer p {
    justify-self: end;
  }
}

/* ---------- Narrow phones ---------- */

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .wordmark {
    font-size: 22px;
  }

  .logo {
    gap: 10px;
  }

  .site-header .mark-tile {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .btn-sm {
    padding: 0 16px;
    font-size: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .hero-cta {
    width: 100%;
  }

  .panel {
    padding: 16px 10px 6px;
    border-radius: 34px;
  }

  .p-status {
    font-size: 12px;
  }

  .row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px 10px 8px;
  }

  .ring {
    width: 20px;
    height: 20px;
  }

  .type {
    font-size: 13px;
  }

  .matrix thead th:first-child,
  .matrix tbody th {
    padding-left: 10px;
  }

  .matrix tbody th {
    font-size: 14px;
  }

  .matrix thead th {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .site-header .wordmark {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .site-header .btn-sm {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
