/* Landing page — keeps legal document styles untouched via body.landing */

body.landing {
  --max: 44rem;
  --sky: #5eb3d9;
  --sky-deep: #2a7aad;
  --sky-soft: #cfeaf6;
  --peach: #f6d5c8;
  --accent: #e06b52;
  --cream: #f4f9fc;
  background: var(--cream);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  overflow-x: hidden;
}

html[lang="en"] body.landing {
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
}

body.landing .wrap {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* —— Header —— */
body.landing .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-bottom: none;
  background: transparent;
}

body.landing .brand {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

body.landing .nav a {
  color: rgba(26, 42, 51, 0.62);
}

/* —— Hero (first viewport = one composition) —— */
.lp-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 5.5rem 1.5rem 2.5rem;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
    linear-gradient(155deg, #b8dff0 0%, #d9eef8 42%, #f3ddd2 100%);
  overflow: hidden;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.28) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px);
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.9;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 860px) {
  .lp-hero {
    align-items: center;
    padding: 6rem 2rem 3rem;
  }

  .lp-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem 3rem;
    align-items: center;
  }
}

.lp-hero-copy {
  max-width: 28rem;
}

.lp-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--sky-deep);
  animation: lp-rise 0.9s ease-out both;
}

.lp-lead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  animation: lp-rise 0.9s ease-out 0.08s both;
}

.lp-support {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
  animation: lp-rise 0.9s ease-out 0.14s both;
}

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  animation: lp-rise 0.9s ease-out 0.2s both;
}

.lp-cta-primary,
.lp-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.85rem;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lp-cta-primary {
  background: var(--sky-deep);
  color: #fff;
}

.lp-cta-primary:hover {
  background: #236890;
  color: #fff;
  transform: translateY(-1px);
}

.lp-cta-primary.is-soon {
  cursor: default;
  opacity: 0.92;
}

.lp-cta-primary.is-soon:hover {
  transform: none;
  background: var(--sky-deep);
}

.lp-cta-secondary {
  background: transparent;
  color: var(--sky-deep);
  border: 1.5px solid rgba(42, 122, 173, 0.35);
}

.lp-cta-secondary:hover {
  border-color: var(--sky-deep);
  color: var(--sky-deep);
  transform: translateY(-1px);
}

.lp-hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 20rem);
  min-height: 26rem;
  animation: lp-rise 1s ease-out 0.12s both;
}

.lp-hero-visual.lp-phones {
  aspect-ratio: auto;
}

.lp-phone {
  position: relative;
  width: min(100%, 15.5rem);
  margin: 0 auto;
  border-radius: 1.65rem;
  overflow: hidden;
  background: #1a2a33;
  box-shadow:
    0 18px 40px rgba(26, 42, 51, 0.18),
    0 0 0 1px rgba(26, 42, 51, 0.08);
}

.lp-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  animation: none;
  object-fit: cover;
}

.lp-phones .lp-phone-back {
  position: absolute;
  right: 0;
  top: 1.5rem;
  width: min(72%, 12.5rem);
  transform: rotate(7deg);
  opacity: 0.92;
  z-index: 0;
  animation: lp-float 6.5s ease-in-out infinite;
}

.lp-phones .lp-phone-front {
  position: relative;
  z-index: 1;
  margin-left: 0;
  animation: lp-float 5.5s ease-in-out 0.4s infinite;
}

@media (min-width: 860px) {
  .lp-hero-visual {
    width: min(100%, 24rem);
    min-height: 30rem;
    justify-self: end;
  }

  .lp-phones .lp-phone-front {
    width: min(100%, 16.5rem);
    margin-left: 0;
  }

  .lp-phones .lp-phone-back {
    width: min(70%, 13.5rem);
    right: 0.25rem;
  }
}

/* —— Showcase strip —— */
.lp-showcase {
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(207, 234, 246, 0.55) 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
}

.lp-showcase-inner {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.lp-showcase h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
}

.lp-showcase .lp-section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.lp-showcase-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.15rem 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.lp-showcase-track::-webkit-scrollbar {
  height: 6px;
}

.lp-showcase-track::-webkit-scrollbar-thumb {
  background: rgba(42, 122, 173, 0.35);
  border-radius: 999px;
}

.lp-shot {
  flex: 0 0 auto;
  width: min(42vw, 11.5rem);
  scroll-snap-align: start;
}

.lp-shot .lp-phone {
  width: 100%;
  box-shadow: 0 12px 28px rgba(26, 42, 51, 0.14);
}

.lp-shot figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 900px) {
  .lp-shot {
    width: 12.75rem;
  }
}

/* —— Feature with screen —— */
.lp-feature-stage {
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.lp-feature-stage:first-of-type {
  border-top: none;
  padding-top: 1rem;
}

.lp-feature-copy h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
}

.lp-feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.lp-feature-stage .lp-phone {
  width: min(100%, 14.5rem);
  margin: 0 auto;
}

@media (min-width: 820px) {
  .lp-feature-stage {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    padding: 4rem 0;
  }

  .lp-feature-stage.is-flip .lp-feature-copy {
    order: 2;
  }

  .lp-feature-stage.is-flip .lp-feature-media {
    order: 1;
  }

  .lp-feature-stage .lp-phone {
    margin: 0;
  }

  .lp-feature-stage.is-flip .lp-phone {
    margin-left: auto;
  }
}

/* —— Sections —— */
.lp-section {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.25rem 0;
}

.lp-section + .lp-section {
  border-top: 1px solid var(--line);
}

.lp-section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);
}

.lp-section > .lp-section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.lp-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.lp-flow li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.lp-flow .n {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--sky-deep);
  line-height: 1.2;
}

.lp-flow strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.lp-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.lp-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-features li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.lp-features li:last-child {
  border-bottom: 1px solid var(--line);
}

.lp-features strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.lp-features p {
  margin: 0;
  color: var(--muted);
}

.lp-price {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 900;
  color: var(--sky-deep);
  letter-spacing: 0.01em;
}

.lp-price span {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--muted);
  margin-left: 0.25rem;
}

.lp-price-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lp-closing {
  text-align: center;
  padding-bottom: 5rem;
}

.lp-closing .lp-brand-mini {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--sky-deep);
}

body.landing .site-footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
}

body.landing .site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

body.landing .site-footer .footer-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

body.landing .site-footer .footer-links a:hover {
  color: var(--sky-deep);
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .lp-brand,
  .lp-lead,
  .lp-support,
  .lp-cta,
  .lp-hero-visual,
  .lp-phones .lp-phone-front,
  .lp-phones .lp-phone-back {
    animation: none;
  }
}
