/* 1:1 — Landing page styles
   Layered on top of styles.css. Marketing-only; no app shell. */

html, body { background: var(--bg); }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

[data-density="comfortable"] {
  --section-pad: 144px;
  --edge: 96px;
}
[data-density="compact"] {
  --section-pad: 96px;
  --edge: 64px;
}
@media (max-width: 900px) {
  [data-density="comfortable"], [data-density="compact"] {
    --section-pad: 80px;
    --edge: 24px;
  }
}

/* ================ Layout primitives ================ */
.lp-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
}
.lp-section {
  position: relative;
  padding: var(--section-pad) var(--edge);
}
.lp-section + .lp-section {
  border-top: 1px solid var(--border-soft);
}
.lp-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.lp-measure { max-width: 640px; }

/* Section colour rhythm — alternate bg/surface */
#how    { background: var(--surface); }
#groups { background: var(--surface); }

/* ================ Type ================ */
.lp-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lp-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--text-3);
  display: inline-block;
}
.lp-eyebrow.no-rule::before { display: none; }

.lp-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.lp-h1 .it {
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.018em;
}
.lp-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.lp-h2 .it { font-style: italic; color: var(--accent); }

.lp-h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.lp-h3 .it { font-style: italic; color: var(--accent); }

.lp-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
}
.lp-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}

/* ================ Nav ================ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  background: rgba(11, 13, 16, 0.55);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}
.lp-nav[data-scrolled="true"] {
  background: rgba(11, 13, 16, 0.85);
  border-bottom-color: var(--border-soft);
}
.lp-nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.lp-nav-mark .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.lp-nav-link {
  font-size: 14px;
  color: var(--text-2);
  transition: color 160ms ease;
}
.lp-nav-link:hover { color: var(--text); }
.lp-nav-cta {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 200ms cubic-bezier(.16,1,.3,1);
}
.lp-nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 800px) {
  .lp-nav-links .lp-nav-link { display: none; }
}

/* ================ Hero ================ */
.lp-hero {
  position: relative;
  padding: 128px var(--edge) 96px;
  overflow: clip;
  isolation: isolate;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px circle at 75% 30%, rgba(143, 179, 122, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.lp-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 80px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 64px; }
}
.lp-hero-copy { display: flex; flex-direction: column; gap: 28px; }
.lp-hero h1 { margin-top: 4px; }
.lp-hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.lp-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 8px;
}
.lp-hero-meta .dotsep { color: var(--accent); opacity: 0.6; }

.lp-hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
}
.lp-hero-spotlight {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}
.lp-hero-spotlight[data-on="true"] { opacity: 1; }

/* ================ Phone frame wrapper ================ */
.phone-wrap {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55))
          drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.phone-wrap[data-tilt="true"] {
  transition: transform 80ms linear;
}
.phone-scaled {
  transform-origin: top left;
}

/* Hero phone hover lift cancelled — parallax handles motion */

/* ================ Three anchors ================ */
.lp-anchors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 80px;
}
@media (max-width: 1100px) {
  .lp-anchors { grid-template-columns: 1fr; }
}
.anchor-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 580px;
  transition: transform 420ms cubic-bezier(.16,1,.3,1),
              border-color 420ms ease,
              box-shadow 420ms ease;
  will-change: transform;
  overflow: hidden;
}
.anchor-card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.anchor-card .phone-wrap {
  align-self: center;
  margin-top: auto;
  transition: transform 420ms cubic-bezier(.16,1,.3,1);
}
.anchor-card:hover .phone-wrap {
  transform: scale(1.02);
}
.anchor-card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.anchor-card-num span:first-child { color: var(--accent); }
.anchor-card-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.anchor-card-h .it { font-style: italic; color: var(--accent); }
.anchor-card-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}

/* ================ How-it-works timeline ================ */
.lp-loop {
  position: relative;
  margin-top: 80px;
}
.lp-loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.lp-loop-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.45;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1600ms cubic-bezier(.6,.05,.3,1);
}
.lp-loop-svg.drawn path { stroke-dashoffset: 0; }
@media (max-width: 1100px) {
  .lp-loop-svg { display: none; }
}

.lp-loop-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) {
  .lp-loop-grid { grid-template-columns: 1fr; gap: 12px; }
}
.lp-step {
  position: relative;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--border-soft);
}
.lp-loop-grid .lp-step:first-child { border-left: none; }
@media (max-width: 1100px) {
  .lp-step { border-left: none; border-top: 1px solid var(--border-soft); padding: 24px 0; }
  .lp-loop-grid .lp-step:first-child { border-top: none; }
}
.lp-step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.lp-step-num span { color: var(--accent); }
.lp-step-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}
.lp-step-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.lp-step-icon {
  width: 26px; height: 26px;
  color: var(--accent);
  opacity: 0.85;
}

/* ================ What it isn't ================ */
.lp-isnt {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
}
@media (max-width: 800px) {
  .lp-isnt { grid-template-columns: 1fr; }
}
.lp-isnt-cell {
  background: var(--surface);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.lp-isnt-cell:last-child {
  background: var(--accent-soft);
}
.lp-isnt-cell:last-child h4 { color: var(--text); }
.lp-isnt-cell h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.lp-isnt-cell h4 .it { font-style: italic; color: var(--accent); }
.lp-isnt-cell p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}
.lp-isnt-cell .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

/* ================ For Groups ================ */
.lp-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 1100px) {
  .lp-groups { grid-template-columns: 1fr; gap: 48px; }
}
.lp-groups-copy { display: flex; flex-direction: column; gap: 28px; }
.lp-groups-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  align-self: flex-start;
  transition: border-color 200ms ease, transform 200ms cubic-bezier(.16,1,.3,1);
}
.ghost-cta:hover { border-color: var(--text-3); transform: translateY(-1px); }
.ghost-cta .arr { transition: transform 200ms cubic-bezier(.16,1,.3,1); }
.ghost-cta:hover .arr { transform: translateX(3px); }

/* ================ Final CTA ================ */
.lp-final {
  text-align: center;
  padding: 160px var(--edge) 144px;
}
.lp-final h2 { margin-bottom: 32px; }
.lp-final .lp-hero-cta-row { justify-content: center; }

/* ================ Footer ================ */
.lp-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px var(--edge);
}
.lp-footer-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-3);
}
.lp-footer-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-footer-time {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.lp-footer-time .dotsep { color: var(--accent); opacity: 0.6; }
.lp-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.lp-footer-links a { color: var(--text-3); transition: color 160ms ease; }
.lp-footer-links a:hover { color: var(--text); }

/* ================ Store badges (placeholder) ================ */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  transition: transform 240ms cubic-bezier(.16,1,.3,1);
  position: relative;
  will-change: transform;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge .glyph { width: 24px; height: 24px; flex: 0 0 auto; }
.store-badge .stack { display: flex; flex-direction: column; line-height: 1.05; gap: 2px; }
.store-badge .stack .small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.store-badge .stack .big {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Waitlist row (alternate CTA mode) */
.waitlist-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  height: 56px;
  min-width: 380px;
}
.waitlist-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: 400 15px var(--sans);
  padding: 0 16px;
  height: 100%;
}
.waitlist-row input::placeholder { color: var(--text-3); }
.waitlist-row button {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #0E0D0B;
  font: 600 14px var(--sans);
  border: none;
  cursor: pointer;
}

/* Polite status line that the form reveals after a submission. Sat
   inside the .waitlist-row form so aria-live is announced together
   with the form. The row is inline-flex; we position the status
   absolutely beneath it so the inline-flex layout of input+button
   stays intact. */
.waitlist-row { position: relative; }
.waitlist-status {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 8px;
  text-align: center;
  font: 400 12px var(--mono);
  letter-spacing: 0.02em;
  color: var(--text-2);
  min-height: 14px;
}

/* ================ Editorial cursor ================ */
.lp-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 200;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: normal;
  transform: translate3d(-50px, -50px, 0) translate(-50%, -50%);
  transition: width 240ms cubic-bezier(.16,1,.3,1),
              height 240ms cubic-bezier(.16,1,.3,1),
              border-radius 240ms cubic-bezier(.16,1,.3,1),
              background 240ms ease,
              border 240ms ease,
              opacity 200ms ease;
  will-change: transform, width, height;
}
.lp-cursor[data-state="text"] {
  width: 2px; height: 22px; border-radius: 1px;
}
.lp-cursor[data-state="link"] {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--accent);
}
.lp-cursor[data-state="cta"] {
  width: 56px; height: 56px;
  background: rgba(143, 179, 122, 0.1);
  border: 1px solid var(--accent);
}
@media (pointer: coarse) {
  .lp-cursor { display: none; }
}

/* ================ Scroll progress hairline ================ */
.lp-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  background: var(--accent);
  z-index: 90;
  width: 0;
  transform-origin: left;
  transition: opacity 400ms ease;
}

/* ================ Reduced motion ================ */
@media (prefers-reduced-motion: reduce) {
  .phone-wrap, .anchor-card, .anchor-card .phone-wrap,
  .lp-cursor, .lp-progress { transition: none !important; transform: none !important; }
  .lp-loop-svg path { stroke-dashoffset: 0 !important; }
  .lp-cursor { display: none; }
}

/* ================ Reveal on scroll ================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms cubic-bezier(.16,1,.3,1),
              transform 800ms cubic-bezier(.16,1,.3,1);
}
.reveal[data-shown="true"] {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
[data-motion="off"] .phone-wrap { transition: none !important; transform: none !important; }
[data-motion="off"] .lp-loop-svg path { stroke-dashoffset: 0 !important; }

/* ================ Hero phone container responsive scale ================ */
.hero-phone-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.hero-phone-stack .phone-wrap.aux {
  opacity: 0.55;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}
@media (max-width: 1300px) {
  .hero-phone-stack .phone-wrap.aux { display: none; }
}
