:root {
  color-scheme: light;
  --paper: #f5f5f2;
  --white: #ffffff;
  --ink: #111311;
  --muted: #626762;
  --rule: #c8cbc5;
  --screen: #07110a;
  --green: #8cf59c;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--ink);
  background: rgba(245, 245, 242, 0.96);
}
.nav {
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.wordmark img { width: 34px; height: 34px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.hero {
  min-height: min(780px, calc(100svh - 44px));
  display: grid;
  align-items: end;
  border-bottom: 2px solid var(--ink);
  background: var(--screen) url("lensmail-background.png") center / cover no-repeat;
  color: #fff;
}
.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 72px 0;
}
.hero-copy { max-width: 700px; text-shadow: 0 2px 16px #000; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(54px, 7vw, 96px); line-height: 0.92; font-weight: 500; }
.hero p { max-width: 580px; margin: 24px 0 0; font-size: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  padding: 9px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover { background: #fff; color: var(--ink); }
.button.secondary { background: transparent; color: currentColor; }
.button.secondary:hover { background: currentColor; color: var(--screen); }
.band { border-bottom: 2px solid var(--ink); }
.inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 74px 0; }
.section-title { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px; }
.section-title h2 { margin: 0; font-size: clamp(34px, 5vw, 66px); line-height: 1; font-weight: 500; }
.section-title p { max-width: 620px; margin: 4px 0 0; font-size: 19px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); margin-top: 56px; }
.feature { min-height: 245px; padding: 24px 20px 20px 0; border-right: 2px solid var(--ink); }
.feature + .feature { padding-left: 20px; }
.feature:last-child { border-right: 0; }
.feature-index { font: 12px/1.2 "Courier New", monospace; }
.feature h3 { margin: 54px 0 10px; font-size: 22px; line-height: 1.1; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.experience { background: #fff; }
.experience-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 50px; align-items: center; }
.screen {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--screen);
  color: var(--green);
  padding: 24px;
  font: 18px/1.42 "Courier New", monospace;
  text-shadow: 0 0 8px rgba(140, 245, 156, .3);
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(140,245,156,.025) 3px 4px);
}
.screen-cue { white-space: nowrap; font-size: 13px; }
.screen-meta { margin: 18px 0 10px; }
.screen strong { color: #c3ffcc; }
.step-list { list-style: none; padding: 0; margin: 34px 0 0; border-top: 2px solid var(--ink); }
.step-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.step-list b { font: 13px/1.5 "Courier New", monospace; }
.requirements { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: 44px; }
.requirement { padding: 20px 20px 8px 0; border-right: 2px solid var(--ink); }
.requirement + .requirement { padding-left: 20px; }
.requirement:last-child { border-right: 0; }
.line-icon { width: 38px; height: 38px; margin-bottom: 32px; }
.line-icon * { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.legal-note { max-width: 800px; color: var(--muted); }
.page-hero { border-bottom: 2px solid var(--ink); }
.page-hero .inner { padding-top: 92px; padding-bottom: 62px; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: .98; font-weight: 500; }
.page-hero p { max-width: 720px; margin: 24px 0 0; font-size: 20px; }
.document { background: #fff; }
.document-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 70px; align-items: start; }
.document-nav { position: sticky; top: 94px; font-size: 13px; }
.document-nav a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.document article h2 { margin: 48px 0 14px; padding-top: 8px; border-top: 2px solid var(--ink); font-size: 28px; line-height: 1.1; }
.document article h2:first-child { margin-top: 0; }
.document article h3 { margin: 28px 0 8px; font-size: 19px; }
.document article p, .document article li { color: #343834; }
.document article code { padding: 2px 5px; background: #eceee9; font-family: "Courier New", monospace; overflow-wrap: anywhere; }
.document article ol, .document article ul { padding-left: 22px; }
.callout { margin: 24px 0; border-left: 6px solid var(--ink); padding: 16px 18px; background: var(--paper); }
.callout p { margin: 0; }
.site-footer { background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
.footer-grid img { width: 56px; height: 56px; border-radius: 8px; }
.footer-grid h2 { margin: 14px 0 8px; font-size: 28px; }
.footer-grid h3 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; }
.footer-grid a { display: block; margin: 8px 0; color: #d8dbd4; font-size: 14px; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.copyright { margin-top: 60px; padding-top: 18px; border-top: 2px solid #545854; color: #b5bab3; font-size: 12px; }

@media (max-width: 800px) {
  .nav { min-height: 58px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { min-height: 620px; background-position: 58% center; }
  .hero-inner { padding: 54px 0; }
  .hero h1 { font-size: 54px; }
  .section-title, .experience-grid, .document-layout { grid-template-columns: 1fr; }
  .feature-grid, .requirements { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(3), .feature:nth-child(4) { border-top: 2px solid var(--ink); }
  .requirements .requirement:nth-child(2) { border-right: 0; }
  .requirement:last-child { grid-column: 1 / -1; border-top: 2px solid var(--ink); }
  .document-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .inner { padding: 54px 0; }
  .hero h1, .page-hero h1 { font-size: 46px; }
  .hero p, .page-hero p, .section-title p { font-size: 17px; }
  .feature-grid, .requirements, .footer-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .requirement, .requirement + .requirement { padding: 20px 0; border-right: 0; border-top: 2px solid var(--ink); }
  .feature:first-child, .requirement:first-child { border-top: 0; }
  .feature h3 { margin-top: 28px; }
  .requirement:last-child { grid-column: auto; }
  .screen { padding: 14px; font-size: 13px; }
  .screen-cue { font-size: 9px; }
  .document-nav { grid-template-columns: 1fr; }
}

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