:root {
  --canvas: #f7faf8;
  --dot: #c4d0ca;
  --ink: #111512;
  --muted: #5c6761;
  --green: #145843;
  --green-dark: #0c3f30;
  --paper: #ffffff;
  --blue: #087cf0;
  --line: rgba(17, 21, 18, 0.16);
  --max: 1180px;
}

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

html {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--canvas);
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.3px);
  background-size: 24px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

.site-header,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { padding: 24px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(17, 21, 18, 0.15);
}

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { color: var(--ink); }

main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding: 44px 0 76px;
}

.hero-copy { max-width: 500px; }

h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 760;
}

.hero-copy p {
  max-width: 480px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.availability {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 5px 0 rgba(20, 88, 67, 0.28);
}

.phone-stage {
  position: relative;
  min-height: 710px;
  perspective: 1500px;
}

.phone {
  position: absolute;
  width: 292px;
  margin: 0;
  filter: drop-shadow(0 24px 32px rgba(12, 63, 48, 0.18));
}

.phone img { width: 100%; height: auto; }

.phone-main {
  z-index: 3;
  top: 54px;
  left: 50%;
  width: 320px;
  transform: translateX(-50%);
}

.phone-left {
  z-index: 1;
  left: 0;
  top: 92px;
  transform: rotate(-8deg);
}

.phone-right {
  z-index: 2;
  right: 0;
  top: 74px;
  transform: rotate(7deg);
}

.document h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.capabilities {
  display: grid;
  gap: 66px;
  padding: 28px 0 96px;
}

.capability-group h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.save-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.capability-grid article {
  min-height: 156px;
  padding: 20px;
  border: 1px solid rgba(17, 21, 18, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 0 rgba(17, 21, 18, 0.04);
}

.capability-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-grid h3 {
  max-width: 145px;
  margin: 42px 0 0;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.document {
  max-width: 760px;
  min-height: calc(100vh - 180px);
  padding: 84px 0 110px;
}

.document h1 { font-size: clamp(46px, 7vw, 72px); margin-bottom: 12px; }
.document .updated { margin: 0 0 48px; color: var(--muted); font-size: 15px; }
.document h2 { margin-top: 38px; font-size: 24px; }
.document p { margin: 14px 0 0; }
.document a { color: var(--green-dark); font-weight: 650; }
.support > p:first-of-type { font-size: 21px; color: var(--muted); }

footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }
  .hero-copy { max-width: 640px; }
  .phone-stage { width: min(100%, 670px); margin: 0 auto; }
}

@media (max-width: 680px) {
  body { background-size: 20px 20px; font-size: 16px; }
  .site-header, footer, main { width: min(calc(100% - 28px), var(--max)); }
  .site-header { padding: 18px 0; }
  .site-header nav { gap: 16px; }
  h1 { font-size: clamp(45px, 14vw, 64px); }
  .hero { gap: 46px; padding: 48px 0 70px; }
  .hero-copy p { font-size: 18px; }
  .phone-stage { min-height: 560px; }
  .phone { width: 222px; }
  .phone-main { top: 40px; width: 250px; }
  .phone-left { top: 74px; left: -34px; }
  .phone-right { top: 62px; right: -34px; }
  .capabilities { gap: 48px; padding-bottom: 70px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid article { min-height: 138px; }
  .capability-grid h3 { margin-top: 30px; }
  .document { padding: 58px 0 84px; }
  .document h1 { font-size: 52px; }
  footer { align-items: flex-start; }
  footer nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; }
}

@media (min-width: 681px) and (max-width: 980px) {
  .capability-grid,
  .save-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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