@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Instrument Sans", sans-serif;
  color: #191919;
  background: #fff;
  --ink: #191919;
  --muted: #555;
  --line: #d9d9d9;
  --key: #f5f5f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
p { line-height: 1.55; }

.shell { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.site-header, .footer, .footer nav, .brand { display: flex; align-items: center; }
.site-header { min-height: 4.75rem; border-bottom: 1px solid var(--line); }
.footer { justify-content: space-between; gap: .75rem; min-height: 6rem; border-top: 1px solid var(--line); }
.footer nav { gap: clamp(.7rem, 3vw, 2.3rem); }
.site-header a, .footer a { text-decoration: none; }
.footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.brand { gap: .36rem; }
.brand-icon { width: 2.5rem; height: 2.5rem; margin-left: -.26rem; }
.brand-wordmark { width: clamp(8rem, 23vw, 9.25rem); height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.9rem, 6.5vw, 6.1rem); line-height: .99; letter-spacing: -.05em; }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.04em; }
h3 { font-size: clamp(.99rem, 1.75vw, 1.18rem); letter-spacing: -.015em; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.4rem);
  padding-block: clamp(3rem, 7vw, 6.3rem);
}
.pitch h1 { max-width: 12ch; text-wrap: balance; }
.intro-copy { max-width: 30rem; font-size: clamp(1.16rem, 2vw, 1.43rem); margin: 1.55rem 0 0; }
.availability { color: var(--muted); font-size: .97rem; margin: 1.2rem 0 0; }
.hero-laptop {
  --hero-cycle: 14s;
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px #17233135, 0 .65rem 1.6rem #192e401d;
}
.desk {
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  border: clamp(3px, .4vw, 6px) solid #202226;
  border-bottom-width: clamp(4px, .62vw, 8px);
  background: #7694a5 url("assets/hero-desktop.webp") center / cover no-repeat;
  font-family: -apple-system, BlinkMacSystemFont, "Instrument Sans", sans-serif;
}

.desk-menu, .desk-menu > div {
  display: flex;
  align-items: center;
}
.desk-menu {
  justify-content: space-between;
  min-height: clamp(1rem, 2.1vw, 1.45rem);
  padding-inline: .5rem;
  border-bottom: 1px solid #ffffff49;
  background: #f8fafbcc;
  color: #1d2227;
  font-size: clamp(.52rem, .95vw, .69rem);
  white-space: nowrap;
}
.desk-menu > div { gap: clamp(.26rem, .75vw, .72rem); }
.desk-apple, .desk-battery { position: relative; }
.desk-apple { width: .68rem; height: .76rem; }
.desk-apple::before, .desk-apple::after, .desk-battery::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.desk-apple::before {
  inset: 29% 5% 4%;
  border-radius: 34% 42% 45% 45% / 38% 45% 68% 69%;
  mask: radial-gradient(circle at 101% 22%, transparent 22%, #000 25%);
}
.desk-apple::after {
  inset: 7% 28% 69% 47%;
  border-radius: 80% 0;
  rotate: -15deg;
}
.desk-wifi {
  width: .76rem;
  height: .54rem;
  background: repeating-radial-gradient(circle at 50% 100%, currentColor 0 1px, transparent 1px 2.55px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.desk-battery {
  width: .78rem;
  height: .42rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) left 1px center / 70% 65% no-repeat;
}
.desk-battery::after { inset: 25% -3px 25% auto; width: 1px; }
.desk-work {
  flex: 1;
  min-height: 0;
  position: relative;
}

.laptop-deck {
  position: relative;
  aspect-ratio: 2.6;
  background: #d5d8db url("assets/hero-trackpad.webp") center / cover no-repeat;
}
.trackpad-swipe {
  --swipe-distance: clamp(11px, 2.95vw, 29px);
  position: absolute;
  top: 62%;
  left: 50%;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  transform: translate(-50%, -50%);
  animation: hero-swipe var(--hero-cycle) ease-out infinite;
}
.trackpad-contact {
  position: relative;
  width: clamp(.875rem, 2.1vw, 1.3rem);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #164f78;
  background: #3c9bdc32;
}
.trackpad-contact::before {
  content: "";
  position: absolute;
  inset: 11% 16%;
  border-radius: 48% 49% 39% 42%;
  background: repeating-radial-gradient(ellipse at 46% 70%, currentColor 0 7%, transparent 9% 21%);
  mask: conic-gradient(from 168deg at 46% 70%, transparent 0 22deg, #000 27deg 355deg, transparent 360deg);
  rotate: -12deg;
}
.trackpad-contact + .trackpad-contact { margin-top: 3px; }
.trackpad-contact + .trackpad-contact::before { rotate: 11deg; }
@keyframes hero-swipe {
  0%, 8%, 14%, 22%, 28%, 36%, 42%, 50%, 56%, 64%, 70%, 78%, 84%, 92%, 100% {
    opacity: 0;
    translate: 0 0;
  }
  10%, 24%, 38%, 52%, 66%, 80%, 94% { opacity: .88; translate: 0 0; }
  13%, 83% { opacity: .25; translate: var(--swipe-distance) 0; }
  27% { opacity: .25; translate: 0 var(--swipe-distance); }
  41%, 69% { opacity: .25; translate: calc(-1 * var(--swipe-distance)) 0; }
  55% { opacity: .25; translate: var(--swipe-distance) calc(-1 * var(--swipe-distance)); }
  98% { opacity: .25; translate: calc(-1 * var(--swipe-distance)) calc(-1 * var(--swipe-distance)); }
}
.hero-window {
  position: absolute;
  overflow: hidden;
  background: #fff;
  inset: 0 50% 50% 0;
  border: 1px solid #b1b6bc;
  border-radius: .37rem;
  box-shadow: 0 .21rem .65rem #172a3d3d;
  animation: hero-placement var(--hero-cycle) cubic-bezier(.22, .78, .22, 1) infinite;
}
.hero-window .titlebar {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  height: clamp(1.1rem, 2.15vw, 1.7rem);
  padding: 0 .38rem;
  border-bottom: 1px solid var(--line);
  background: #f4f5f7;
  font-size: clamp(.52rem, 1vw, .71rem);
  font-weight: 650;
  white-space: nowrap;
}
.hero-window .lights { display: flex; gap: clamp(2px, .4vw, 4px); }
.hero-window .lights i { width: clamp(4px, .63vw, 8px); aspect-ratio: 1; border-radius: 50%; }
.hero-window .lights i:nth-child(1) { background: #ed6b63; }
.hero-window .lights i:nth-child(2) { background: #edba4b; }
.hero-window .lights i:nth-child(3) { background: #60c365; }
.hero-window .sample-content {
  display: grid;
  gap: clamp(.24rem, .6vw, .54rem);
  padding: clamp(.4rem, 1.5vw, 1.05rem);
  max-width: 19rem;
}
.hero-window .ink { height: 2px; border-radius: 2px; background: #c8c8c8; }
@keyframes hero-placement {
  0%, 10%, 100% { inset: 0 50% 50% 0; }
  14%, 24% { inset: 0 0 50% 50%; }
  28%, 38% { inset: 50% 0 0 50%; }
  42%, 52% { inset: 50% 50% 0 0; }
  56%, 66% { inset: 0; }
  70%, 80% { inset: 0 50% 0 0; }
  84%, 94% { inset: 0 0 0 50%; }
}
.sample-heading { font-weight: 700; font-size: clamp(.72rem, 1.65vw, 1.3rem); line-height: 1.12; letter-spacing: -.035em; }
.line-lg { width: 93%; }
.line-md { width: 75%; }
.line-sm { width: 56%; }

.input-section {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 6vw, 5.4rem);
  padding-block: clamp(2.65rem, 6vw, 5.2rem);
  border-top: 1px solid var(--line);
}
.input-copy p { max-width: 28rem; margin: 1.15rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.23rem); }
.input-examples { min-width: 0; }
.input-examples h3 { margin-bottom: .95rem; }
.examples { margin: 0; }
.examples > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.25rem, 7.2rem);
  align-items: center;
  gap: 1rem;
  min-height: 3.3rem;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
}
.examples dt, .key-chord { display: flex; align-items: center; }
.examples dt { gap: .7rem; font-weight: 650; }
.examples dd { margin: 0; color: var(--muted); }
.swipe-arrow { width: 1.55rem; font-size: 1.42rem; line-height: 1; }
.key-chord { gap: .3rem; }
kbd {
  display: inline-block;
  padding: .23em .52em;
  background: var(--key);
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  border-radius: .25rem;
  font: inherit;
  font-size: .9em;
  line-height: 1.2;
  white-space: nowrap;
}
.key-chord kbd:last-child { min-width: 1.94rem; text-align: center; }

.information { max-width: 42rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.information h1 { font-size: clamp(2.7rem, 7vw, 4.8rem); line-height: 1; }
.information h2 { font-size: clamp(1.45rem, 4vw, 1.95rem); margin-top: 2rem; }
.information p { max-width: 37rem; overflow-wrap: anywhere; }
.information .back { margin: 0 0 1.6rem; }

@media (max-width: 780px) {
  .shell { width: min(100% - 2rem, 36rem); }
  .intro, .input-section { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2.7rem, 9.4vw, 4.9rem); }
  .pitch h1 { max-width: 14ch; }
}
@media (max-width: 410px) {
  .footer { gap: .5rem; }
  .footer nav { gap: .65rem; font-size: .9rem; }
  .brand-icon { width: 2rem; height: 2rem; }
  .examples > div { gap: .55rem; grid-template-columns: minmax(0, 1fr) 5.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-window { animation: none; }
  .trackpad-swipe { display: none; }
}
@media (forced-colors: active) {
  .brand-wordmark { forced-color-adjust: none; background: #fff; }
}
