/* Public marketing homepage — deliberately self-contained. Every selector
   is scoped under #publicHome with a ph- prefix so nothing here can ever
   collide with (or be affected by) the authenticated app's own stylesheets,
   several of which reuse common class names like .eyebrow/.three/.primary. */

#publicHome {
  --ph-ink: #2a1a23;
  --ph-muted: #766170;
  --ph-line: #ecdfe6;
  --ph-cream: #fbf6f8;
  --ph-plum: #6f2a4d;
  --ph-berry: #a72f67;
  --ph-berry-soft: #f7e6ee;
  --ph-gold: #b98a3e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ph-ink);
  background: #fff;
}

#publicHome * {
  box-sizing: border-box;
}

#publicHome a {
  color: inherit;
}

#publicHome .ph-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--ph-line);
}

#publicHome .ph-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

#publicHome .ph-logo img {
  width: 34px;
  height: 34px;
}

#publicHome .ph-logo strong {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--ph-plum);
}

#publicHome .ph-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

#publicHome .ph-nav a:not(.ph-cta) {
  text-decoration: none;
  color: var(--ph-muted);
}

#publicHome .ph-nav a:not(.ph-cta):hover {
  color: var(--ph-berry);
}

#publicHome .ph-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ph-berry);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

#publicHome .ph-hero {
  padding: 72px 32px 56px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

#publicHome .ph-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ph-berry);
  background: var(--ph-berry-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

#publicHome .ph-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 18px;
  text-wrap: balance;
}

#publicHome .ph-hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ph-muted);
  max-width: 640px;
  margin: 0 auto 30px;
}

#publicHome .ph-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

#publicHome .ph-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ph-berry);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.02rem;
  box-shadow: 0 14px 30px rgba(167, 47, 103, 0.28);
}

#publicHome .ph-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--ph-line);
  color: var(--ph-plum);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.02rem;
}

#publicHome .ph-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ph-muted);
}

#publicHome .ph-trust-strip span::before {
  content: "✓";
  color: var(--ph-berry);
  margin-right: 6px;
  font-weight: 800;
}

/* Hero product visual — the real Florisyn dashboard on laptop/phone, the
   same shot already used on the login/signup hero, reused here for a
   consistent visual language across the funnel rather than new stock art. */
#publicHome .ph-hero-visual {
  margin: 12px auto 0;
}

#publicHome .ph-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  filter: drop-shadow(0 28px 50px rgba(26, 43, 72, 0.18));
}

#publicHome .ph-section {
  padding: 56px 32px;
  max-width: 1080px;
  margin: 0 auto;
}

#publicHome .ph-section-narrow {
  max-width: 760px;
}

#publicHome .ph-section h2 {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  margin: 0 0 14px;
  text-align: center;
}

#publicHome .ph-section > p.ph-lede {
  text-align: center;
  color: var(--ph-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto;
}

#publicHome .ph-band {
  background: var(--ph-cream);
  border-top: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
}

#publicHome .ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

#publicHome .ph-card {
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: 16px;
  padding: 22px;
}

#publicHome .ph-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

#publicHome .ph-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ph-muted);
}

#publicHome .ph-faq {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

#publicHome .ph-faq-item h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}

#publicHome .ph-faq-item p {
  margin: 0;
  color: var(--ph-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

#publicHome .ph-cta-band {
  text-align: center;
  padding: 60px 32px;
  background: linear-gradient(135deg, var(--ph-plum), var(--ph-berry));
  color: #fff;
}

#publicHome .ph-cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

#publicHome .ph-cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
}

#publicHome .ph-cta-band .ph-btn-primary {
  background: #fff;
  color: var(--ph-berry);
  box-shadow: none;
}

#publicHome .ph-footer {
  padding: 40px 32px 28px;
  border-top: 1px solid var(--ph-line);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
}

#publicHome .ph-footer-brand p {
  color: var(--ph-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 280px;
}

#publicHome .ph-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-muted);
  margin: 0 0 10px;
}

#publicHome .ph-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

#publicHome .ph-footer-col a {
  text-decoration: none;
  color: var(--ph-ink);
}

#publicHome .ph-footer-col a:hover {
  color: var(--ph-berry);
}

#publicHome .ph-footer-bottom {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ph-line);
  font-size: 0.8rem;
  color: var(--ph-muted);
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

/* Founder Story — Ashley's own desk, in her own words. Two columns on
   desktop (portrait first, story second — the same reading order the
   markup already gives keyboard/screen-reader users on mobile, where the
   grid collapses to one column and the image simply comes first). The
   portrait is the one approved, unedited photo; only its on-page framing
   (aspect-ratio + object-fit) is presentational — no pixels are altered. */
#publicHome .ph-founder-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 48px;
  align-items: center;
}

#publicHome .ph-founder-media picture {
  display: block;
}

#publicHome .ph-founder-media img {
  display: block;
  width: 100%;
  /* The <img> tag's width/height attributes describe the DESKTOP webp
     (the <picture> fallback's real dimensions) for CLS purposes. The
     mobile breakpoint swaps in a differently-sized <source> — height must
     stay auto (not inherited from those attributes) so aspect-ratio is
     what actually drives the box in every case. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(111, 42, 77, 0.16);
}

#publicHome .ph-founder-copy .ph-eyebrow {
  display: inline-block;
}

#publicHome .ph-founder-copy h2 {
  text-align: left;
  margin-bottom: 16px;
}

#publicHome .ph-founder-story p {
  color: var(--ph-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

/* The opening line ("Florisyn didn't start in a software company.") gets a
   subtle lift in weight/color — a nod, not a shout. Every other line stays
   normal paragraph text; this is the only deliberate emphasis in the
   section. */
#publicHome .ph-founder-story strong {
  color: var(--ph-ink);
  font-weight: 700;
}

#publicHome .ph-founder-signature {
  color: var(--ph-ink) !important;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 22px !important;
}

#publicHome .ph-founder-signature span {
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ph-muted);
  margin-top: 2px;
}

#publicHome .ph-founder-link {
  margin-top: 8px !important;
}

#publicHome .ph-founder-link a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ph-berry);
}

#publicHome .ph-founder-link a:hover {
  text-decoration: underline;
}

/* Illustrative product preview — a styled mockup of the real Florisyn
   workspace layout, not a captured screenshot. */
#publicHome .ph-mockup {
  max-width: 880px;
  margin: 32px auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  box-shadow: 0 30px 70px rgba(111, 42, 77, 0.16);
}

#publicHome .ph-mockup-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f3e9ee;
  border-bottom: 1px solid var(--ph-line);
}

#publicHome .ph-mockup-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3c7d3;
  display: inline-block;
}

#publicHome .ph-mockup-chrome em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ph-muted);
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: 999px;
  padding: 3px 12px;
}

#publicHome .ph-mockup-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
  background: #fff;
}

#publicHome .ph-mockup-side {
  background: var(--ph-plum);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#publicHome .ph-mockup-side-item {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
}

#publicHome .ph-mockup-side-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

#publicHome .ph-mockup-main {
  padding: 24px;
}

#publicHome .ph-mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

#publicHome .ph-mockup-stats div {
  background: var(--ph-cream);
  border: 1px solid var(--ph-line);
  border-radius: 12px;
  padding: 14px;
}

#publicHome .ph-mockup-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--ph-muted);
  margin-bottom: 6px;
}

#publicHome .ph-mockup-stats strong {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--ph-plum);
}

#publicHome .ph-mockup-rows {
  display: grid;
  gap: 8px;
}

#publicHome .ph-mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ph-line);
  border-radius: 10px;
  font-size: 0.86rem;
}

#publicHome .ph-mockup-row em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ph-berry);
  background: var(--ph-berry-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  #publicHome .ph-mockup-body {
    grid-template-columns: 1fr;
  }
  #publicHome .ph-mockup-side {
    flex-direction: row;
    overflow-x: auto;
  }
  #publicHome .ph-mockup-stats {
    grid-template-columns: 1fr;
  }

  #publicHome .ph-topbar {
    padding: 14px 18px;
  }
  #publicHome .ph-nav {
    display: none;
  }
  #publicHome .ph-hero {
    padding: 48px 20px 40px;
  }
  #publicHome .ph-hero-visual img {
    border-radius: 18px;
    filter: drop-shadow(0 16px 28px rgba(26, 43, 72, 0.16));
  }
  #publicHome .ph-section {
    padding: 40px 20px;
  }
  #publicHome .ph-footer {
    grid-template-columns: 1fr 1fr;
    padding: 32px 20px 24px;
  }

  /* Mobile Founder Story refinement pass: the portrait previously ran a
     full 4:5 (tall) crop at every width, which meant a visitor scrolled
     through most of a single image before reaching "Our story". The image
     itself is untouched — only its on-page frame changes here (a wider,
     shorter aspect-ratio + a slightly top-biased object-position), so the
     same approved photo now shows Ashley, the Florisyn signage behind her,
     and the desk in one shorter, still-intentional crop. Section padding
     is trimmed specifically for this section (not every .ph-section) so
     the portrait -> "Our story" -> headline transition reads as one
     connected moment rather than several separate scroll stops. */
  #publicHome .ph-founder {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  #publicHome .ph-founder-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #publicHome .ph-founder-media {
    max-width: 340px;
    margin: 0 auto;
  }
  #publicHome .ph-founder-media img {
    aspect-ratio: 5 / 4;
    object-position: center 12%;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(111, 42, 77, 0.16);
  }
  #publicHome .ph-founder-copy {
    text-align: center;
  }
  #publicHome .ph-founder-copy h2 {
    text-align: center;
    /* Keep the wrapped two-line headline reading as one block, and pull it
       in close to "Our story" above and the first paragraph below —
       desktop's roomier 16px margin is a mobile-only trim here. */
    line-height: 1.22;
    margin-bottom: 10px;
  }
  /* Story paragraphs read better left-aligned at mobile widths than
     centered — long centered lines are harder to scan. The eyebrow,
     headline, founder name/title, and About link stay centered above. */
  #publicHome .ph-founder-story {
    text-align: left;
  }
  #publicHome .ph-founder-story p {
    font-size: 1.1rem;
    line-height: 1.58;
    margin: 0 0 13px;
  }
}
