/* Clickastro.com style – mobile app landing */
@font-face {
  font-family: astrovisionregular;
  src: url('../assets/astrovision.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ca-orange: #f7941d;
  --ca-orange-dark: #e8840f;
  --ca-orange-light: #f6ba52;
  --ca-maroon: #aa1e4d;
  --ca-blue: #2f3192;
  --ca-cream: #faf7ef;
  --ca-cream-2: #f3ead8;
  --ca-cream-3: #eee7d7;
  --ca-yellow-bar: #f7e9a3;
  --ca-green: #4caf50;
  --ca-text: #333;
  --ca-muted: #666;
  --ca-border: #e0d8c8;
  --font: "Roboto", "Segoe UI", Arial, sans-serif;
  --font-condensed: "Roboto Condensed", "Roboto", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--ca-text);
  background: var(--ca-cream);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: #4182f8; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--ca-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  width: auto;
}

.header-offer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ca-maroon);
}

.header-offer img {
  height: 18px;
  width: auto;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--ca-cream-3) 100%);
  padding: 20px 16px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.hero-banner {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.hero-banner img {
  width: 100%;
  height: auto;
}

.hero h1 {
  font-family: var(--font-condensed);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ca-blue);
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero h1 .highlight {
  color: var(--ca-orange);
  display: block;
  margin-top: 4px;
}

.hero-lead {
  font-size: 14px;
  color: var(--ca-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.stat-box {
  flex: 1;
  background: #fff;
  border: 1px solid var(--ca-border);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.1rem;
  color: var(--ca-orange);
  font-weight: 700;
}

.stat-box span {
  font-size: 10px;
  color: var(--ca-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-stars {
  display: flex !important;
  justify-content: center;
  gap: 2px;
  margin: 2px 0;
  text-transform: none !important;
}

.stat-stars img {
  display: inline-block;
}

/* ── Guru quote ── */
.celebrity-quotes {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 4px;
}

.celebrity-quotes .guru-quote {
  padding: 0 0 14px;
}

.guru-quote {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guru-quote-reverse {
  flex-direction: row-reverse;
}

.guru-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--ca-orange-light);
  overflow: hidden;
  background: #fff;
}

.guru-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guru-text {
  flex: 1;
  background: #fff;
  border-left: 4px solid var(--ca-orange);
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  font-style: italic;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.guru-quote-reverse .guru-text {
  border-left: none;
  border-right: 4px solid var(--ca-maroon);
  border-radius: 6px 0 0 6px;
}

.guru-name {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--ca-blue);
  margin-bottom: 2px;
}

.guru-role {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--ca-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.celebrity-quotes .guru-avatar img {
  object-position: top center;
}

.celebrity-quotes .guru-quote:first-child .guru-avatar {
  border-color: #c9a227;
}

.celebrity-quotes .guru-quote:last-child .guru-avatar {
  border-color: #e8840f;
}

/* ── Free horoscope form ── */
.free-horo-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 20px;
}

.free-horo-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 18px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-top: 3px solid var(--ca-orange);
}

.free-horo-card h2 {
  font-family: var(--font-condensed);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ca-blue);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.35;
}

.form-field {
  margin-bottom: 14px;
  position: relative;
}

.form-field input {
  width: 100%;
  padding: 10px 0 8px;
  border: none;
  border-bottom: 1px solid #ccc;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ca-text);
  background: transparent;
  outline: none;
}

.form-field input:focus {
  border-bottom-color: var(--ca-orange);
}

.form-field input::placeholder {
  color: #aaa;
}

.field-label {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.gender-row {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 14px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ca-muted);
}

.btn-horo-submit {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  background: linear-gradient(180deg, var(--ca-orange-light) 0%, var(--ca-orange) 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(247,148,29,0.4);
  text-transform: capitalize;
}

.btn-horo-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-loading {
  text-align: center;
  padding: 16px 0 8px;
}

.ld-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #eee;
  border-top-color: var(--ca-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-loading p {
  font-size: 12px;
  color: #999;
}

.no-card-note {
  text-align: center;
  font-size: 12px;
  color: var(--ca-green);
  font-weight: 600;
  margin-top: 12px;
}

.terms-note {
  text-align: center;
  font-size: 10px;
  color: #aaa;
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Product cards ── */
.products-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--ca-border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--ca-blue);
}

.product-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ca-blue);
  margin-bottom: 6px;
}

.product-card p {
  font-size: 13px;
  color: var(--ca-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.product-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ca-orange);
  background: #fff8ee;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Download CTA ── */
.download-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.download-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-top: 4px solid var(--ca-orange);
}

.download-card h2 {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  color: var(--ca-blue);
  margin-bottom: 6px;
}

.download-card p {
  font-size: 13px;
  color: var(--ca-muted);
  margin-bottom: 16px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--ca-orange-light) 0%, var(--ca-orange) 100%);
  color: #fff !important;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(247,148,29,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(247,148,29,0.5);
}

.btn-download:active {
  transform: translateY(1px);
}

.btn-download.is-loading,
.btn-modal-dl.is-loading,
a.logo.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.btn-download img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.dl-note {
  font-size: 11px;
  color: #999;
  margin-top: 10px;
}

/* ── Features ── */
.features-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.section-title {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ca-blue);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ca-orange);
  display: inline-block;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--ca-border);
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ca-cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-icon-svg {
  background: #fff8ee;
}

.feature-icon-svg img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.feature-item strong {
  display: block;
  font-size: 12px;
  color: var(--ca-text);
  margin-bottom: 3px;
}

.feature-item span {
  font-size: 11px;
  color: var(--ca-muted);
  line-height: 1.4;
}

/* ── Zodiac strip ── */
.zodiac-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.zodiac-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.zodiac-scroll::-webkit-scrollbar { display: none; }

.zodiac-item {
  flex: 0 0 64px;
  text-align: center;
}

/* Clickastro official zodiac icon font */
.s_rasi_main {
  font-family: astrovisionregular, sans-serif;
  text-align: center;
  line-height: 1;
  color: #ffaa00;
}

.s_aries::after { content: "J"; }
.s_taurus::after { content: "K"; }
.s_gemini::after { content: "L"; }
.s_cancer::after { content: "M"; }
.s_leo::after { content: "N"; }
.s_virgo::after { content: "O"; }
.s_libra::after { content: "P"; }
.s_scorpio::after { content: "Q"; }
.s_sagittarius::after { content: "R"; }
.s_capricon::after { content: "S"; }
.s_aquarius::after { content: "T"; }
.s_pisces::after { content: "U"; }

.zodiac-item .z-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ca-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 4px;
}

.zodiac-item span {
  font-size: 10px;
  color: var(--ca-muted);
  font-weight: 600;
}

/* ── Consult banner ── */
.consult-banner {
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 0 16px;
}

.consult-inner {
  background: var(--ca-yellow-bar);
  border: 1px solid #e8d080;
  border-radius: 6px;
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #5a4a20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Trust / media ── */
.trust-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 24px;
  text-align: center;
}

.trust-section p {
  font-size: 12px;
  color: var(--ca-muted);
  margin-bottom: 12px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.trust-logos img {
  height: 28px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(20%);
}

/* ── Install steps ── */
.steps-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 28px;
}

.step-card {
  background: #fff;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border-left: 3px solid var(--ca-orange);
}

.step-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ca-blue);
  margin-bottom: 4px;
}

.step-card p {
  font-size: 13px;
  color: var(--ca-muted);
  line-height: 1.5;
}

/* ── Sticky download bar ── */
.sticky-dl {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--ca-border);
  padding: 10px 16px;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  display: none;
}

.sticky-dl.show {
  display: block;
}

.sticky-dl .btn-download {
  padding: 14px;
  font-size: 14px;
}

body.has-sticky {
  padding-bottom: 72px;
}

/* ── Modal ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay[hidden] {
  display: none !important;
}

.modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  animation: modalPop 0.2s ease;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-head {
  background: linear-gradient(135deg, var(--ca-orange) 0%, var(--ca-orange-dark) 100%);
  padding: 16px 20px;
  color: #fff;
  text-align: center;
}

.modal-logo {
  margin: 0 auto 8px;
  filter: brightness(0) invert(1);
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 18px 20px;
}

.modal-body p {
  font-size: 14px;
  color: var(--ca-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.modal-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.modal-btns {
  display: flex;
  gap: 10px;
  padding: 4px 20px 20px;
}

.modal-btns button {
  flex: 1;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-modal-cancel {
  background: #f5f5f5;
  color: #888;
  border: 1px solid #e0e0e0 !important;
}

.btn-modal-dl {
  background: var(--ca-orange);
  color: #fff;
  box-shadow: 0 2px 6px rgba(247,148,29,0.4);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 200;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 481px) {
  body { background: #e8e4dc; }
}
