/* AstroPal site: sections, sub-pages and responsive rules (load after site.css). */
[hidden] { display: none !important; }
.section { position: relative; z-index: 1; padding-top: clamp(88px, 10vw, 128px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.label { /* eyebrow: the app's spaced-caps section labels, in its section-title violet */
  display: inline-flex; align-items: center; gap: 10px; color: var(--violet);
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section h2 { margin-top: 16px; font-size: clamp(2.15rem, 4.8vw, 3.5rem); letter-spacing: -.04em; line-height: 1.04; }
.section-head p { margin-top: 18px; font-size: 1.1rem; }

/* the app's six tabs, as its tab bar shows them */
.chain { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 clamp(36px, 5vw, 52px); list-style: none; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.chain li { padding: 7px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--sub); }
.chain li:first-child { color: var(--gold); border-color: rgba(var(--gold-rgb), .4); background: rgba(var(--gold-rgb), .15); }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.feature { padding: 30px 28px 28px; border-radius: var(--r-lg); overflow: hidden; transition: border-color .3s; }
.feature::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; pointer-events: none; background: radial-gradient(closest-side, var(--c, var(--violet)), transparent); opacity: .08; }
.feature:hover { border-color: var(--line-3); }
.feature .key { display: flex; align-items: center; justify-content: space-between; }
.feature .key i { width: 30px; height: 3px; border-radius: 2px; background: var(--c, var(--violet)); box-shadow: 0 0 14px var(--c, var(--violet)); }
.feature .key b { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.feature h3 { margin-top: 22px; font-size: 1.22rem; letter-spacing: -.02em; }
.feature p { margin-top: 10px; font-size: .98rem; }

/* deep dives: copy beside a real crop */
.dives { border-top: 1px solid var(--line); }
.dive { display: grid; grid-template-columns: 1fr minmax(0, .9fr); gap: clamp(36px, 6vw, 90px); align-items: center; padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.dive.flip .media { order: -1; }
.dive h3 { margin-top: 16px; font-size: clamp(1.85rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.07; }
.dive .copy > p { margin-top: 18px; font-size: 1.05rem; }
.facts { margin-top: 28px; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facts li span:last-child { font-family: var(--mono); font-size: .84rem; color: var(--text); text-align: right; }
.media { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.media::before { content: ""; position: absolute; inset: 12% 8%; z-index: -1; filter: blur(60px); opacity: .45; background: radial-gradient(closest-side, rgba(var(--violet-rgb), .8), transparent); }
.media.gold::before { background: radial-gradient(closest-side, rgba(var(--gold-rgb), .45), transparent); }
.media figcaption, .caption { margin-top: 14px; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); }

/* real screens gallery */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); list-style: none; }
.screens figure { margin: 0; }
.screens .phone { border-radius: 36px; padding: 7px; }
.screens .phone img, .screens .phone::after { border-radius: 30px; }
.screens .phone::after { inset: 7px; }
.screens figcaption { margin-top: 16px; font-size: .92rem; line-height: 1.45; }
.screens figcaption b { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; counter-reset: step; }
.steps li { padding: 28px 24px; border-radius: var(--r-lg); counter-increment: step; }
.steps li::after { content: "0" counter(step); position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); }
.steps h3 { margin-top: 18px; font-size: 1.12rem; letter-spacing: -.015em; }
.steps p { margin-top: 8px; font-size: .95rem; }
.glyph { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--gold); }
.glyph svg { width: 22px; height: 22px; }

/* privacy band */
.band { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: 28px; }
.band h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.band p { margin-top: 16px; font-size: 1.05rem; }
.band .btn { margin-top: 26px; }
.ticks { display: grid; gap: 14px; list-style: none; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(var(--gold-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23ffd700' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .45);
}
.ticks li small { display: block; margin-top: 2px; font-size: .88rem; color: var(--sub); }

/* specs */
.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 4vw, 48px); }
.spec-groups > div { padding: 22px 26px 8px; border-radius: var(--r-lg); }
.spec-groups h3 { padding-bottom: 14px; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.specs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-2); font-size: .95rem; }
.specs th, .specs td { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 36%; padding-right: 20px; font-weight: 500; color: var(--sub); }
.specs td { color: var(--text); }
.specs td small { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); }

/* pricing */
.price-card { max-width: 560px; margin: 0 auto; padding: clamp(30px, 5vw, 44px); border-radius: 26px; text-align: center; border-color: rgba(var(--gold-rgb), .3); background: radial-gradient(90% 60% at 50% 0%, rgba(var(--gold-rgb), .1), transparent 70%), rgba(14, 14, 34, .66); }
.price-card .top { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-card .top img { width: 40px; height: 40px; border-radius: 11px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); }
.price { margin-top: 18px; font-family: var(--mono); font-size: clamp(4rem, 9vw, 5.4rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; color: var(--head); }
.price sup { margin-right: 4px; font-size: .42em; vertical-align: .9em; letter-spacing: 0; color: var(--sub); }
.price-note { margin-top: 10px; font-size: .95rem; }
.checklist { margin: 30px 0 30px; text-align: left; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.badges a { display: block; }
.badges img { height: 48px; width: auto; }
.badges img.gp { height: 70px; margin: -11px -9px; } /* Google's badge art carries its own padding */
a[data-store-url] { opacity: .5; cursor: default; pointer-events: none; } /* inert until the app is live (repo CLAUDE.md) */
.store-soon { margin-top: 12px; font-size: .9rem; color: var(--sub); }
.price-card .btn { width: 100%; margin-top: 22px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; color: var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; border-radius: 1px; background: var(--sub); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--gold); }
.faq .a { max-width: 740px; padding: 0 0 24px; font-size: 1rem; }

/* newsletter */
.nl { max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); border-radius: 26px; text-align: center; }
.nl h2 { margin-top: 14px; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.nl p { margin-top: 12px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 440px; margin: 24px auto 0; }
.nl-form input { flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(10, 10, 26, .8); color: var(--head); font: inherit; }
.nl-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .25); }
.nl-form .btn { flex: 1 1 100%; }
.nl .msg { margin-top: 16px; font-size: .95rem; }
.nl .msg.ok { color: var(--green); }
.nl .msg.err { color: #fca5a5; }
.nl .fine { margin-top: 14px; font-size: .84rem; color: var(--muted); }

.site-end { height: clamp(40px, 5vw, 64px); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(4) { border-left: 0; }
  .stats li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .features, .screens { grid-template-columns: 1fr 1fr; }
  .dive, .band, .spec-groups { grid-template-columns: 1fr; }
  .dive.flip .media { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { gap: 16px; }
  .trio { display: flex; gap: 16px; max-width: none; margin: 0 calc(-1 * var(--gutter)) -56px; padding: 0 var(--gutter) 70px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .trio .phone { flex: 0 0 76%; scroll-snap-align: center; }
  .trio .phone:nth-of-type(n) { transform: none; opacity: 1; }
  .trio .phone:nth-of-type(2) { order: -1; } /* Today first */
  .trio .glow { display: none; } /* a blur inside a scroller gets clipped to a hard edge */
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { border-left: 0; border-top: 1px solid var(--line); padding: 18px; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-top: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-left: 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .feature { padding: 26px 22px 24px; }
  .screens { display: flex; gap: 16px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) -40px; padding: 0 var(--gutter) 52px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; } /* room for the phones' shadows */
  .screens li { flex: 0 0 68%; scroll-snap-align: center; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span:last-child { text-align: left; }
  .specs th { width: 40%; }
  .spec-groups > div { padding: 18px 18px 4px; }
  .cta-row .btn { flex: 1 1 100%; }
  .chain { gap: 8px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .reveal { opacity: 1 !important; translate: none !important; }
  .nav { position: static; }
  .hero-sky, .sky, .aura, .media::before, .trio .glow { display: none !important; }
}
