/* ==========================================================================
   Psychic-Text.com — Modern stylesheet (2026 upgrade)
   Keeps the original identity:
     - starry purple background image  (/images/bac1.jpg)
     - white Georgia-serif "Psychic Text" banner
   Adds: mobile-first layout, soft gradients, cards, readable typography.
   ========================================================================== */

:root {
  --deep:    #1d0f33;   /* deep night purple */
  --plum:    #3a1d5e;
  --violet:  #6a3fb5;
  --lilac:   #b79ce8;
  --gold:    #e8c46a;
  --cream:   #f8f4ff;
  --ink:     #2b2140;
  --card:    rgba(255,255,255,.96);
  --shadow:  0 10px 30px rgba(20,8,45,.35);
  --radius:  14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: Verdana, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--deep);
  background-image: url('/images/bac1.jpg'); /* original site background preserved */
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--deep); padding: .5rem 1rem; z-index: 99;
}
.skip-link:focus { left: 0; }

/* ---------- Header (original banner look preserved) ---------- */
.site-header {
  text-align: center;
  padding: 1.6rem 1rem .4rem;
  background: linear-gradient(180deg, rgba(20,8,45,.55), rgba(20,8,45,.15));
}
.site-brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;  /* original header font */
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  letter-spacing: .5px;
}
.site-brand a { color: #fff; text-decoration: none; }
.site-tagline {
  margin: .15rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--lilac);
  font-size: 1.05rem;
  font-style: italic;
}

/* ---------- Navigation ---------- */
.site-nav { position: relative; max-width: 1100px; margin: 1rem auto 0; padding: 0 1rem; }
.site-nav ul {
  list-style: none; margin: 0; padding: .35rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.site-nav a {
  display: inline-block; padding: .5rem 1rem;
  color: #fff; text-decoration: none; font-size: .92rem; border-radius: 999px;
}
.site-nav a:hover { background: rgba(255,255,255,.16); }
.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--gold), #d9a83f);
  color: var(--deep); font-weight: bold;
}
.site-nav .nav-cta:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--gold), #d9a83f); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 760px) {
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px;
    width: 44px; padding: 10px; margin: 0 auto; cursor: pointer;
    background: rgba(255,255,255,.12); border-radius: 10px;
  }
  .nav-toggle-label span { height: 3px; background: #fff; border-radius: 2px; }
  .site-nav ul { display: none; flex-direction: column; border-radius: var(--radius); margin-top: .5rem; }
  .site-nav ul a { display: block; text-align: center; }
  .nav-toggle:checked ~ ul { display: flex; }
}

/* ---------- Main shell ---------- */
.site-main { padding: 1.6rem 1rem 3rem; }
.content-shell {
  max-width: 1000px; margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 4vw, 2.6rem);
}

/* ---------- Typography (keeps old accent colours) ---------- */
h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #990000;                 /* original h1 colour kept */
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  text-align: center;
  margin-top: .2rem;
  line-height: 1.3;
}
h2 { color: #006699; font-size: 1.35rem; margin-top: 2rem; }  /* original h2 colour kept */
h3 { color: #006699; font-size: 1.1rem; }
p, li { max-width: 72ch; }
a { color: var(--violet); }
a:hover { color: var(--plum); }
.lead { font-size: 1.1rem; color: #4a3a6b; text-align: center; max-width: 60ch; margin: 0 auto 1.4rem; }
img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0 0 1rem; font-size: .84rem; color: #7a6f95; }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: #b0a6c9; }
.breadcrumbs a { color: #7a6f95; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet), var(--plum));
  color: #fff !important;
  text-decoration: none;
  padding: .7rem 1.5rem;
  border: 0; border-radius: 999px;
  font-size: 1rem; font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 18px rgba(106,63,181,.35);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-lg { padding: .95rem 2.2rem; font-size: 1.1rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d9a83f); color: var(--deep) !important; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 2.4rem 0 .6rem;
  padding: 2rem 1.4rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2a1348, #4a2580 60%, #6a3fb5);
  color: #fff;
}
.cta-band h2 { color: var(--gold); margin-top: 0; font-family: Georgia, serif; }
.cta-band p { margin: .4rem auto 1.2rem; color: #e9e1fa; }

/* ---------- Reader cards ---------- */
.reader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }
.reader-card {
  background: linear-gradient(180deg, #fff, #f4eeff);
  border: 1px solid #e4dbf7;
  border-radius: var(--radius);
  padding: 1.2rem 1rem 1.4rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(58,29,94,.10);
}
.reader-card h3 { margin: .6rem 0 .2rem; color: var(--plum); font-family: Georgia, serif; font-size: 1.25rem; }
.reader-avatar {
  width: 84px; height: 84px; margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #9c6fe0, #3a1d5e);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: Georgia, serif; font-size: 2.1rem;
  box-shadow: inset 0 0 0 3px rgba(232,196,106,.55);
}
.reader-style { color: #5b4a80; font-size: .92rem; min-height: 2.6em; margin: .3rem 0; }
.reader-best { font-size: .82rem; color: #7a6f95; margin: 0 0 .9rem; }
.reader-more { display: block; margin-top: .6rem; font-size: .85rem; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.feature-card { background: #faf7ff; border: 1px solid #eee5fb; border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.feature-card h3 { margin-top: .2rem; color: var(--plum); }
.feature-card p { font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-block { margin-top: 2rem; }
.faq-item { background: #f7f3ff; border: 1px solid #e8ddfb; border-radius: 10px; padding: .7rem 1rem; margin-bottom: .6rem; }
.faq-item summary { cursor: pointer; font-weight: bold; color: var(--plum); }
.faq-item p { margin: .6rem 0 .2rem; }

/* ---------- Forms ---------- */
form.pt-form { max-width: 560px; margin: 1rem auto; }
.pt-form label { display: block; font-weight: bold; margin: .9rem 0 .25rem; color: var(--plum); }
.pt-form input[type=text], .pt-form input[type=email], .pt-form input[type=tel],
.pt-form select, .pt-form textarea {
  width: 100%; padding: .65rem .8rem;
  border: 1px solid #cfc2ec; border-radius: 10px;
  font: inherit; background: #fff;
}
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus {
  outline: 2px solid var(--violet); border-color: var(--violet);
}
.pt-form .form-note { font-size: .82rem; color: #7a6f95; }
.form-msg { padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; }
.form-msg.ok    { background: #e8f8ec; border: 1px solid #bfe8cb; color: #1d6b34; }
.form-msg.error { background: #fdeeee; border: 1px solid #f2c7c7; color: #8f2727; }

/* ---------- Chat ---------- */
.chat-wrap { max-width: 640px; margin: 0 auto; }
.chat-header { display: flex; align-items: center; gap: .8rem; padding-bottom: .8rem; border-bottom: 1px solid #e8ddfb; }
.chat-header .reader-avatar { width: 52px; height: 52px; font-size: 1.3rem; margin: 0; }
.chat-header h1 { text-align: left; font-size: 1.3rem; margin: 0; }
.chat-header p { margin: 0; font-size: .85rem; color: #7a6f95; }
.chat-log { min-height: 320px; max-height: 55vh; overflow-y: auto; padding: 1rem .2rem; display: flex; flex-direction: column; gap: .7rem; }
.msg { padding: .7rem 1rem; border-radius: 16px; max-width: 85%; font-size: .97rem; }
.msg.visitor { align-self: flex-end; background: linear-gradient(135deg, var(--violet), var(--plum)); color: #fff; border-bottom-right-radius: 4px; }
.msg.reader  { align-self: flex-start; background: #f3edfd; border: 1px solid #e5d9fa; border-bottom-left-radius: 4px; }
.msg.system  { align-self: center; background: #fff8e8; border: 1px solid #f0e0b0; font-size: .85rem; color: #7a6231; text-align: center; }
.chat-form { display: flex; gap: .5rem; margin-top: .6rem; }
.chat-form textarea { flex: 1; resize: none; padding: .7rem .9rem; border: 1px solid #cfc2ec; border-radius: 12px; font: inherit; min-height: 52px; }
.chat-form button { align-self: flex-end; }
.typing { font-size: .85rem; color: #7a6f95; font-style: italic; padding: .2rem .4rem; display: none; }

/* ---------- Tables / misc ---------- */
.footer-note, .small { font-size: .85rem; color: #7a6f95; }
hr { border: 0; border-top: 1px solid #e8ddfb; margin: 2rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(15,6,32,.92); color: #cfc3e8; padding: 2.2rem 1rem 2.6rem; margin-top: 1rem; }
.footer-cols { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem; }
.footer-col h3 { color: var(--gold); font-family: Georgia, serif; font-size: 1rem; margin: 0 0 .6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a { color: #cfc3e8; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { max-width: 1000px; margin: 1.8rem auto 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; font-size: .8rem; color: #a99bce; }

/* ---------- Landing pages ---------- */
.landing .content-shell { max-width: 760px; }
.landing-hero { text-align: center; padding: .6rem 0 1rem; }
.landing-hero h1 { color: var(--plum); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; font-size: .85rem; color: #6a5c8e; margin: 1rem 0; }
.trust-row span::before { content: "✦ "; color: var(--gold); }

/* Landing pages */
.land-hero { text-align: center; padding: .8rem 0 1.2rem; }
.land-hero h1 { color: var(--plum, #4b2a6b); border: 0; }
.land-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 1.2rem 0; }
.land-point { background: rgba(255,255,255,.92); border: 1px solid #e4dcf0; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(60,20,90,.08); }
.land-point h3 { margin: 0 0 .35rem; color: #990000; font-size: 1.02rem; }
.land-point p { margin: 0; font-size: .95rem; }
.land-steps { padding-left: 1.2rem; }
.land-steps li { margin: .5rem 0; }
.land-quote { background: rgba(255,255,255,.9); border-left: 4px solid #b08cd9; margin: 1.4rem 0; padding: 14px 18px; border-radius: 0 10px 10px 0; font-style: italic; }
.land-quote cite { font-style: normal; font-size: .88rem; color: #666; }
.land-fineprint { font-size: .8rem; color: #665; text-align: center; margin-top: 1.4rem; }
.hero { text-align: center; padding: .6rem 0 1.2rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 1rem 0 .4rem; }
.hero-note { font-size: .85rem; color: #665; }
.btn-large { font-size: 1.12rem; padding: 13px 26px; }
.btn-secondary { display: inline-block; padding: 12px 22px; border: 2px solid #7a4fa3; border-radius: 999px; color: #58306e; background: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; }
.btn-secondary:hover { background: #f3ecfa; }
.reader-avatar-large { width: 84px; height: 84px; font-size: 2rem; }
.reader-profile-card { display: flex; gap: 18px; align-items: center; background: rgba(255,255,255,.92); border: 1px solid #e4dcf0; border-radius: 14px; padding: 16px 18px; margin: 1rem 0 1.4rem; box-shadow: 0 2px 10px rgba(60,20,90,.08); }
.reader-profile-card p { margin: .25rem 0; }
@media (max-width: 560px) { .reader-profile-card { flex-direction: column; text-align: center; } }
