/* ============================================================
   Astrologie — Landing page (Option 1a · Cinematic)
   Ported from the Astrologie design system.
   ============================================================ */

/* ---- Design tokens ------------------------------------------------ */
:root {
  /* Base palette */
  --black: #000000;
  --white: #ffffff;

  /* Violet star accent */
  --violet-300: #e3c6ff;
  --violet-400: #d4a1ff;
  --violet-500: #b878f5;
  --violet-glow: rgba(212, 161, 255, 0.55);

  /* Deep-space navy surfaces */
  --navy-900: #050a30;
  --navy-800: #001a38;
  --navy-700: #00224e;
  --navy-600: #003367;

  /* Neutral greys */
  --grey-500: #9e9e9e;
  --grey-400: #b0b0b0;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-25: rgba(255, 255, 255, 0.25);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-08: rgba(255, 255, 255, 0.08);

  /* Semantic feedback */
  --success: #34c759;
  --success-bg: rgba(108, 214, 130, 0.18);

  --divider: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-header: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scrim over horoscope text */
  --scrim-edge: linear-gradient(
    to bottom,
    var(--black) 0%,
    transparent 4%,
    transparent 96%,
    var(--black) 100%
  );
}

/* ---- Base --------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: #fff; text-decoration: none; }
a:hover { color: var(--violet-400); }

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 0;
}

/* ---- Page shell --------------------------------------------------- */
.page {
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 100vh;
}

.starfield {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.starfield canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
}

/* ---- Nav ---------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img { height: 34px; width: auto; }

.nav-brand span {
  font-family: var(--font-header);
  font-size: 26px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 15px;
}

.navlink { color: var(--white-70); transition: color 0.2s ease; }
.navlink:hover { color: #fff; }

.nav-cta {
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
}
.nav-cta:hover { color: #000; }

/* ---- Hero --------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 60px 72px 110px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--white-15);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 34px;
}

.hero-badge .material-symbols-rounded {
  font-size: 15px;
  color: var(--violet-400);
}

.hero h1 {
  font-family: var(--font-header);
  font-size: 76px;
  line-height: 1.05;
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--white-70);
  margin: 30px 0 0;
  max-width: 500px;
}

.store-badges {
  display: flex;
  gap: 16px;
  margin-top: 42px;
}

.storebadge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid var(--white-25);
  border-radius: 12px;
  padding: 11px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.storebadge:hover {
  transform: translateY(-2px);
  border-color: var(--white-70);
  color: #fff;
}

.storebadge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.storebadge-text small {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--white-70);
}

.storebadge-text strong {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

/* ---- Hero phones -------------------------------------------------- */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 660px;
}

.hero-phone-left {
  position: absolute;
  transform: translateX(-118px) rotate(-6deg) scale(0.9);
}

.hero-phone-right {
  position: absolute;
  transform: translateX(118px) rotate(6deg) scale(0.9);
}

.hero-phone-center {
  position: relative;
  z-index: 3;
}

/* ---- Phone mockup ------------------------------------------------- */
.phone {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 9px #14141c, 0 0 0 10px #2a2a33;
  flex: none;
}

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.phone-status .icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.phone-status .material-symbols-rounded { font-size: 15px; }

.phone-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
}

/* Home screen */
.phone-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 2px;
}

.phone-home-header .wordmark {
  font-family: var(--font-header);
  font-size: 26px;
  color: #fff;
  line-height: 1.05;
}

.phone-home-header .material-symbols-rounded {
  font-size: 22px;
  color: #fff;
}

.phone-tabs {
  display: flex;
  gap: 24px;
  padding: 8px 8px 0;
  justify-content: center;
  font-size: 16px;
}

.phone-tabs span {
  padding: 6px 4px;
  color: rgba(255, 255, 255, 0.45);
}

.phone-tabs .active {
  color: #fff;
  font-weight: 600;
}

.phone-reading {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.phone-reading-inner {
  height: 100%;
  overflow: hidden;
  padding: 18px 16px 30px;
}

.phone-reading-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.phone-reading-section h4 {
  font-family: var(--font-header);
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.phone-reading-section p {
  font-size: 12.5px;
  color: #fff;
  line-height: 1.6;
  text-align: justify;
  margin: 3px 0 0;
}

.phone-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--scrim-edge);
}

/* Sign screen */
.phone-sign {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  text-align: center;
}

.phone-sign .glyph {
  height: 108px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(212, 161, 255, 0.6));
}

.phone-sign .sign-name {
  font-family: var(--font-display);
  font-size: 40px;
  color: #fff;
  line-height: 1.1;
  margin-top: 22px;
}

.phone-sign .sign-sub {
  font-size: 13px;
  color: var(--grey-500);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.phone-sign .sign-meta {
  display: flex;
  gap: 26px;
  margin-top: 26px;
}

.phone-sign .sign-meta > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.phone-sign .sign-meta small {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--grey-500);
  text-transform: uppercase;
}

.phone-sign .sign-meta span {
  font-size: 13px;
  color: #fff;
}

.phone-sign .sign-desc {
  font-size: 12.5px;
  color: var(--white-70);
  line-height: 1.6;
  margin: 26px 0 0;
}

/* Paywall screen */
.phone-paywall {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 26px;
}

.phone-paywall .paywall-title {
  font-family: var(--font-header);
  font-size: 24px;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.phone-paywall .paywall-sub {
  font-size: 12px;
  color: var(--white-70);
  text-align: center;
  line-height: 1.55;
  margin: 8px 0 20px;
}

.phone-plan {
  border: 1px solid var(--white-15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.phone-plan.selected {
  border: 2px solid #fff;
  background: var(--white-15);
  position: relative;
  margin-bottom: 12px;
}

.phone-plan .plan-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.phone-plan .plan-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.phone-plan .plan-trial {
  font-size: 10px;
  color: var(--white-70);
  margin-top: 2px;
}

.phone-plan .plan-price { text-align: right; }

.phone-plan .plan-price strong {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  display: block;
}

.phone-plan .plan-price small {
  font-size: 10px;
  color: var(--white-70);
}

.phone-paywall .paywall-cta {
  margin-top: auto;
  background: #fff;
  color: #000;
  border-radius: 8px;
  padding: 13px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-paywall .paywall-cta .material-symbols-rounded { font-size: 16px; }

/* ---- Sections ----------------------------------------------------- */
.section { padding: 40px 72px 110px; }

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-header);
  font-size: 46px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}

/* ---- Features ----------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: 16px;
  padding: 30px;
}

.feature-card .material-symbols-rounded {
  font-size: 30px;
  color: var(--violet-400);
}

.feature-card h3 {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin: 22px 0 10px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-70);
  margin: 0;
}

/* ---- How it works ------------------------------------------------- */
.how .section-head { margin-bottom: 70px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}

.how-step { text-align: center; }

.how-step .step-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--violet-400);
  width: 64px;
  height: 64px;
  border: 1px solid var(--white-25);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.how-step h3 {
  font-family: var(--font-header);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 12px;
}

.how-step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--white-70);
  margin: 0 auto;
  max-width: 300px;
}

/* ---- Pricing ------------------------------------------------------ */
.pricing .section-head { margin-bottom: 60px; }

.pricing .section-head h2 { margin-bottom: 14px; }

.pricing-sub {
  font-size: 16px;
  color: var(--white-70);
  margin: 0;
}

.pricing-cards {
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  flex: 1;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: 16px;
  padding: 36px;
}

.price-card.featured {
  background: var(--navy-900);
  border: 2px solid #fff;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.price-card .plan-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-70);
}

.price-card.featured .plan-label { color: #fff; }

.price-card .best-value {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}

.price-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 6px;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 52px;
  color: #fff;
}

.price-card .price-per {
  font-size: 15px;
  color: var(--white-70);
}

.price-card .price-desc {
  font-size: 14px;
  color: var(--white-70);
  line-height: 1.6;
  margin: 0 0 28px;
}

.price-card .plan-cta {
  display: block;
  text-align: center;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px;
  border-radius: 12px;
}

.price-card .plan-cta:hover { color: #fff; border-color: var(--violet-400); }

.price-card .plan-cta.filled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #000;
  border: none;
}

.price-card .plan-cta.filled:hover { color: #000; }

.price-card .plan-cta.filled .material-symbols-rounded { font-size: 16px; }

/* ---- Final CTA ---------------------------------------------------- */
.cta-section { padding: 20px 72px 110px; }

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700) 55%, var(--navy-600));
  padding: 80px 60px;
  text-align: center;
}

.cta-panel h2 {
  font-family: var(--font-header);
  font-size: 54px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.1;
}

.cta-panel p {
  font-size: 18px;
  color: var(--white-70);
  margin: 0 auto 40px;
  max-width: 520px;
}

.cta-panel .store-badges {
  justify-content: center;
  margin-top: 0;
}

/* ---- Footer ------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--divider);
  padding: 64px 72px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-row img { height: 30px; width: auto; }

.footer-brand-row span {
  font-family: var(--font-header);
  font-size: 24px;
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  color: var(--grey-500);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--white-15);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social .material-symbols-rounded {
  font-size: 18px;
  color: var(--white-70);
}

.footer-col-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 20px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
}

.footlink { color: var(--grey-500); transition: color 0.2s ease; }
.footlink:hover { color: #fff; }

/* ---- Legal pages (Terms / Privacy) -------------------------------- */
.legal-hero {
  text-align: center;
  padding: 50px 72px 0;
}

.legal-hero h1 {
  font-family: var(--font-header);
  font-size: 54px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.legal-hero .legal-date {
  font-size: 13px;
  color: var(--grey-500);
  margin-top: 18px;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px 110px;
}

.legal-body h2 {
  font-family: var(--font-header);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  margin: 48px 0 14px;
  line-height: 1.25;
}

.legal-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-70);
  margin: 0 0 18px;
}

.legal-body ul {
  margin: 0 0 18px;
  padding-left: 24px;
  color: var(--white-70);
}

.legal-body li {
  font-size: 15px;
  line-height: 1.75;
  margin: 6px 0;
}

.legal-body a {
  color: var(--violet-400);
}

.legal-body a:hover {
  color: var(--violet-300);
}

@media (max-width: 900px) {
  .legal-hero { padding: 30px 32px 0; }
  .legal-hero h1 { font-size: 40px; }
}

/* ---- Contact form ------------------------------------------------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: 16px;
  padding: 40px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-form label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--white-15);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--grey-500); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet-400);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .form-submit {
  width: 100%;
  margin-top: 4px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.contact-form .form-submit:hover { transform: translateY(-2px); }
.contact-form .form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.contact-form .form-status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-70);
  text-align: center;
  margin: 18px 0 0;
  min-height: 1em;
}

/* Honeypot — hidden from real users */
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .contact-form { padding: 28px; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 1160px) {
  .hero { grid-template-columns: 1fr; }
  .hero-phones { margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { padding: 24px 32px; }
  .nav-links { display: none; }
  .section, .cta-section { padding-left: 32px; padding-right: 32px; }
  .hero { padding: 40px 32px 80px; }
  .hero h1 { font-size: 54px; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .pricing-cards { flex-direction: column; }
  .footer { grid-template-columns: 1fr 1fr; padding: 48px 32px 40px; }
  .hero-phones {
    height: 560px;
    transform: scale(0.85);
    transform-origin: center top;
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 42px; }
  .features-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 36px; }
  .cta-panel { padding: 56px 28px; }
  .cta-panel h2 { font-size: 40px; }
  .store-badges { flex-wrap: wrap; }
  .hero-phones {
    height: 480px;
    transform: scale(0.7);
  }
  .hero-phone-left { transform: translateX(-90px) rotate(-6deg) scale(0.9); }
  .hero-phone-right { transform: translateX(90px) rotate(6deg) scale(0.9); }
  .footer { grid-template-columns: 1fr; }
}
