/* HearthPilot subsite — layers on top of /styles.css.
   Inherits cool palette + Fraunces from the root stylesheet; adds only the
   bits that don't already live there (pills, tier cards, prose bands). */

.hero-sub {
  font-size: clamp(.98rem, 1.2vw, 1.05rem);
  color: var(--mute);
  max-width: 36em;
  margin: 0 0 1.6rem;
}

/* ---------- Dark cinematic hero ---------- */
body.cool .hero.hero-dark {
  background:
    radial-gradient(ellipse at 78% 38%, rgba(11,143,143,.22) 0%, transparent 55%),
    linear-gradient(135deg, var(--slate) 0%, #14304d 60%, #1f4f78 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero.hero-dark::before {
  /* Subtle grid pattern for depth — barely visible */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
body.cool .hero.hero-dark .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 130px) clamp(20px, 4vw, 40px);
}
body.cool .hero.hero-dark .eyebrow {
  color: var(--teal);
  opacity: .9;
}
body.cool .hero.hero-dark h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  letter-spacing: -.028em;
  line-height: 1.02;
  margin: 0 0 .55em;
}
body.cool .hero.hero-dark .hero-lede {
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  color: rgba(255,255,255,.92);
  max-width: 38em;
  line-height: 1.5;
  margin: 0 0 1.1rem;
}
body.cool .hero.hero-dark .hero-sub {
  font-size: clamp(.93rem, 1.1vw, 1.0rem);
  color: rgba(255,255,255,.65);
  max-width: 38em;
  margin: 0 0 1.6rem;
  line-height: 1.55;
}
body.cool .hero.hero-dark .hero-cta-row { gap: 12px; }
.cta.primary-on-dark {
  background: var(--white);
  color: var(--slate);
}
.cta.primary-on-dark:hover {
  background: rgba(255,255,255,.92);
  color: var(--slate);
  transform: translateY(-1px);
}
.cta.ghost-on-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.cta.ghost-on-dark:hover {
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}
body.cool .hero.hero-dark .hero-meta {
  color: rgba(255,255,255,.5);
  margin-top: 1.4rem;
}
body.cool .hero.hero-dark .hero-meta .dot { background: var(--teal); }

/* Right stage: phone + brand orbit */
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}
.hero-stage::after {
  /* Soft halo behind phone for depth */
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,143,143,.28) 0%, rgba(11,143,143,0) 70%);
  z-index: 0;
}

.phone-hero {
  position: relative;
  z-index: 2;
}
.phone-hero .phone-frame {
  width: 280px;
  border-radius: 40px;
  background: #050505;
  padding: 8px;
  box-shadow:
    0 6px 14px rgba(0,0,0,.45),
    0 36px 90px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone-hero .phone-frame img {
  width: 100%; height: auto; display: block; border-radius: 32px;
}

/* Floating brand chips */
.brand-orbit {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.brand-orbit li {
  position: absolute;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: rgba(255,255,255,.94);
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.brand-orbit .orbit-1 { top: 6%;   left: 2%;   }
.brand-orbit .orbit-2 { top: 0%;   right: 4%;  }
.brand-orbit .orbit-3 { top: 38%;  left: -6%;  }
.brand-orbit .orbit-4 { top: 32%;  right: -4%; }
.brand-orbit .orbit-5 { bottom: 18%; left: 2%; }
.brand-orbit .orbit-6 { bottom: 8%;  right: 8%; }

@media (max-width: 980px) {
  body.cool .hero.hero-dark .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { order: 2; min-height: auto; padding: 30px 0 0; }
  .brand-orbit { display: none; }
}
@media (max-width: 540px) {
  .phone-hero .phone-frame { width: 230px; }
}

/* ---------- Narrow prose container ---------- */
.wrap.narrow { max-width: 760px; }

.hp-prose, .hp-privacy, .hp-builder, .hp-cta {
  background: var(--white);
  border-top: 1px solid #E5EBF2;
}
.hp-prose p, .hp-privacy p, .hp-builder p, .hp-cta p {
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36em;
}
.hp-prose h2, .hp-privacy h2, .hp-builder h2, .hp-cta h2 {
  margin-bottom: 0.5em;
}
.hp-privacy { background: #F4F7FB; }
.hp-builder { background: var(--white); }
.hp-cta { background: linear-gradient(180deg, #F4F7FB 0%, var(--white) 100%); }
.hp-cta .fine {
  font-size: .82rem;
  color: var(--mute);
  margin-top: 1rem;
}
.hp-cta .fine a { color: var(--slate); }

/* ---------- Device pill grid ---------- */
.hp-devices {
  background: var(--white);
  border-top: 1px solid #E5EBF2;
  border-bottom: 1px solid #E5EBF2;
}
.pills {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #E5EBF2;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -.005em;
}
.pills li.live {
  background: rgba(11, 143, 143, 0.06);
  border-color: rgba(11, 143, 143, 0.35);
  color: var(--ink);
}
.pills li.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 7px;
}
.pills li.request {
  background: rgba(176, 84, 26, 0.06);
  border-color: rgba(176, 84, 26, 0.3);
  color: var(--copper);
  font-weight: 600;
}
.pills-legend {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pills-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* ---------- Tier cards ---------- */
.hp-tiers {
  background: #F8FAFD;
  border-top: 1px solid #E5EBF2;
  border-bottom: 1px solid #E5EBF2;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.tier {
  background: var(--white);
  border: 1px solid #E5EBF2;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.tier-pill {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}
.tier-price {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.tier p:last-child {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.55;
}

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

/* ---------- Hero variants for HearthPilot ---------- */
body.cool .hero {
  background: linear-gradient(180deg, #F4F7FB 0%, var(--white) 100%);
}
.hero-photo .credit {
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

@media (max-width: 880px) {
  .pills li { font-size: .88rem; padding: 7px 12px; }
}

/* ---------- Capability showcase — software-first ---------- */
.hp-showcase {
  background: linear-gradient(180deg, #F8FAFD 0%, var(--white) 100%);
  border-top: 1px solid #E5EBF2;
  border-bottom: 1px solid #E5EBF2;
}
.showcase-chips {
  list-style: none;
  padding: 0;
  margin: 6px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.showcase-chips li {
  background: rgba(11, 143, 143, 0.08);
  border: 1px solid rgba(11, 143, 143, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .95rem;
  color: var(--ink);
  letter-spacing: -.005em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
}
.showcase-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  font-size: .92rem;
  color: var(--mute);
  letter-spacing: .01em;
}
.showcase-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.showcase-stats strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* Showcase phone row — 5 phones, denser than the old gallery */
.phones-showcase {
  margin-top: 24px;
}

/* ---------- iOS screenshot gallery ---------- */
.hp-gallery {
  background: linear-gradient(180deg, var(--white) 0%, #F4F7FB 100%);
  border-top: 1px solid #E5EBF2;
  border-bottom: 1px solid #E5EBF2;
  overflow: hidden;
}
.phones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  align-items: start;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.phone-frame {
  position: relative;
  border-radius: 24px;
  background: #0a0a0a;
  padding: 5px;
  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 10px 28px rgba(20, 40, 70, .15),
    inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.phone:hover .phone-frame {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 16px 40px rgba(20, 40, 70, .2),
    inset 0 0 0 1px rgba(255,255,255,.10);
}
.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 19px;
}
.phone figcaption h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 4px;
  color: var(--ink);
}
.phone figcaption p {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.gallery-note {
  margin: 40px 0 0;
  font-size: .92rem;
  color: var(--mute);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* 5-across holds down to narrow widths — phones just get smaller, no row wrap */
@media (max-width: 720px) {
  .phones { gap: 10px; }
  .phone figcaption h3 { font-size: .92rem; }
  .phone figcaption p { font-size: .8rem; line-height: 1.4; }
  .phone-frame { border-radius: 14px; padding: 3px; }
  .phone-frame img { border-radius: 11px; }
}
@media (max-width: 480px) {
  .phone figcaption { display: none; }   /* phones-only label, drop captions */
}

/* ---------- Three-pillar feature row ---------- */
.hp-pillars {
  background: var(--white);
  border-top: 1px solid #E5EBF2;
  border-bottom: 1px solid #E5EBF2;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pillar {
  background: #F8FAFD;
  border: 1px solid #E5EBF2;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-num {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--teal);
  margin: 0;
  letter-spacing: -.01em;
}
.pillar h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.pillar p {
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.pillar-stat {
  margin-top: auto;
  padding-top: 14px;
  font-size: .86rem;
  color: var(--mute);
  letter-spacing: .01em;
}
.pillar-stat strong {
  color: var(--ink);
  font-weight: 600;
}

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