/* KeyHabit landing page.
   Colours come from the app (App/Design/Theme.swift): near-black, ember for
   "locked" and primary actions, mint for "done" and "unlocked". The phone and the
   pieces of app UI always use the app's dark colours, because the app is dark only.
   No fonts are loaded: ui-rounded is SF Rounded on Apple devices, the app's own
   display face. */

:root {
  --bg: #0b0c0f;
  --surface: #17181e;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.66);
  --rule: rgba(255, 255, 255, 0.12);
  --ember: #ff6b3d;
  --mint: #3ddb96;
  --ember-ink: #ff6b3d;
  --mint-ink: #3ddb96;
  --glow: 0.2;

  /* The app's own colours, the same in light and dark. */
  --app-bg: #0b0c0f;
  --app-surface: #17181e;
  --app-high: #22242c;
  --app-text-2: rgba(255, 255, 255, 0.62);
  --app-stroke: rgba(255, 255, 255, 0.08);

  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --section: 76px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f1f2f5;
    --surface: #ffffff;
    --text: #0b0c0f;
    --text-2: rgba(11, 12, 15, 0.68);
    --rule: rgba(11, 12, 15, 0.14);
    --ember-ink: #b93c15;
    --mint-ink: #0a7447;
    --glow: 0.26;
  }
}

@media (min-width: 760px) {
  :root {
    --gutter: 40px;
    --section: 120px;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 13.5vw, 6.25rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 6.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ember-ink);
}

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

img,
svg {
  display: block;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ember);
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: #000;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.lead {
  font-size: clamp(1.1875rem, 2.1vw, 1.375rem);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}

.placeholder {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px dashed var(--ember-ink);
  color: var(--ember-ink);
}

/* Header */

.site-header {
  padding-top: max(14px, env(safe-area-inset-top));
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand img {
  border-radius: 23%;
}

.header-nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
}

.header-nav a {
  color: var(--text-2);
  text-decoration: none;
  padding-block: 12px;
}

.header-nav a:hover {
  color: var(--text);
}

.cta-slot-small {
  margin-left: auto;
}

@media (min-width: 760px) {
  .header-nav {
    display: flex;
  }

  .cta-slot-small {
    margin-left: 0;
  }
}

/* Call to action. "soon" is what shows today; "btn" is what site.js swaps in once
   APP_STORE_URL is set. */

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
}

.soon .icon {
  color: var(--ember-ink);
  font-size: 1.125rem;
}

.soon-small {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 18px;
  background: var(--ember);
  color: #000;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}

.btn:hover {
  color: #000;
  background: #ff7d54;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
}

/* Hero */

.hero {
  padding-block: 36px var(--section);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  gap: 52px;
}

.hero-copy .lead {
  margin-top: 22px;
}

.hero-copy .cta-slot {
  margin-top: 30px;
}

.fineprint {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: 30em;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 64px;
  }

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

/* Demo: a drawing of an iPhone that runs the real loop. */

.demo {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

/* The glow behind the phone is ember while the demo is locked and turns mint when
   the apps unlock, the same two states the app's home screen shows. */
.demo::before,
.demo::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(820px, 190vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--ember), transparent);
  opacity: var(--glow);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.demo::after {
  background: radial-gradient(closest-side, var(--mint), transparent);
  opacity: 0;
}

.demo[data-stage="success"]::before,
.demo[data-stage="unlocked"]::before {
  opacity: 0;
}

.demo[data-stage="success"]::after,
.demo[data-stage="unlocked"]::after {
  opacity: var(--glow);
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 620;
  border-radius: 48px;
  background: var(--app-bg);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 0 9px #1c1d24,
    0 0 0 10px rgba(255, 255, 255, 0.14),
    0 40px 70px -30px rgba(0, 0, 0, 0.75);
  margin: 10px;
  overflow: hidden;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.35;
  -webkit-user-select: none;
  user-select: none;
}

.island {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 50%;
  width: 84px;
  height: 25px;
  margin-left: -42px;
  border-radius: 14px;
  background: #000;
}

.statusbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  padding: 2px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

.battery {
  width: 23px;
  height: 11px;
  border-radius: 3.5px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(#fff, #fff) 1.5px center / 13px 6px no-repeat;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 64px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.js .screen {
  animation: screen-in 0.3s ease-out;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.phone button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Home screen */

.screen-home {
  padding-top: 92px;
  background: radial-gradient(120% 70% at 50% 0%, #1b1d26, var(--app-bg));
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 26px 20px;
}

.tiles li {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.phone .tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  background: var(--app-high);
  font-size: 27px;
  color: #fff;
}

.tile-name {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}

.phone .tile.is-lockable {
  background: var(--app-high);
  color: rgba(255, 255, 255, 0.34);
}

.badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ember);
  color: #000;
  font-size: 13px;
}

.demo[data-stage="home"] .tile.is-lockable {
  animation: nudge 2.6s ease-in-out 1.2s 2;
}

@keyframes nudge {
  0%,
  100% {
    transform: none;
  }
  8% {
    transform: scale(1.07);
  }
  16% {
    transform: none;
  }
}

.demo[data-stage="unlocked"] .badge {
  display: none;
}

.demo[data-stage="unlocked"] .phone .tile.is-lockable {
  color: #fff;
  cursor: default;
}

/* The lock screen a locked app shows */

.screen-shield {
  background: #101116;
}

.shield-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 6px;
}

.shield-icon {
  font-size: 46px;
  color: var(--ember);
  margin-bottom: 10px;
}

.shield-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.shield-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
}

.shield-actions {
  width: 100%;
  display: grid;
  gap: 4px;
}

.phone .app-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  background: var(--ember);
  color: #000;
  font-weight: 600;
  font-size: 16px;
}

.phone .app-btn-mint {
  background: var(--mint);
}

.phone .app-link {
  min-height: 44px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.phone .banner {
  position: absolute;
  z-index: 4;
  top: 46px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 22px;
  background: rgba(52, 54, 64, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
  animation: banner-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.25s backwards;
}

@keyframes banner-in {
  from {
    transform: translateY(-140%);
  }
}

.banner img {
  border-radius: 9px;
  flex: none;
}

.banner-text {
  display: grid;
  gap: 1px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.86);
}

.banner-text strong {
  color: #fff;
  font-size: 13.5px;
}

.banner-time {
  align-self: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Check-in */

.screen-checkin {
  justify-content: flex-end;
  gap: 6px;
}

.phone .round-close {
  position: absolute;
  top: 56px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--app-surface);
  color: var(--app-text-2);
  font-size: 15px;
}

.ring {
  position: relative;
  width: 172px;
  height: 172px;
  margin-bottom: 18px;
}

.ring > svg {
  width: 100%;
  height: 100%;
}

.ring circle {
  fill: none;
  stroke: var(--mint);
  stroke-width: 11;
}

.ring-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.05;
}

.ring-inner .icon {
  font-size: 22px;
  color: var(--mint);
}

.checkin-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
}

.checkin-hint {
  color: var(--app-text-2);
  margin-bottom: 34px;
}

.phone .hold {
  position: relative;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: rgba(61, 219, 150, 0.22);
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
}

.hold-fill {
  position: absolute;
  inset: 0;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out;
}

.hold.is-holding .hold-fill {
  transform: scaleX(1);
  transition: transform 0.8s linear;
}

.hold-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
}

/* Success */

.screen-success {
  justify-content: flex-end;
  gap: 8px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(61, 219, 150, 0.16);
  color: var(--mint);
  font-size: 46px;
  margin-bottom: 10px;
}

.success-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
}

.success-text {
  color: var(--app-text-2);
  margin-bottom: 96px;
  padding-inline: 6px;
}

.demo-caption {
  min-height: 3.1em;
  max-width: 19em;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-2);
}

.demo-again {
  margin-top: -14px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mint-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* Sections */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.prose .lead {
  margin-top: 20px;
}

/* How it works */

.steps {
  margin-top: 44px;
  display: grid;
  gap: 52px;
}

.step {
  display: grid;
  gap: 14px;
  align-content: start;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--ember);
  color: #000;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}

.step > p {
  color: var(--text-2);
  max-width: 30em;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
  }

  .step {
    grid-template-rows: auto minmax(8.2em, auto) auto;
  }
}

/* Pieces of the app's own screens. Always dark. */

.ui {
  margin-top: 10px;
  padding: 20px 18px;
  border-radius: 28px;
  background: var(--app-bg);
  color: #fff;
  display: grid;
  gap: 10px;
  align-content: start;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: 0 0 0 1px var(--rule);
}

.ui-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 6px;
}

.ui-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: var(--app-surface);
  box-shadow: 0 0 0 1px var(--app-stroke) inset;
}

.ui-card.is-selected {
  box-shadow: 0 0 0 2px var(--ember) inset;
}

.ui-card-icon {
  font-size: 24px;
  color: var(--ember);
  margin-top: 1px;
}

.ui-strong {
  font-weight: 600;
}

.ui-muted {
  color: var(--app-text-2);
  font-size: 14px;
}

.ui-big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}

.minutes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.minutes span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 12px;
  background: var(--app-high);
  font-weight: 600;
  font-size: 14px;
}

.minutes .is-on {
  background: var(--ember);
  color: #000;
}

.ui-promise {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ui-promise p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
}

.ui-promise .icon {
  font-size: 20px;
  color: var(--ember);
}

.ui-status {
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.status-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: rgba(61, 219, 150, 0.16);
  color: var(--mint);
  font-size: 26px;
}

.ui-habit {
  display: grid;
  gap: 14px;
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.habit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(61, 219, 150, 0.14);
  color: var(--mint);
  font-size: 21px;
}

.habit-text {
  flex: 1;
}

.habit-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-weight: 600;
  font-size: 14px;
}

.habit-done .icon {
  font-size: 16px;
}

.week {
  display: flex;
  align-items: center;
}

.week span {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.week i {
  font-style: normal;
  font-size: 11px;
  color: var(--app-text-2);
}

.week b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app-high);
}

.week .is-on {
  background: var(--mint);
}

.week .is-today {
  box-shadow: 0 0 0 3px var(--app-surface), 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.week em {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 52px;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--ember);
}

/* Comparison */

.compare {
  width: 100%;
  margin-top: 48px;
  border-collapse: collapse;
  text-align: left;
}

.compare thead th {
  padding: 0 20px 14px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
}

.compare tbody th,
.compare td {
  padding: 22px 20px 22px 0;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}

.compare tbody th {
  width: 24%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.2;
}

.compare td {
  color: var(--text-2);
  max-width: 24em;
}

.compare .is-us th {
  color: var(--ember-ink);
}

.compare .is-us td {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 719px) {
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare tr {
    padding-block: 22px;
    border-top: 1px solid var(--rule);
  }

  .compare tbody th,
  .compare td {
    width: auto;
    padding: 0;
    border: 0;
  }

  .compare td {
    margin-top: 12px;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-2);
  }
}

.points {
  margin-top: 56px;
  display: grid;
  gap: 36px;
}

.points h3 {
  margin-bottom: 8px;
}

.points p {
  color: var(--text-2);
  max-width: 32em;
}

@media (min-width: 900px) {
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The details */

.facts {
  margin-top: 40px;
  display: grid;
}

.facts > div {
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}

.facts dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
  margin-bottom: 6px;
}

.facts dd {
  color: var(--text-2);
  max-width: 34em;
}

@media (min-width: 760px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
  }
}

/* Questions */

.faq-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 2fr;
    gap: 56px;
  }
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A plus that loses its upright when open. */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--ember-ink);
}

.faq summary::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: none;
}

.faq details p {
  padding: 0 44px 22px 0;
  color: var(--text-2);
  max-width: 38em;
}

/* Closing: the unlocked state, in mint. */

.closing .wrap {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.closing-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 18%, transparent);
  color: var(--mint-ink);
  font-size: 32px;
  margin-bottom: 6px;
}

.closing h2 {
  font-size: clamp(2.75rem, 10vw, 5rem);
  line-height: 0.98;
}

.closing .cta-slot {
  margin-top: 14px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 40px max(40px, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  color: var(--text-2);
}

.footer-row {
  display: grid;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand .brand {
  color: var(--text);
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.footer-links li {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a {
  padding-block: 10px;
}

.legal {
  font-size: 0.8125rem;
  max-width: 44em;
}

@media (min-width: 760px) {
  .footer-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .legal {
    grid-column: 1 / -1;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 404 page */

.notfound {
  padding-block: clamp(56px, 14vh, 140px) var(--section);
}

.notfound .lead {
  margin-top: 22px;
}

.notfound-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
