/* ==========================================================================
   Product pages for the language tools, legacy PROPHET editions and
   MySoulmate (aksharamDes.html, thoolika2005Des.html, javaAstroDes.html...).
   Builds on home.css and prophet.css: <main class="home prophet product t-...">.
   ========================================================================== */

/* home.css scopes the product tones to elements inside .home; here they sit on <main> itself */
.product.t-prophet { --tone: #5b5bd6; --tone-soft: #eef0ff; }
.product.t-thoolika { --tone: #15803d; --tone-soft: #e7f6ec; }
.product.t-scribemagic { --tone: #0e7490; --tone-soft: #e0f4f8; }
.product.t-soulmate { --tone: #db2777; --tone-soft: #fde8f1; }
.product.t-404 { --tone: #4f46e5; --tone-soft: #eef0ff; }

.product {
  --accent: var(--tone, #4f46e5);
  --grad: linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, #fff) 0%, var(--accent) 100%);
  --grad-wide: linear-gradient(120deg, color-mix(in srgb, var(--accent) 70%, #fff) 0%, var(--accent) 50%, color-mix(in srgb, var(--accent) 70%, #000) 100%);
}

.product .h-hero::before {
  background:
    radial-gradient(42rem 32rem at 88% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    radial-gradient(34rem 26rem at 6% 96%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%);
}

.product .h-hero {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.home.product .h-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem) !important;
}

.product .h-btn--primary,
.product .h-btn--primary:visited {
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}

.product .p-subnav-links a:hover,
.product .p-subnav-links a.is-current {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.product .p-faq summary::after {
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat,
    var(--tone-soft);
}

.product .h-cta {
  background: var(--grad-wide);
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 80%, transparent);
}

.product .h-cta .h-btn--light {
  color: var(--accent);
}

.product .p-gallery-langs button[aria-selected="true"] {
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 85%, transparent);
}

/* ---------- hero visual: product art in a soft card ---------- */
.pr-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  animation: h-rise 1s var(--ease) 0.15s both;
}

.pr-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, #fff 0%, var(--tone-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}

.pr-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 380px;
  border-radius: 18px;
  filter: drop-shadow(0 24px 30px rgba(15, 23, 42, 0.2));
}

.pr-visual--wide img {
  max-height: 300px;
}

.pr-visual .h-float {
  bottom: -1rem;
  right: -0.5rem;
}

.pr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.pr-price {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: #15803d;
  background: #e7f6ec;
  border-radius: 999px;
}

.product .p-meta .bi {
  color: var(--accent);
}

/* ---------- prose ---------- */
.pr-prose {
  max-width: 50rem;
  margin-inline: auto;
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text);
}

.pr-prose > * + * {
  margin-top: 1.1rem !important;
}

.pr-prose strong {
  font-weight: 600;
  color: var(--ink);
}

.pr-prose a:not(.h-btn),
.pr-prose a:not(.h-btn):visited {
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.home .pr-prose h3 {
  margin-top: 2rem !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.pr-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

/* ---------- key features checklist ---------- */
.pr-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pr-check {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.35rem;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pr-check:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pr-check > .bi {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  color: var(--accent);
  background: var(--tone-soft);
  border-radius: 10px;
}

.pr-check strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- figures (screens, keyboard layouts, news clippings) ---------- */
.pr-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pr-figs--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pr-figs--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
  margin-inline: auto;
}

.pr-fig {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pr-fig:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pr-fig button {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 1.25rem;
  background: var(--soft);
  border: 0;
  cursor: zoom-in;
}

.pr-fig img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
}

.pr-fig figcaption {
  padding: 0.9rem 1.2rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.pr-fig figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.pr-fig--plain button {
  padding: 0;
}

/* ---------- two-column text + picture ---------- */
.pr-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.pr-split--top {
  align-items: start;
}

.pr-split .pr-prose {
  margin: 0;
}

/* ---------- download groups ---------- */
.pr-dl-group + .pr-dl-group {
  margin-top: 2rem;
}

.home .pr-dl-group h3 {
  margin-bottom: 0.9rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.pr-dl-group .p-zips {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
}

.pr-files {
  display: grid;
  gap: 0.75rem;
}

.pr-file,
.pr-file:visited {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pr-file:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pr-file img,
.pr-file > .bi {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.pr-file > .bi {
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--accent);
  background: var(--tone-soft);
  border-radius: 12px;
}

.pr-file strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
}

.pr-file small {
  font-size: 0.85rem;
  color: var(--muted);
}

.pr-file .bi-download {
  margin-left: auto;
  font-size: 1.15rem;
  color: var(--accent);
}

/* smaller phone screenshots for the older mobile editions */
.pr-gallery-small {
  --shot-w: 190px;
}

.pr-gallery-small .p-shot img {
  border-radius: 12px;
  box-shadow: 0 14px 26px -14px rgba(15, 23, 42, 0.45);
  filter: none;
}

/* ---------- 404 ---------- */
.pr-404 {
  font-family: var(--font-head);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--grad-wide);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pr-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.pr-link,
.pr-link:visited {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pr-link:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.pr-link > .bi {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  color: var(--accent);
  background: var(--tone-soft);
  border-radius: 12px;
}

.pr-link strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
}

.pr-link small {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .pr-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pr-visual {
    max-width: 380px;
  }
}

@media (max-width: 767.98px) {
  .pr-checks,
  .pr-figs--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .pr-fig button {
    padding: 0.75rem;
  }

  .pr-gallery-small {
    --shot-w: 160px;
  }
}

/* ---------- small helpers used by the product pages ---------- */
.pr-checks--1 {
  grid-template-columns: minmax(0, 1fr);
}

.pr-gap {
  height: 2rem;
}

.home .pr-card-title {
  margin-bottom: 1rem !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
}

.pr-card .p-list {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.pr-card-price {
  margin-bottom: 1rem !important;
}

.pr-note-line {
  margin-top: 1rem !important;
  font-size: 0.92rem;
  color: var(--muted);
}

.pr-note-line strong {
  color: var(--ink);
}

.home .pr-note {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  line-height: 1.6;
  background: var(--tone-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
}

.pr-note > .bi {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.home .pr-subhead {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.pr-pay {
  margin-top: 1.1rem !important;
  font-size: 0.88rem;
  color: var(--muted);
}

.pr-pay strong {
  color: var(--ink);
}

.pr-float-logo {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 36px;
  object-fit: contain;
}

.product .p-visual--phone .p-visual-main {
  width: 54%;
}

.product .p-visual--phone .p-visual-main img {
  border-radius: 30px;
}

.product .p-visual-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, color-mix(in srgb, var(--accent) 10%, transparent) 45%, transparent 70%);
}

.product .p-zips a:hover {
  border-color: var(--accent);
}

.product .p-zips .bi {
  color: var(--accent);
}

.pr-404-copy {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.pr-404-copy .h-hero-lead {
  margin-inline: auto;
}

.pr-404-copy .pr-hero-actions {
  justify-content: center;
}

.home .pr-404-copy h1 {
  margin-top: 0.5rem !important;
}

@media (max-width: 575.98px) {
  .product .p-older {
    padding: 1.25rem;
  }
}

.pr-file > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- payment confirmation ---------- */
.product.t-village { --tone: #0e8fa3; --tone-soft: #e3f6f8; }

.pr-paid {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.pr-paid-icon {
  position: relative;
  width: 96px;
  margin-bottom: 1rem;
}

.pr-paid-icon img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.pr-paid-check {
  position: absolute;
  right: -10px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  color: #fff;
  background: #16a34a;
  border: 3px solid #fff;
  border-radius: 50%;
}

.home .pr-paid h1 {
  margin: 0.6rem 0 0.75rem !important;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem) !important;
}

.pr-paid .h-hero-lead {
  margin-bottom: 1.25rem !important;
}

.pr-paid-contact {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--soft);
  border-radius: 20px;
}

.pr-paid-contact .pr-hero-actions {
  justify-content: center;
}

.pr-paid-name strong {
  color: var(--ink);
}
