/* Feature landing pages — matches Alma marketing / app (Ploy) style */

:root {
  --fp-ivory: #f5f0e8;
  --fp-ivory-deep: #fdfaf6;
  --fp-ink: #211a17;
  --fp-ink-soft: rgba(33, 26, 23, 0.65);
  --fp-ink-faint: rgba(33, 26, 23, 0.45);
  --fp-accent: #c15b3a;
  --fp-accent-soft: #e8b49a;
  --fp-dark: #2a211b;
  --fp-dark-ivory: #f5efe7;
  --fp-line: rgba(33, 26, 23, 0.1);
  --fp-card: #fcf9f4;
  --fp-font-heading: "Instrument Serif", "Fraunces", Georgia, serif;
  --fp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fp-phone-w: min(280px, 78vw);
  --fp-phone-h: calc(var(--fp-phone-w) * 1479 / 671);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.feature-page {
  margin: 0;
  background: var(--fp-ivory);
  color: var(--fp-ink);
  font-family: var(--fp-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

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

/* ── header ── */
.fp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 80rem;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 32px);
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fp-line);
}

.fp-brand {
  font-family: var(--fp-font-heading);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--fp-ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.fp-brand:hover { text-decoration: none; }

.fp-brand-heart { color: var(--fp-accent); font-size: 0.82em; }

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

.fp-nav a {
  color: var(--fp-ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

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

.fp-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--fp-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.fp-nav-cta:hover {
  opacity: 0.92;
  text-decoration: none !important;
}

/* ── buttons ── */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0 1.65rem;
  border-radius: 999px;
  background: var(--fp-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.fp-btn:hover { opacity: 0.9; text-decoration: none !important; }

.fp-btn--dark {
  background: var(--fp-dark);
  color: var(--fp-dark-ivory);
}

.fp-note {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--fp-ink-faint);
}

/* ── hero ── */
.fp-hero {
  max-width: 80rem;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 32px) 56px;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .fp-hero {
    grid-template-columns: 1fr 0.92fr;
    gap: 56px;
    padding-top: 52px;
    padding-bottom: 72px;
  }
}

.fp-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fp-accent);
}

.fp-hero h1 {
  font-family: var(--fp-font-heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.fp-hero h1 em {
  font-style: italic;
  color: var(--fp-accent);
}

.fp-lead {
  margin: 0 0 24px;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fp-ink-soft);
}

.fp-phone-wrap {
  width: var(--fp-phone-w);
  height: var(--fp-phone-h);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  filter: drop-shadow(0 28px 48px rgba(33, 26, 23, 0.22));
}

.fp-phone-wrap img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

/* ── sections ── */
.fp-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px) 72px;
}

.fp-section-head {
  max-width: 38rem;
  margin-bottom: 32px;
}

.fp-section-head h2 {
  font-family: var(--fp-font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 12px;
}

.fp-section-head h2 em {
  font-style: italic;
  color: var(--fp-accent);
}

.fp-section .fp-sub {
  margin: 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fp-ink-soft);
}

.fp-section--how {
  padding-top: 12px;
}

.fp-section--benefits {
  padding-bottom: 80px;
  text-align: center;
}

.fp-section--benefits .fp-section-head {
  margin-left: auto;
  margin-right: auto;
}

.fp-section--benefits .fp-sub {
  margin-left: auto;
  margin-right: auto;
}

/* sections that still use a plain h2 (faq, related) */
.fp-section > h2 {
  font-family: var(--fp-font-heading);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 20px;
}

/* ── how it works: connected step panel ── */
.fp-steps-panel {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(33, 26, 23, 0.08);
  background:
    linear-gradient(165deg, rgba(252, 249, 244, 0.98) 0%, rgba(245, 240, 232, 0.92) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 56px -32px rgba(33, 26, 23, 0.28);
}

.fp-steps {
  display: grid;
  gap: 14px;
  position: relative;
}

@media (min-width: 900px) {
  .fp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .fp-steps::before {
    content: "";
    position: absolute;
    top: 52px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(193, 91, 58, 0.22) 12%,
      rgba(193, 91, 58, 0.22) 88%,
      transparent 100%);
    pointer-events: none;
  }
}

.fp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(33, 26, 23, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 900px) {
  .fp-step {
    margin: 0 6px;
    padding: 26px 22px 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 32px -24px rgba(33, 26, 23, 0.35);
  }

  .fp-step:hover {
    transform: translateY(-4px);
    border-color: rgba(193, 91, 58, 0.18);
    box-shadow: 0 20px 40px -22px rgba(33, 26, 23, 0.32);
  }
}

.fp-step__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.fp-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(193, 91, 58, 0.14), rgba(193, 91, 58, 0.06));
  border: 1px solid rgba(193, 91, 58, 0.12);
  color: var(--fp-accent);
  flex-shrink: 0;
}

.fp-step__icon svg {
  width: 24px;
  height: 24px;
}

.fp-step__num {
  font-family: var(--fp-font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(33, 26, 23, 0.08);
  user-select: none;
}

.fp-step h3 {
  font-family: var(--fp-font-heading);
  font-size: clamp(1.35rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--fp-ink);
}

.fp-step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fp-ink-soft);
}

/* ── benefits: bento grid ── */
.fp-bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .fp-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .fp-bento--four .fp-benefit--lead {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (min-width: 960px) {
  .fp-bento:not(.fp-bento--four) {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .fp-bento:not(.fp-bento--four) .fp-benefit--lead {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
  }

  .fp-bento:not(.fp-bento--four) .fp-benefit:nth-child(2) { grid-column: 4 / 7; }
  .fp-bento:not(.fp-bento--four) .fp-benefit:nth-child(3) { grid-column: 4 / 7; }
  .fp-bento:not(.fp-bento--four) .fp-benefit:nth-child(4) { grid-column: 1 / 7; }
}

.fp-bento--four {
  grid-template-columns: 1fr;
  max-width: 52rem;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 720px) {
  .fp-bento--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fp-benefit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 26px);
  border-radius: 24px;
  background: var(--fp-card);
  border: 1px solid rgba(33, 26, 23, 0.08);
  box-shadow: 0 16px 40px -30px rgba(33, 26, 23, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fp-benefit:hover {
  transform: translateY(-3px);
  border-color: rgba(193, 91, 58, 0.16);
  box-shadow: 0 22px 48px -28px rgba(33, 26, 23, 0.34);
}

.fp-benefit--lead {
  background:
    linear-gradient(155deg, #2a211b 0%, #3d3028 52%, #2a211b 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--fp-dark-ivory);
}

.fp-benefit--lead:hover {
  border-color: rgba(232, 180, 154, 0.25);
}

.fp-benefit--lead .fp-benefit__icon {
  background: rgba(193, 91, 58, 0.22);
  border-color: rgba(232, 180, 154, 0.28);
  color: #f0c4ae;
}

.fp-benefit.fp-benefit--lead .fp-benefit__body h3,
.fp-benefit.fp-benefit--lead h3 {
  color: var(--fp-dark-ivory);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.fp-benefit.fp-benefit--lead .fp-benefit__body p,
.fp-benefit.fp-benefit--lead p {
  color: rgba(245, 239, 231, 0.82);
  font-size: 1rem;
  max-width: 28rem;
}

@media (min-width: 960px) {
  .fp-bento:not(.fp-bento--four) .fp-benefit:nth-child(4) {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .fp-bento:not(.fp-bento--four) .fp-benefit:nth-child(4) .fp-benefit__body {
    flex: 1;
  }
}

.fp-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(193, 91, 58, 0.1);
  border: 1px solid rgba(193, 91, 58, 0.12);
  color: var(--fp-accent);
  flex-shrink: 0;
}

.fp-benefit__icon svg {
  width: 22px;
  height: 22px;
}

.fp-benefit__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-benefit h3 {
  margin: 0;
  font-family: var(--fp-font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fp-ink);
}

.fp-benefit p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fp-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .fp-step,
  .fp-benefit {
    transition: none;
  }

  .fp-step:hover,
  .fp-benefit:hover {
    transform: none;
  }
}

/* ── FAQ ── */
.fp-faq { max-width: 44rem; }

.fp-faq details {
  background: var(--fp-card);
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.fp-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fp-ink);
  list-style: none;
}

.fp-faq summary::-webkit-details-marker { display: none; }

.fp-faq details p {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  color: var(--fp-ink-soft);
}

/* ── related links (compact) ── */
.fp-section--related {
  padding-bottom: 40px;
}

.fp-related-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fp-ink-faint);
}

.fp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fp-related--compact {
  gap: 8px;
}

.fp-related a {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--fp-line);
  background: transparent;
  color: var(--fp-ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.fp-related a:hover {
  border-color: var(--fp-accent-soft);
  color: var(--fp-accent);
  text-decoration: none;
}

/* ── dark CTA band ── */
.fp-cta-band {
  background: var(--fp-dark);
  color: var(--fp-dark-ivory);
  padding: 64px clamp(20px, 4vw, 32px);
  text-align: center;
}

.fp-cta-band__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.fp-cta-band h2 {
  font-family: var(--fp-font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.fp-cta-band p {
  margin: 0 0 22px;
  color: rgba(245, 239, 231, 0.78);
  font-size: 1.05rem;
}

.fp-cta-band .fp-note { color: rgba(245, 239, 231, 0.5); }

/* ── footer ── */
.fp-footer {
  max-width: 80rem;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 32px) 40px;
  border-top: 1px solid var(--fp-line);
  font-size: 0.8125rem;
  color: var(--fp-ink-faint);
}

.fp-footer a { color: var(--fp-ink-soft); }

@media (max-width: 640px) {
  .fp-nav a:not(.fp-nav-cta) { display: none; }
}
