:root {
  --bg: #f4f6f8;
  --bg-soft: #eef6f4;
  --surface: #ffffff;
  --ink: #0f1c24;
  --muted: #5f717a;
  --teal: #0e8a9a;
  --teal-deep: #0a6d7a;
  --teal-soft: rgba(14, 138, 154, 0.12);
  --line: rgba(15, 28, 36, 0.08);
  --shadow: 0 24px 60px rgba(15, 28, 36, 0.12);
  --radius: 16px;
  --max: 1300px;
  --font: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 0%, rgba(14, 138, 154, 0.1), transparent 40%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.9), transparent 35%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 50%, #eef3f1 100%);
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-deep);
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .wrap {
    width: min(var(--max), calc(100% - 6rem));
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 239, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
}

.nav-center {
  justify-content: center;
}

.nav-cta {
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(14, 138, 154, 0.28);
}

.brand-logo,
.hero-logo,
.cta-logo {
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 20px rgba(14, 138, 154, 0.22);
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 22px;
}

.cta-logo {
  border-radius: 14px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 138, 154, 0.28);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  background: #fff;
}

.btn-store {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 138, 154, 0.28);
}

.btn-store:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-nav {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

/* Official Apple App Store badge (same asset as Erly) */
.store-badge {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s ease;
}

.store-badge:hover {
  opacity: 0.8;
}

.store-badge-img {
  display: block;
  width: auto;
  height: auto;
}

.store-badge-nav {
  height: 40px;
  width: auto;
}

.store-badge-hero {
  height: 56px;
  width: auto;
}

/* Hero — Erly-style split */
.hero-erly {
  padding: 0.5rem 0 2rem;
  overflow-x: clip;
}

.hero-erly-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-erly {
    padding: 0 0 7rem;
  }

  .hero-erly-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-copy {
  text-align: left;
  z-index: 2;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.social-dots {
  display: inline-flex;
}

.social-dots i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  background: linear-gradient(135deg, var(--teal), #7eb8a8);
  display: block;
}

.social-dots i:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #0e8a9a, #3aa8b5);
}

.social-dots i:nth-child(2) {
  background: linear-gradient(135deg, #8fbf6a, #0e8a9a);
}

.hero-brand-line {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--teal);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-erly h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #18181b;
}

.hero-erly h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-erly .hero-lead {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  color: #52525b;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-phones {
    justify-content: flex-end;
  }
}

.phones-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 138, 154, 0.12) 0%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.phones-stack {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 440px;
}

@media (min-width: 640px) {
  .phones-stack {
    height: 660px;
  }
}

.phone {
  position: absolute;
  top: 50%;
  width: 190px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px rgba(10, 16, 28, 0.28));
  transition: transform 0.35s ease;
  z-index: 1;
}

.phone-left {
  left: 0;
  margin-top: 2.5rem;
  transform: translateY(-50%) rotate(-8deg);
  z-index: 3;
}

.phone-right {
  right: 0;
  transform: translateY(-50%) rotate(6deg);
  z-index: 2;
}

@media (min-width: 640px) {
  .phone {
    width: 310px;
  }

  .phone-left {
    margin-top: 4rem;
  }
}

.hero-phones:hover .phone-left {
  transform: translateY(calc(-50% - 6px)) rotate(-9deg);
}

.hero-phones:hover .phone-right {
  transform: translateY(calc(-50% - 4px)) rotate(7deg);
}

/* Legacy centered hero (unused on home, kept harmless) */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 138, 154, 0.35);
  background: rgba(255, 255, 255, 0.65);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  margin: 1rem 0 0.85rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 2.5rem 0 4rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 36rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.section-lead strong {
  color: var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.2rem 1.2rem;
  box-shadow: 0 10px 30px rgba(20, 45, 55, 0.04);
}

.price-card-featured {
  border-color: rgba(14, 138, 154, 0.45);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #eef8f6 100%);
}

.price-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.price-amount {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-note {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.price-list {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.price-cta {
  width: 100%;
}

.pricing-legal {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 48rem;
}

.cta-band {
  padding-top: 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
}

.cta-inner p {
  margin: 0;
  color: var(--muted);
}

.cta-inner > div {
  flex: 1;
  min-width: 200px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  border-radius: 8px;
}

.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(20, 45, 55, 0.04);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 800;
}

/* Legal pages */
.legal {
  padding: 2.75rem 0 4.5rem;
}

.legal-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}

.legal-card .eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-card h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 0.35rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  color: var(--muted);
  margin-right: 0.85rem;
}

.footer a:hover {
  color: var(--teal);
}

@media (max-width: 980px) {
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-center {
    display: none;
  }
}

@media (max-width: 820px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0.55rem 0.85rem;
  }

  .btn-nav-desktop {
    display: none;
  }
}

@media (max-width: 560px) {
  .pricing {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    font-size: 0.88rem;
  }

  .store-badge-hero {
    height: 48px;
  }
}
