@import url('/shared/site.css');

/* ── Landing: brutalist dataslate + scroll reveals ── */
.landing-page {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: clamp(64px, 8vw, 96px);
  --content-max: 1200px;
  position: relative;
}

.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      var(--grid-line) 39px,
      var(--grid-line) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      var(--grid-line) 39px,
      var(--grid-line) 40px
    );
  pointer-events: none;
}

.landing-page .container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Header — full width, content aligned to grid */
.landing-page .site-header {
  padding-inline: clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.landing-page .site-logo {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-page .site-logo-icon {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.landing-page .btn {
  font-family: var(--font-heading);
  border-radius: var(--radius);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-page .btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.landing-page .btn-secondary:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}

.landing-page .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
}

.landing-page .theme-toggle {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Scroll reveal */
.landing-page .reveal,
.landing-page .scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  filter: blur(0);
  will-change: opacity, transform;
}

.landing-page .reveal.is-visible,
.landing-page .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

.landing-page .scroll-reveal[data-reveal='left'] {
  transform: translateX(-36px);
}

.landing-page .scroll-reveal[data-reveal='right'] {
  transform: translateX(36px);
}

.landing-page .scroll-reveal[data-reveal='scale'] {
  transform: translateY(18px) scale(0.94);
}

.landing-page .scroll-reveal[data-reveal='left'].is-visible,
.landing-page .scroll-reveal[data-reveal='right'].is-visible {
  transform: translateX(0);
}

.landing-page .scroll-reveal[data-reveal='scale'].is-visible {
  transform: translateY(0) scale(1);
}

.landing-page .scroll-reveal[data-delay='1'] { transition-delay: 0.08s; }
.landing-page .scroll-reveal[data-delay='2'] { transition-delay: 0.16s; }
.landing-page .scroll-reveal[data-delay='3'] { transition-delay: 0.24s; }
.landing-page .scroll-reveal[data-delay='4'] { transition-delay: 0.32s; }
.landing-page .scroll-reveal[data-delay='5'] { transition-delay: 0.4s; }

/* Staggered children inside a revealed parent */
.landing-page .stagger-children > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 90ms);
}

.landing-page .stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.landing-page .proof-value.js-count-up {
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}

.landing-page .proof-value.is-counted {
  color: var(--accent);
}

@keyframes hero-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.landing-page .hero-visual.is-visible .phone-frame-hero {
  animation: hero-phone-float 5.5s ease-in-out infinite;
  animation-delay: 0.9s;
}

@keyframes section-rule-in {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.landing-page .section-header.scroll-reveal.is-visible .section-eyebrow::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 10px;
  background: var(--accent);
  transform-origin: left center;
  animation: section-rule-in 0.7s var(--ease-out) 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  .landing-page .reveal,
  .landing-page .scroll-reveal,
  .landing-page .stagger-children > * {
    opacity: 1;
    transform: none;
    transition: none;
    filter: none;
  }

  .landing-page .hero-visual.is-visible .phone-frame-hero {
    animation: none;
  }

  .landing-page .section-header.scroll-reveal.is-visible .section-eyebrow::after {
    animation: none;
  }
}

/* Hero */
.landing-page .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 80px) 0 var(--section-pad);
}

.landing-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}

.landing-page .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.landing-page .hero-terminal {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 440px;
  min-height: calc(14px * 2 + 1.05rem * 1.45 * 5);
}

.landing-page .hero-terminal-log {
  font-family: var(--font-terminal);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-secondary);
  opacity: 0.75;
  margin: 0;
  white-space: pre-wrap;
  min-height: calc(1.05rem * 1.45 * 5);
}

.landing-page .hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.landing-page .hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 520px;
}

.landing-page .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.landing-page .hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
}

.landing-page .hero-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.landing-page .hero-trust-copy {
  min-width: 0;
}

.landing-page .hero-trust-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.landing-page .hero-trust-meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

.landing-page .hero-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin: 0;
}

.landing-page .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone frames — squared brutalist */
.landing-page .phone-frame {
  position: relative;
  width: min(280px, 100%);
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.landing-page .phone-frame::before,
.landing-page .phone-frame::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.5;
  pointer-events: none;
}

.landing-page .phone-frame::before {
  top: 6px;
  left: 6px;
  border-width: 2px 0 0 2px;
}

.landing-page .phone-frame::after {
  bottom: 6px;
  right: 6px;
  border-width: 0 2px 2px 0;
}

.landing-page .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.landing-page .phone-frame img.screenshot-theme--light {
  display: none;
}

[data-theme='light'] .landing-page .screenshot-theme--dark {
  display: none;
}

[data-theme='light'] .landing-page .phone-frame img.screenshot-theme--light {
  display: block;
}

.landing-page .phone-frame-hero {
  width: min(300px, 100%);
}

/* Sections */
.landing-page .section {
  padding: var(--section-pad) 0;
}

.landing-page .section-alt {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}

.landing-page .section-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.landing-page .section-eyebrow {
  display: block;
  font-family: var(--font-terminal);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  opacity: 0.75;
  margin: 0 0 10px;
}

.landing-page .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.landing-page .section-header p {
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 560px;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Screenshots */
.landing-page .screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  justify-items: center;
}

.landing-page .screenshot-card {
  margin: 0;
  text-align: center;
  width: 100%;
  max-width: 260px;
}

.landing-page .screenshot-card .phone-frame {
  width: 100%;
}

.landing-page .screenshot-card figcaption {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.landing-page .screenshot-more {
  margin-top: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px 16px 16px;
}

.landing-page .screenshot-more > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 14px 0;
}

.landing-page .screenshot-more > summary::-webkit-details-marker {
  display: none;
}

.landing-page .screenshot-more > summary::before {
  content: '› ';
  color: var(--accent);
  font-family: var(--font-terminal);
}

.landing-page .screenshot-more[open] > summary::before {
  content: '▾ ';
}

.landing-page .screenshot-grid--more {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Features */
.landing-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-page .feature-grid--outcomes {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.landing-page .feature-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.landing-page .feature-card.is-visible:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.landing-page .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--accent);
}

.landing-page .feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.landing-page .feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Pricing */
.landing-page .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.landing-page .pricing-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.landing-page .pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 12%, transparent) 0%,
    var(--surface) 40%
  );
}

.landing-page .pricing-tier {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}

.landing-page .pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.landing-page .pricing-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.landing-page .pricing-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.landing-page .pricing-card li::before {
  content: '›';
  color: var(--accent);
  margin-right: 8px;
  font-family: var(--font-terminal);
}

.landing-page .pricing-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* Web CTA */
.landing-page .web-cta {
  text-align: center;
  padding: var(--section-pad) clamp(20px, 4vw, 48px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 50%),
    var(--surface);
  border-block: 1px solid var(--border);
}

.landing-page .web-cta--quiet {
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}

.landing-page .web-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.landing-page .web-cta--quiet h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  color: var(--text-secondary);
}

.landing-page .web-cta p {
  color: var(--text-secondary);
  margin: 0 auto 24px;
  max-width: 480px;
}

.landing-page .web-cta--quiet p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

/* Legal */
.landing-page .legal-section {
  padding: clamp(48px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.landing-page .legal-card {
  max-width: 720px;
  margin-inline: auto;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.landing-page .legal-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.landing-page .legal-card p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.landing-page .legal-card p:last-child {
  margin-bottom: 0;
}

/* Footer */
.landing-page .site-footer {
  padding: 40px clamp(20px, 4vw, 48px) 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.landing-page .site-footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* Desktop: widen screenshot row evenly */
@media (min-width: 901px) {
  .landing-page .screenshot-grid {
    gap: 32px 28px;
  }
}

@media (max-width: 900px) {
  .landing-page .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-page .hero-terminal,
  .landing-page .hero-lead {
    margin-inline: auto;
  }

  .landing-page .hero-ctas {
    justify-content: center;
  }

  .landing-page .hero-visual {
    order: -1;
  }

  .landing-page .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-page .feature-grid,
  .landing-page .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .landing-page .screenshot-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .landing-page .section {
    padding: 48px 0;
  }
}

/* FAQ */
.landing-page .faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.landing-page .faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
}

.landing-page .faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 16px 0;
  list-style-position: outside;
}

.landing-page .faq-item summary:hover {
  color: var(--accent);
}

.landing-page .faq-item p {
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  padding: 0 0 16px;
}
