/* Gripply landing — shared stylesheet for index/features/privacy.
   Referenced as /styles.css?v=N — bump N in all three pages when editing
   this file (netlify.toml serves it with immutable caching). */

:root {
  --bg: #0b0b0d;
  --bg-alt: #0e0e11;
  --card: #16161a;
  --card-el: #1e1e23;
  --text: #f5f5f7;
  --muted: #9b9ba1;
  --dim: #84848c;            /* was #6e6e76 — lifted to pass WCAG AA at small sizes */
  --headline-dim: #63636b;   /* was #5c5c63 — 3.3:1, passes AA for large text */
  --numeral: #4a4a52;        /* decorative step numerals, aria-hidden */
  --sep: #2c2c30;            /* decorative "·" separators, aria-hidden */
  --accent: #a3e635;
  --accent-hover: #b6f24d;
  --accent-ink: #0b0b0d;
  --danger: #ff5d5d;
  --border: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-stronger: rgba(255, 255, 255, 0.14);
}

/* ===== base ===== */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
input::placeholder { color: var(--dim); }
input, button, textarea, select { box-sizing: border-box; font-family: inherit; }
[hidden] { display: none !important; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .float-card { animation: floaty 6s ease-in-out infinite; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page {
  background: var(--bg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  /* clip, not hidden: hidden would make .page a scroll container and
     silently disable the sticky nav (hidden kept as old-browser fallback) */
  overflow-x: hidden;
  overflow-x: clip;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ===== buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary:hover { background: var(--accent-hover); }

/* ===== nav ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav__logo span {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  /* pad the hit area out to ~44px without moving the layout */
  padding: 13px 6px;
  margin: -13px -6px;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--text); }
.nav__cta {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  position: relative;
}
.nav__cta::after { content: ""; position: absolute; inset: -4px 0; }

/* mobile menu — native <details>, works with JS disabled */
.nav-menu { display: none; position: relative; }
.nav-menu__button {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -9px -10px -9px -6px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}
.nav-menu__button::-webkit-details-marker { display: none; }
.nav-menu[open] .nav-menu__button { color: var(--text); }
.nav-menu__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -6px;
  min-width: 230px;
  background: rgba(11, 11, 13, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8);
}
.nav-menu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.nav-menu__link:hover { background: var(--card-el); }

/* ===== shared type ===== */

.kicker {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker--dim { color: var(--dim); }

.sep { color: var(--sep); }

/* ===== hero (index) ===== */

.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}
.hero__glow {
  position: absolute;
  top: -40px; left: 30%;
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.10), rgba(163, 230, 53, 0) 68%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
  position: relative;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: 999px;
  margin-bottom: 30px;
}
.eyebrow-pill__dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--accent);
}
.eyebrow-pill__text {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -3px;
  margin: 0;
  color: var(--text);
}
.hero__title-line { display: block; line-height: 0.9; }
.hero__title-line--dim { line-height: 0.94; color: var(--headline-dim); }
.accent-text { color: var(--accent); }
.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 30px 0 26px;
  max-width: 500px;
}
.chips {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.chip { display: flex; align-items: center; gap: 6px; }
.chip span { font-size: 13.5px; font-weight: 600; color: var(--text); }

.hero__phone-col { position: relative; display: flex; justify-content: center; }
.hero__phone-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.13), rgba(163, 230, 53, 0) 70%);
}
.phone-tilt { position: relative; transform: rotate(-6deg); transform-origin: center; }
.float-card {
  position: absolute;
  left: -44px; bottom: 40px;
  z-index: 5;
  background: var(--card);
  border: 1px solid rgba(163, 230, 53, 0.25);
  border-radius: 14px;
  padding: 13px 15px;
  width: 208px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8);
}

/* ===== waitlist forms ===== */

.waitlist-form { display: flex; gap: 10px; max-width: 480px; }
.waitlist-form__input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 16px;
  height: 54px;
  font-size: 15px;
  color: var(--text);
}
.waitlist-form__input:focus { border-color: var(--accent); }
.waitlist-form__submit { border-radius: 12px; padding: 0 22px; height: 54px; }
.waitlist-form--deep .waitlist-form__input {
  background: var(--bg);
  border-color: var(--border-stronger);
  height: 56px;
}
.waitlist-form--deep .waitlist-form__submit { padding: 0 24px; height: 56px; }

.hp-field {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 480px;
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: 12px;
  padding: 15px 18px;
  outline: none;
}
.form-success span { font-size: 14.5px; color: var(--text); font-weight: 500; }
.form-success--deep { padding: 17px 18px; }
.form-error {
  max-width: 480px;
  margin-top: 12px;
  background: rgba(255, 93, 93, 0.08);
  border: 1px solid rgba(255, 93, 93, 0.3);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--danger);
}
.form-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
}

/* ===== how it works (index) ===== */

.section-how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 40px;
  scroll-margin-top: 80px;
  border-top: 1px solid var(--border);
}
.section-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -1.6px;
  margin: 0 0 56px;
  max-width: 680px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.step-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.step-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(163, 230, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card__num {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--numeral);
}
.step-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  color: var(--text);
}
.step-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ===== feature rows (index band + features page) ===== */

.band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.band__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 40px;
}
.band__inner .section-title { margin-bottom: 64px; max-width: 720px; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}
.feature-row__media { display: flex; justify-content: center; }
.feature-row--reversed .feature-row__media { order: 1; }
.feature-row--reversed .feature-row__copy { order: 2; }
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: rgba(163, 230, 53, 0.1);
  border-radius: 8px;
  margin-bottom: 18px;
}
.feature-pill span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.feature-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
  color: var(--text);
}
.feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 440px;
}
.demo-card {
  width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.demo-card--col { display: flex; flex-direction: column; gap: 12px; }

.features-outro { text-align: center; }
.outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-stronger);
  border-radius: 12px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.outline-cta:hover { border-color: rgba(163, 230, 53, 0.6); }
.features-outro__sub { font-size: 13px; color: var(--dim); margin-top: 12px; }

/* ===== waitlist CTA panel ===== */

.cta-section { scroll-margin-top: 80px; padding: 104px 40px; }
.cta-section--flush { padding: 0 40px 104px; }
.cta-panel {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(165deg, #16161a, #0e0e11);
  border: 1px solid rgba(163, 230, 53, 0.18);
  border-radius: 28px;
  padding: 72px 56px;
  overflow: hidden;
}
.cta-panel__glow {
  position: absolute;
  top: -120px; right: -60px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.16), rgba(163, 230, 53, 0) 70%);
  pointer-events: none;
}
.cta-panel__inner { position: relative; max-width: 560px; }
.cta-panel__inner .kicker { margin-bottom: 18px; }
.cta-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0 0 18px;
}
.cta-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 30px;
}

/* ===== FAQ (index) ===== */

.faq__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 104px 40px;
}
.faq-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -1.4px;
  margin: 0 0 48px;
}
.faq__list { display: flex; flex-direction: column; }
.faq__row {
  padding: 26px 0;
  border-top: 1px solid var(--border-mid);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}
.faq__row:last-child { border-bottom: 1px solid var(--border-mid); }
.faq__row h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--text);
}
.faq__row p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ===== footer ===== */

.footer { border-top: 1px solid var(--border); }
.footer__top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.footer__brand span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0;
  max-width: 280px;
}
.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 13px; color: var(--dim); }
.footer__link {
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  /* pad the hit area out to ~44px without moving the layout */
  padding: 13px 4px;
  margin: -13px -4px;
}
.footer__link:hover { color: var(--text); }
.footer__made {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.6px;
}

/* ===== features page ===== */

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 40px;
}
.page-header h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0 0 18px;
  max-width: 720px;
}
.page-header__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 104px;
}
.features-section .kicker--dim { margin-bottom: 24px; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.mini-card__title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  margin: 12px 0 6px;
}
.mini-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ===== privacy page ===== */

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px 104px;
}
.legal-main h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -1.8px;
  margin: 0 0 10px;
}
.legal-updated {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.4px;
  margin: 0 0 8px;
}

.prose h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.5px;
  color: var(--text); margin: 44px 0 12px;
}
.prose h3 {
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--text); margin: 26px 0 8px;
}
.prose p, .prose li {
  font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 14px;
}
.prose li { margin-bottom: 8px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose strong { color: #cfcfd4; font-weight: 600; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .partner { color: var(--text); font-weight: 600; }

/* ===== consent banner ===== */

.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
.consent-banner__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 14px;
}
.consent-banner__text a { color: var(--accent); text-decoration: none; }
.consent-banner__text a:hover { text-decoration: underline; }
.consent-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-banner__accept {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
}
.consent-banner__decline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 20px;
  background: none;
  border: 1px solid var(--border-stronger);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}
.consent-banner__decline:hover { border-color: rgba(255, 255, 255, 0.3); }

/* ===== responsive ===== */

@media (max-width: 900px) {
  .nav__inner { padding: 14px 22px; }
  .hero { padding: 44px 22px 64px; }
  .hero__grid { grid-template-columns: 1fr; }
  .section-how { padding: 64px 22px; }
  .steps-grid { grid-template-columns: 1fr; }
  .band__inner { padding: 64px 22px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .cta-section { padding: 64px 22px; }
  .cta-section--flush { padding: 0 22px 64px; }
  .cta-panel { padding: 44px 26px; }
  .faq__inner { padding: 64px 22px; }
  .faq__row { grid-template-columns: 1fr; gap: 10px; }
  .footer__top { padding: 48px 22px 32px; }
  .page-header { padding: 44px 22px 28px; }
  .features-section { padding: 28px 22px 64px; }
  .mini-grid { grid-template-columns: 1fr; }
  .legal-main { padding: 44px 22px 64px; }
}

@media (max-width: 640px) {
  html, body { overflow-x: hidden; overflow-x: clip; }
  .nav__link { display: none; }
  .nav-menu { display: block; }
  .nav__links { gap: 14px; }
  .hero__title { font-size: 52px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .waitlist-form__input,
  .waitlist-form .waitlist-form__submit { width: 100%; height: 56px; flex: none; }
  .waitlist-form .waitlist-form__submit { justify-content: center; }
  .demo-card { width: 100%; max-width: 380px; }
  .phone-tilt { transform: none; }
  .float-card { display: none; }
}
