/* SubLens — getsublens.app marketing site
   Editorial Glass (web dialect). Dark-only. No frameworks, no webfonts. */

:root {
  --ink: #0B1F3D;            /* brand.base — canvas */
  --ink-raised: #10294D;     /* surface step, derived +1 lightness step of ink */
  --accent: #12B5B0;         /* brand.accent — CTAs/accents ONLY */
  --link: #4C8DF6;           /* brand.accentAlt, lightened for WCAG AA (5.05:1 on --ink) */
  --text: rgba(255,255,255,0.92);
  --text-2: rgba(255,255,255,0.64);
  --text-3: rgba(255,255,255,0.55); /* AA on --ink (5.8:1) — used for real meta/footer text */
  --hairline: rgba(255,255,255,0.12);
  --radius-card: 16px; --radius-button: 14px; --radius-chip: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; } /* clip, not hidden — preserves position:sticky on .site-nav */
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Base */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -48px;
  background: var(--accent);
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-button);
  font-weight: 600;
  z-index: 100;
  transition: top 150ms ease;
}
.skip-link:focus {
  top: var(--space-3);
}

/* Focus visibility */
a:focus-visible,
summary:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nav — the only surface allowed backdrop-filter */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(11,31,61,0.72);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}
.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  color: var(--text-2);
  font-size: 15px;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

/* Typography scale */
h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
/* Inline / prose links (distinct from nav chrome) */
.prose a,
.link-arrow {
  color: var(--link);
  text-underline-offset: 2px;
}
.prose a:hover,
.link-arrow:hover {
  text-decoration: underline;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-chip);
  padding: var(--space-1) var(--space-4);
  font-size: 13px;
  color: var(--text-2);
}

/* Coming-soon CTA pill (id="store-cta") — swapped for the App Store badge at launch */
.cta-pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-button);
}

/* Section rhythm */
.section {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  border-top: 1px solid var(--hairline);
}
.section-head {
  margin-bottom: var(--space-6);
  max-width: 640px;
}
.section-head p {
  color: var(--text-2);
  margin-top: var(--space-2);
}

/* Hero */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  display: grid;
  gap: var(--space-6);
}
.hero-icon {
  border-radius: 20px;
  margin-bottom: var(--space-4);
}
.hero-copy .hero-subline {
  color: var(--text-2);
  font-size: 18px;
  margin-top: var(--space-4);
  max-width: 46ch;
}
.hero-copy .chip-row {
  margin-top: var(--space-5);
}
.hero-copy .cta-pill {
  margin-top: var(--space-4);
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.device-frame {
  border: 1px solid var(--hairline);
  border-radius: 32px;
  padding: var(--space-2);
  background: var(--ink-raised);
  max-width: 320px;
  width: 100%;
}
.device-frame img {
  border-radius: 24px;
  width: 100%;
}

/* How it works — numbered steps */
.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
.steps li {
  display: flex;
  gap: var(--space-4);
}
.step-num {
  flex: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.step-body p {
  color: var(--text-2);
  margin-top: var(--space-2);
}

/* Features grid — hairline-separated cells, not nested cards */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.features-grid li {
  background: var(--ink);
  padding: var(--space-5);
}
.features-grid li p {
  color: var(--text-2);
  margin-top: var(--space-2);
  font-size: 15px;
}

/* Privacy pillar */
.privacy-bullets {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-5);
}
.privacy-bullets li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--text-2);
}
.privacy-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0;
}
.faq-list details {
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-4) 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-weight: 600;
  font-size: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--text-3);
  font-weight: 400;
  font-size: 20px;
  transition: transform 150ms ease;
}
.faq-list details[open] summary::after {
  content: "\2212"; /* minus sign */
}
.faq-list details p {
  color: var(--text-2);
  margin-top: var(--space-3);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-inner nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer-inner nav a {
  color: var(--text-2);
  font-size: 14px;
}
.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  color: var(--text);
}
.footer-copy {
  color: var(--text-3);
  font-size: 13px;
}

/* Prose (privacy / terms) */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose.section {
  border-top: none; /* legal pages open directly under the nav */
}
.prose h1 {
  margin-bottom: var(--space-2);
}
.prose .meta {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: var(--space-6);
}
.prose h2 {
  font-size: 20px;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}
.prose h2:first-of-type {
  margin-top: var(--space-6);
}
.prose h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.prose p {
  color: var(--text-2);
  margin-top: var(--space-3);
}
.prose ul {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
}
.prose ul li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--text-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}
.prose ol {
  margin-top: var(--space-3);
  padding-left: var(--space-5);
  list-style: decimal;
  display: grid;
  gap: var(--space-2);
}
.prose ol li {
  color: var(--text-2);
  padding-left: var(--space-1);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
}
.prose th {
  color: var(--text);
  font-weight: 600;
}
.prose strong {
  color: var(--text);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: var(--space-6) 0;
}

/* 404 */
.not-found {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  text-align: center;
}
.not-found h1 {
  font-size: 28px;
}
.not-found p {
  color: var(--text-2);
  margin-top: var(--space-3);
}
.not-found .link-arrow {
  display: inline-block;
  margin-top: var(--space-5);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Breakpoints */
@media (min-width: 600px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .container { padding-left: var(--space-6); padding-right: var(--space-6); }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero-visual { justify-content: flex-end; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  h1 { font-size: 52px; }
  .hero-copy .hero-subline { font-size: 20px; }
}
