/* Landing page. Builds on css/app.css tokens. */

.icon-slot {
  display: inline-flex;
}

.icon-slot svg {
  width: 1em;
  height: 1em;
}

/* ---------- Header ---------- */

.site-nav {
  display: none;
  gap: 4px;
  margin-inline: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

@media (max-width: 420px) {
  .brand-tag {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 96px);
  background: var(--hero-glow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.hero h1 span {
  display: block;
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 520px) {
  .hero-cta .btn {
    width: 100%;
  }
}

.hero-time {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust .icon-slot {
  color: var(--success);
}

/* ---------- Hero demo ---------- */

.demo {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) and (max-width: 979px) {
  .demo {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.demo-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.demo-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bubble {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px 16px 16px 16px;
  background: var(--bg-elevated);
  font-size: 0.9rem;
  line-height: 1.4;
}

.bubble-from {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
}

.bubble.dup {
  opacity: 0.78;
  border-style: dashed;
  animation: dup-fade 6s ease-in-out 3;
}

.bubble.dup:nth-of-type(2) {
  animation-delay: 0.6s;
}

.bubble.dup:nth-of-type(3) {
  animation-delay: 1.2s;
}

@keyframes dup-fade {
  0%,
  55% {
    opacity: 0.85;
    filter: none;
  }
  80%,
  100% {
    opacity: 0.35;
    filter: grayscale(0.8);
  }
}

.bubble.clean {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--border));
  background: linear-gradient(180deg, var(--brand-soft), var(--bg-elevated));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: glow 6s ease-in-out 3;
}

@keyframes glow {
  0%,
  55% {
    transform: none;
  }
  80%,
  100% {
    transform: translateY(-2px);
  }
}

.bubble-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.demo-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warning);
}

.demo-count.ok {
  color: var(--success);
}

.demo-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-inline: auto;
  border-radius: 50%;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(10, 116, 168, 0.35);
}

.demo-arrow .icon-slot {
  font-size: 20px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 9vw, 104px);
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 44rem;
  margin: 0 auto clamp(28px, 5vw, 48px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 800;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.narrow {
  max-width: 800px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}

@media (hover: hover) {
  .feature:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
  }
}

.feature h3 {
  font-size: 1.12rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.ficon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}

.ficon .icon-slot {
  font-size: 22px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  display: grid;
  gap: 10px;
  align-content: start;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  color: var(--text-muted);
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: var(--grad);
}

/* ---------- Pricing ---------- */

.plan {
  display: grid;
  gap: 14px;
  align-content: start;
}

.plan .badge {
  justify-self: start;
}

.plan h3 {
  font-size: 1.3rem;
}

.price strong {
  font-size: 2.3rem;
  letter-spacing: -0.03em;
}

.plan-current {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.ticks li {
  position: relative;
  padding-left: 26px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.fineprint {
  margin-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--text-muted);
}

/* ---------- CTA band + footer ---------- */

.cta-band {
  padding-block: clamp(56px, 8vw, 88px);
  text-align: center;
  color: #fff;
  background: var(--grad);
}

.cta-band .container {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 850;
}

.cta-band p {
  max-width: 32em;
  font-size: 1.1rem;
  opacity: 0.92;
}

.btn-light {
  color: #0a3a55;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-light:hover {
  color: #0a3a55;
  filter: brightness(0.97);
}

.site-footer {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.9rem;
}

/* ---------- Sign-in dialog ---------- */

.widget-box {
  display: grid;
  place-items: center;
  min-height: 60px;
  padding: 8px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* Bridge from the problem to the solution */

.turn {
  max-width: 40rem;
  margin: clamp(28px, 5vw, 44px) auto 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 650;
}

.turn a {
  margin-left: 4px;
  white-space: nowrap;
}
