:root {
  color-scheme: light dark;
  --ink: #18211f;
  --paper: #fbfaf6;
  --paper-soft: #f0ede5;
  --muted: #65716d;
  --line: #d9d2c6;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --gold: #b8762f;
  --sky: #d9edf0;
  --shadow: 0 24px 70px rgb(19 33 29 / 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eff6f2;
    --paper: #111715;
    --paper-soft: #1a2421;
    --muted: #aebbb6;
    --line: #2e3f3a;
    --panel: #18211f;
    --accent: #78d5c4;
    --accent-strong: #a6eee1;
    --gold: #edb164;
    --sky: #163338;
    --shadow: 0 28px 80px rgb(0 0 0 / 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 5vw, 72px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  border-radius: 22%;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.16);
  height: 44px;
  width: 44px;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
}

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

.nav a,
.button {
  align-items: center;
  border: 1px solid rgb(24 33 31 / 0.14);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a {
  background: rgb(255 255 255 / 0.58);
  color: var(--ink);
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  isolation: isolate;
  min-height: min(860px, 96vh);
  overflow: hidden;
  padding: 118px clamp(20px, 6vw, 88px) 56px;
  position: relative;
}

.hero::before {
  background-image: url("screen-squeaker.jpg");
  background-position: center;
  background-size: cover;
  content: "";
  filter: saturate(1.05);
  inset: 0;
  opacity: 0.22;
  position: absolute;
  z-index: -2;
}

.hero::after {
  background: linear-gradient(90deg, var(--paper) 0%, rgb(251 250 246 / 0.88) 46%, rgb(251 250 246 / 0.28) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .hero::after {
    background: linear-gradient(90deg, var(--paper) 0%, rgb(17 23 21 / 0.9) 48%, rgb(17 23 21 / 0.42) 100%);
  }
}

.hero-content {
  align-items: end;
  display: grid;
  gap: clamp(36px, 7vw, 90px);
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.72fr);
  max-width: 1220px;
  min-height: calc(min(860px, 96vh) - 174px);
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(64px, 11vw, 132px);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 760px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.22;
  margin: 28px 0 0;
  max-width: 710px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.facts span {
  background: rgb(255 255 255 / 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

@media (prefers-color-scheme: dark) {
  .facts span,
  .nav a {
    background: rgb(255 255 255 / 0.12);
    border-color: rgb(255 255 255 / 0.22);
    color: var(--ink);
  }
}

.screen-stack {
  align-items: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  justify-self: center;
  max-width: 460px;
  min-height: 440px;
  width: 100%;
}

.phone-shot {
  border: 1px solid rgb(255 255 255 / 0.72);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-shot:nth-child(1) {
  transform: translate(26px, 28px) rotate(-7deg);
  z-index: 1;
}

.phone-shot:nth-child(2) {
  transform: translateY(-22px);
  z-index: 3;
}

.phone-shot:nth-child(3) {
  transform: translate(-26px, 42px) rotate(7deg);
  z-index: 2;
}

.section {
  padding: 76px clamp(20px, 6vw, 88px);
}

.section-inner {
  margin: 0 auto;
  max-width: 1160px;
}

.section h2,
.document h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  max-width: 820px;
}

.section-lede,
.document .lede {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.35;
  margin: 18px 0 0;
  max-width: 820px;
}

.mode-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.mode {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.mode h3,
.detail h3 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.mode p,
.detail p,
.document p,
.document li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.mode p,
.detail p {
  margin: 0;
}

.showcase {
  align-items: center;
  display: grid;
  gap: clamp(32px, 7vw, 78px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.ipad-frame {
  background: #111;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.ipad-frame img {
  border-radius: 18px;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.final-band {
  background: var(--sky);
  border-block: 1px solid var(--line);
}

.final-band .section-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.final-band p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.35;
  margin: 10px 0 0;
  max-width: 620px;
}

.site-footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 88px);
}

.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.document-shell {
  padding: 112px 20px 72px;
}

.document {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 820px;
  padding: clamp(26px, 5vw, 54px);
}

.document h2 {
  border-top: 1px solid var(--line);
  font-size: 22px;
  letter-spacing: 0;
  margin: 34px 0 12px;
  padding-top: 24px;
}

.document ul,
.document ol {
  padding-left: 24px;
}

.document .lede {
  margin-bottom: 30px;
}

@media (max-width: 920px) {
  .site-header {
    position: relative;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-content,
  .showcase {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 0;
  }

  .screen-stack {
    max-width: 390px;
    min-height: 360px;
  }

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

  .final-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    justify-content: center;
  }

  h1 {
    font-size: 58px;
  }

  .hero::after {
    background: rgb(251 250 246 / 0.9);
  }

  @media (prefers-color-scheme: dark) {
    .hero::after {
      background: rgb(17 23 21 / 0.9);
    }
  }

  .screen-stack {
    min-height: 295px;
  }

  .phone-shot {
    border-radius: 20px;
  }

  .section {
    padding-block: 54px;
  }

  .document-shell {
    padding-top: 34px;
  }
}
