[hidden] { display: none !important; }

:root {
  color-scheme: dark;
  --ink: #f5f5ef;
  --green: #c7ff2e;
  --paper: #090d18;
  --muted: #a4b2c4;
  --surface-raised: #121b2c;
  --surface-muted: #0c1220;
  --hero-glow: rgb(199 255 46 / 0.12);
  --border-subtle: #29374c;
  --text-secondary: #a4b2c4;
  --text-tertiary: #8393a8;
  --header-link: #a4b2c4;
  --button-bg: #c7ff2e;
  --button-bg-hover: #d8ff66;
  --button-fg: #11120f;
  --consent-bg: rgb(18 27 44 / 0.97);
  --consent-border: rgb(245 245 239 / 0.1);
  --consent-shadow: rgb(0 0 0 / 0.4);
  --consent-secondary-bg: rgb(245 245 239 / 0.06);
  --header-h: 68px;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  width: min(1080px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  background: var(--button-bg);
  color: var(--button-fg);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--header-link);
}

nav > a:not(.header-cta):hover {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease;
}

.header-cta:hover {
  background: var(--button-bg-hover);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 9vw, 96px) 24px 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, var(--hero-glow) 0, transparent 70%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0 auto 20px;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 720;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 span {
  color: var(--green);
}

.hero-copy {
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.store-link {
  display: inline-flex;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.store-badge {
  display: block;
  height: 56px;
  width: auto;
}

.prelaunch-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 18px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.store-link:hover .prelaunch-cta {
  background: var(--button-bg-hover);
}

.microcopy {
  margin: 16px 0 0;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

.hero-visual {
  width: min(960px, 100%);
  margin: clamp(40px, 6vw, 64px) 0 0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: var(--surface-raised);
  box-shadow: 0 -20px 80px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(255 255 255 / 0.07);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Sections */

.section {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 128px) 0;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.privacy-note h2,
.final-cta h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 680;
  text-wrap: balance;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.step-number {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-note {
  width: min(640px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.privacy-note h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.privacy-note p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-note a {
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}

.faq-list details {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: -4px 0 24px;
  max-width: 660px;
  color: var(--muted);
  line-height: 1.65;
}

.final-cta {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto 80px;
  padding: clamp(44px, 8vw, 80px) 24px;
  border-radius: 32px;
  background: radial-gradient(ellipse 60% 90% at 50% 0, var(--hero-glow) 0, transparent 70%),
    var(--surface-raised);
  text-align: center;
}

.final-cta p {
  max-width: 460px;
  margin: 0 auto 26px;
  color: var(--muted);
  line-height: 1.6;
}

/* Articles */

.article {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.article h1 {
  text-align: left;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 60px);
}

.article .lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 36px;
}

.article h2 {
  margin: 42px 0 12px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.article p,
.article li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.article a:not(.store-link) {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article .store-link {
  margin-top: 8px;
}

.related {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.related a {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-raised);
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}

/* Footer */

footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--green);
}

.footer-links button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Legal */

.legal-page article {
  width: min(760px, calc(100% - 40px));
  margin: 80px auto 120px;
}

.legal-page article h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.1;
  text-align: left;
}

.legal-updated {
  color: var(--text-tertiary);
  margin-bottom: 55px;
}

.legal-page article h2 {
  margin: 38px 0 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.legal-page article p,
.legal-page article li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-page article a {
  color: var(--green);
  text-decoration: underline;
}

/* Analytics consent */

.analytics-consent-backdrop {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  pointer-events: none;
}

.analytics-consent {
  align-items: center;
  animation: analytics-consent-enter 180ms ease-out;
  background: var(--consent-bg);
  border: 1px solid var(--consent-border);
  border-radius: 18px;
  box-shadow: 0 18px 55px var(--consent-shadow);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  max-height: calc(100dvh - 32px);
  max-width: 1080px;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  pointer-events: auto;
  width: 100%;
}

.analytics-consent[hidden],
.analytics-consent-backdrop[hidden] {
  display: none;
}

.analytics-consent-copy strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.analytics-consent-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.analytics-consent-copy a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

.analytics-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-consent-primary,
.analytics-consent-secondary {
  min-height: 44px;
  min-width: 104px;
  padding: 0 16px;
  border: 1px solid var(--consent-border);
  border-radius: 999px;
  background: var(--consent-secondary-bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.analytics-consent-primary {
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-fg);
}

/* Motion */

@keyframes analytics-consent-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .hero > :nth-child(5) {
    animation-delay: 0.24s;
  }
  .hero > :nth-child(6) {
    animation-delay: 0.3s;
  }
  .store-link:active .prelaunch-cta {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .analytics-consent {
    animation: none;
  }
  * {
    transition: none !important;
  }
}

/* Responsive */

@media (max-width: 820px) {
  :root {
    --header-h: 60px;
  }
  .site-header-inner {
    width: calc(100% - 32px);
  }
  nav > a:not(.header-cta) {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-visual {
    border-radius: 20px 20px 0 0;
  }
  .section,
  .privacy-note,
  .final-cta,
  .article,
  footer {
    width: calc(100% - 32px);
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .final-cta {
    border-radius: 24px;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .analytics-consent {
    grid-template-columns: 1fr;
  }
  .analytics-consent-actions {
    width: 100%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-h: 52px;
  }
  .hero {
    padding-top: 28px;
  }
  .site-header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
