/* AstraDream landing — mirrors the app's design system (presentation/theme/Color.kt, Type.kt).
   Five colours only: Plum (background), Blush (CTA / accent / tool tiles), Cream (chips,
   selection), White (text, hairlines), Cocoa (ink on Blush or Cream). Alpha variants are fine.
   Type: Jost for UI and headings, Cormorant Garamond for readings, JetBrains Mono for small
   uppercase labels. No italics, no gold, no gradients beyond soft palette washes. */

:root {
  /* ---- The palette ---- */
  --plum: #2d0320;
  --blush: #f2dde6;
  --cream: #f7fcd4;
  --white: #ffffff;
  --cocoa: #4e2a1a;

  /* ---- Derived surfaces (same recipe as the app: Cream composited over Plum) ---- */
  --plum-raised: #3d172e;                  /* Cream 8% over Plum — header, nav bar */
  --card: rgba(247, 252, 212, 0.10);       /* AstroCard */
  --card-hero: rgba(247, 252, 212, 0.14);  /* Daily Moment / Today's Sky cards */
  --border: rgba(255, 255, 255, 0.14);     /* AstroCardBorder */
  --text: var(--white);
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.45);

  --font-ui: 'Jost', system-ui, sans-serif;
  --font-reading: 'Cormorant Garamond', Georgia, serif;
  --font-label: 'JetBrains Mono', ui-monospace, monospace;

  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --text-lg: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-card: 24px;   /* app cards */
  --radius-tile: 20px;   /* app tool tiles */
  --radius-full: 9999px;
  --ease: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --content: 1120px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(242, 221, 230, 0.08), transparent 32%),
    radial-gradient(circle at 85% 30%, rgba(247, 252, 212, 0.05), transparent 30%),
    var(--plum);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a, button { transition: background var(--ease), color var(--ease), transform var(--ease), border-color var(--ease); }
h1, h2, h3 { font-weight: 400; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
em, i { font-style: normal; }  /* the brand uses no italics */
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: var(--space-4); top: -3rem; z-index: 100;
  background: var(--blush); color: var(--cocoa);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container { width: min(100% - 2rem, var(--content)); margin-inline: auto; }

/* ---- Labels: the app's AstroEyebrow (JetBrains Mono, wide tracking) ---- */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blush);
}
.eyebrow.muted { color: var(--text-faint); }

/* ---- Buttons: Blush pill with Cocoa ink, as in the app ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full); border: 1px solid transparent;
  font-family: var(--font-ui); font-size: var(--text-sm); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--blush); color: var(--cocoa); }
.btn-primary:hover { background: var(--white); transform: translateY(-1px); }
.btn-secondary { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.32); }

/* ---- Chips: Cream with Cocoa ink, like the Oracle tags ---- */
.chip {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.9rem; border-radius: var(--radius-full);
  background: var(--cream); color: var(--cocoa);
  font-size: var(--text-sm); white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---- Header: raised Plum bar, like the app's bottom nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--plum) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text); text-decoration: none; }
.brand-mark {
  width: 2.4rem; height: 2.4rem; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden;                 /* clips the logo to the rounded corners */
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.3);            /* the PNG has wide plum margins; this enlarges the mark */
}
.brand-text { font-size: 1.3rem; letter-spacing: 0.02em; }
.nav-links {
  display: none; align-items: center; gap: var(--space-2);
  padding: 0.3rem; border-radius: var(--radius-full);
  background: var(--plum-raised); border: 1px solid var(--border);
}
.nav-links a {
  padding: 0.4rem 0.95rem; border-radius: var(--radius-full);
  color: var(--text-muted); text-decoration: none; font-size: var(--text-sm);
}
.nav-links a:hover { color: var(--cocoa); background: var(--blush); }

/* ---- Sections ---- */
main section { padding-block: clamp(var(--space-12), 9vw, var(--space-24)); }
.section-head { display: grid; gap: var(--space-4); max-width: 44rem; margin-bottom: var(--space-10); }
.section-head h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); }
.section-head p { color: var(--text-muted); font-size: var(--text-lg); max-width: 38rem; }

/* ---- Hero ---- */
.hero { padding-top: clamp(var(--space-8), 6vw, var(--space-16)); }
.hero-grid { display: grid; gap: var(--space-12); align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.7rem, 1.6rem + 4.2vw, 4.8rem);
  letter-spacing: -0.015em;
  margin-top: var(--space-5);
  max-width: 15ch;
}
.hero-copy h1 .soft { display: block; color: var(--blush); }
.hero-copy .lede { margin-top: var(--space-6); color: var(--text-muted); font-size: var(--text-lg); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4);
  margin-top: var(--space-10); max-width: 34rem;
}
.stat { border-top: 1px solid var(--border); padding-top: var(--space-3); }
.stat strong { display: block; font-size: var(--text-xl); font-weight: 400; }
.stat span { color: var(--text-muted); font-size: var(--text-sm); }

/* The tilted back phone pokes a few px past the screen edge on ~1024px screens. */
.hero { overflow-x: clip; }
.hero-visual { position: relative; display: flex; justify-content: center; padding-block: var(--space-4); }
.hero-visual .phone.back {
  position: absolute; width: min(56%, 260px);
  right: 2%; top: 12%;
  opacity: 0.8; transform: rotate(6deg);
  display: none;
}
.hero-visual .phone.front { position: relative; z-index: 1; width: min(78%, 330px); }

/* ---- iPhone-style frame around real app screenshots ----
   Thin even bezel, a brushed rim (white highlights over deep plum), side buttons,
   Dynamic Island and home bar. Sizes are percentages so it scales with the frame. */
.phone {
  --bezel: clamp(6px, 2.6%, 11px);
  position: relative;
  padding: var(--bezel);
  border-radius: 17% / 8.2%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 28%,
                    rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.22)),
    #120009;                                    /* Plum, deepened for the device body */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),  /* outer rim highlight */
    inset 0 0 0 3px rgba(18, 0, 9, 0.9),        /* gap between rim and glass */
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 12px 30px rgba(0, 0, 0, 0.35);
}
/* Side buttons: power on the right, action + volume on the left. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.10));
}
.phone::before { right: -3px; top: 26%; height: 12%; }
.phone::after  {
  left: -3px; top: 18%; height: 4.5%;
  box-shadow: 0 calc(var(--bezel) * 6) 0 rgba(255, 255, 255, 0.18),
              0 calc(var(--bezel) * 12) 0 rgba(255, 255, 255, 0.18);
}
.phone .screen {
  position: relative;
  overflow: hidden;
  border-radius: 14.5% / 7%;
  background: var(--plum);
  /* room above the app for the status bar + island, and below it for the home bar */
  padding-top: 8%;
  padding-bottom: 5.5%;
  container-type: inline-size;
}
/* iOS status bar: time on the left, battery on the right of the island */
.phone .screen::before {
  content: "9:41";
  position: absolute; z-index: 1;
  top: 2.6%; left: 9%;
  font-family: var(--font-ui); font-weight: 500;
  font-size: 4.6cqw; line-height: 1;
  color: var(--white);
}
.phone .screen::after {
  content: "";
  position: absolute; z-index: 1;
  top: 2.75%; right: 8.5%;
  width: 7.5cqw; height: 3.6cqw;
  border-radius: 1.2cqw;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(90deg, var(--white) 0 78%, transparent 78%) content-box;
  padding: 1px;
}
.phone .screen img { width: 100%; aspect-ratio: 720 / 1487; object-fit: cover; }
.phone .island {
  position: absolute; z-index: 1;
  top: 2.4%; left: 50%; transform: translateX(-50%);
  width: 31%; aspect-ratio: 3.4;
  border-radius: var(--radius-full);
  background: #050003;
}
.phone .home-bar {
  position: absolute; z-index: 1;
  bottom: 1.6%; left: 50%; transform: translateX(-50%);
  width: 34%; height: max(3px, 1.3cqw);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
}

/* Store buttons share one width so "Download for Android" and "Coming soon to iOS" match. */
.btn-store { min-width: 13.5rem; }
/* iOS isn't out yet: transparent with a hairline border and muted text, so it
   reads as a note rather than a button. Plain text, not a link. */
.btn-ios {
  background: transparent; border-color: var(--border); color: var(--text-muted);
  cursor: default; user-select: none;
}
.platform-note { display: flex; margin-top: var(--space-3); }

/* ---- App-style card (Daily Moment / Today's Sky surface) ---- */
.app-card {
  background: var(--card-hero);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}
.reading { font-family: var(--font-reading); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.35; }

/* ---- Strip of Cream chips under the hero ---- */
.trust-strip { padding-top: 0; }
.trust-box { display: grid; justify-items: center; gap: var(--space-5); text-align: center; }
/* One line at every width: size and tracking shrink with the screen. */
.trust-box .eyebrow {
  white-space: nowrap;
  font-size: clamp(0.56rem, 2.5vw, 0.72rem);
  letter-spacing: clamp(0.1em, 0.75vw, 0.24em);
}
/* Nine chips in an even 3 × 3 grid: equal-width cells, text centred in each,
   so every chip lines up under the one above it at any screen size. */
.trust-box .chips {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.375rem, 1.6vw, 0.625rem);
  width: min(100%, 34rem);
}
.trust-box .chip {
  justify-content: center; text-align: center;
  padding: 0.4rem 0.3rem;
  font-size: clamp(0.68rem, 3.3vw, 0.9rem);
}

/* ---- Feature tiles: the app's Astrology Tools cards (Blush, Cocoa ink) ---- */
.tile-grid { display: grid; gap: var(--space-3); }
.tile {
  display: flex; flex-direction: column; gap: var(--space-8);
  min-height: 190px; padding: var(--space-6);
  background: var(--blush); color: var(--cocoa);
  border-radius: var(--radius-tile);
}
.tile .tile-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.tile h3 { font-size: 1.35rem; margin-bottom: var(--space-2); }
.tile p { font-size: var(--text-sm); line-height: 1.55; opacity: 0.9; }

/* ---- Screen gallery ---- */
.screens-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.3rem;
  border-radius: var(--radius-full); background: var(--plum-raised); border: 1px solid var(--border);
  margin-bottom: var(--space-8);
}
.screens-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.45rem 1rem; border-radius: var(--radius-full);
  color: var(--text-muted); font-family: var(--font-ui); font-size: var(--text-sm);
}
.screens-tabs button[aria-selected="true"] { background: var(--blush); color: var(--cocoa); }
.screens-layout { display: grid; gap: var(--space-10); align-items: center; }
.screens-layout .phone { width: min(80%, 320px); margin-inline: auto; }
.screen-notes { display: grid; gap: var(--space-4); }
.screen-note h3 { font-size: var(--text-xl); margin: var(--space-2) 0 var(--space-3); }
.screen-note p { color: var(--text-muted); }

/* ---- Story cards ---- */
.story-grid, .testimonial-grid, .pricing-grid, .footer-grid { display: grid; gap: var(--space-4); }
.story-card, .testimonial, .pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: var(--space-6);
}
.story-card h3, .pricing-card h3 { font-size: var(--text-xl); margin: var(--space-3) 0; }
.story-card p, .pricing-card p { color: var(--text-muted); }

.testimonial { display: grid; gap: var(--space-4); align-content: space-between; }
.testimonial .quote { font-family: var(--font-reading); font-size: 1.35rem; line-height: 1.4; }
.testimonial .name { font-size: var(--text-sm); }
.testimonial .role { color: var(--text-faint); font-size: var(--text-sm); }

/* ---- Pricing ---- */
.price { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); line-height: 1; margin-block: var(--space-4); }
.price small { font-size: 1rem; color: var(--text-muted); }
.pricing-card ul { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-5); color: var(--text-muted); }
.pricing-card li { padding-left: 1.2rem; position: relative; }
.pricing-card li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blush);
}
.pricing-card.featured { background: var(--card-hero); border-color: rgba(242, 221, 230, 0.45); }
.pricing-card.featured .chip { margin-bottom: var(--space-2); }

/* ---- CTA ---- */
.cta-panel {
  display: grid; gap: var(--space-6); align-items: center;
  background: var(--card-hero); border: 1px solid var(--border);
  border-radius: 32px; padding: clamp(var(--space-6), 5vw, var(--space-12));
  overflow: hidden;
}
.cta-panel h2 { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.8rem); max-width: 13ch; }
.cta-panel p { color: var(--text-muted); font-size: var(--text-lg); max-width: 32rem; }
.cta-panel .phone { width: min(70%, 240px); margin-inline: auto; }

/* ---- Footer ---- */
footer { padding-block: var(--space-10); border-top: 1px solid var(--border); }
.footer-note { color: var(--text-faint); font-size: var(--text-sm); max-width: 36ch; margin-top: var(--space-4); }
.footer-nav { display: grid; gap: var(--space-2); }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); }
.footer-nav a:hover { color: var(--text); }

@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .story-grid, .testimonial-grid, .pricing-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens-layout { grid-template-columns: 0.9fr 1.1fr; }
  .cta-panel { grid-template-columns: 1.3fr 0.7fr; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-visual .phone.back { display: block; }
  .hero-visual .phone.front { transform: translateX(-12%); }
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story-grid, .testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 0.95fr 1.1fr 0.95fr; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
}
/* Phones: centre the screen tabs and size the gallery phone
   by the viewport height so the whole phone stays in view under the tabs. */
@media (max-width: 767px) {
  /* A wrapped pill box can't look centred, so on phones each tab is its own pill. */
  .screens-tabs {
    display: flex; justify-content: center; gap: 0.5rem;
    padding: 0; background: none; border: 0; margin-bottom: var(--space-6);
  }
  .screens-tabs button { padding: 0.5rem 1rem; background: var(--plum-raised); border: 1px solid var(--border); }
  .screens-tabs button[aria-selected="true"] { border-color: var(--blush); }
  .screens-layout .phone { width: min(68%, 250px, calc((100svh - 170px) / 2.15)); }
}
/* Wide desktop: all nine chips on one row, still equal width and centred. */
@media (min-width: 1200px) {
  .trust-box .chips { grid-template-columns: repeat(9, minmax(0, 1fr)); width: 100%; gap: 0.5rem; }
}
@media (max-width: 420px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .nav .btn { padding-inline: 1rem; }
}
