/* ---------------------------------------------------------------------------
   Myso landing page
   Desktop  → design "1a" (product-led gradient hero, 4-up feature grid, split FAQ)
   Mobile   → design "2c" (phone-forward hero, swipeable feature cards, gradient CTA)
   Single DOM, one breakpoint at 900px.
   --------------------------------------------------------------------------- */

:root {
  --ink: #33241D;
  --muted: #8A7A6E;
  --accent: #BE4B2A;
  --accent-hover: #A93A26;
  --cream: #FBF6EC;
  --dark: #33241D;
  --divider: #EDE3D6;
  --gradient: linear-gradient(118deg, #E4504E 0%, #EA6440 40%, #F08A4B 72%, #F5A55C 100%);
  --serif: "Source Serif 4", Georgia, serif;
  --script: "Caveat", cursive;
  --sans: "Inter", Helvetica, Arial, sans-serif;
  --pad: clamp(24px, 6vw, 72px);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--gradient) fixed;
}
section[id], header[id] { scroll-margin-top: 90px; }

body.myso {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

.inner { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Small reusable bits ------------------------------------------------------- */
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 42px; height: 42px; display: block;
  border-radius: 11px;
  border: 2px solid rgba(240, 233, 233, 0.55);
  
}
.logo-text {
  height: 18px; width: auto; display: block;
  margin-top: 5px;
  /* recolor the terracotta wordmark to cream so it reads on the gradient */
  filter: brightness(0) invert(1);
}

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--accent); }

.badge { display: block; }
.badge img { height: 72px; width: auto; display: block; filter: drop-shadow(0 12px 30px rgba(80, 20, 0, 0.3)); }

/* =========================================================================
   HERO (gradient)
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: #FFF9F2;
}
.hero-circle1, .hero-circle2 { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.hero-circle1::after {
  content: "";
  position: absolute;
  width: 900px; height: 900px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -580px; left: 1000px;
}

.hero-circle2::after {
  content: "";
  position: absolute;
  width: 900px; height: 900px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -580px; left: -300px;
}

/* Nav */
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; padding-bottom: 6px;
}
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: #FFF6ED; font-size: 16px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.btn-download {
  background: var(--cream); color: var(--accent);
  font-size: 15px; font-weight: 700; padding: 11px 22px; border-radius: 999px;
}
.btn-download:hover { color: var(--accent-hover); }
/* Hamburger (mobile only) */
.hamburger {
  display: none;
  position: relative; z-index: 50;
  width: 42px; height: 42px; padding: 0; border: 0; cursor: pointer;
  background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: #FFF6ED; transition: transform 0.25s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile slide-in menu (full-height panel from the right) */
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 40;
  display: flex; flex-direction: column;
  width: min(300px, 80vw); height: 100vh; height: 100dvh;
  overflow: hidden;
  background: rgba(240, 120, 90, 0.979);
  padding: 92px 0 32px;
  box-shadow: -20px 0 60px rgba(60, 30, 10, 0.35);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mobile-menu .menu-logo {
  margin-top: auto; align-self: center;
  height: 26px; width: auto; opacity: 0.9;
  /* recolor terracotta wordmark to cream */
  filter: brightness(0) invert(1);
}
.mobile-menu a {
  display: block; padding: 16px var(--pad);
  color: #F7EFE3; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid rgba(247, 239, 227, 0.08);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a:last-child { border-bottom: 0; }

/* Dim backdrop behind the menu */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(30, 15, 8, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
.menu-backdrop.open { opacity: 1; visibility: visible; }
body.menu-locked { overflow: hidden; }

/* Menu + backdrop only exist on mobile */
@media (min-width: 901px) {
  .mobile-menu, .menu-backdrop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .menu-backdrop { transition: none; }
}
.mobile-menu a:hover { background: rgba(247, 239, 227, 0.06); color: #fff; }
.mobile-menu .mm-download { color: #F5A55C; }

/* Hero content */
.hero-inner {
  position: relative;
  display: flex; gap: 40px;
  padding-top: 56px;
}
.hero-text {
  display: flex; flex-direction: column; gap: 26px; justify-content: center;
  width: 620px; flex-shrink: 0;
  padding: 40px 0 90px;
}
.hero-title {
  font-size: clamp(46px, 5vw, 82px);
  line-height: 1; letter-spacing: -3.5px;
  color: #FFF9F2; margin: 0;
  font-weight: 400;
}
.hero-title b { font-weight: 800; }
.hero-sub {
  font-size: 20px; letter-spacing: -1px; color: rgba(255, 246, 237, 0.95);
  max-width: 520px; margin: 0;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills span {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #FFF6ED; font-size: 15px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
}
.hero-dl { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.hero-dl .free { font-size: 17px; color: rgba(255, 246, 237, 0.9); font-weight: 600; }

.hero-phones { position: relative; flex: 1; height: 760px; }
.phone {
  position: absolute; display: block;
  
}
.phone-home {
  width: 250px; left: 20px; top: 30px; transform: rotate(-6deg); z-index: 2;
  animation: phoneInLeft 1.25s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.phone-photos {
  width: 250px; left: 255px; top: 120px; transform: rotate(6deg); z-index: 1;
  animation: phoneInRight 1.25s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
}

@keyframes phoneInLeft {
  from { opacity: 0; transform: translateX(45px) rotate(-6deg); }
  to   { opacity: 1; transform: translateX(0) rotate(-6deg); }
}
@keyframes phoneInRight {
  from { opacity: 0; transform: translateX(-45px) rotate(6deg); }
  to   { opacity: 1; transform: translateX(0) rotate(6deg); }
}
@keyframes phoneInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Scroll-down chevron */
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 5; display: flex; color: #FFF6ED; opacity: 0.85;
}
.hero-scroll svg {
  width: 34px; height: 34px; fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.hero-scroll:hover { color: #fff; opacity: 1; }
@keyframes chevronBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-home, .phone-photos { animation: none; opacity: 1; }
  .hero-scroll { animation: none; }
}

/* =========================================================================
   FEATURES
   ========================================================================= */
.features { background: var(--cream); padding: 96px 0; }
.features-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.features-title {
  font-size: 46px; font-weight: 700; color: var(--ink);
  letter-spacing: -1px; line-height: 1.1; margin: 0;
}
.swipe { display: none; font-family: var(--script); font-size: 24px; color: var(--accent); }

.feature-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 52px;
}
.fcard {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(60, 30, 10, 0.08);
}
.fcard-img { height: 320px; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.fcard-body h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -1px; text-align: center;}
.fcard-body p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; letter-spacing: -.5px; text-align: center;}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq {
  background: #fff; padding: 96px 0;
}
.faq .inner {
  display: grid; grid-template-columns: 400px 1fr; column-gap: 80px;
}
.faq-head { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 18px; }
.faq-head h2 {
  font-size: 42px; font-weight: 700; color: var(--ink);
  letter-spacing: -1px; line-height: 1.12; margin: 0;
}
.faq-head p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.6; }
.faq-help {
  grid-column: 1; grid-row: 2; align-self: start; margin-top: 18px;
  background: var(--cream); border-radius: 18px; padding: 26px;
}
.faq-help h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.faq-help p { margin: 8px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.faq-help a {
  display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 700;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.faq-list { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; }

.faq-list details { border-bottom: 1px solid var(--divider); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span:first-child { font-size: 18px; font-weight: 600; color: var(--ink); }
.faq-list .plus {
  font-size: 24px; color: var(--accent); flex-shrink: 0;
  transition: transform 0.2s; line-height: 1;
}
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list details p {
  margin: 0; padding: 0 40px 24px 0;
  font-size: 15.5px; color: var(--muted); line-height: 1.65;
}
.faq-list details p a { font-weight: 600; }

/* =========================================================================
   CTA (mobile only)
   ========================================================================= */
.cta {
  display: none;
  position: relative; overflow: hidden;
  background: var(--gradient);
  padding: 48px 24px;
  flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.cta h2 { margin: 0; font-size: 30px; font-weight: 700; color: #FFF9F2; letter-spacing: -0.5px; }
.cta .free { font-size: 14px; color: rgba(255, 246, 237, 0.85); }
.cta .badge img { height: 48px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { background: var(--gradient); }
.foot .inner {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.foot-logo { display: flex; align-items: center; gap: 10px; }
.foot-icon {
  width: 34px; height: 34px; display: block;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.foot-text {
  height: 18px; width: auto; display: block; margin-top: 4px;
  /* recolor the terracotta wordmark to cream */
  filter: brightness(0) invert(1);
}
.foot-links { display: flex; gap: 30px; }
.foot-links a { color: #FFF6ED; font-size: 14px; font-weight: 600; }
.foot-links a:hover { color: #fff; }
.foot-copy { color: rgba(255, 246, 237, 0.85); font-size: 14px; }

/* =========================================================================
   MOBILE  →  design "2c"
   ========================================================================= */
@media (max-width: 900px) {
  body.myso { background: var(--cream); }


  /* Nav: drop links + cream pill, show hamburger menu */
  .nav { position: relative; padding-top: 18px; padding-bottom: 0; }
  .nav-links, .btn-download { display: none; }
  .hamburger { display: flex; }
  .logo-icon { width: 34px; height: 34px; border-radius: 9px; }
  .logo-text { height: 18px; }

  /* Hero: centered, single phone fully inside the hero */
  /* Background circle positions on mobile — tweak these values */
  .hero-circle1::after { width: 480px; height: 480px; top: -200px; left: -180px; bottom: auto; }
  .hero-circle2::after { width: 480px; height: 480px; top: auto; bottom: -200px; left: auto; right: -180px; }
  .hero-inner {
    position: static;
    flex-direction: column; align-items: center; text-align: center;
    gap: 15px; padding-top: 28px; padding-bottom: 96px;
  }
  .hero-text {
    position: static;
    width: 100%; padding: 0; gap: 15px; align-items: center;
  }
  .hero-title { font-size: 38px; line-height: 1.1; letter-spacing: -2px; }
  .hero-sub { font-size: 15.5px; max-width: 300px; }
  .hero-sub
  .hero-pills { display: none; }
  .hero-dl { margin-top: 0; }
  .hero-dl .free { display: none; }
  .badge img { height: 46px; }

  .hero-phones { position: static; flex: none; height: auto; width: 100%; display: flex; justify-content: center; margin-top: 8px; }
  .phone-photos { display: none; }
  .phone-home {
    position: static; width: 240px; left: auto; top: auto;
    transform: none;
    animation: phoneInUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }

  /* Features on cream */
  .features { background: var(--cream); padding: 56px 0 52px; }
  .features-head { max-width: none; gap: 8px; }
  .features-title { font-size: 27px; letter-spacing: -0.5px; }
  .features-title .rest { display: none; }

  /* Cards → single column */
  .feature-cards {
    display: flex; flex-direction: column; grid-template-columns: none;
    gap: 50px; margin-top: 24px;
  }
  .fcard { width: 100%; border-radius: 18px; border: .5px solid rgb(207, 207, 207);}
  .fcard-img { height: 450px; }
  .fcard-body { padding: 18px 20px 22px; gap: 7px; }
  .fcard-body h3 { font-size: 20px; }
  .fcard-body p { font-size: 14px; }

  /* FAQ stacked on cream */
  .faq { background: var(--cream); padding: 28px 0 44px; }
  .faq .inner { display: flex; flex-direction: column; }
  .faq-head { gap: 8px; }
  .faq-head h2 { font-size: 27px; letter-spacing: -0.5px; }
  .faq-head p { display: none; }
  .faq-list { margin-top: 10px; }
  .faq-list summary { padding: 17px 0; gap: 16px; }
  .faq-list summary span:first-child { font-size: 15.5px; }
  .faq-list .plus { font-size: 20px; }
  .faq-list details { border-bottom-color: #E8DCC9; }
  .faq-list details p { font-size: 14px; padding: 0 22px 18px 0; line-height: 1.6; }
  .faq-help { margin-top: 24px; padding: 22px; }

  /* Footer: hide logo, links on one line, copyright below */
  .foot .inner {
    padding-top: 28px; padding-bottom: 28px; gap: 12px;
    flex-direction: column; align-items: center; text-align: center;
  }
  .foot-logo { display: none; }
  .foot-links { gap: 24px; }
  .foot-links a { font-size: 13px; }
  .foot-copy { font-size: 12px; }
}

/* (footer already stacks on mobile) */
@media (max-width: 420px) {
  .foot-links { gap: 16px; }
}
