/*
 * Marketing/SEO page styles (dev doc Phase 7) — layered on top of
 * app.css's design tokens (colors, radii, buttons), not a replacement
 * for it. Kept separate from app.css because these rules (hero
 * sections, feature grids, footer) only ever apply to the public
 * marketing surface, never the dashboard.
 */

.marketing-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.marketing-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marketing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.marketing-logo__img {
  height: 32px;
  width: auto;
  display: block;
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.marketing-nav a:not(.btn) {
  color: var(--color-text-muted);
}

.marketing-nav a:not(.btn):hover {
  color: var(--color-text);
}

.marketing-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.marketing-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .marketing-nav-toggle {
    display: flex;
  }

  .marketing-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 24px 18px;
  }

  .marketing-nav.is-open {
    display: flex;
  }

  .marketing-nav a:not(.btn) {
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .marketing-nav .btn {
    margin-top: 10px;
    text-align: center;
  }
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 620px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section--soft {
  background: var(--color-bg-soft);
}

.section h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}

.section__subhead {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid--2 {
  grid-template-columns: 1fr 1fr;
}

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

  .hero {
    padding: 44px 20px 36px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 36px 20px;
  }

  .section h2 {
    font-size: 24px;
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

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

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

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

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.price-card--highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.price-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.price-card__price {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-card__price span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-faint);
}

.price-card__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  flex: 1;
}

.price-card__list li {
  position: relative;
  padding: 5px 0 5px 24px;
}

.price-card__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(20, 168, 102, 0.12);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

/* Small pill-shaped eyebrow chip used above a few hero headings
   (home, pricing) — light primary-tinted background, small icon +
   label. Not scoped to .showcase since it also appears on the
   regular (non-cream) hero sections. */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 168, 102, 0.1);
  color: var(--color-primary-dark);
  border: 1px solid rgba(20, 168, 102, 0.2);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.pill-badge svg {
  width: 14px;
  height: 14px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 0;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

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

.examples-grid a {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.examples-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.example-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.example-card__body {
  flex: 1;
  min-width: 0;
}

.example-card__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.example-card__category {
  font-size: 12px;
  color: var(--color-text-faint);
  margin-top: 2px;
}

.example-card__arrow {
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: transform 0.15s ease, color 0.15s ease;
}

.examples-grid a:hover .example-card__arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

.wall-demo-embed {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.wall-demo-embed iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.wall-demo-placeholder {
  padding: 60px 24px;
  text-align: center;
  color: var(--color-text-faint);
  font-size: 14px;
}

/* ---------------------------------------------------------------
   Warm-cream showcase sections (how-it-works diagram, Wall of Love
   framing) — a deliberately different, richer treatment than the
   rest of the (cooler-toned) marketing site, reserved for these two
   "hero moment" sections rather than applied globally. Scoped with
   its own local custom properties instead of overriding :root so it
   can't leak into the dashboard/superadmin shells that share
   app.css's tokens. Headlines use --font-sans (self-hosted Plus
   Jakarta Sans, see app.css) at extra-bold weight rather than a
   separate serif — one font family site-wide.
   --------------------------------------------------------------- */

.showcase {
  --showcase-cream: #FBF3E3;
  --showcase-cream-soft: #F3E8D2;
  --showcase-ink: #16221C;

  background: var(--showcase-cream);
  padding: 64px 24px;
}

.showcase__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.showcase__eyebrow svg {
  width: 16px;
  height: 16px;
}

.showcase__title {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  color: var(--showcase-ink);
  margin: 0 0 12px;
  line-height: 1.2;
}

.showcase__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 16px;
  margin: 0 auto 48px;
  max-width: 480px;
}

/* How it works — 4-step diagram */

.how-it-works__steps {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.how-it-works__step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  position: relative;
}

.how-it-works__badge-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}

.how-it-works__badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(20, 168, 102, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.how-it-works__badge svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Star-rating icon is wider/shorter than the square icon badges above
   (5 stars in a row) — its own class so it doesn't inherit the 40x40
   square sizing and get squished. */
.how-it-works__badge svg.rating-stars {
  width: 60px;
  height: 12px;
}

.how-it-works__number {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--showcase-cream);
}

.how-it-works__arrow {
  align-self: center;
  margin-top: 38px;
  flex: 0 0 auto;
  color: var(--color-primary);
  opacity: 0.6;
}

.how-it-works__step-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  color: var(--showcase-ink);
  margin: 0 0 6px;
}

.how-it-works__step-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.how-it-works__note {
  max-width: 520px;
  margin: 40px auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.how-it-works__note svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.how-it-works__note strong {
  display: block;
  font-size: 13px;
  color: var(--showcase-ink);
}

.how-it-works__note span {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

@media (max-width: 860px) {
  /* A single vertical column of 4 full steps makes this section run
     the length of the page on a phone — a compact 2x2 grid instead,
     with the connecting arrows dropped (they only read correctly in
     a single left-to-right line). */
  .how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
    max-width: 420px;
  }

  .how-it-works__arrow {
    display: none;
  }

  .how-it-works__step {
    max-width: none;
  }

  .how-it-works__badge-wrap {
    width: 76px;
    height: 76px;
  }

  .how-it-works__badge {
    width: 76px;
    height: 76px;
  }

  .how-it-works__badge svg {
    width: 32px;
    height: 32px;
  }

  .how-it-works__badge svg.rating-stars {
    width: 48px;
    height: 10px;
  }
}

@media (max-width: 380px) {
  .how-it-works__steps {
    grid-template-columns: 1fr;
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Wall of Love showcase frame — wraps the existing .wall-demo-embed
   iframe (marketing_demo_wall_embed_html()) in the warm-cream
   treatment; the cards *inside* the iframe are the embedded wall's
   own styling, not controlled from here (see /w/embed/{slug}). */

.wall-of-love-showcase .wall-demo-embed {
  max-width: 1000px;
  margin: 0 auto;
  border-color: var(--color-primary);
  box-shadow: 0 20px 60px -30px rgba(20, 168, 102, 0.35);
}

@media (max-width: 640px) {
  .showcase {
    padding: 44px 20px;
  }

  .showcase__title {
    font-size: 26px;
  }

  .showcase__subtitle {
    margin-bottom: 32px;
  }
}

.marketing-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: 40px;
}

.marketing-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.marketing-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.marketing-footer__brand-desc {
  font-size: 12px;
  color: var(--color-text-faint);
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 220px;
}

.marketing-footer__heading {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.marketing-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marketing-footer__col a {
  font-size: 13px;
  color: var(--color-text-faint);
}

.marketing-footer__col a:hover {
  color: var(--color-text);
}

.marketing-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-faint);
}

.marketing-footer__links {
  display: flex;
  gap: 18px;
}

.marketing-footer__links a {
  color: var(--color-text-faint);
}

@media (max-width: 640px) {
  .marketing-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}
