/*
 * steadez.com landing page. Built from Figma "steadEZ landing page: concept 2026-11-19" (node 203:1031).
 * Only Dezign tokens (--dez-*, ez-web theme mode); no hex values. Private variables start with --_.
 * Small Dezign look-alikes (button, badge, icon container, field, checkbox) are plain CSS here because
 * the site ships no web components; the WordPress theme reuses this file.
 */

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

html {
  /* Dark only: <html data-theme="dark"> switches the Dezign tokens. */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dez-bg-secondary); /* Figma page frame */
  color: var(--dez-text-primary);
  font: var(--dez-typo-body-md-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--dez-border-brand);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-block-start: var(--dez-space-md);
  inset-inline-start: var(--dez-space-md);
  z-index: 10;
  padding: var(--dez-space-md) var(--dez-space-lg);
  border-radius: var(--dez-radius-md);
  background: var(--dez-bg-primary);
  font: var(--dez-typo-label-md-medium);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.icon {
  inline-size: var(--_icon, var(--dez-icon-size-md));
  block-size: var(--_icon, var(--dez-icon-size-md));
  flex: none;
  stroke: currentColor;
}

/* Shared text roles */
.eyebrow {
  color: var(--dez-text-accent-static);
  font: var(--dez-typo-eyebrow-md-semibold);
  letter-spacing: var(--dez-typo-eyebrow-md-semibold-tracking);
  text-transform: uppercase;
}

.h2 {
  font: var(--dez-typo-heading-2-semibold);
  text-wrap: balance;
}

.lead {
  color: var(--dez-text-secondary);
  font: var(--dez-typo-body-md-regular);
  text-wrap: pretty;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dez-space-lg);
  max-inline-size: 702px;
  margin-inline: auto;
  text-align: center;
}

/* ---- Dezign look-alikes ------------------------------------------------------ */

/* Button (Figma › Button, solid since 2026-11-19), mirroring Dezign's dez-button: one set of private
   --_ properties per variant (rest, hover, pressed); focus shows the hover fill plus the focus ring. */
.btn {
  --_h: var(--dez-button-md-height);
  --_pad: var(--dez-button-md-padding-inline);
  --_fs: var(--dez-button-md-font-size);
  --_bg: transparent;
  --_fg: var(--dez-text-secondary);
  --_bd: transparent;
  --_bg-hover: var(--_bg);
  --_bd-hover: var(--_bd);
  --_bg-active: var(--_bg-hover);
  --_bd-active: var(--_bd-hover);
  --_bg-focus: var(--_bg-hover);
  --_bd-focus: var(--_bd);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dez-space-sm);
  block-size: var(--_h);
  /* Figma: button padding plus the label container's own space-xs on each side */
  padding-inline: calc(var(--_pad) + var(--dez-space-xs));
  border: var(--dez-button-border-width) solid var(--_bd);
  border-radius: var(--dez-button-border-radius);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--dez-font-ui);
  font-size: var(--_fs);
  font-weight: var(--dez-button-font-weight);
  line-height: 1;
  letter-spacing: var(--dez-button-letter-spacing);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}
.btn:hover {
  background: var(--_bg-hover);
  border-color: var(--_bd-hover);
  color: var(--_fg);
}
.btn:active {
  background: var(--_bg-active);
  border-color: var(--_bd-active);
}
.btn:focus-visible {
  outline: none;
  background: var(--_bg-focus);
  border-color: var(--_bd-focus);
  box-shadow: var(--dez-focus-ring);
}
.btn--lg {
  --_h: var(--dez-button-lg-height);
  --_pad: var(--dez-button-lg-padding-inline);
  --_fs: var(--dez-button-lg-font-size);
}
.btn--sm {
  --_h: var(--dez-button-sm-height);
  --_pad: var(--dez-button-sm-padding-inline);
  --_fs: var(--dez-button-sm-font-size);
}
/* Primary in brand blue (Dezign's default) */
.btn--brand {
  --_bg: var(--dez-bg-brand);
  --_fg: var(--dez-text-inverted-static);
  --_bg-hover: var(--dez-bg-brand-hover);
  --_bg-active: var(--dez-bg-brand-pressed);
}
/* Primary with the accent fill, as the landing page's main call to action uses it in Figma */
.btn--accent {
  --_bg: var(--dez-bg-accent);
  --_fg: var(--dez-text-inverted-static);
  --_bg-hover: var(--dez-bg-accent-hover);
  --_bg-active: var(--dez-bg-accent-pressed);
}
.btn--outline {
  --_fg: var(--dez-text-secondary);
  --_bd: var(--dez-border-secondary);
  --_bd-hover: var(--dez-border-primary);
  --_bd-active: var(--dez-border-shade-strong);
  --_bg-focus: var(--dez-bg-primary);
  --_bd-focus: var(--dez-border-tertiary);
}
.btn--secondary {
  --_bg: var(--dez-bg-brand-subtle);
  --_fg: var(--dez-text-brand-on-color);
  --_bd: var(--dez-border-brand-subtle);
  --_bg-hover: var(--dez-bg-brand-subtle-hover);
  --_bd-hover: var(--dez-border-brand-subtle-hover);
  --_bg-active: var(--dez-bg-brand-subtle-pressed);
  --_bd-active: var(--dez-border-brand-subtle-pressed);
}

/* Badge (Figma › Badge, Medium, Border) */
.badge {
  --_bg: var(--dez-bg-secondary);
  --_fg: var(--dez-text-tertiary);
  --_bd: var(--dez-border-secondary);

  display: inline-flex;
  align-items: center;
  block-size: var(--dez-badge-md-height);
  padding-inline: var(--dez-badge-md-padding-inline);
  border: var(--dez-badge-border-width) solid var(--_bd);
  border-radius: var(--dez-badge-border-radius);
  background: var(--_bg);
  color: var(--_fg);
  font: var(--dez-typo-label-xs-medium);
  white-space: nowrap;
}
.badge--positive {
  --_bg: var(--dez-bg-positive-subtle);
  --_fg: var(--dez-text-positive);
  --_bd: var(--dez-border-positive-subtle);
}

/* Icon with container (Figma › Icon, Container=Yes) */
.icon-box {
  --_size: calc(var(--dez-space-xl) * 2);
  --_bg: var(--dez-bg-secondary);
  --_bd: var(--dez-border-secondary);
  --_fg: var(--dez-fg-secondary);
  --_icon: var(--dez-icon-size-md);

  display: inline-grid;
  place-items: center;
  inline-size: var(--_size);
  block-size: var(--_size);
  border: var(--dez-border-width-sm) solid var(--_bd);
  border-radius: var(--dez-radius-rounded);
  background: var(--_bg);
  color: var(--_fg);
}
.icon-box--sm {
  --_size: var(--dez-space-2xl);
  --_icon: var(--dez-icon-size-sm);
}
.icon-box--positive {
  --_bg: var(--dez-bg-positive-subtle);
  --_bd: var(--dez-border-positive-subtle);
  --_fg: var(--dez-fg-positive);
}

/* Bullet (LP/Bullet): check + text */
.bullets {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-md);
  padding-block-start: var(--dez-space-sm);
}
.bullets li {
  --_icon: var(--dez-icon-size-md);

  display: flex;
  gap: var(--dez-space-md);
  color: var(--dez-text-secondary);
  font: var(--dez-typo-body-xs-regular);
}
.bullets .icon {
  color: var(--dez-fg-brand);
}

/* ---- nav -------------------------------------------------------------------- */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dez-space-xl);
  block-size: 92px;
  /* Same width as the Figma frame (1440), centred on wider screens. */
  max-inline-size: 1440px;
  margin-inline: auto;
  padding-inline: var(--dez-space-6xl);
}

.logo {
  display: block;
  padding: var(--dez-space-md) var(--dez-space-sm);
}
.logo img {
  inline-size: 164px;
  block-size: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--dez-space-3xl);
  color: var(--dez-text-inverted-static);
  font: var(--dez-typo-label-md-semibold);
}
.nav__links a:hover {
  color: var(--dez-text-accent-static);
}

/* ---- hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-block-start: -92px; /* backdrop runs under the nav */
  padding-block-start: 92px;
}

.hero__backdrop {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  block-size: 810px;
  /* Always the Figma size (1440 x 810), centred, so the photo sits in the same place behind the text
     at every width. Narrower screens crop the sides; wider ones show it as a cut 1440 block. */
  background: url('../images/hero-bg.webp') center top / 1440px 810px no-repeat;
}

/* Wider than the design: the backdrop stays 1440 wide, centred, with straight cut edges. */
@media (min-width: 1441px) {
  .hero__backdrop {
    inline-size: 1440px;
    margin-inline: auto;
  }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dez-space-3xl);
  padding: var(--dez-space-6xl) var(--dez-space-xl) 0;
  text-align: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dez-space-lg);
}

.hero__eyebrow {
  color: var(--dez-text-accent-static);
  font: var(--dez-typo-body-md-medium);
}

.hero__title {
  max-inline-size: 760px;
  color: var(--dez-text-inverted-static);
  font: var(--dez-typo-display-xl-semibold);
  letter-spacing: var(--dez-typo-display-xl-semibold-tracking);
  text-wrap: balance;
}

.hero__lead {
  max-inline-size: 720px;
  color: var(--dez-text-inverted-static);
  font: var(--dez-typo-body-md-regular);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--dez-space-lg);
}

.hero__note {
  color: var(--dez-text-tertiary-static);
  font: var(--dez-typo-body-sm-regular);
}

/* Product peek: a Hustlean week board */
.peek {
  position: relative;
  inline-size: min(1120px, 100%);
  margin-block-start: var(--dez-space-lg);
  padding: var(--dez-space-3xl);
  overflow: hidden;
  border-radius: var(--dez-radius-xl) var(--dez-radius-xl) 0 0;
  background: var(--dez-bg-app);
  text-align: start;
}
.peek::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  block-size: 90px;
  background: linear-gradient(transparent, var(--dez-bg-secondary));
  pointer-events: none;
}

.peek__head {
  display: flex;
  align-items: center;
  gap: var(--dez-space-md);
  margin-block-end: var(--dez-space-xl);
}
.peek__head .icon-box {
  --_size: var(--dez-space-3xl);
  --_icon: var(--dez-icon-size-sm);
}
.peek__week {
  color: var(--dez-text-tertiary);
  font: var(--dez-typo-label-sm-regular);
}
.peek__total {
  margin-inline-start: auto;
  color: var(--dez-text-secondary);
  font: var(--dez-typo-label-sm-semibold);
}

.peek__days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dez-space-lg);
}

.day {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-md);
}
.day__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block-end: var(--dez-space-sm);
  font: var(--dez-typo-label-lg-semibold);
}
.day__head span {
  color: var(--dez-text-tertiary);
  font: var(--dez-typo-body-xs-regular);
}

.note {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-sm);
  padding: var(--dez-space-lg);
  border-radius: var(--dez-radius-lg);
  background: var(--dez-bg-secondary);
}
.note__title {
  display: flex;
  align-items: center;
  gap: var(--dez-space-sm);
  font: var(--dez-typo-label-md-medium);
}
.note__title::before {
  content: '';
  inline-size: 6px;
  block-size: 6px;
  border-radius: var(--dez-radius-rounded);
  background: var(--_dot, var(--dez-fg-brand));
}
.note--accent {
  --_dot: var(--dez-fg-accent);
}
.note--positive {
  --_dot: var(--dez-fg-positive);
}
.note__meta {
  --_icon: 11px;

  display: flex;
  align-items: center;
  gap: var(--dez-space-xs);
  color: var(--dez-text-tertiary);
  font: var(--dez-typo-label-xs-medium);
}
.note__meta .project {
  margin-inline-end: auto;
}
.note__meta time {
  color: var(--dez-text-secondary);
}

.note--running {
  gap: var(--dez-space-xs);
  background: var(--dez-bg-brand);
  color: var(--dez-text-inverted-static);
}
.note--running .note__title::before {
  content: none;
}
.note__running-label {
  font: var(--dez-typo-label-xs-medium);
}
.note__timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dez-space-md);
  font: var(--dez-typo-heading-2-semibold);
  font-variant-numeric: tabular-nums;
}

/* ---- apps ------------------------------------------------------------------- */
.apps {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-xl);
  padding: var(--dez-space-6xl) var(--dez-space-xl);
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dez-space-2xl);
  inline-size: min(1100px, 100%);
  margin-inline: auto;
  padding-block-start: var(--dez-space-3xl);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-lg);
  padding: var(--dez-space-3xl);
  border: var(--dez-border-width-sm) solid transparent;
  border-radius: var(--dez-radius-xl);
  background: var(--dez-bg-primary);
}
.card--live {
  border-color: var(--dez-border-positive);
}
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-block-end: var(--dez-space-md);
}
.card__name {
  font: var(--dez-typo-heading-4-semibold);
}
.card__text {
  font: var(--dez-typo-body-sm-medium);
}

/* ---- plain words -------------------------------------------------------------- */
.words {
  padding: var(--dez-space-6xl) var(--dez-space-xl);
  background: var(--dez-bg-app);
}

.words__inner {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 540px);
  align-items: center;
  justify-content: center;
  gap: var(--dez-space-6xl);
}

.words__copy {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-xl);
}
.words__copy .lead {
  color: var(--dez-text-primary);
}

.demo {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-lg);
  padding: var(--dez-space-3xl);
  border-radius: var(--dez-radius-xl);
  background: var(--dez-bg-primary);
}

.demo__typed {
  --_icon: var(--dez-icon-size-md);

  display: flex;
  align-items: flex-start;
  gap: var(--dez-space-md);
  padding: var(--dez-space-lg) var(--dez-space-xl);
  border-radius: var(--dez-radius-xl);
  background: var(--dez-bg-app);
  font: var(--dez-typo-body-sm-regular);
}
.demo__typed .icon {
  color: var(--dez-fg-secondary);
}
.demo__typed q {
  flex: 1;
}
.demo__typed .badge {
  margin-block-start: 2px;
}

.demo__read {
  display: flex;
  align-items: center;
  gap: var(--dez-space-md);
  padding: var(--dez-space-lg) var(--dez-space-xl) var(--dez-space-lg) var(--dez-space-4xl);
  border-radius: var(--dez-radius-xl);
  /* Figma: bg-brand at 22% */
  background: color-mix(in srgb, var(--dez-bg-brand) 22%, transparent);
}
.demo__read div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--dez-space-sm);
}
.demo__read strong {
  font: var(--dez-typo-label-md-medium);
}
.demo__read div span {
  color: var(--dez-text-secondary);
  font: var(--dez-typo-label-sm-regular);
}

.demo__foot {
  --_icon: var(--dez-icon-size-md);

  display: flex;
  align-items: center;
  gap: var(--dez-space-sm);
  color: var(--dez-text-secondary);
  font: var(--dez-typo-body-sm-regular);
}

/* ---- waitlist --------------------------------------------------------------- */
.waitlist {
  padding: var(--dez-space-5xl) var(--dez-space-xl);
}

.waitlist__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dez-space-lg);
  max-inline-size: 800px;
  margin-inline: auto;
  padding: var(--dez-space-6xl) 0;
  text-align: center;
}
.waitlist__block .lead {
  max-inline-size: 618px;
  color: var(--dez-text-primary);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-md);
  inline-size: min(523px, 100%);
  padding-block-start: var(--dez-space-lg);
  text-align: start;
}
.form__row {
  display: flex;
  gap: var(--dez-space-md);
}

/* Text field (Figma › Text field, Large, leading icon) */
.field {
  --_icon: var(--dez-input-lg-icon-size);

  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
}
.field .icon {
  position: absolute;
  inset-inline-start: var(--dez-space-lg);
  color: var(--dez-fg-tertiary);
  pointer-events: none;
}
.field input {
  inline-size: 100%;
  block-size: var(--dez-input-lg-height);
  padding-inline: calc(var(--dez-space-lg) + var(--_icon) + var(--dez-space-sm)) var(--dez-space-lg);
  border: var(--dez-input-border-width) solid var(--dez-input-border-default);
  border-radius: var(--dez-input-border-radius);
  background: var(--dez-input-bg-default);
  box-shadow: var(--dez-shadow-xs);
  color: var(--dez-text-primary);
  font: var(--dez-typo-body-sm-regular);
}
.field input::placeholder {
  color: var(--dez-text-placeholder);
}
.field input:hover {
  border-color: var(--dez-input-border-default-hover);
}
.field input:focus-visible {
  border-color: var(--dez-input-border-default-focus);
  outline: none;
  box-shadow: var(--dez-focus-ring);
}

/* Checkbox field (Figma › Checkbox field, Medium) */
.check {
  display: flex;
  gap: var(--dez-space-md);
  color: var(--dez-text-secondary);
  font: var(--dez-typo-label-sm-regular);
  line-height: 1.4;
  cursor: pointer;
}
.check input {
  flex: none;
  inline-size: var(--dez-controls-sm-height);
  block-size: var(--dez-controls-sm-height);
  margin: 1px 0 0;
  accent-color: var(--dez-bg-brand);
}
.check a {
  color: var(--dez-text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sending state (static form and Fluent Forms): the button keeps its fill and shows Dezign's spinner and
   "Sending…"; the email field and the checkbox look and act disabled until the answer comes back. */
.spinner {
  flex: none;
  inline-size: var(--_spinner, var(--dez-button-lg-icon-size));
  block-size: var(--_spinner, var(--dez-button-lg-icon-size));
  animation: steadez-spin 0.8s linear infinite;
}
.spinner circle {
  fill: none;
  stroke: currentColor; /* the button label colour */
  stroke-width: 2;
  /* Figma › Spinner (as dez-spinner): a three-quarter ring, r = 8 in a 24 box */
  stroke-dasharray: 37.7 50.27;
  transform: rotate(-90deg);
  transform-origin: center;
}
@keyframes steadez-spin {
  to {
    transform: rotate(1turn);
  }
}
.is-sending :is(button, .btn, .ff-btn-submit)[type='submit'] {
  gap: var(--dez-space-sm);
  cursor: progress;
  pointer-events: none;
}
.is-sending input[type='email'] {
  border-color: var(--dez-border-disabled);
  background: var(--dez-bg-disabled);
  box-shadow: none;
  color: var(--dez-text-disabled);
  pointer-events: none;
}
.is-sending :is(.check, .ff-el-form-check, .ff-el-form-check-label) {
  color: var(--dez-text-disabled);
  pointer-events: none;
}
.is-sending input[type='checkbox'] {
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}

.form__status {
  color: var(--dez-text-positive);
  font: var(--dez-typo-body-sm-medium);
}
.form__status:empty {
  display: none;
}

/* ---- footer ----------------------------------------------------------------- */
.footer-wrap {
  padding: 0 var(--dez-space-xl) var(--dez-space-6xl);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dez-space-4xl);
  max-inline-size: 1280px;
  margin-inline: auto;
  padding: var(--dez-space-5xl) var(--dez-space-6xl) var(--dez-space-4xl);
  border-radius: var(--dez-radius-xl);
  background: var(--dez-bg-primary);
}

.footer__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  inline-size: 100%;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-xl);
}
.footer__brand p {
  max-inline-size: 209px;
  color: var(--dez-text-secondary);
  font: var(--dez-typo-body-sm-regular);
}

.footer__col h2 {
  color: var(--dez-text-disabled);
  font: var(--dez-typo-label-md-medium);
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-md);
  padding-block-start: var(--dez-space-3xl);
  color: var(--dez-text-tertiary);
  font: var(--dez-typo-body-sm-regular);
}
.footer__col a:hover,
.footer__col a.is-live {
  color: var(--dez-text-accent-static);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--dez-space-2xl);
  color: var(--dez-text-disabled);
  font: var(--dez-typo-body-sm-regular);
}
.footer__base a:hover {
  color: var(--dez-text-secondary);
}

/* ---- legal pages (privacy) ----------------------------------------------------- */
.legal {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-4xl);
  max-inline-size: 720px;
  margin-inline: auto;
  padding: var(--dez-space-5xl) var(--dez-space-xl) var(--dez-space-6xl);
}
.legal__head {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-lg);
}
.legal__meta {
  color: var(--dez-text-tertiary);
  font: var(--dez-typo-body-sm-regular);
}
.legal section {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-lg);
}
.legal h2 {
  font: var(--dez-typo-heading-4-semibold);
}
.legal h3 {
  margin-block-start: var(--dez-space-sm);
  font: var(--dez-typo-label-lg-semibold);
}
.legal section p,
.legal section li {
  color: var(--dez-text-secondary);
  font: var(--dez-typo-body-sm-regular);
}
.legal ul {
  display: flex;
  flex-direction: column;
  gap: var(--dez-space-sm);
  padding-inline-start: var(--dez-space-xl);
  list-style: disc;
}
.legal li::marker {
  color: var(--dez-fg-accent);
}
.legal strong {
  color: var(--dez-text-primary);
  font-weight: 600;
}
.legal a {
  color: var(--dez-text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--dez-text-accent-static);
}

/* ---- tablet and phone ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav {
    padding-inline: var(--dez-space-3xl);
  }
  .words__inner {
    grid-template-columns: minmax(0, 600px);
    gap: var(--dez-space-4xl);
  }
  .app-cards {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
  }
  .footer {
    padding-inline: var(--dez-space-3xl);
  }
  .footer__row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--dez-space-3xl);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  /* Phone: step the big ez-web sizes down so headings fit a 375px screen. Not in Figma yet (needs design). */
  [data-dez-theme='ez-web'] {
    --dez-typo-display-xl-semibold: 600 40px / 1.08 var(--dez-font-display);
    --dez-typo-heading-2-semibold: 600 32px / 1.3 var(--dez-font-heading);
    --dez-typo-heading-4-semibold: 600 24px / 1.4 var(--dez-font-heading);
    --dez-typo-body-md-regular: 400 18px / 1.5 var(--dez-font-body);
    --dez-typo-body-md-medium: 500 18px / 1.5 var(--dez-font-body);
  }
  .nav {
    block-size: 72px;
    padding-inline: var(--dez-space-lg);
  }
  .logo img {
    inline-size: 120px;
  }
  /* Phone keeps only the language switch in the bar; the rest is in the page and footer. */
  .nav__links a:not(.nav__lang) {
    display: none;
  }
  .hero {
    margin-block-start: -72px;
    padding-block-start: 72px;
  }
  .hero__backdrop {
    opacity: 0.45; /* keep the hero text readable over the photo on a narrow screen */
  }
  .hero__inner {
    gap: var(--dez-space-2xl);
    padding: var(--dez-space-4xl) var(--dez-space-lg) 0;
  }
  .hero__actions {
    flex-direction: column;
    align-self: stretch;
  }
  .peek {
    padding: var(--dez-space-xl);
  }
  .peek__week {
    display: none;
  }
  /* One day on a phone, like the Hustlean phone board: today. */
  .peek__days {
    grid-template-columns: 1fr;
  }
  .day:not(.day--today) {
    display: none;
  }
  .apps,
  .words {
    padding: var(--dez-space-5xl) var(--dez-space-lg);
  }
  .card,
  .demo {
    padding: var(--dez-space-xl);
  }
  .demo__read {
    padding-inline-start: var(--dez-space-xl);
  }
  .waitlist {
    padding: var(--dez-space-3xl) var(--dez-space-lg);
  }
  .waitlist__block {
    padding-block: var(--dez-space-3xl);
  }
  .form__row {
    flex-direction: column;
  }
  .footer-wrap {
    padding: 0 var(--dez-space-lg) var(--dez-space-3xl);
  }
  .footer {
    align-items: stretch;
    padding: var(--dez-space-3xl) var(--dez-space-xl);
  }
  .footer__row {
    grid-template-columns: 1fr 1fr;
  }
  .footer__base {
    justify-content: flex-start;
  }
}

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