/* AtmaJyoti - public marketing & content pages (landing, learn, faq, about).
   Uses the app theme variables defined in style.css (--bg, --ink, --accent,
   --accent-dark, --gold, --card). */

/* ---- buttons ---- */
.primary.big, .ghost.big { font-size: 1.05rem; padding: 13px 26px; border-radius: 10px; font-weight: 600; display: inline-block; }
.primary.big { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(122,31,43,.7); }
.primary.big:hover { background: var(--accent-dark); text-decoration: none; }
.ghost.big:hover { text-decoration: none; }

/* ---- hero ---- */
.hero { text-align: center; padding: 56px 18px 40px; max-width: 880px; margin: 0 auto;
  background: radial-gradient(120% 120% at 50% -10%, #fffdf7 0%, var(--bg) 70%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; color: var(--accent-dark); margin: 0 0 16px; letter-spacing: .2px; }
.hero .lead { font-size: 1.18rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 26px 0 14px; }

.lead { font-size: 1.12rem; line-height: 1.65; color: #5b463a; max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---- bands / sections ---- */
.band { max-width: 1040px; margin: 0 auto; padding: 40px 18px; }
.band > h2 { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--accent-dark); margin: 0 0 8px; }
.band.alt { background: linear-gradient(180deg, #fffaf0, #fbf1dd); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); max-width: none; }
.band.alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.cta-final { text-align: center; }

/* ---- feature grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 22px; }
.feature { background: var(--card); border: 1px solid var(--gold); border-radius: 16px; padding: 22px 20px; box-shadow: 0 18px 44px -30px rgba(122,31,43,.5); }
.feature h3 { margin: 0 0 8px; color: var(--accent); font-size: 1.15rem; }
.feature p { margin: 0; color: #5b463a; font-size: .98rem; line-height: 1.55; }
a.feature.link { display: block; color: inherit; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
a.feature.link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 22px 50px -28px rgba(122,31,43,.7); text-decoration: none; }
.readmore { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: .92rem; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 26px 0; }
.step { background: var(--card); border: 1px solid var(--gold); border-radius: 16px; padding: 24px 20px; text-align: center; }
.step .num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.25rem; margin-bottom: 12px; box-shadow: 0 0 0 3px rgba(200,160,74,.5); }
.step h3 { margin: 0 0 8px; color: var(--accent-dark); }
.step p { margin: 0; color: #5b463a; font-size: .96rem; line-height: 1.55; }

/* ---- FAQ ---- */
.faqlist { max-width: 820px; margin: 22px auto 0; }
.faqitem { background: var(--card); border: 1px solid var(--gold); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faqitem summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); padding: 12px 0; list-style: none; font-size: 1.04rem; }
.faqitem summary::-webkit-details-marker { display: none; }
.faqitem summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faqitem[open] summary::after { content: "\2013"; }
.faqitem p { margin: 0 0 14px; color: #5b463a; line-height: 1.6; }

/* ---- article / content pages ---- */
.crumbs { max-width: 820px; margin: 18px auto 0; font-size: .9rem; color: #8a7a6a; }
.crumbs a { color: var(--accent); }
.article { max-width: 760px; margin: 0 auto; padding: 6px 18px 30px; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--accent-dark); line-height: 1.15; margin: 12px 0 6px; }
.article h2 { font-size: 1.45rem; color: var(--accent); margin: 30px 0 10px; }
.article h3 { font-size: 1.15rem; color: var(--accent-dark); margin: 20px 0 8px; }
.article p, .article li { line-height: 1.72; color: #43342a; font-size: 1.04rem; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .answer { background: linear-gradient(180deg, #fffaf0, #fbf1dd); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; padding: 16px 18px; font-size: 1.1rem; }
.cta-inline { margin: 34px 0 10px; }
.related { max-width: 1040px; margin: 10px auto 40px; padding: 0 18px; }
.related h2 { text-align: center; color: var(--accent-dark); }

@media (max-width: 560px) {
  .hero { padding: 38px 16px 28px; }
  .band { padding: 30px 16px; }
}

/* Home-page subscription options (Try / Monthly / Yearly) — stacked plan cards */
.jv-plan-opts { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 4px; }
.jv-plan-opts .popt {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 14px; row-gap: 1px;
  background: linear-gradient(180deg, #fffdf8, #fdf4e3);
  border: 1px solid var(--gold); border-radius: 14px; padding: 13px 16px;
  box-shadow: 0 8px 22px -18px rgba(122,31,43,.45); position: relative;
}
.jv-plan-opts .popt.best { border-width: 2px; box-shadow: 0 12px 30px -16px rgba(122,31,43,.55); }
.jv-plan-opts .popt.best::after {
  content: "Best value"; position: absolute; top: -9px; right: 14px;
  background: var(--accent); color: #fff5e6; font-size: .62rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; padding: 2px 9px; border-radius: 999px;
}
.jv-plan-opts .pnm { grid-column: 1; font-weight: 700; color: var(--accent-dark); font-size: 1.06rem; }
.jv-plan-opts .ppx { grid-column: 1; font-size: 1.22rem; font-weight: 800; color: var(--accent); line-height: 1.15; }
.jv-plan-opts .ppx small { font-size: .7rem; font-weight: 600; color: #8a7a6a; }
.jv-plan-opts .pdesc { grid-column: 1; font-size: .8rem; color: #6b574a; }
.jv-plan-opts .popt a {
  grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end;
  white-space: nowrap; min-width: 138px; text-align: center;
}
.jv-plan-note { text-align: center; font-size: .82rem; color: #6b574a; margin: 8px 0 0; }
@media (max-width: 380px) {
  .jv-plan-opts .popt { grid-template-columns: 1fr; }
  .jv-plan-opts .popt a { grid-column: 1; grid-row: auto; justify-self: stretch; margin-top: 8px; }
  .jv-plan-opts .popt.best::after { right: 50%; transform: translateX(50%); }
}

/* Combined subscribe page */
.sub-summary { margin: 8px 0 6px; }
.sub-summary .sub-price { font-size: 2.1rem; font-weight: 800; color: var(--accent); }
.sub-summary .sub-per { font-size: 1rem; color: #8a7a6a; font-weight: 600; }

/* Contact / messages */
.msg-item { border-top: 1px solid var(--gold); padding: 12px 0; }
.msg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg-body { white-space: pre-wrap; color: #43342a; margin: 6px 0; }
.msg-reply { background: linear-gradient(180deg,#fffaf0,#fbf1dd); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 8px 0; }
.msg-reply p { white-space: pre-wrap; margin: 4px 0 0; }
.msg-card.unreplied { border-left: 4px solid var(--accent); }
.reply-form { margin-top: 10px; }
.reply-form textarea, .card form textarea { width: 100%; box-sizing: border-box; }

/* Saturn-transit / Panoti date cells: keep the whole date on ONE line (never break
   at a hyphen), with the time on a smaller second line. */
td.d-start, td.d-end { white-space: nowrap; font-size: .72rem; line-height: 1.25; vertical-align: top; }
td.d-start .small, td.d-end .small { font-size: .64rem; }

/* Free-trial banner on the register page */
.trial-banner { background: linear-gradient(180deg, #f3f9ec, #e9f4dc); border: 1px solid #b9d39a;
  color: #3d5a22; border-radius: 10px; padding: 9px 12px; font-size: .86rem; margin: 2px 0 12px; }

/* ------------------------------------------------------------------ */
/* Admin tab bar                                                       */
/* ------------------------------------------------------------------ */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px;
  border-bottom: 1px solid var(--gold); padding-bottom: 10px; }
.admin-tabs a { display: inline-block; padding: 7px 14px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--accent-dark);
  background: var(--card); border: 1px solid var(--gold); text-decoration: none;
  transition: background .12s, color .12s, border-color .12s; }
.admin-tabs a:hover { background: #fbf1dd; border-color: var(--accent); text-decoration: none; }
.admin-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 8px 18px -10px rgba(122,31,43,.7); }
.admin-tabs a.on:hover { background: var(--accent-dark); color: #fff; }

/* Two-column layout for analytics cards (collapses on mobile) */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

/* Analytics — CSS bar chart (last 30 days) */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px;
  padding-top: 8px; overflow-x: auto; }
.bars .bar-col { flex: 1 1 0; min-width: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; height: 100%; }
.bars .bar { width: 70%; min-height: 2px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.bars .bar-col:hover .bar { background: var(--gold); }
.bars .bar-lbl { margin-top: 5px; font-size: .62rem; color: #8a7a6a; white-space: nowrap; }

/* Analytics — calendar heatmap (~13 weeks) */
.heat { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column;
  grid-auto-columns: 14px; gap: 3px; overflow-x: auto; padding: 4px 0; }
.heat .cell { width: 14px; height: 14px; border-radius: 3px; background: #efe3cf; }
.heat .cell.i0 { background: #f2ead9; }
.heat .cell.i1 { background: #e7c9b0; }
.heat .cell.i2 { background: #cf8f6e; }
.heat .cell.i3 { background: #a8453f; }
.heat .cell.i4 { background: var(--accent-dark); }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.heat-legend .cell { display: inline-block; width: 13px; height: 13px; border-radius: 3px; }

/* Analytics — inline bars inside the top-countries table */
.barcell { width: 40%; }
.ibar { display: inline-block; height: 9px; min-width: 2px; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold)); }
td.mono, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .85rem; }

/* ── Muhurta moment: full elements table + auspicious-yoga chips ── */
.mu-elem-card h3 { color: var(--accent-dark); margin: 0 0 8px; font-size: 1.05rem;
  border-bottom: 1px solid var(--gold); padding-bottom: 6px; }
.mu-elem-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mu-elem-table tr { border-bottom: 1px solid #f0e6d2; }
.mu-elem-table tr:last-child { border-bottom: 0; }
.mu-elem-table th { text-align: left; font-weight: 600; color: var(--accent-dark);
  padding: 6px 12px 6px 0; white-space: nowrap; vertical-align: top; width: 42%; }
.mu-elem-table td.mu-elem-val { padding: 6px 0; color: var(--ink); }
.mu-elem-table td.mu-elem-val.good { color: #2e7d32; font-weight: 600; }
.mu-elem-table td.mu-elem-val.bad { color: #c0392b; font-weight: 600; }

.mu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mu-chip { display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  border: 1px solid var(--gold); background: var(--card); color: var(--accent-dark);
  line-height: 1.3; }
/* Active auspicious yoga — highlighted green */
.mu-chip.on { background: #e9f7ef; border-color: #bfe6cd; color: #2e7d32; }
/* Inactive auspicious yoga — muted / greyed */
.mu-chip.off { background: #f6f1e7; border-color: #e6dcc4; color: #9a8f7a;
  font-weight: 500; opacity: .75; }
/* Active blemish / inauspicious yoga — red */
.mu-chip.bad { background: #fdecea; border-color: #f3c9c4; color: #c0392b; }
