:root {
  --bg: #F3F2EA;
  --panel: #ffffff;
  --panel-alt: #fafbfc;
  --text: #111214;
  --muted: #6b7078;
  --brand: #111111;
  --brand-2: #5f5cff;
  --accent: #111111;
  --glass: rgba(255, 255, 255, 0.7);
  --stroke: rgba(0, 0, 0, 0.08);
  --img-border: #e4dcff;
  /* soft lilac for screenshot borders */
  --frame-bg: #fbfaff;
  /* very light lavender for device frame */
  --frame-border: #dcd3ff;
  /* tinted frame border */
  --frame-bg-primary: #ffffff;
  /* crisp white for primary */
  --frame-border-primary: #ffffff;
  /* white border for primary */
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Media should never overflow on small screens */
img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.06)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700
}

.brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px
}

.brand .logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px
}

.brand-name {
  letter-spacing: 0.2px
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center
}

.nav a {
  color: #09324A;
  font-weight: 600
}

.nav a:hover {
  background: #AED0C9;
}
@media (max-width:560px){
  .header-inner{ flex-wrap: wrap; gap:8px }
  .nav{ flex-wrap: wrap; gap:6px }
}

.nav .cta {
  color: #fff;
  background: var(--brand-2);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 7px 0;
  border-radius: 2px
}

/* Hero */
.section {
  position: relative;
  padding: 84px 0
}

/* Tighter spacing around FMO Pro */
#pricing.section {
  padding-top: 12px;
}

/* Reduce bottom padding of How section to close the gap above FMO Pro */
#how.section {
  padding-bottom: 28px;
}

.section.alt {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.00));
}

.hero {
  padding-top: 96px
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 46px;
  align-items: center
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.3px
}

.hero h1 .nowrap {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero h1 .nowrap {
    white-space: normal;
  }
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted)
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(8px);
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600
}

.app-chip span {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.2px
}

.app-chip img {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 16px
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 600
}

.btn.primary {
  background: #ff6b9e;
  border-color: #ff6b9e;
  color: #fff
}

.btn.secondary {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}

.btn.pink {
  background: #ff6b9e;
  border-color: #ff6b9e;
  color: #fff
}

.btn.ghost {
  background: #fff
}

.btn.disabled,
[aria-disabled=true] {
  opacity: .7;
  pointer-events: none
}

.quick-points {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  color: #474b53
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center
}

.device-stack {
  position: relative;
  width: 360px;
  height: 700px
}

.app-icon-tile {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 5;
  width: 160px;
  height: 160px;
  padding: 14px;
  border-radius: 30px;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 80px rgba(17, 17, 17, .12)
}

.app-icon-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14)
}


/* (removed onboarding stack and mini cards) */

/* Hero card pile */
.card-pile {
  position: relative;
  width: 640px;
  height: 640px;
  overflow: visible;
  /* Show full size on desktop; scale handled by image width */
  transform: none;
  transform-origin: center
}

.card-pile-inner {
  position: absolute;
  inset: 0;
}

.card-pile .card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(10deg) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1), opacity .8s ease;
  will-change: transform, opacity;
  background: transparent;
}

.card.thumb img {
  display: block;
  /* Responsive width so cards are visible on desktop */
  width: clamp(300px, 28vw, 440px);
  height: auto;
  object-fit: initial;
  background: transparent;
  border-radius: 32px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08), 0 10px 26px rgba(17, 17, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Arrange as overlapping pile with 10deg on behind cards */
.card-pile .card.front {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
  pointer-events: auto;
}

/* Shuffle animation states */
.card-pile .card.leaving {
  transform: translate(-50%, -50%) rotate(-8deg) scale(.9);
  opacity: 0;
}

.card-pile .card.entering {
  transform: translate(calc(-50% + 40px), calc(-50% + 40px)) rotate(12deg) scale(.9);
  opacity: 0.01;
}

.card-pile .card.entering.front {
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  opacity: 1;
}

/* All non-front cards remain stacked at center with 10deg rotation */

/* Ensure whichever has .front is centered and above */
.card-pile .card.front {
  z-index: 10
}

.card-pile .card:not(.front) {
  z-index: 1
}

@media (max-width: 960px) {
  .card-pile {
    width: 520px;
    height: 520px
  }
}

@media (max-width: 680px) {
  .card-pile {
    width: 380px;
    height: 380px
  }
}

.status-dots {
  width: 56px;
  height: 6px;
  border-radius: 12px;
  background: #eef1f4;
  margin: 0 auto 10px
}

.screen {
  height: 100%;
  border-radius: 18px;
  background: #fff;
  border: 0.5px solid var(--img-border);
  padding: 14px;
  display: grid;
  gap: 12px
}

.screen.image {
  padding: 0;
  display: block
}

.screen.image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px
}

.screen-card {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(155, 107, 255, 0.18), rgba(71, 230, 161, 0.18));
  border: 1px solid var(--stroke);
  padding: 14px;
  color: #dfe6f3;
  font-weight: 600
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 500px at 20% -10%, rgba(0, 0, 0, 0.04), transparent 60%)
}

/* Features */
.section-title {
  text-align: center;
  margin: 0 0 26px;
  font-size: 30px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.10)
}

.card-icon {
  font-size: 22px
}

.card h3 {
  margin: 10px 0 6px
}

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

/* How */
.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: center
}

.steps {
  margin: 10px 0 0 18px;
  color: var(--muted)
}

.note {
  margin-top: 14px;
  color: #333;
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 12px;
  border-radius: 12px
}

.quick-demo {
  margin-top: 12px;
}

.quick-demo-title {
  font-weight: 700;
  margin: 6px 0;
}

.quick-demo-steps {
  color: var(--muted);
}

.stack {
  position: relative;
  height: 320px
}

.stack-card {
  position: absolute;
  inset: auto 0;
  left: 0;
  right: 0;
  margin: auto;
  width: min(420px, 90%);
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 60px rgba(17, 17, 17, .08)
}

.stack-card:nth-child(1) {
  top: 0;
  transform: rotate(-2deg)
}

.stack-card:nth-child(2) {
  top: 70px;
  transform: rotate(1.5deg)
}

.stack-card:nth-child(3) {
  top: 140px;
  transform: rotate(-1deg)
}

.stack-card:nth-child(4) {
  top: 210px;
  transform: rotate(2deg)
}

/* Horizontal "cool" orientation for the left how-copy stack */
.how-copy .stack-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  height: auto;
  margin-top: 12px;
}

.how-copy .stack-horizontal .stack-card {
  position: static;
  width: auto;
  padding: 10px 12px;
}

.how-copy .stack-horizontal .stack-card:nth-child(1) {
  transform: rotate(-2deg);
}

.how-copy .stack-horizontal .stack-card:nth-child(2) {
  transform: rotate(1.5deg);
}

.how-copy .stack-horizontal .stack-card:nth-child(3) {
  transform: rotate(-1deg);
}

.how-copy .stack-horizontal .stack-card:nth-child(4) {
  transform: rotate(2deg);
}

/* Colorful, site-compatible tints for left demo pills */
.how-copy .stack-horizontal .stack-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(95, 92, 255, 0.10), rgba(95, 92, 255, 0.03));
  /* brand-2 tint */
  border-color: rgba(95, 92, 255, 0.25);
}

.how-copy .stack-horizontal .stack-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 107, 158, 0.12), rgba(255, 107, 158, 0.04));
  /* pink tint */
  border-color: rgba(255, 107, 158, 0.28);
}

.how-copy .stack-horizontal .stack-card:nth-child(3) {
  background: var(--frame-bg);
  /* very light lavender */
  border-color: var(--img-border);
  /* soft lilac border */
}

.how-copy .stack-horizontal .stack-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0.00));
  /* soft neutral */
  border-color: rgba(0, 0, 0, 0.12);
}

/* Video demo */
.video-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.video-player {
  /* Smaller on desktop */
  width: clamp(280px, 36vw, 560px);
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  background: #000;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 36px rgba(17, 17, 17, 0.10);
}

.video-caption {
  color: var(--muted);
  font-size: 14px;
}

/* Desktop: scale down visually without changing width/height */
@media (min-width: 960px) {
  .video-player {
    max-height: none;
    transform: scale(0.6);
    transform-origin: center;
  }
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  justify-items: center
}

.price-card {
  position: relative;
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(17, 17, 17, .08)
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5)
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 12px;
  color: var(--muted)
}

.price-line {
  font-size: 22px;
  margin: 8px 0 12px
}

.legal {
  color: var(--muted);
  font-size: 12px
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px
}

details {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px
}

summary {
  cursor: pointer;
  font-weight: 600
}

details p {
  color: var(--muted);
  margin: 8px 0 0
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 26px 0;
  background: #fff
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  flex-wrap: wrap
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.brand-row .logo {
  display: inline-flex;
  width: 26px;
  height: 26px
}

.brand-row .logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px
}

.footer-nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  justify-content: center
}

.social-links {
  display: flex;
  gap: 14px;
  color: var(--muted);
  justify-content: center
}

/* Social inline section */
.social-inline {
  display: flex;
  justify-content: center;
  gap: 18px
}

.social-inline .social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease
}

.social-inline .social .icon {
  width: 18px;
  height: 18px;
  display: inline-block
}

.social-inline .social:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17, 17, 17, .08)
}

.social-inline .social.x {
  background: #000;
  color: #fff;
  border-color: #000
}

.social-inline .social.instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 40%, #6228d7);
  color: #fff;
  border: 0
}

.legal {
  color: var(--muted)
}

/* Responsive */
/* Screenshots */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.shot {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 16px;
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  box-shadow: 0 16px 40px rgba(17, 17, 17, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--frame-bg-primary);
  border: 1px solid var(--img-border);
}

.shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(17, 17, 17, .10);
}

/* Portrait vs landscape spans */
.shot.portrait {
  grid-column: span 3;
}

.shot.landscape {
  grid-column: span 6;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(1000px, 92vw);
  max-height: 86vh;
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .how-grid {
    grid-template-columns: 1fr
  }

  .device-frame {
    width: 300px;
    height: 560px
  }

  .device-stack {
    width: 320px;
    height: auto
  }

  .device-frame.primary,
  .device-frame.secondary {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto;
    transition: transform .8s ease, box-shadow .8s ease
  }

  .device-frame.secondary {
    margin-top: 16px;
    transform: translateY(8px) scale(0.98);
    z-index: 1
  }

  .device-frame.primary {
    transform: translateY(0) scale(1);
    z-index: 2
  }

  .device-stack.swap .device-frame.primary {
    transform: translateY(8px) scale(0.98);
    z-index: 1
  }

  .device-stack.swap .device-frame.secondary {
    transform: translateY(-16px) scale(1);
    z-index: 2
  }

  .app-icon-tile {
    position: static;
    margin: 0 auto 10px;
    width: 140px;
    height: 140px
  }

  .onb-item {
    flex: 0 0 220px
  }
}

@media (max-width: 680px) {

  /* Make the video fill width but not too tall on phones */
  .video-player {
    width: 100%;
    max-height: 58vh;
  }

  .nav {
    display: none;
    position: absolute;
    top: 58px;
    right: 4%;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 12px
  }

  .nav.open {
    display: flex
  }

  .nav-toggle {
    display: block
  }

  .features-grid {
    grid-template-columns: 1fr
  }

  .hero h1 {
    font-size: 32px
  }

  .app-icon-tile {
    width: 120px;
    height: 120px
  }

  .device-stack {
    width: 300px;
    height: auto
  }

  .onb-item {
    flex: 0 0 240px
  }
}

/* Narrow phones */
@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .header-inner {
    padding: 12px 0;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .app-chip {
    padding: 10px 12px;
    font-size: 18px;
  }

  .app-chip img {
    width: 64px;
    height: 64px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .card-pile {
    width: 320px;
    height: 320px;
  }

  .footer-inner {
    gap: 12px;
  }
}
