/* LocalChat website. Same palette as the app (web/styles.css): hue-260 neutrals, one blue from the logo.
 * System fonts on purpose: the page loads nothing from other servers, like the app. */

:root {
  color-scheme: light dark;

  --paper: light-dark(oklch(99.4% 0.002 260), oklch(17% 0.008 260));
  --paper-2: light-dark(oklch(97.2% 0.004 260), oklch(19.5% 0.009 260));
  --paper-3: light-dark(oklch(95% 0.006 260), oklch(23.5% 0.01 260));
  --surface: light-dark(oklch(100% 0 0), oklch(21.5% 0.01 260));
  --field: light-dark(oklch(96.4% 0.005 260), oklch(25% 0.01 260));
  --rule: light-dark(oklch(91.5% 0.008 260), oklch(29% 0.01 260));
  --rule-strong: light-dark(oklch(85% 0.01 260), oklch(36% 0.012 260));
  --ink: light-dark(oklch(21% 0.012 260), oklch(95% 0.006 260));
  --ink-2: light-dark(oklch(38% 0.014 260), oklch(84% 0.01 260));
  --muted: light-dark(oklch(52% 0.014 260), oklch(70% 0.012 260));

  --accent: light-dark(oklch(55% 0.19 258), oklch(70% 0.14 258));
  --accent-hover: light-dark(oklch(50% 0.19 258), oklch(75% 0.13 258));
  --accent-ink: light-dark(oklch(99% 0.004 258), oklch(17% 0.02 258));
  --accent-soft: light-dark(oklch(95% 0.03 258), oklch(28% 0.05 258));
  --accent-text: light-dark(oklch(50% 0.17 258), oklch(78% 0.11 258));
  --bezel: light-dark(oklch(24% 0.012 260), oklch(34% 0.012 260));
  --mine: light-dark(oklch(97.6% 0.01 258), oklch(23% 0.02 258));

  /* The terminal stays dark in both modes */
  --term-bg: oklch(18% 0.012 260);
  --term-ink: oklch(90% 0.008 260);
  --term-dim: oklch(64% 0.012 260);
  --term-ok: oklch(80% 0.13 150);
  --term-url: oklch(78% 0.11 258);

  --avatar-ink: oklch(30% 0.03 260);
  --av-1: oklch(89% 0.05 25);
  --av-2: oklch(89% 0.04 240);
  --av-3: oklch(89% 0.05 150);
  --av-4: oklch(89% 0.045 285);

  --shadow: 0 24px 48px -24px light-dark(oklch(20% 0.03 260 / 0.28), oklch(0% 0 0 / 0.6)),
    0 2px 6px -2px light-dark(oklch(20% 0.02 260 / 0.1), oklch(0% 0 0 / 0.4));

  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-3);
  color: var(--ink);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--wrap)) / 2));
  padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in oklch, var(--rule) 70%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

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

.top nav a {
  color: var(--ink-2);
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 120ms, color 120ms;
}

.top nav a:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.top nav .gh svg {
  stroke: none;
}

/* Hero */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 28px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

h1 {
  margin-top: 22px;
  font-size: clamp(2.4rem, 6.2vw, 4.25rem);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.lede {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
}

/* The command */

.cmd {
  margin: 32px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 1.15rem;
}

.cmd code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.cmd .prompt {
  color: color-mix(in oklch, var(--paper) 55%, var(--ink));
  user-select: none;
}

.copy {
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  font: 500 0.88rem/1 var(--font);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background 120ms;
}

.copy:hover {
  background: var(--paper-3);
}

.copy:active {
  transform: scale(0.96);
}

.copy svg {
  width: 16px;
  height: 16px;
}

.copy .i-check {
  display: none;
  stroke-width: 2.4;
}

.copy.done .i-copy {
  display: none;
}

.copy.done .i-check {
  display: block;
  color: oklch(55% 0.15 150);
  animation: pop 260ms var(--ease-out);
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.cmd-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.try-link {
  white-space: nowrap;
  margin-left: 4px;
}

/* Stage */

.stage {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 64px;
  scroll-margin-top: 72px;
}

/* Wi-Fi rings behind the host */
.stage::before {
  content: '';
  position: absolute;
  inset: -40px 0 0;
  z-index: -1;
  background: repeating-radial-gradient(
    circle at 50% 56%,
    transparent 0 70px,
    color-mix(in oklch, var(--accent) 9%, transparent) 70px 71px
  );
  mask-image: radial-gradient(circle at 50% 56%, #000 15%, transparent 62%);
}

.stage-tag {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.live {
  display: inline-block;
  vertical-align: 0.05em;
  margin-right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(68% 0.17 150);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.net {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 430px) 44px 258px;
  align-items: center;
}

.device {
  margin: 0;
  min-width: 0;
}

.device figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}

.device figcaption span {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

.screen {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.laptop .screen {
  height: 470px;
  border-radius: 14px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  flex: none;
}

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

.bar .url {
  margin-left: 10px;
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--field);
  border-radius: 6px;
  padding: 4px 10px;
  text-align: center;
}

.phone .screen {
  height: 470px;
  border-radius: 34px;
  border-width: 6px;
  border-color: var(--bezel);
  padding-top: 26px;
}

.notch {
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 72px;
  height: 18px;
  border-radius: 10px;
  background: var(--bezel);
}

/* Host terminal */

.term {
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow), inset 0 0 0 1px oklch(100% 0 0 / 0.06);
  min-height: 330px;
  overflow: hidden;
}

.term pre {
  margin: 0;
  font: 0.68rem/1.6 var(--mono);
  white-space: pre;
}

.term .c-dim {
  color: var(--term-dim);
}

.term .c-ok {
  color: var(--term-ok);
}

.term .c-url {
  color: var(--term-url);
}

.term .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--term-ink);
  animation: blink 1s steps(1) infinite;
}

.qr {
  display: grid;
  grid-template-columns: repeat(21, 4px);
  gap: 0;
  margin-top: 10px;
  padding: 6px;
  width: max-content;
  background: oklch(97% 0 0);
  border-radius: 4px;
}

.qr i {
  width: 4px;
  height: 4px;
}

.qr i.on {
  background: oklch(15% 0 0);
}

/* Links between devices */

.link {
  position: relative;
  height: 2px;
  margin: 26px 6px 0;
  background: repeating-linear-gradient(90deg, var(--rule-strong) 0 6px, transparent 6px 11px);
}

.pulse {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  opacity: 0;
}

.pulse.go-right {
  animation: go-right 420ms var(--ease-out);
}

.pulse.go-left {
  animation: go-left 420ms var(--ease-out);
}

@keyframes go-right {
  0% {
    left: 0;
    opacity: 1;
  }
  100% {
    left: calc(100% - 10px);
    opacity: 1;
  }
}

@keyframes go-left {
  0% {
    left: calc(100% - 10px);
    opacity: 1;
  }
  100% {
    left: 0;
    opacity: 1;
  }
}

/* Join card */

.join {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 24px 24px;
  text-align: center;
}

.join h2 {
  font-size: 1.2rem;
}

.join p {
  color: var(--muted);
  font-size: 0.88rem;
}

.join label {
  margin-top: 16px;
  width: min(280px, 100%);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}

.join label span {
  display: block;
  margin-bottom: 6px;
}

input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* no zoom on iOS */
  font-weight: 400;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--rule-strong);
  border-radius: 9px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  margin-top: 12px;
  width: min(280px, 100%);
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.92rem/1 var(--font);
  cursor: pointer;
  transition: background 120ms, transform 120ms var(--ease-out);
}

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

.btn:active {
  transform: scale(0.97);
}

/* Chat (same shapes as the app) */

.chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat[hidden],
.join[hidden] {
  display: none;
}

.chat.enter {
  animation: rise 360ms var(--ease-out);
}

.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}

.chat-head strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.chat-head small {
  color: var(--muted);
  font-size: 0.72rem;
}

.hash {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-weight: 600;
}

.msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}

.msgs > :first-child {
  margin-top: auto;
}

.msg {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 10px;
  padding: 6px 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
}

.msg.mine {
  background: var(--mine);
}

.msg.new {
  animation: rise 320ms var(--ease-out);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.av {
  grid-row: span 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--avatar-ink);
}

.who {
  font-weight: 650;
  font-size: 0.84rem;
}

.who time {
  margin-left: 6px;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
}

.text {
  overflow-wrap: anywhere;
}

.text code {
  font-size: 0.82em;
}

.mention {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 4px;
  padding: 0 3px;
}

.reacts {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.react {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  padding: 1px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  animation: pop 300ms var(--ease-out);
}

.typing {
  flex: none;
  height: 20px;
  padding: 0 14px;
  font-size: 0.72rem;
  color: var(--muted);
}

.typing .dots {
  display: inline-flex;
  gap: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.typing .dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: bounce 1s infinite;
}

.typing .dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing .dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.composer {
  flex: none;
  display: flex;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 6px 6px 6px 4px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 120ms, box-shadow 120ms;
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.composer input {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 6px 8px;
}

.send {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background 120ms;
}

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

.send:active {
  transform: scale(0.92);
}

.send svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke-width: 1.4;
}

.composer.fake {
  margin: 0 8px 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* The phone is narrower: tighter messages */
.phone .msg {
  grid-template-columns: 24px 1fr;
  gap: 0 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.phone .av {
  width: 24px;
  height: 24px;
  font-size: 0.56rem;
}

.phone .who {
  font-size: 0.76rem;
}

.phone .chat-head {
  padding: 6px 10px 8px;
}

.phone .hash {
  width: 26px;
  height: 26px;
}

/* How it works */

.how,
.features,
.local,
.cta {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 20px;
  scroll-margin-top: 56px;
}

.how h2,
.features h2,
.local h2,
.cta h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.how h2,
.features h2 {
  text-align: center;
}

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}

.steps li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}

.steps .n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps h3 {
  margin-top: 16px;
  font-size: 1.05rem;
}

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

/* Features */

.grid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}

.grid li {
  background: var(--paper);
  padding: 24px 22px;
}

.grid svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.grid h3 {
  margin-top: 14px;
  font-size: 0.98rem;
}

.grid p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Local */

.local {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}

.local ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.local li {
  padding-left: 18px;
  border-left: 2px solid var(--accent-soft);
}

.local strong {
  color: var(--ink);
}

.rings {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 340px;
  width: 100%;
  justify-self: center;
}

.rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ripple 3.6s var(--ease-out) infinite;
}

.rings span:nth-child(2) {
  animation-delay: 1.2s;
}

.rings span:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes ripple {
  0% {
    transform: scale(0.22);
    opacity: 0.55;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.rings img {
  position: relative;
  filter: drop-shadow(0 10px 20px oklch(55% 0.19 258 / 0.3));
}

/* CTA + footer */

.cta {
  text-align: center;
}

.cta .cmd {
  margin-top: 24px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 28px 20px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--muted);
}

.foot a {
  color: var(--ink-2);
}

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

/* Short laptop screens: a tighter hero so the demo's name field shows without scrolling */

@media (min-width: 901px) and (max-height: 860px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  h1 {
    margin-top: 14px;
    font-size: 3.25rem;
  }

  .lede {
    margin-top: 12px;
  }

  .cmd {
    margin-top: 20px;
  }

  .cmd-note {
    margin-top: 12px;
  }

  .stage {
    padding-top: 4px;
  }

  .stage-tag {
    margin-bottom: 12px;
  }

  .join {
    padding-top: 24px;
  }
}

/* Narrower screens: the phone goes, then everything stacks */

@media (max-width: 1100px) {
  .net {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 430px);
  }

  .net > .link[data-side='right'],
  .phone {
    display: none;
  }
}

@media (max-width: 900px) {
  .top nav a:not(.gh) {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .cmd {
    font-size: 1rem;
    padding-left: 16px;
  }

  .copy {
    margin-left: 6px;
  }

  .net {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .net > .link {
    display: block;
    width: 2px;
    height: 32px;
    margin: 8px auto;
    background: repeating-linear-gradient(180deg, var(--rule-strong) 0 6px, transparent 6px 11px);
  }

  .net > .link .pulse {
    display: none;
  }

  /* Host first on a phone: run, then chat */
  .host {
    order: -2;
  }

  .net > .link[data-side='left'] {
    order: -1;
  }

  .term {
    min-height: 0;
    overflow-x: auto;
  }

  .term pre {
    font-size: 0.64rem;
  }

  .laptop .screen {
    height: 440px;
  }

  .steps,
  .grid,
  .local {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .rings {
    max-width: 220px;
  }

  .how,
  .features,
  .local,
  .cta {
    padding: 56px 20px;
  }
}

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

  .eyebrow {
    font-size: 0.74rem;
  }
}

@media (hover: none) {
  .top nav a:hover,
  .copy:hover {
    background: none;
  }

  .copy:hover {
    background: var(--paper);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .rings span {
    animation: none;
    opacity: 0.25;
  }

  .rings span:nth-child(1) {
    transform: scale(0.45);
  }

  .rings span:nth-child(2) {
    transform: scale(0.72);
  }
}
