/* StagePad landing page — static, no build step. */

@font-face {
  font-family: Archivo;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: FragmentMono;
  src: url("assets/fonts/fragment-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b10;
  --ink-2: #111218;
  --ink-3: #171823;
  --paper: #f4f2ee;
  --muted: #a9adc0;
  --muted-2: #73788c;
  --amber: #f2a93b;
  --amber-soft: #ffd89b;
  --blue: #2b9bf4;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --max: 1200px;
  --font-body: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: FragmentMono, ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 46% 54% at 84% 0%, rgba(242, 169, 59, 0.13), transparent 70%),
    radial-gradient(ellipse 44% 52% at 8% 96%, rgba(96, 60, 165, 0.16), transparent 72%),
    radial-gradient(ellipse 40% 46% at 72% 92%, rgba(43, 155, 244, 0.08), transparent 72%),
    var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

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

p {
  margin: 0;
}

::selection {
  background: rgba(242, 169, 59, 0.35);
  color: var(--paper);
}

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

.wrap {
  width: min(var(--max), calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 16, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.site-head.is-scrolled {
  border-bottom-color: var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms var(--ease);
}

.site-nav a:hover {
  color: var(--paper);
}

.head-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  content: "";
  transition: transform 180ms var(--ease);
}

.nav-toggle span::before {
  transform: translateY(-5px);
}

.nav-toggle span::after {
  transform: translateY(3.5px);
}

.site-head.nav-open .nav-toggle span {
  background: transparent;
}

.site-head.nav-open .nav-toggle span::before {
  transform: translateY(1.5px) rotate(45deg);
}

.site-head.nav-open .nav-toggle span::after {
  transform: translateY(-0.5px) rotate(-45deg);
}

/* ---------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.1rem, 4.6vw, 4.15rem);
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--amber-soft) 0%, var(--amber) 58%, #e08a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  background: #fff;
}

.button-small {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.85rem;
}

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

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--paper);
  font-weight: 550;
}

.text-link b {
  color: var(--amber);
  font-weight: 500;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(5rem, 9vw, 9rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: 4%;
  width: 130%;
  height: 16%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  transform: rotate(-5deg);
  background: repeating-linear-gradient(
    to bottom,
    #fff 0 1px,
    transparent 1px 25%
  );
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 78%, transparent);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 4rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy h1 {
  margin-top: 1.4rem;
}

.hero-copy .lede {
  margin-top: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.hero-fine {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-art {
  position: relative;
  min-height: 610px;
}

.hero-art img {
  position: absolute;
  display: block;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.55));
}

.hero-art .mac {
  width: 112%;
  left: 7%;
  top: 2%;
  z-index: 1;
  transform: rotate(-2deg);
}

.hero-art .ipad {
  width: 49%;
  left: 0;
  top: 27%;
  z-index: 3;
  transform: rotate(-5deg);
}

.hero-art .iphone {
  width: 23%;
  right: 1%;
  top: 37%;
  z-index: 4;
  transform: rotate(6deg);
}

/* ---------------------------------------------------------------- sections */

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  margin-top: 1rem;
}

.section-head .lede {
  margin-top: 1.2rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.feature.reverse .feature-copy {
  order: 2;
}

.feature.reverse .feature-media {
  order: 1;
}

.feature-copy h2 {
  margin-top: 0.9rem;
}

.feature-copy .lede {
  margin-top: 1.3rem;
}

.feature-points {
  display: grid;
  gap: 0.8rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.12);
}

.feature-points strong {
  color: var(--paper);
  font-weight: 600;
}

.feature-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-figure {
  width: min(100%, 420px);
}

.device-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.5));
}

.figure-caption {
  margin-top: 0.4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- key demo */

.key-demo {
  width: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 55%), var(--ink-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.key-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1.1rem;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.segmented button {
  min-height: 32px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.segmented button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.key-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
}

.key-row .song {
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 550;
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid rgba(84, 179, 255, 0.75);
  border-radius: 11px;
  background: linear-gradient(180deg, #1f639b, #184c78);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 140ms var(--ease);
}

.key-badge.is-changing {
  animation: key-pop 180ms var(--ease);
}

.concert-key {
  min-width: 2.2rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: right;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.concert-key.is-visible {
  opacity: 1;
}

.key-foot {
  margin-top: 1rem;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.key-foot strong {
  color: var(--amber);
  font-weight: 550;
}

@keyframes key-pop {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------------------------------------------------------------- keyboard */

.keyboard-card {
  position: relative;
  width: 100%;
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 80% at 80% 10%, rgba(242, 169, 59, 0.08), transparent 65%),
    var(--ink-2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.keyboard-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.keyboard-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.key-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1;
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.step {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.step b {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.step span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- sync */

.sync-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(60% 80% at 82% 30%, rgba(43, 155, 244, 0.12), transparent 65%),
    radial-gradient(60% 70% at 12% 100%, rgba(100, 63, 170, 0.14), transparent 70%),
    var(--ink-2);
}

.sync-card h2 {
  margin-top: 0.9rem;
}

.sync-card .lede {
  margin-top: 1.2rem;
}

.sync-devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.3rem, 1.2vw, 1rem);
  min-height: 260px;
}

.sync-devices::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 46%;
  border-top: 1px dashed rgba(242, 169, 59, 0.3);
}

.sync-devices figure {
  position: relative;
  margin: 0;
  z-index: 1;
  text-align: center;
}

.sync-devices img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
}

/* The Space Black MacBook's edges disappear into the card at this size;
   a faint rim keeps the body readable without drawing fake chrome. */
.sync-devices .mac img {
  filter: drop-shadow(0 0 10px rgba(170, 195, 255, 0.14)) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
}

.sync-devices .mac {
  width: 44%;
}

.sync-devices .ipad {
  width: 27%;
}

.sync-devices .iphone {
  width: 15%;
}

.sync-devices figcaption {
  margin-top: 0.3rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sync-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.sync-note svg {
  flex: none;
  color: var(--amber);
}

/* ---------------------------------------------------------------- rest grid */

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

.rest-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.rest-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.rest-card .num {
  display: block;
  margin-bottom: 1rem;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.rest-card h3 {
  font-size: 1.05rem;
}

.rest-card p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- beta */

.beta {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.beta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(242, 169, 59, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(60% 100% at 90% 0%, rgba(242, 169, 59, 0.14), transparent 65%),
    var(--ink-2);
}

.beta-card h2 {
  margin-top: 0.8rem;
}

.beta-card p {
  max-width: 34rem;
  margin-top: 0.9rem;
  color: var(--muted);
}

.beta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* ---------------------------------------------------------------- footer */

.site-foot {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.foot-fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- doc pages */

.doc-main {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.doc {
  max-width: 780px;
  margin-inline: auto;
}

.doc h1 {
  margin-top: 1rem;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.doc .lede {
  margin-top: 1.2rem;
}

.doc h2 {
  margin-top: 3rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.doc h2 + p,
.doc h2 + ul {
  margin-top: 0.9rem;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.doc p + p {
  margin-top: 1rem;
}

.doc ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.45rem;
}

.doc a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(242, 169, 59, 0.35);
  text-underline-offset: 3px;
}

.doc a:hover {
  text-decoration-color: var(--amber);
}

.doc .callout {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(242, 169, 59, 0.28);
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
  background: rgba(242, 169, 59, 0.06);
  color: var(--paper);
  font-size: 1.05rem;
}

.doc .updated {
  margin-top: 0.8rem;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .hero-art {
    min-height: 520px;
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .hero-art .mac {
    width: 104%;
    left: 6%;
  }

  .feature,
  .sync-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .feature.reverse .feature-copy,
  .feature.reverse .feature-media {
    order: initial;
  }

  .feature-media {
    order: -1;
  }

  .sync-devices {
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .wrap,
  .hero .wrap {
    width: min(var(--max), calc(100% - 2.5rem));
  }

  h1 {
    font-size: clamp(2.8rem, 11vw, 3.6rem);
  }

  .site-head {
    height: 68px;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 11, 16, 0.97);
  }

  .site-head.nav-open .site-nav {
    display: flex;
  }

  .head-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-art {
    min-height: 380px;
  }

  .hero-art .mac {
    width: 122%;
    left: 2%;
    top: 1%;
  }

  .hero-art .ipad {
    width: 54%;
    top: 28%;
  }

  .hero-art .iphone {
    width: 25%;
    top: 38%;
  }

  .steps,
  .rest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sync-devices {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
    gap: 1rem;
    align-items: end;
    min-height: 0;
  }

  .sync-devices::before {
    display: none;
  }

  .sync-devices .mac {
    grid-column: 1 / -1;
    width: 82%;
    justify-self: center;
  }

  .sync-devices .ipad {
    width: 100%;
  }

  .sync-devices .iphone {
    width: 78%;
  }

  .beta-card {
    align-items: flex-start;
  }

  .foot-top {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-art {
    min-height: 320px;
  }

  .hero-art .mac {
    width: 132%;
    left: -2%;
  }

  .hero-art .ipad {
    width: 58%;
  }

  .hero-art .iphone {
    width: 27%;
    right: 0;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    justify-content: center;
  }

  .key-row {
    gap: 0.55rem;
  }

  .key-badge {
    min-width: 46px;
    height: 33px;
    font-size: 0.98rem;
  }

  .sync-devices {
    min-height: 180px;
  }

  .foot-fine {
    flex-direction: column;
  }
}

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

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