/* ==========================================================================
   Shared layout for interior marketing pages:
   Features, How to Setup, Blog, About, Contact
   ========================================================================== */

/* ---- Generic page hero ----------------------------------------------------- */
.pg-hero {
  position: relative;
  padding-top: 48px;
  padding-bottom: 20px;
  overflow: hidden;
}

/* soft watercolour wash behind the hero copy, echoing the homepage hero's blob
   without reproducing its full illustration - a light backdrop, not a feature */
.pg-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 760px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(123, 63, 242, .10), rgba(255, 153, 51, .08) 60%, transparent 75%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.pg-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pg-hero__pill { background: var(--pink-badge); color: #7A4A12; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.pg-hero__pill svg { width: 15px; height: 15px; }

.pg-hero__title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--ink);
}

.pg-hero__title-mark {
  display: block;
  width: 132px;
  height: 10px;
  margin: 2px auto 0;
  color: var(--pink);
}

.pg-hero__sub {
  color: var(--body);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 640px;
}
.pg-hero__sub strong { color: var(--ink); }

.pg-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* small hand-drawn marks flanking the hero, the same decorative vocabulary as
   the homepage's .doodle marks - subtle, never covering real content */
.pg-hero .doodle { position: absolute; pointer-events: none; z-index: 0; opacity: .8; }
.pg-hero__doodle-star  { top: 14px;  left: 6%;  width: 34px; color: var(--indigo); }
.pg-hero__doodle-dash  { bottom: 8px; right: 7%; width: 56px; color: var(--pink); }
@media (max-width: 760px) { .pg-hero__doodle-star, .pg-hero__doodle-dash { display: none; } }

/* ---- Torn-paper band section, same tear mechanism as the homepage's .features
   strip - used to break up long all-white stretches on interior pages -------- */
.pg-band {
  position: relative;
  background: var(--band);
  padding: 58px 0;
  margin: 10px 0;
}
.pg-band__tear {
  position: absolute;
  left: 0;
  width: 100%;
  height: 22px;
  color: var(--white);
}
.pg-band__tear--top { top: -1px; color: var(--paper); }
.pg-band__tear--bottom { bottom: -1px; transform: scaleY(-1); }

/* ---- Generic centered section head ----------------------------------------- */
.pg-section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.pg-section-head__pill { margin-bottom: 14px; }
.pg-section-head__title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ink); margin-bottom: 10px; }
.pg-section-head__sub { color: var(--body); font-size: var(--fs-sm); line-height: 1.65; }

/* ---- Step list (How to Setup) - a vertical timeline using the same disc+icon
   vocabulary as the homepage's "How PRISMITA Works" steps, just stacked ------ */
.pg-steps { position: relative; display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }

.pg-step { position: relative; display: flex; gap: 22px; padding: 26px 0; }

/* dashed connector running down through every disc except the last */
.pg-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 74px;
  bottom: -4px;
  width: 0;
  border-left: 2px dashed var(--line);
}

.pg-step__num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card-soft);
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 20px;
}
.pg-step__num svg { width: 22px; height: 22px; }

/* colour rotation matching .step__disc's palette on the homepage */
.pg-step:nth-child(5n+1) .pg-step__num { background: #FBD9E7; color: #C2185B; }
.pg-step:nth-child(5n+2) .pg-step__num { background: #CFE0FB; color: var(--purple); }
.pg-step:nth-child(5n+3) .pg-step__num { background: #F7F07A; color: #8A7B00; }
.pg-step:nth-child(5n+4) .pg-step__num { background: #DED2FB; color: #6C3BF4; }
.pg-step:nth-child(5n+5) .pg-step__num { background: var(--lime); color: #15803D; }

.pg-step__body { flex: 1; padding-bottom: 4px; }
.pg-step__eyebrow {
  display: inline-block;
  font-size: var(--fs-xxs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--pink-hover);
  margin-bottom: 4px;
}
.pg-step__title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.pg-step__text { color: var(--body); font-size: var(--fs-sm); line-height: 1.7; margin: 0; }
.pg-step__text code {
  background: var(--band);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .92em;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
.pg-step__note {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--card-soft);
  border-radius: 10px;
  font-size: var(--fs-xs);
  color: var(--body);
}

/* ---- Blog ------------------------------------------------------------------- */
.pg-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pg-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.pg-blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--pink); }

/* thin accent bar along the top, coloured per card so a 3-up grid reads like
   the homepage's varied icon-ring palette rather than one flat repeated card */
.pg-blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--pink);
}
.pg-blog-card:nth-child(3n+2)::before { background: var(--indigo); }
.pg-blog-card:nth-child(3n+3)::before { background: var(--lime); }

.pg-blog-card__tag {
  display: inline-flex;
  align-self: flex-start;
  height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--pink-soft);
  color: var(--pink-hover);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pg-blog-card__title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 10px; line-height: 1.35; }
.pg-blog-card__excerpt { font-size: var(--fs-xs); color: var(--body); line-height: 1.65; margin: 0 0 16px; flex: 1; }
.pg-blog-card__meta { font-size: var(--fs-xxs); color: var(--body-2); display: flex; align-items: center; gap: 8px; }
.pg-blog-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--pink-hover); margin-top: 16px; }
.pg-blog-card__link svg { width: 15px; height: 15px; }

/* ---- Long-form article content ---------------------------------------------- */
.pg-article { max-width: 740px; margin: 0 auto; }
.pg-article h2 { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin: 40px 0 14px; }
.pg-article h2:first-child { margin-top: 0; }
.pg-article h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; }
.pg-article p { font-size: var(--fs-body); line-height: 1.8; color: var(--body); margin: 0 0 16px; }
.pg-article ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding-left: 0; }
.pg-article ul li { list-style: none; padding-left: 26px; position: relative; font-size: var(--fs-sm); color: var(--body); line-height: 1.6; }
.pg-article ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.pg-article strong { color: var(--ink); }
.pg-article blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--pink);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
  font-size: var(--fs-sm);
  color: var(--ink);
  font-style: italic;
}

/* ---- Contact ------------------------------------------------------------------ */
.pg-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }

.pg-contact-card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--card-soft);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pg-contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.pg-contact-card__icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--indigo);
  box-shadow: 0 0 0 6px rgba(255, 153, 51, .12), var(--shadow-sm);
}
.pg-contact-card__icon svg { width: 22px; height: 22px; }

.pg-contact-grid > :nth-child(1) .pg-contact-card__icon { box-shadow: 0 0 0 6px #EFE7FE, var(--shadow-sm); color: #6C3BF4; }
.pg-contact-grid > :nth-child(2) .pg-contact-card__icon { box-shadow: 0 0 0 6px #FDE3EE, var(--shadow-sm); color: #F5197E; }
.pg-contact-grid > :nth-child(3) .pg-contact-card__icon { box-shadow: 0 0 0 6px #E1ECFD, var(--shadow-sm); color: var(--indigo); }
.pg-contact-card__title { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.pg-contact-card__text { font-size: var(--fs-xs); color: var(--body); line-height: 1.6; margin: 0 0 10px; }
.pg-contact-card a.pg-contact-card__link { font-size: var(--fs-xs); font-weight: 700; color: var(--pink-hover); }

.pg-contact-hours {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line);
}
.pg-contact-hours h3 { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.pg-contact-hours p { font-size: var(--fs-xs); color: var(--body); margin: 0; line-height: 1.6; }

/* ---- Audience intent cards (used on Features page) --------------------------- */
.pg-intent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pg-intent-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  overflow: hidden;
}
.pg-intent-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: currentColor;
  opacity: .06;
  pointer-events: none;
}
.pg-intent-card:nth-child(1) { color: var(--indigo); }
.pg-intent-card:nth-child(2) { color: var(--pink-hover); }
.pg-intent-card__pill { margin-bottom: 14px; }
.pg-intent-card__title { position: relative; font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }

/* ---- Features comparison table: long sentences, so wrap instead of the
   pricing table's single-line / horizontal-scroll treatment ----------------- */
.pr-compare__table--wrap {
  min-width: 0;
  table-layout: fixed;
}
/* matches the base rules' own (tbody td / thead th) specificity so these
   actually beat the nowrap they're overriding, instead of losing on specificity
   despite loading later */
.pr-compare__table--wrap thead th,
.pr-compare__table--wrap tbody td {
  white-space: normal;
  line-height: 1.5;
}
.pr-compare__table--wrap .pr-compare__rowhead { width: 22%; }
.pr-compare__table--wrap thead th:not(.pr-compare__rowhead),
.pr-compare__table--wrap tbody td:not(.pr-compare__rowhead) {
  width: 39%;
  text-align: left;
}
.pr-compare__table--wrap thead th:not(.pr-compare__rowhead) { text-align: center; }

/* ---- Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pg-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-contact-grid { grid-template-columns: 1fr; }
  .pg-intent-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pr-compare__table--wrap { table-layout: auto; min-width: 560px; }
  .pr-compare__table--wrap .pr-compare__rowhead,
  .pr-compare__table--wrap th:not(.pr-compare__rowhead),
  .pr-compare__table--wrap td:not(.pr-compare__rowhead) {
    width: auto;
  }
}

@media (max-width: 640px) {
  .pg-hero__title { font-size: 30px; }
  .pg-blog-grid { grid-template-columns: 1fr; }
  .pg-step { gap: 14px; }
  .pg-step__num { width: 38px; height: 38px; font-size: 16px; }
  .pg-step__num svg { width: 18px; height: 18px; }
  .pg-step:not(:last-child)::after { left: 18px; top: 60px; }
  .pg-article h2 { font-size: 22px; }
  .pg-band { padding: 40px 0; }
}

/* ---- Contact form (Web3Forms) ------------------------------------------------ */
.cf-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: start;
  margin: 40px 0 36px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--card-soft);
  border: 1.5px solid #DCE5F5;
}
.cf-intro .pill { gap: 8px; margin-bottom: 14px; background: var(--white); color: var(--blue); border: 1.5px solid #D5DFF2; }
.cf-intro .pill svg { width: 16px; height: 16px; flex: none; }
.cf-title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.05; color: var(--ink); margin: 0 0 12px; }
.cf-sub { font-size: var(--fs-body); color: var(--body); line-height: 1.7; margin: 0; }
.cf {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 40px -26px rgba(15, 23, 42, .35);
}
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.cf-field b { color: var(--pink-hover); }
.cf-field em { font-style: normal; font-weight: 400; color: var(--body-2); font-size: var(--fs-xs); }
.cf-full { grid-column: 1 / -1; }
.cf input, .cf select, .cf textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  background: #FAFBFE;
  border: 1.5px solid #D9E0EC;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cf input, .cf select { height: 50px; }
.cf textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 51, 160, .12); }
.cf input:user-invalid, .cf textarea:user-invalid { border-color: #E5484D; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-send { margin-top: 20px; width: 100%; height: 54px; font-size: 16px; }
.cf-send[disabled] { opacity: .7; cursor: progress; }
.cf-note { margin: 12px 0 0; text-align: center; font-size: var(--fs-xs); color: var(--body-2); }
.cf-status { margin-top: 16px; font-size: var(--fs-sm); line-height: 1.5; }
.cf-status:empty { display: none; }
.cf-status.is-ok { padding: 12px 14px; border-radius: 12px; background: #EAF8EF; color: #067647; border: 1px solid #ABEFC6; }
.cf-status.is-err { padding: 12px 14px; border-radius: 12px; background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }
@media (max-width: 900px) {
  .cf-wrap { grid-template-columns: 1fr; gap: 22px; padding: 22px 16px; }
  .cf { padding: 20px 16px; }
  .cf-title { font-size: 34px; }
}
@media (max-width: 560px) {
  .cf-grid { grid-template-columns: 1fr; }
}
