/* ==========================================================
   OneTap landing — styles
   Visual DNA: matte black, one lime accent, hairlines, Inter.
   No gradients on chrome, no drop shadows. Depth = surface steps.
   ========================================================== */

:root {
  --canvas: #161514;
  --canvas-lift: #1C1B19;
  --surface: #201E1C;
  --surface-2: #2A2725;
  --accent: #faff69;
  --accent-dim: rgba(250, 255, 105, 0.14);
  --text: #FFFFFF;
  --text-body: #B8B4AF;
  --text-muted: #7A756F;
  --hairline: #2E2B28;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --dur: 280ms;

  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--canvas);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--text); font-weight: 600; }

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

.bolt { fill: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              filter var(--dur) var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #12110F;
}
.btn-primary:hover {
  transform: scale(1.03);
  filter: brightness(1.07);
}
.btn-primary:active { transform: scale(0.99); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  transform: scale(1.03);
  border-color: #4A453F;
}

.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(22, 21, 20, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.nav-brand .bolt { width: 20px; height: 20px; }
.nav-wordmark {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a:not(.btn) {
  color: var(--text-body);
  font-size: 14.5px;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--text); }

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

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 24px 96px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-bolt {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 26px;
  /* strike-down: revealed top-to-bottom on load */
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  animation: bolt-strike 480ms var(--ease) 250ms forwards;
}

@keyframes bolt-strike {
  0%   { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(-14px); }
  55%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; transform: translateY(0); }
}

.hero-headline {
  font-size: clamp(46px, 6.2vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-subline {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
  max-width: 46ch;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Copy elements ease in on load */
.hero-headline, .hero-subline, .hero-ctas {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 520ms var(--ease) forwards;
}
.hero-headline { animation-delay: 120ms; }
.hero-subline  { animation-delay: 220ms; }
.hero-ctas     { animation-delay: 320ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero demo (the tiny film) ---------- */

.hero-demo {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 560ms var(--ease) 340ms forwards;
}

/* The one allowed glow: soft accent radial behind the demo */
.hero-glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(closest-side, rgba(250, 255, 105, 0.09), transparent 72%);
  pointer-events: none;
}

.demo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  max-width: 480px;
  margin: 0 auto;
  transition: opacity 280ms var(--ease);
}
/* Beat 5 → Beat 1: everything fades, then loops */
.demo-card.fade { opacity: 0; }

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 16px 16px 0 0;
  background: var(--canvas-lift);
}
.demo-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface-2);
}
.demo-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.demo-url svg { width: 12px; height: 12px; }

/* -- Screens: checkout defines the height; product overlays it -- */

.demo-screens {
  position: relative;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.demo-screen {
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}

/* Beat 1: product page */
.demo-product {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
  opacity: 1;
}
.demo-card.show-checkout .demo-product {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border-radius: 12px;
  color: var(--text-muted);
}
.product-img svg { width: 56px; height: 56px; }

.product-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.product-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.product-price {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.demo-buy {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  cursor: default;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
.demo-buy.pressed {
  transform: scale(0.97);
  background: #34302D;
}

/* Beats 2–5: checkout */
.demo-checkout {
  position: relative;
  z-index: 1;
  padding: 24px 24px 26px;
  opacity: 0;
  transform: translateY(10px);
}
.demo-card.show-checkout .demo-checkout {
  opacity: 1;
  transform: translateY(0);
}

.demo-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
}

.demo-field { margin-bottom: 13px; min-width: 0; }

.demo-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.demo-input {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 13px;
  background: var(--canvas-lift);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.demo-caret { display: none; }

/* Beat 2: frustrated focus — caret blinks, nothing types */
.demo-field.focus .demo-input { border-color: #4A453F; }
.demo-field.focus .demo-caret {
  display: inline-block;
  width: 1.5px;
  height: 16px;
  background: var(--text-muted);
  animation: caret-blink 700ms steps(1) infinite;
}

/* Beat 4: field currently being filled */
.demo-field.filling .demo-input {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.demo-field.filling .demo-caret {
  display: inline-block;
  width: 1.5px;
  height: 16px;
  margin-left: 2px;
  background: var(--accent);
  animation: caret-blink 700ms steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

/* Field done */
.demo-field.filled .demo-input { border-color: #3B382F; }

.demo-submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: default;
  transition: background-color 260ms var(--ease), color 260ms var(--ease);
}
.demo-submit.done {
  background: var(--accent);
  color: #12110F;
}

/* Beat 3: the OneTap FAB pops into the corner */
.demo-fab {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: default;
  transform: scale(0);
}
.demo-fab .bolt {
  width: 20px;
  height: 20px;
  transition: transform 140ms var(--ease);
}
.demo-fab.pop {
  animation: fab-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.demo-fab.pressed .bolt { transform: scale(0.78); }

@keyframes fab-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Floating "Filling with OneTap" chip */
.demo-chip {
  position: absolute;
  top: -16px;
  right: -14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.demo-chip.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.demo-chip .bolt {
  width: 14px; height: 14px;
  animation: bolt-pulse 900ms var(--ease) infinite;
}

@keyframes bolt-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.22); opacity: 0.75; }
}

/* The guided cursor */
.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 22px;
  height: 22px;
  margin: -3px 0 0 -3px; /* nudge so the arrow tip sits on the target point */
  pointer-events: none;
  transform: translate(240px, 300px);
  transition: transform 500ms var(--ease);
}
.demo-cursor svg { width: 100%; height: 100%; display: block; }
.demo-cursor.click { animation: cursor-click 160ms var(--ease); }

@keyframes cursor-click {
  50% { scale: 0.82; }
}

/* ---------- Sections (shared shell) ---------- */

.section {
  padding: 104px 24px;
}
.section-lift {
  background: var(--canvas-lift);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.section-narrow { max-width: 760px; }
.section-center { text-align: center; }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.section-center .section-heading { margin: 0 auto; }

.section-sub {
  margin-top: 18px;
  font-size: 17.5px;
  max-width: 56ch;
}
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- 3. Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.problem-item h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.problem-item p { font-size: 15.5px; }

.problem-kicker {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 46ch;
}

/* ---------- 4. How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 30px 28px;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border-radius: 11px;
  color: var(--accent);
  margin-bottom: 22px;
}
.step-icon svg { width: 22px; height: 22px; }
.step-num {
  position: absolute;
  top: 30px;
  right: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.step-card h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-card p { font-size: 15px; }

/* ---------- 5. Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 34px 32px;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border-radius: 11px;
  color: var(--accent);
  margin-bottom: 24px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-card p { font-size: 15.5px; }

/* ---------- 6. Trust / security ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 64px;
  text-align: left;
}
.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  color: var(--text-body); /* muted tones here; accent stays scarce */
  margin-bottom: 20px;
}
.trust-icon svg { width: 21px; height: 21px; }
.trust-item h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.trust-item p { font-size: 15px; }

.trust-link {
  display: inline-block;
  margin-top: 52px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}
.trust-link:hover { color: var(--accent); }

/* ---------- 7. FAQ ---------- */

.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
}

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  text-align: left;
  transition: color var(--dur) var(--ease);
}
.faq-q button:hover { color: var(--accent); }
.faq-q button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: transform 300ms var(--ease), color 300ms var(--ease);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 36px 24px 4px;
  font-size: 15.5px;
}
.faq-a-inner a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  transition: color var(--dur) var(--ease);
}
.faq-a-inner a:hover { color: var(--accent); }

/* ---------- 8. Waitlist ---------- */

.waitlist-bolt {
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 40px auto 0;
}
.waitlist-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--dur) var(--ease);
}
.waitlist-form input::placeholder { color: var(--text-muted); }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.waitlist-success, .waitlist-error {
  margin-top: 40px;
  font-size: 17px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.waitlist-success { color: var(--accent); }
.waitlist-error { color: #E8896B; }
.waitlist-success.show, .waitlist-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 9. Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 24px 40px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-body);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--text); }

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-email {
  font-size: 14px;
  color: var(--text-body);
}
.copy-email {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 12px;
  color: var(--text-body);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  cursor: pointer;
  transition: color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.copy-email:hover {
  color: var(--text);
  border-color: #4A453F;
}
.copy-email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.copy-email.copied {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  max-width: 1140px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bolt, .hero-headline, .hero-subline, .hero-ctas, .hero-demo {
    animation: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .demo-chip .bolt { animation: none; }
  .demo-cursor { display: none; }
  .demo-fab { transform: scale(1); animation: none; }
  .demo-screen { transition: none; }
}

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

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }
  .hero-subline { max-width: 56ch; }
  .demo-chip { right: 6px; }

  .section { padding: 80px 24px; }
  .problem-grid, .steps-grid, .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid { gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 18px; }
  .nav-links > a:not(.btn) { display: none; } /* keep nav to brand + CTA on small screens */
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-headline { font-size: 44px; }
  .hero-subline { font-size: 16.5px; }
  .hero-ctas .btn { width: 100%; }

  .demo-checkout { padding: 18px 16px 20px; }
  .demo-product { padding: 18px 16px 20px; }
  .product-img { height: 120px; }
  .demo-row { grid-template-columns: 1fr 84px; }
  .demo-fab { bottom: 12px; right: 12px; width: 42px; height: 42px; }

  .section { padding: 64px 18px; }
  .problem-kicker { font-size: 18px; }

  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; padding-top: 16px; padding-bottom: 16px; }

  .footer-inner { flex-direction: column; }
}
