/* Home page. Builds on the brand tokens in styles.css; nothing here changes the privacy or 404 pages. */
.landing {
  --tint: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --ring: color-mix(in srgb, var(--primary) 24%, transparent);
  --shadow: 0 1px 2px rgb(16 32 80 / 6%), 0 12px 32px rgb(16 32 80 / 10%);
  --radius: 20px;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  .landing {
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px rgb(0 0 0 / 45%);
  }
}

.landing h1,
.landing h2,
.landing h3,
.landing p {
  margin: 0;
}

.shell {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.landing .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 650;
  color: var(--fg);
  text-decoration: none;
}

.landing .brand img {
  border-radius: 9px;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav .btn {
  margin-left: auto;
}

@media (min-width: 52rem) {
  .nav-links {
    display: flex;
  }

  .nav .btn {
    margin-left: 0;
  }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn.small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn.large {
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn.primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 8px 20px color-mix(in srgb, var(--primary) 28%, transparent);
}

.btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn.ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--ring);
  transform: translateY(-1px);
}

.btn:focus-visible,
.landing a:focus-visible,
.landing summary:focus-visible,
.rail:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 3rem 0 2rem;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.glow-a {
  width: 34rem;
  height: 34rem;
  right: -10rem;
  top: -12rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 46%, transparent), transparent 70%);
}

.glow-b {
  width: 26rem;
  height: 26rem;
  left: -12rem;
  top: 14rem;
  background: radial-gradient(circle, rgb(64 205 245 / 34%), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin-top: 0.875rem;
  font-size: clamp(2.2rem, 6.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 750;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, var(--primary), #12a3db 55%, #7a5af8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cta-row.center {
  justify-content: center;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points li::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: middle;
}

/* The 3D stage: two phones standing in perspective. --rx / --ry are set by landing.js from the pointer. */
.stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  height: 30rem;
  perspective: 1400px;
  justify-self: center;
  width: min(100%, 26rem);
}

.phone {
  position: absolute;
  width: 15rem;
  padding: 0.5rem;
  border-radius: 2.4rem;
  background: linear-gradient(160deg, #2a2d36, #0d0f14);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 8%);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.95rem;
}

.phone-front {
  right: 1rem;
  top: 1rem;
  z-index: 2;
  transform: rotateX(calc(6deg + var(--rx))) rotateY(calc(-16deg + var(--ry))) rotateZ(2deg);
  animation: float 7s ease-in-out infinite;
}

.phone-back {
  left: 0;
  top: 3.5rem;
  width: 13rem;
  opacity: 0.92;
  transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(18deg + var(--ry))) rotateZ(-4deg) translateZ(-80px);
  animation: float 8s ease-in-out -2s infinite;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip-a {
  left: 0.25rem;
  top: 1rem;
  animation: float 6s ease-in-out -1s infinite;
}

.chip-b {
  right: 0;
  bottom: 2.5rem;
  animation: float 6.5s ease-in-out -3s infinite;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
}

.dot.ok {
  background: #12b886;
}

@media (min-width: 60rem) {
  .hero {
    padding: 5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .stage {
    height: 36rem;
    width: 100%;
  }

  .phone {
    width: 17.5rem;
  }

  .phone-back {
    width: 15rem;
  }
}

/* ---------------------------------------------------------------- strip */
.strip {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.strip-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.strip-item h2 {
  font-size: 1.05rem;
}

.strip-item p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.landing code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--tint);
  font-size: 0.92em;
}

@media (min-width: 52rem) {
  .strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  padding-top: 5rem;
}

.heading {
  margin-top: 0.75rem;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sub {
  margin-top: 0.875rem;
  max-width: 40rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--ring);
  box-shadow: var(--shadow);
}

.ico {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--tint);
  color: var(--primary);
}

.ico svg {
  width: 1.375rem;
  height: 1.375rem;
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------------------------------------------------------------- tour */
.rail {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem)) 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shot {
  flex: 0 0 auto;
  width: 15rem;
  margin: 0;
  scroll-snap-align: center;
}

.phone.flat {
  position: static;
  width: 100%;
  transform: none;
  animation: none;
  transition: transform 0.25s ease;
}

.shot:hover .phone.flat {
  transform: translateY(-6px) rotateZ(-0.6deg);
}

.shot figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot figcaption strong {
  display: block;
  color: var(--fg);
  font-size: 1rem;
}

/* ---------------------------------------------------------------- steps */
.steps {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.steps h3 {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------- privacy band */
.band {
  margin-top: 5rem;
  padding: 4rem 0 4rem;
  background: linear-gradient(180deg, var(--tint), transparent);
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split .btn {
  margin-top: 1.5rem;
}

.ledger {
  display: grid;
  gap: 1rem;
}

.ledger-col {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.ledger-col h3 {
  font-size: 1rem;
}

.ledger-col ul,
.ticks {
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.ledger-col li,
.ticks li {
  position: relative;
  padding-left: 1.6rem;
}

.ledger-col li + li,
.ticks li + li {
  margin-top: 0.5rem;
}

.ledger-col li::before,
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.ledger-col.never li::before {
  top: 0.75em;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--muted);
  transform: none;
}

@media (min-width: 40rem) {
  .ledger {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

/* ---------------------------------------------------------------- pricing */
.price {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}

.price-card {
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
}

.price-tag span {
  font-size: 2.75rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-card .sub {
  margin-top: 0.25rem;
}

.price-card .btn {
  margin-top: 1.5rem;
}

.price-note {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 52rem) {
  .price {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------------------------------------------------------------- faq */
.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 1.25rem;
  max-width: 44rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- final call */
.final {
  padding: 3rem 1.5rem;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(60rem 20rem at 50% -20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}

.final img {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.final h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.final p {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */
.foot {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.foot-grid {
  display: grid;
  gap: 2rem;
}

.foot-brand p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.foot-links a:hover {
  color: var(--fg);
}

/* "A Product by DVEXO": a quiet credit, not an advertisement. */
.maker {
  display: grid;
  gap: 0.5rem;
  max-width: 26rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.maker:hover {
  border-color: var(--ring);
  background: var(--tint);
  transform: translateY(-2px);
}

.maker-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.maker-row {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.maker-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.maker-text {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.maker-tag {
  font-size: 0.88rem;
  font-weight: 600;
}

.maker-link {
  font-size: 0.88rem;
  color: var(--primary);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 52rem) {
  .foot-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

/* ---------------------------------------------------------------- motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .phone,
  .chip {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .maker,
  .phone.flat {
    transition: none;
  }
}
