/* Homepage only. Shared bits (header, footer, banner, .btn) live in site.css. */

.home h1, .home h2, .home h3 { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-center { text-align: center; }
.narrow { max-width: 820px; }
.narrow-wide { max-width: 980px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--space-yellow); margin-bottom: 14px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--space-yellow); box-shadow: 0 0 12px var(--space-yellow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.examples-note { font-size: 0.72rem; color: var(--text-secondary); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* Star background used by hero, reply and final sections */
.starfield {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 90%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 80%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 20%, rgba(30, 50, 105, 0.35), transparent 60%),
              radial-gradient(800px 500px at 10% 90%, rgba(69, 221, 192, 0.18), transparent 60%), var(--cosmos);
  padding: 72px 0 88px;
}
.home-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.home-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 20px; }
.home-hero h1 .grad { display: block; }
.home-lede { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; margin-bottom: 28px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-row-center { justify-content: center; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 50px; width: auto; }
.store-note { margin-top: 12px; color: var(--text-secondary); font-size: 0.9rem; }

.home-hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 520px; }
.phone-stage { position: relative; width: min(360px, 80vw); }
.hero-phone {
  display: block; width: 100%; height: auto; border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.06);
}
.signal {
  position: absolute; max-width: 230px; padding: 12px 14px; border-radius: 14px;
  background: rgba(17, 26, 51, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); color: var(--text-primary); font-size: 0.9rem; line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: drift 7s ease-in-out infinite;
}
.signal-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--space-yellow); margin-bottom: 4px; }
.signal-3 .signal-label { color: var(--brand-green); }
/* Example signals hang off the phone's edges, below the "Space is here" headline in the screenshot */
.signal { z-index: 2; width: max-content; }
.signal-1 { top: 25%; right: calc(100% - 64px); }
.signal-2 { top: 37%; left: calc(100% - 100px); max-width: 200px; animation-delay: -2.5s; }
.signal-3 { bottom: 5%; right: calc(100% - 70px); animation-delay: -5s; border-color: rgba(69, 221, 192, .35); }
.home-hero-visual .examples-note { margin-top: 14px; text-align: center; }

/* Live satellite: drifts around the Space screen, tap it to catch a signal (site.js moves it) */
.sat {
  position: absolute; left: 0; top: 0; z-index: 3; width: 22%; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; will-change: transform;
  transform: translate(var(--sx, 140px), var(--sy, 420px));
}
.sat img { display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 0 10px rgba(255, 214, 120, .35)); }
.sat::after {
  content: ''; position: absolute; inset: 22%; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 230, 0, .65); animation: sat-ping 2.2s ease-out infinite;
}
.sat.is-found::after { display: none; }
.sat:focus-visible { outline: 2px solid var(--space-yellow); outline-offset: 2px; border-radius: 50%; }
@keyframes sat-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.sat-hint {
  position: absolute; left: 50%; top: 81.5%; z-index: 2; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: var(--space-yellow); background: rgba(255, 230, 0, .12); border: 1px solid rgba(255, 230, 0, .4);
  animation: pulse 2.4s ease-in-out infinite; transition: opacity .4s;
}
.sat-hint.is-hidden { opacity: 0; animation: none; }
.sat-msg {
  position: absolute; left: 9%; right: 9%; top: 47%; z-index: 4; padding: 12px 14px; border-radius: 14px;
  background: rgba(17, 26, 51, .94); border: 1px solid rgba(255, 230, 0, .45); color: var(--text-primary);
  font-size: .9rem; line-height: 1.4; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: sat-pop .35s cubic-bezier(.16, 1, .3, 1);
}
.sat-msg[hidden] { display: none; }
.sat-msg-text { display: block; }
@keyframes sat-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .sat::after, .sat-hint, .signal { animation: none; }
}
@keyframes drift { 50% { transform: translateY(-10px); } }

/* ---------- Generic sections ---------- */
.home-section { position: relative; padding: 96px 0; }
.home-section-alt { background: #0f1830; }
.home-section-cosmos { overflow: hidden; background: radial-gradient(900px 500px at 50% 0%, rgba(30, 50, 105, .35), transparent 65%), var(--cosmos); }
.home-section-cosmos .container { position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2, .split-copy h2, .home-section-cosmos h2, .home-final h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 14px; }
.section-head p, .section-lede { color: #cbd5e1; font-size: 1.08rem; }
.section-lede { margin-bottom: 28px; }

/* Pain cards */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .25s, border-color .25s;
}
.pain-card:hover { transform: translateY(-4px); border-color: rgba(255, 230, 0, .35); }
.pain-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.pain-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pain-card p { color: var(--text-secondary); }
.pain-card-cta { background: linear-gradient(160deg, rgba(255,230,0,.12), rgba(69,221,192,.12)); border-color: rgba(255,230,0,.3); display: flex; flex-direction: column; align-items: flex-start; }
.pain-card-cta p { margin-bottom: 18px; color: #e2e8f0; }
.pain-card-cta .btn { margin-top: auto; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-visual { display: flex; justify-content: center; }
.shot { width: min(320px, 78vw); height: auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

.steps { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-family: 'Outfit', sans-serif;
  background: rgba(255, 230, 0, .14); color: var(--space-yellow); border: 1px solid rgba(255,230,0,.35);
}
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { color: var(--text-secondary); }
.steps strong { color: var(--text-primary); }

.checks { list-style: none; display: grid; gap: 16px; margin-top: 8px; }
.checks li { position: relative; padding-left: 34px; color: var(--text-secondary); }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: rgba(69, 221, 192, .16); color: var(--brand-green);
}
.checks strong { color: var(--text-primary); }

/* Friendship story */
.story {
  width: 100%; max-width: 420px; display: grid; gap: 12px; padding: 24px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 22px;
}
.story-step { padding: 14px 16px; border-radius: 14px; background: rgba(255,230,0,.08); border: 1px solid rgba(255,230,0,.25); }
.story-step p { color: var(--text-primary); }
.story-tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--space-yellow); margin-bottom: 4px; }
.story-reply { margin-left: 28px; background: rgba(69, 221, 192, .08); border-color: rgba(69, 221, 192, .3); }
.story-reply .story-tag { color: var(--brand-green); }
.story-meta { display: flex; justify-content: space-between; background: transparent; border: 1px dashed var(--border); color: var(--text-secondary); font-size: .85rem; }
.story-friend { display: flex; align-items: center; gap: 10px; background: rgba(69, 221, 192, .1); border-color: rgba(69, 221, 192, .35); color: #c9f7ec; font-weight: 600; }
.story-check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-green); color: #06281f; font-size: .8rem; }
.story .examples-note { text-align: center; }

/* Be someone's reply */
.home-section-cosmos h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.reply-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 32px; }
.reply-points div { padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.reply-points span { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.reply-points p { color: #e2e8f0; font-weight: 500; }

/* Compare table */
.compare-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: .8fr 1fr 1fr; }
.compare-row > span { padding: 16px 20px; border-top: 1px solid var(--border); }
.compare-row > span:nth-child(2) { color: var(--text-secondary); }
.compare-row > span:nth-child(3) { color: var(--text-primary); font-weight: 600; background: rgba(255,230,0,.05); }
.compare-row [role="rowheader"] { color: var(--text-secondary); font-size: .9rem; font-weight: 600; }
.compare-head > span { border-top: 0; font-weight: 700; font-size: .95rem; color: var(--text-primary); background: rgba(255,255,255,.03); }
.compare-head > span:nth-child(3) { color: var(--space-yellow); background: rgba(255,230,0,.08); }

/* Mood chips */
.mood-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.mood-chip {
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; color: var(--text-primary);
  background: rgba(255,255,255,.05); border: 1px solid var(--border); transition: background .2s, border-color .2s;
}
.mood-chip:hover { background: rgba(255,255,255,.1); }
.mood-chip[aria-pressed="true"] { background: rgba(69, 221, 192, .2); border-color: var(--brand-green); }
.mood-panel { min-height: 72px; padding: 18px 20px; border-radius: 14px; background: rgba(69,221,192,.08); border: 1px solid rgba(69,221,192,.3); }
.mood-panel p { color: #e2e8f0; font-size: 1.05rem; }

/* Also inside */
.inside-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.inside-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: center;
  padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
.inside-card img { width: 140px; height: auto; border-radius: 18px; }
.inside-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.inside-card p { color: var(--text-secondary); }

/* Safety */
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safety-item { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.safety-item span { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.safety-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.safety-item p { color: var(--text-secondary); font-size: .95rem; }
.safety-links { text-align: center; margin-top: 28px; color: var(--text-secondary); }
.safety-links a { color: var(--accent); }

/* Indie strip */
.indie { padding: 56px 0; background: rgba(255,230,0,.04); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.indie-line { max-width: 900px; margin: 0 auto; color: var(--text-secondary); line-height: 1.7; }
.indie-line strong { color: var(--text-primary); }
.indie-line a { color: var(--space-yellow); font-weight: 600; text-decoration: none; }
.indie-line a:hover { text-decoration: underline; }
.indie-sep { margin: 0 10px; opacity: .4; }
.indie-title { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin: 36px 0 22px; padding-top: 30px; border-top: 1px solid var(--border); }
.other-apps { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.other-apps a { display: flex; flex-direction: column; align-items: center; text-decoration: none; transition: transform .2s; }
.other-apps a:hover { transform: translateY(-3px) scale(1.03); }
.other-apps img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.other-name { color: var(--text-primary); font-weight: 600; font-size: .95rem; }
.other-kind { color: var(--text-secondary); font-size: .8rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.03); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 1.02rem; color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--text-secondary); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--text-secondary); }

/* Final CTA */
.home-final {
  position: relative; overflow: hidden; padding: 100px 0;
  background: radial-gradient(900px 500px at 50% 100%, rgba(69, 221, 192, .25), transparent 65%), var(--cosmos);
}
.home-final .container { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home-hero { padding: 48px 0 72px; }
  .home-hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .home-hero-copy { text-align: center; }
  .home-lede { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .split-copy { text-align: left; }
  .split-reverse .split-copy { order: 0; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .inside-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-section { padding: 64px 0; }
  .home-hero-visual { min-height: 0; }
  .phone-stage { width: min(300px, 78vw); }
  .signal { width: auto; max-width: 165px; font-size: .8rem; padding: 10px 12px; }
  .signal-1 { top: 24%; right: auto; left: -28px; }
  .signal-2 { top: 37%; left: auto; right: -28px; }
  .signal-3 { bottom: -7%; right: auto; left: -28px; }
  .home-hero-visual .examples-note { margin-top: 56px; }
  .sat-msg { font-size: .82rem; padding: 10px 12px; left: 6%; right: 6%; }
  .sat-hint { font-size: .66rem; padding: 4px 9px; }
  .pain-grid, .safety-grid, .reply-points { grid-template-columns: 1fr; }
  .inside-card { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; }
  .inside-card img { width: 96px; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row [role="rowheader"], .compare-head > span:first-child { grid-column: 1 / -1; padding-bottom: 0; border-top: 1px solid var(--border); }
  .compare-row [role="rowheader"] + span, .compare-row [role="rowheader"] + span + span { border-top: 0; }
  .compare-head > span:first-child { display: none; }
  .compare-head > span:nth-child(2), .compare-head > span:nth-child(3) { border-top: 0; }
  .compare-row > span { padding: 12px 14px; font-size: .92rem; }
  .other-apps { gap: 28px; }
  .store-badge img { height: 46px; }
}

/* Fold cover screens and very narrow phones */
@media (max-width: 360px) {
  .home-hero h1 { font-size: 2rem; }
  .home-lede { font-size: 1rem; }
  .store-badge img { height: 42px; }
  .signal { max-width: 145px; font-size: .74rem; padding: 8px 10px; }
  .signal-1, .signal-3 { left: -22px; }
  .signal-2 { right: -22px; }
  .signal-label { font-size: .6rem; }
  .inside-card { grid-template-columns: 1fr; text-align: center; }
  .inside-card img { width: 120px; margin: 0 auto; }
  .other-apps { gap: 20px; }
  .story { padding: 16px; }
  .story-reply { margin-left: 12px; }
}
/* Tablets and unfolded foldables in landscape: keep two columns but tighten */
@media (min-width: 981px) and (max-width: 1100px) {
  .home-hero-grid { gap: 32px; }
  .phone-stage { width: 330px; }
  .signal { max-width: 190px; font-size: .84rem; }
  .signal-1, .signal-3 { right: calc(100% - 110px); }
  .signal-2 { left: calc(100% - 125px); max-width: 180px; }
}

/* "Real talk about real life" topic pills under the problems heading */
.life-topics-label { margin-top: 22px; font-size: .78rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-green) !important; }
.life-topics { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.life-topics li {
  padding: 7px 13px; border-radius: 999px; font-size: .9rem; color: #e2e8f0;
  background: rgba(69, 221, 192, .08); border: 1px solid rgba(69, 221, 192, .28);
}
@media (max-width: 360px) { .life-topics li { font-size: .82rem; padding: 6px 11px; } }
