/* HeyMed /features/[slug] detail pages */

.fp-banner {
  background: #fff4eb;
  border: 1px dashed var(--line);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep, #c2410c);
  padding: 8px 12px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.fp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 28px;
}
.fp-hero h1 {
  font-family: var(--display), Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.fp-hero-blurb {
  display: grid;
  gap: 10px;
  max-width: 54ch;
  margin: 0 0 8px;
}
.fp-hero .lede,
.fp-hero-blurb .lede {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.fp-hero .fp-cta {
  margin-top: 16px;
}
.fp-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep, #c2410c);
  margin: 0 0 8px;
}
.fp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fp-hero-art {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px -30px rgba(124, 45, 18, 0.4);
  background: #fff;
  aspect-ratio: 4 / 3;
}
.fp-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.fp-hero-art.fp-hero-iphone {
  display: grid;
  place-items: center;
  padding: clamp(12px, 3%, 22px);
  background:
    radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.18), transparent 42%),
    radial-gradient(circle at 50% 70%, rgba(245, 132, 43, 0.16), transparent 50%),
    linear-gradient(165deg, #fffaf5 0%, #ffedd5 55%, #ecfdf5 100%);
}
.fp-iphone {
  width: min(100%, 200px);
  margin: 0 auto;
  filter: drop-shadow(0 28px 40px rgba(15, 23, 42, 0.28));
}
.fp-iphone-bezel {
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #1c1917 0%, #0a0a0b 55%, #292524 100%);
  box-shadow:
    inset 0 0 0 1.5px #3f3f46,
    inset 0 0 0 3px #111;
}
.fp-iphone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  background:
    radial-gradient(120% 70% at 50% 42%, rgba(16, 185, 129, 0.22), transparent 55%),
    linear-gradient(180deg, #04130f 0%, #020617 48%, #0a0a0b 100%);
  color: #ecfdf5;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.fp-iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}
.fp-iphone-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(236, 253, 245, 0.72);
  z-index: 2;
}
.fp-iphone-stage {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px 16px 18px;
  text-align: center;
}
.fp-iphone-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.85);
}
.fp-glow-ball {
  position: relative;
  width: min(120px, 58%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, transparent 40%),
    radial-gradient(circle at 50% 55%, #34d399 0%, #059669 55%, #022c22 100%);
  box-shadow:
    0 0 0 0 rgba(52, 211, 153, 0.45),
    0 24px 48px -18px rgba(16, 185, 129, 0.75);
  animation: fp-ball-pulse 2.8s ease-in-out infinite;
}
.fp-glow-ball::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.5) 0%, rgba(16, 185, 129, 0.18) 45%, transparent 70%);
  filter: blur(6px);
  animation: fp-ball-glow 2.8s ease-in-out infinite;
  z-index: -1;
}
.fp-iphone-live {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #a7f3d0;
}
.fp-iphone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: fp-ball-dot 1.8s ease-out infinite;
}
.fp-iphone-sub {
  margin: 0;
  max-width: 18ch;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(236, 253, 245, 0.62);
}
.fp-iphone-home {
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 auto 10px;
}
@keyframes fp-ball-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.035); }
}
@keyframes fp-ball-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes fp-ball-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fp-glow-ball,
  .fp-glow-ball::before,
  .fp-iphone-dot { animation: none; }
}
.fp-rail {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed #fbd9bd;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  margin: 0 0 22px;
}
.fp-rail img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  animation: fp-bob 4.5s ease-in-out infinite;
}
.fp-rail p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.fp-section {
  scroll-margin-top: 96px;
  padding: 8px 0 32px;
  border-top: 1px solid rgba(253, 186, 116, 0.55);
}
.fp-section h2 {
  font-family: var(--display), Fraunces, Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  margin: 0 0 10px;
  line-height: 1.2;
}
.fp-section .sec-lede {
  color: var(--muted);
  max-width: 64ch;
  margin: 0 0 16px;
  line-height: 1.55;
}
.fp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fp-steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.fp-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}
.fp-steps span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}
.fp-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 0;
}
.fp-shot {
  margin: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px -32px rgba(124, 45, 18, 0.45);
}
.fp-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #fff7ed;
}
.fp-shot figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.fp-shot figcaption strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}
.fp-prose {
  max-width: 68ch;
  display: grid;
  gap: 12px;
}
.fp-prose p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.fp-day {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fp-day li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.fp-day-n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4eb, #ffedd5);
  border: 1px solid #fbd9bd;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--brand-deep, #c2410c);
}
.fp-day strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}
.fp-day p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}
.fp-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fp-vendors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fp-vendor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.fp-vendor strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.fp-vendor > span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}
.fp-vendor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}
.fp-vendor-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff4eb;
  font-weight: 700;
  font-size: 0.9rem;
}
.fp-vendor-links a:hover { background: #ffedd5; }
.fp-includes li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 12px 2.2em;
  line-height: 1.45;
  font-weight: 600;
  font-size: 0.98rem;
}
.fp-includes li::before {
  content: "";
  position: absolute;
  left: 0.9em;
  top: 1.05em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--brand, #f5842b);
  box-shadow: 0 0 0 3px rgba(245, 132, 43, 0.18);
}
.fp-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.fp-points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.fp-points strong {
  display: block;
  margin-bottom: 4px;
}
.fp-points span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}
.fp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.fp-related a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}
.fp-related a:hover { background: #fff4eb; }
.fp-next {
  margin: 8px 0 40px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf5, #fff);
}
.fp-next h2 {
  font-family: var(--display), Fraunces, Georgia, serif;
  margin: 0 0 8px;
  font-size: 1.5rem;
}

/* Previous / Next feature pager (HeyMed + HeyDental) */
.fp-feature-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 28px;
}
.fp-feature-nav--bottom {
  margin: 28px 0 16px;
}
.fp-feat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line, #fed7aa);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px -22px rgba(124, 45, 18, 0.45);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.fp-feat-btn:hover {
  background: #fff4eb;
  border-color: var(--peach, #f5842b);
  transform: translateY(-1px);
}
.fp-feat-next {
  justify-content: flex-end;
  text-align: right;
}
.fp-feat-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff4eb;
  border: 1px solid var(--line, #fed7aa);
  color: var(--brand-deep, #c2410c);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}
.fp-feat-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fp-feat-dir {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep, #c2410c);
}
.fp-feat-name {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--ink, #1c1917);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 36ch;
}

@keyframes fp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (max-width: 820px) {
  .fp-hero,
  .fp-shots,
  .fp-steps,
  .fp-includes {
    grid-template-columns: 1fr;
  }
  .fp-hero-art { order: -1; }
  .fp-feature-nav {
    grid-template-columns: 1fr;
  }
  .fp-feat-next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }
  .fp-feat-name {
    max-width: none;
    white-space: normal;
  }
}
