/* AbsClub — black and white, typography first. Colours and type follow the iOS app's tokens. */

:root {
  --bg: #050506;
  --text: #ffffff;
  --text-body: #d6dae0;
  --text-secondary: #9aa0a8;
  --text-muted: #62676f;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);
  --glow: 206 220 238;

  /* The app's titles and wordmark use Helvetica Neue Bold; body text uses SF. */
  --font-display: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text-body);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(5 5 6 / 0.72);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-link { font-size: 14.5px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s ease; }
.nav-link:hover { color: var(--text); }

/* Abs mark + wordmark */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 21px; height: auto; filter: drop-shadow(0 2px 8px rgb(var(--glow) / 0.18)); }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1;
  color: var(--text);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 10vw, 112px); line-height: 0.95; letter-spacing: -0.045em;
  color: var(--text); text-wrap: balance;
}
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--text); text-wrap: balance;
}
/* Restrained silver: white at the top easing to the app's silver. */
.silver {
  background: linear-gradient(180deg, #ffffff 15%, #e6eaef 55%, #9aa2ab 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shine { filter: drop-shadow(0 0 28px rgb(var(--glow) / 0.22)); }
.dim { color: var(--text-muted); }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-secondary); line-height: 1.55; text-wrap: pretty; }

/* ---------- App Store button ---------- */

.store {
  display: inline-flex; align-items: center; gap: 9px;
  height: 54px; padding: 0 28px 0 24px; border-radius: 999px;
  color: #000; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #eef1f4 100%);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgb(255 255 255 / 0.25), 0 8px 28px rgb(var(--glow) / 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgb(255 255 255 / 0.45), 0 14px 44px rgb(var(--glow) / 0.26); }
.store:active { transform: scale(0.97); transition-duration: 0.15s; }
.store svg { width: 20px; height: 20px; flex: none; margin-top: -3px; }

/* ---------- Device frame around real screenshots ---------- */

.device {
  --w: 320px;
  position: relative; flex: none; width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(160deg, #3a3c41 0%, #1b1c1f 22%, #121315 60%, #2b2d31 100%);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08) inset,
    0 0 0 1px rgb(0 0 0 / 0.8),
    0 40px 90px rgb(0 0 0 / 0.75),
    0 10px 30px rgb(0 0 0 / 0.5);
}
.device img {
  width: 100%; height: auto; aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.145);
  background: #0b0b0d;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(64px, 10vw, 120px) 0 0; text-align: center; overflow: hidden; }
.hero .display { margin: 0 auto; }
.hero .lead { max-width: 30ch; margin: 26px auto 0; }
.hero .store { margin-top: 40px; }
.hero-visual {
  --hw: 360px;
  position: relative; isolation: isolate; margin-top: clamp(64px, 9vw, 100px);
  display: flex; justify-content: center; align-items: flex-start;
  /* Half phone: the top of the device, cut off and faded below the abs. */
  height: calc(var(--hw) * 1.28); overflow: hidden;
}
/* One restrained light behind the phone. */
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 8%;
  width: min(820px, 160%); height: 80%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--glow) / 0.12), transparent 70%);
  pointer-events: none;
}
.hero-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, rgb(5 5 6 / 0), var(--bg) 92%);
  pointer-events: none;
}
.hero-visual .device { --w: var(--hw); }
.hero-visual .device img { aspect-ratio: auto; }

/* ---------- Sections ---------- */

.section { padding: clamp(96px, 13vw, 160px) 0; }
.section-head { max-width: 680px; }

.features {
  list-style: none; margin: clamp(56px, 7vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
}
.features li { position: relative; padding-top: 26px; }
.features li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.06));
  transition: background 0.4s ease;
}
.features li:hover::before { background: linear-gradient(90deg, #fff, rgb(255 255 255 / 0.1)); }
.features .n { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.features h3 { margin-top: 14px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.2; }
.features p { margin-top: 10px; font-size: 15.5px; color: var(--text-secondary); line-height: 1.55; }

.preview { padding-top: 0; }
.preview .section-head { margin: 0 auto; text-align: center; }
.gallery {
  position: relative;
  margin-top: clamp(56px, 7vw, 80px);
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 3.5vw, 48px);
}
.gallery figure { display: flex; flex-direction: column; align-items: center; }
.gallery .device { --w: 280px; transition: transform 0.6s var(--ease); }
.gallery figure:hover .device { transform: translateY(-6px); }
.gallery figure:nth-child(2) { margin-top: 40px; }
.gallery figcaption { margin-top: 26px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.dots { display: none; justify-content: center; gap: 6px; margin-top: 28px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgb(255 255 255 / 0.2); transition: width 0.3s var(--ease), background 0.3s ease; }
.dots i.on { width: 18px; background: #fff; }

.cta { position: relative; text-align: center; }
.cta::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 100%); height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.16), transparent);
}
.cta .h2 { max-width: 13ch; margin: 0 auto; }
.cta .store { margin-top: 40px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer .brand img { width: 18px; }
.footer .brand span { font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.footer-links a { color: var(--text-secondary); transition: color 0.2s ease; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ---------- Text pages ---------- */

.doc { padding: clamp(64px, 10vw, 120px) 0 clamp(80px, 12vw, 140px); }
.doc .wrap { max-width: 760px; }
.doc-head .h2 { font-size: clamp(42px, 7vw, 72px); }
.doc-head .lead { margin-top: 20px; max-width: 36ch; }
.doc-head .meta { margin-top: 18px; font-size: 14px; color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  height: 54px; padding: 0 28px; border-radius: 99px;
  background: #fff; color: #08090a; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: opacity 0.2s ease, transform 0.3s var(--ease);
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 19px; height: 19px; }
.email-note { margin-top: 16px; font-size: 14.5px; color: var(--text-muted); }
.email-note a { color: var(--text-body); }

.help { margin-top: clamp(64px, 9vw, 96px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; }
.help section { border-top: 1px solid var(--line); padding-top: 24px; }
.help h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.help p { margin-top: 10px; font-size: 15.5px; color: var(--text-secondary); }
.help a, .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

.prose { margin-top: clamp(48px, 7vw, 72px); }
.prose section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.prose section:first-child { margin-top: 0; }
.prose h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); line-height: 1.3; margin-bottom: 12px; }
.prose p, .prose li { color: var(--text-secondary); font-size: 16.5px; line-height: 1.7; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--text-muted); }
.prose strong { color: var(--text-body); font-weight: 600; }

/* ---------- Motion ---------- */

.fade { animation: fade 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1.4s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .rise { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery .device, .store { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
  .gallery .device { --w: 240px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-inner { height: 60px; }
  .hero-visual { --hw: min(78vw, 310px); }
  .features { grid-template-columns: 1fr; gap: 36px; }
  .help { grid-template-columns: 1fr; gap: 36px; }
  /* Screens become a swipeable row. */
  .gallery {
    justify-content: flex-start; gap: 18px;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 0 calc(50vw - min(35vw, 140px)) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { scroll-snap-align: center; }
  .gallery figure:nth-child(2) { margin-top: 0; }
  .gallery .device { --w: min(70vw, 280px); }
  .dots { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

.nw { white-space: nowrap; }
.legal-links { margin-top: clamp(56px, 8vw, 80px); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.legal-links a { color: var(--text-secondary); transition: color 0.2s ease; }
.legal-links a:hover { color: var(--text); }
