/* The home page signed-out visitors see: littlebits.io's design language (its tokens, from
   DMS-Docs/src/css/custom.css and src/pages/index.module.css), kept apart from app.css because the
   two use the same class names for different things. The CSP allows no inline styles. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #ffffff;
  --soft: #f7f8fb;
  --ink: #1f2733;
  --slate: #475569;
  --line: #e6e9f0;
  --line-strong: #cbd5e1;
  --accent: #4f6ef7;
  --accent-soft: rgba(79, 110, 247, 0.1);
  --accent-ink: #3e56c1;
  /* White on the brand's #4f6ef7 is 4.28:1, under the 4.5:1 that text needs, so buttons use the
     deeper accent, as the sign-up page does. */
  --button: #3e56c1;
  --button-hover: #2f45a6;
  --error: #b42318;
  --shadow: 0 40px 80px -40px rgba(40, 55, 95, 0.32), 0 8px 20px -12px rgba(40, 55, 95, 0.16);
  /* iPads drawn as glass, as on the control page. */
  --glass: #1a2030;
  --glass-edge: #313a4e;
  --region-main: #2a3349;
  --region-strap: #5b6fb5;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --soft: #1e293b;
    --ink: #f1f5f9;
    --slate: #cbd5e1;
    --line: #334155;
    --line-strong: #475569;
    --accent: #8ea2fb;
    --accent-soft: rgba(142, 162, 251, 0.16);
    --accent-ink: #aab9fc;
    --button: #4a63d9;
    --button-hover: #5b73e4;
    --error: #f28b82;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
    --glass: #05070b;
    --glass-edge: #475569;
    color-scheme: dark;
  }
}

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

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

a {
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 28px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--button);
  color: #ffffff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--button-hover);
}

.button.ghost {
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--accent);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14.5px;
}

.button:disabled {
  opacity: 0.65;
  cursor: default;
}

/* ---------- Top ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.mark-glass {
  fill: #1a2030;
  stroke: var(--glass-edge);
  stroke-width: 0.5;
}

.mark-strap {
  fill: #5b6fb5;
}

.mark-main {
  fill: #2a3349;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-link {
  padding: 8px 12px;
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.top-link:hover {
  color: var(--ink);
}

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

.hero {
  padding-top: 52px;
  padding-bottom: 52px;
  text-align: center;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.07;
}

.hl {
  display: block;
  color: var(--accent);
}

.sub {
  max-width: 58ch;
  margin: 18px auto 24px;
  color: var(--slate);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- The demo: what you see, then what everyone else sees ---------- */

.demo {
  padding: 48px 0 56px;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.demo h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  text-align: center;
}

.demo-intro {
  margin-top: 6px;
  color: var(--slate);
  font-size: 17px;
  text-align: center;
}

.demo-label {
  margin: 30px 0 10px;
  color: var(--slate);
  font-size: 15.5px;
}

.demo-label b {
  color: var(--ink);
  font-weight: 700;
}

/* littlebits.io's product window, round the Groups page's own controls. */
.window {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar span {
  margin-left: 10px;
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--slate);
  font-size: 13px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px 56px;
  padding: 18px 26px 14px;
}

.controls-head {
  align-self: center;
}

.controls-head h3 {
  font-size: 22px;
}

.controls-head p {
  color: var(--slate);
  font-size: 14.5px;
}

.control legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 600;
}

.cues {
  display: flex;
  gap: 6px;
  /* The tiles' own padding lines up with the label above. */
  margin-left: -8px;
}

.controls input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cue {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 7px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.cue:hover {
  background: var(--accent-soft);
}

.cue:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.cue:has(input:focus-visible),
.seg label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.thumb {
  position: relative;
  width: 92px;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--glass);
  border-radius: 9px;
  background: var(--region-main);
  overflow: hidden;
}

.thumb.strap::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 20%;
  background: var(--region-strap);
}

.on-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
}

.seg label {
  position: relative;
  border-radius: 7px;
  cursor: pointer;
}

.seg span {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.seg label:hover span {
  color: var(--ink);
}

.seg input:checked + span {
  background: var(--ink);
  color: var(--bg);
}

/* As wide as the switch above and always two lines tall, so nothing moves when the words change. */
.status {
  width: 0;
  min-width: 100%;
  min-height: 2.8em;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.4;
}

/* What the status line says, and what's on the iPads. */
.status span {
  display: none;
}

.demo:has([value='none']:checked) .if-none,
.demo:has([value='holding']:checked) :is(.if-holding, .if-covered),
.demo:has([value='blackout']:checked) :is(.if-blackout, .if-covered),
.demo:has([value='welcome']:checked) .if-welcome,
.demo:has([value='programme']:checked) .if-programme,
.demo:has([value='exercise']:checked) .if-exercise {
  display: inline;
}

.page,
.cover {
  opacity: 0;
}

.demo:has([value='welcome']:checked) .page.welcome,
.demo:has([value='programme']:checked) .page.programme,
.demo:has([value='exercise']:checked) .page.exercise,
.demo:has([value='holding']:checked) .cover.holding,
.demo:has([value='blackout']:checked) .cover.blackout {
  opacity: 1;
}

.demo:has([value='programme']:checked) .strapline {
  transform: none;
}

/* Without :has() the controls can't do anything, so show the iPads alone. */
@supports not selector(:has(*)) {
  .controls {
    display: none;
  }

  .page.programme {
    opacity: 1;
  }

  .strapline {
    transform: none;
  }
}

/* ---------- The demo's iPads ---------- */

.ipads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.ipad-name {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.glass {
  padding: 3%;
  border-radius: 20px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow);
}

.screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: #000000;
}

/* A web page, not Little Screens: its own typeface and colours. Sizes are in cqw so it scales with
   the iPad. */
.page,
.cover {
  --green: #1e4d40;
  position: absolute;
  inset: 0;
  background: #f6f7f5;
  color: #16201c;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 4.1cqw;
  line-height: 1.3;
  transition: opacity 0.3s ease;
}

.ipad:nth-child(2) :is(.page, .cover, .strapline) {
  transition-delay: 60ms;
}

.ipad:nth-child(3) :is(.page, .cover, .strapline) {
  transition-delay: 120ms;
}

.kicker {
  font-size: 0.72em;
  font-weight: 600;
  opacity: 0.72;
}

.page.welcome,
.cover.holding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9%;
}

.welcome-title {
  font-size: 3em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.welcome-where {
  margin-top: 0.5em;
  font-size: 1.25em;
  opacity: 0.75;
}

.welcome-foot {
  position: absolute;
  inset: auto 0 0;
  padding: 4.2% 9%;
  background: var(--green);
  color: #ffffff;
}

.cover.holding {
  background: var(--green);
  color: #ffffff;
}

.cover.blackout {
  background: #000000;
}

.page.programme {
  display: grid;
  grid-template-columns: 31% 1fr;
  padding-top: 15%;
}

.side {
  display: flex;
  flex-direction: column;
  padding: 14% 14% 12%;
  background: var(--green);
  color: #ffffff;
}

.side-title {
  margin-top: 0.15em;
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.side-big {
  font-size: 1.75em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.side-foot {
  margin-top: auto;
  font-weight: 600;
}

.list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2% 4%;
}

.item {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 0.6em;
  border-bottom: 1px solid #e3e8e5;
  font-weight: 600;
  white-space: nowrap;
}

.item:last-child {
  border-bottom: 0;
}

.item span {
  color: #5d6b66;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.item.done,
.item.done span {
  color: #66726d;
  font-weight: 400;
}

.item.now {
  border-bottom: 0;
  border-radius: 0.6em;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.item.now span {
  color: var(--green);
  font-weight: 600;
}

.item b {
  margin-left: auto;
  padding: 0.1em 0.6em;
  border-radius: 99px;
  background: #e4f1ec;
  color: var(--green);
  font-size: 0.75em;
}

.strapline {
  position: absolute;
  inset: 0 0 auto;
  height: 20%;
  display: flex;
  align-items: center;
  padding: 0 4.5%;
  background: #000000;
  color: #ffffff;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.strapline p {
  font-size: 0.98em;
  line-height: 1.32;
}

.strapline i {
  color: #a3aaa7;
  font-style: normal;
}

.page.exercise {
  display: grid;
  grid-template-columns: 1fr 34%;
}

.work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55em;
  padding: 0 6%;
}

.work-title {
  margin-bottom: 0.2em;
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.step {
  padding: 0.6em 0.8em;
  border-radius: 0.6em;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 0.9em;
}

.demo-note {
  max-width: 78ch;
  margin: 22px auto 0;
  color: var(--slate);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Features ---------- */

.features {
  padding-top: 104px;
  padding-bottom: 96px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 40px;
  margin-top: 40px;
}

.feature p,
.also p,
.steps p,
.alone p,
.contact-words p {
  color: var(--slate);
  text-wrap: pretty;
}

.feature p {
  max-width: 56ch;
  margin-top: 6px;
}

.picture {
  position: relative;
  height: 264px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--soft);
  overflow: hidden;
}

/* Close-ups: each iPad runs off the edge of its picture. */
.pic-ipad {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 36px;
  height: 300px;
  padding: 10px;
  border-radius: 22px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}

.pic-ipad.close {
  left: 9%;
  right: 9%;
}

.pic-screen {
  position: relative;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #f6f7f5;
}

.pic-screen.black {
  background: #000000;
}

.pic-body,
.pic-faint {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

.pic-faint {
  opacity: 0.22;
}

.pic-body.dim {
  opacity: 0.5;
}

.pic-line {
  width: 62%;
  height: 10px;
  border-radius: 5px;
  background: #cdd5d1;
}

.pic-line.wide {
  width: 78%;
  height: 18px;
  border-radius: 6px;
  background: #1e4d40;
}

.pic-faint .pic-line.wide {
  background: #7fb3a2;
}

.pic-line.short {
  width: 44%;
}

.pic-seg {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--bg);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

.pic-seg span {
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pic-seg .on {
  background: #000000;
  color: #ffffff;
}

.pic-captions {
  padding: 18px 24px;
  background: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.4;
}

.pic-captions i {
  color: #a3aaa7;
  font-style: normal;
}

.pic-tab {
  display: grid;
  place-items: center;
  width: 52px;
  height: 24px;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  background: #23272a;
  color: #ffffff;
}

.pic-address {
  margin: 44px 8% 0;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pic-address b {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.pic-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 8% 0;
}

.pic-mini {
  padding: 5px;
  border-radius: 11px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}

.pic-mini span {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #1e4d40;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(13px, 1.7vw, 19px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pic-window {
  position: absolute;
  inset: 34px 11% 0;
  border-radius: 14px 14px 0 0;
  background: #ffffff;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.pic-window-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #e3e8e5;
  color: #5d6b66;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
}

.pic-window-bar b {
  color: #0a5fd6;
  font-weight: 600;
}

.also {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.also h3 {
  font-size: 17px;
}

.also p {
  margin-top: 4px;
  font-size: 15.5px;
}

/* ---------- Setting up ---------- */

.band {
  padding: 84px 0;
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 36px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 800;
}

.steps h3 {
  font-size: 19px;
}

.steps p {
  margin-top: 6px;
  font-size: 15.5px;
}

.alone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 52px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

.alone p {
  max-width: 66ch;
  margin-top: 4px;
  font-size: 15.5px;
}

.alone .button {
  flex: none;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 56px;
  padding-block: 88px;
}

.contact-words p {
  max-width: 44ch;
  margin-top: 16px;
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  .contact-form {
    background: var(--soft);
  }
}

.contact-form label {
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
}

.contact-form :is(input, textarea) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

@media (prefers-color-scheme: dark) {
  .contact-form :is(input, textarea) {
    background: var(--bg);
  }
}

.contact-form textarea {
  resize: vertical;
}

.contact-form :is(input, textarea):focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.trap {
  position: absolute;
  left: -9999px;
}

.spam-check:empty {
  display: none;
}

.form-error {
  color: var(--error);
  font-size: 14.5px;
  font-weight: 600;
}

.form-note {
  color: var(--slate);
  font-size: 14px;
}

/* Focused so it's read out, not to be used. */
#contactSent:focus {
  outline: none;
}

#contactSent p {
  color: var(--slate);
  overflow-wrap: anywhere;
}

/* ---------- Foot ---------- */

.foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--slate);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px 40px;
}

.foot-brand {
  margin-bottom: 10px;
}

.foot-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.foot li + li {
  margin-top: 8px;
}

/* ---------- Narrower ---------- */

@media (max-width: 1060px) {
  .controls {
    grid-template-columns: auto 1fr;
  }

  .controls-head {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 10px;
  }
}

@media (max-width: 820px) {
  .wrap {
    padding-inline: 20px;
  }

  .top {
    padding-inline: 20px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .demo {
    padding: 40px 0 44px;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .cues {
    margin-inline: -8px;
  }

  .cue {
    flex: 1;
  }

  .thumb {
    width: 100%;
    max-width: 120px;
  }

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

  .ipad:first-child {
    grid-column: 1 / -1;
  }

  .ipad:not(:first-child) .glass {
    border-radius: 14px;
  }

  .ipad:not(:first-child) .screen {
    border-radius: 8px;
  }

  .features {
    padding-top: 76px;
    padding-bottom: 68px;
  }

  .feature-grid,
  .also,
  .steps,
  .contact,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .band {
    padding: 64px 0;
  }

  .alone {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .contact {
    gap: 32px;
    padding-block: 64px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .top {
    gap: 10px;
  }

  .top nav {
    gap: 2px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .top-link {
    padding: 8px 6px;
    font-size: 13.5px;
  }

  .button.small {
    padding: 0 11px;
    font-size: 13.5px;
    white-space: nowrap;
  }

  .seg {
    display: flex;
    width: 100%;
  }

  .seg label {
    flex: auto;
  }

  .seg span {
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(32px, 10.4vw, 44px);
  }

  .actions .button {
    width: 100%;
  }

  .pic-ipad {
    left: 6%;
    right: 6%;
  }

  .pic-seg span {
    padding: 7px 10px;
    font-size: 13px;
  }
}

/* No room for it here, and it's the first button on the page anyway. */
@media (max-width: 385px) {
  .top .button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .cover,
  .strapline {
    transition: none;
  }
}
