/* Base reset */
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: a thin sticky nav bar, a centred hero, a 2x2 grid of centred product tiles, a small grey footer. */
:root {
  --bg: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --on-blue: #ffffff;
  --nav: rgba(245, 245, 247, .8);
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --tile: #1d1d1f; --ink: #f5f5f7; --muted: #a1a1a6; --line: #424245;
    --link: #2997ff; --blue: #0071e3; --blue-hover: #0077ed; --on-blue: #ffffff;
    --nav: rgba(22, 22, 23, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --tile: #1d1d1f; --ink: #f5f5f7; --muted: #a1a1a6; --line: #424245;
  --link: #2997ff; --blue: #0071e3; --blue-hover: #0077ed; --on-blue: #ffffff;
  --nav: rgba(22, 22, 23, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Nav bar */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--nav);
}
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-in {
  max-width: 1024px; margin: 0 auto; height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav .name { color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.nav .name:hover { text-decoration: none; }
.nav .gh {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink); font-size: 12px; letter-spacing: -.01em; opacity: .85;
}
.nav .gh:hover { opacity: 1; text-decoration: none; }
.nav .gh svg { width: 16px; height: 16px; }

/* Hero */
.hero { text-align: center; padding-block: 88px 64px; }
.hero .eyebrow { margin: 0 0 6px; font-size: 21px; font-weight: 600; color: var(--muted); letter-spacing: .011em; }
h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero .sub {
  margin: 14px auto 0; max-width: 30ch;
  font-size: clamp(21px, 3vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -.01em;
}
.hero .links { margin-top: 22px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-size: 19px; }

/* Tiles */
.grid {
  max-width: 1024px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding-bottom: 12px;
}
.tile {
  background: var(--tile); border-radius: 18px;
  text-align: center;
  padding: 52px 28px 48px;
  display: flex; flex-direction: column; align-items: center;
}
.tile .art { width: 128px; height: 128px; display: block; margin-bottom: 22px; }
.tile img.art { filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.tile h2 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.tile .tag { margin: 8px auto 0; max-width: 28ch; font-size: 21px; line-height: 1.24; font-weight: 400; letter-spacing: .01em; }
.tile .req { margin: 10px 0 0; font-size: 14px; color: var(--muted); letter-spacing: -.01em; }
.tile .cta { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }

.pill {
  display: inline-block; padding: 11px 22px; border-radius: 980px;
  background: var(--blue); color: var(--on-blue);
  font-size: 17px; line-height: 1.17; font-weight: 400; letter-spacing: -.02em;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: " ›"; }

/* Footer */
.foot { max-width: 1024px; margin: 0 auto; padding-block: 40px 48px; font-size: 12px; color: var(--muted); letter-spacing: -.01em; }
.foot-in { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--ink); }

@media (max-width: 734px) {
  .hero { padding-block: 56px 44px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 44px 20px 40px; }
  .tile .art { width: 108px; height: 108px; }
  .tile h2 { font-size: 32px; }
  .tile .tag { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
