/* The landing page. Tokens live in base.css. */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; color: var(--text-strong); }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--text-strong); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--on-accent); }

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 900; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--quiet); }

.phone {
  position: relative;
  width: min(300px, 70vw);
  margin-inline: auto;
  padding: 8px;
  border-radius: 40px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.phone img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 1080 / 2130; object-fit: cover; }
.phone-stack { position: relative; min-height: 560px; display: grid; place-items: center; }
.phone-stack .phone.back {
  position: absolute;
  width: min(230px, 52vw);
  right: 0;
  top: 48px;
  transform: rotate(7deg);
  opacity: 0.9;
}
.phone-stack .phone.front { position: relative; z-index: 1; transform: rotate(-3deg); margin-right: 80px; }

section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 12px 0 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: 15px; }

.showcase { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.showcase.flip { grid-template-columns: 1.2fr 0.8fr; }
.showcase.flip .phone { order: 2; }
.showcase h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; margin: 12px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%238b7cf5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

.closing {
  text-align: center;
  padding: 72px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
}
.closing h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 14px; }
.closing .cta-row { justify-content: center; }

footer { padding: 48px 0 64px; border-top: 1px solid var(--border); margin-top: 88px; font-size: 14px; color: var(--quiet); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--text); }

@media (max-width: 880px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap, .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 40px; }
  .showcase.flip .phone { order: 0; }
  .features { grid-template-columns: 1fr; }
  .phone-stack { min-height: 0; }
  .phone-stack .phone.back { display: none; }
  .phone-stack .phone.front { margin-right: auto; transform: none; }
  section { padding: 56px 0; }
  .nav-links a:not(.btn) { display: none; }
}
