/*
 * Public site pages (about, contact, features, FAQ, privacy, terms): the landing's premium look on inner pages.
 * Loaded after landing.css and reuses its tokens and blocks (.lp-nav, .lp-card, .lp-faq, .lp-cta, .lp-footer);
 * only what the inner pages add lives here. Shared markup: templates/fragments/site.html.
 */

/* ---------- Short hero ---------- */
.sp-hero { height: auto; padding: 152px var(--lp-gutter) 96px; }
.sp-hero .lp-hero-bg {
  background:
    radial-gradient(420px 220px at calc(50% - 300px) 40px, rgba(45, 212, 191, .26), transparent 70%),
    radial-gradient(240px 160px at calc(50% + 420px) 220px, rgba(251, 191, 36, .14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 80px 80px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.sp-hero-content {
  position: relative; z-index: 2; max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.sp-hero-title { font: 700 52px/1.3 var(--font-family-base); color: #fff; text-wrap: balance; }
.sp-hero-desc { max-width: 640px; font-size: 18px; line-height: 1.7; color: var(--lp-teal-100); }
.sp-hero-content > * { animation: lp-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.sp-hero-content > :nth-child(2) { animation-delay: .08s; }
.sp-hero-content > :nth-child(3) { animation-delay: .16s; }

/* The current page in the nav */
.lp-nav-links a.is-current { color: #fff; position: relative; }
.lp-nav-links a.is-current::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--lp-teal-400);
}

/* ---------- Sections ---------- */
.sp-section { padding-block: 96px; }
.sp-tinted { background: var(--color-bg-canvas, #F1F5F4); }
.sp-h2 { font-size: 40px; text-wrap: balance; }
.sp-cta { padding-top: 96px; }
.sp-tinted + .sp-cta { padding-top: 96px; }

.sp-grid { max-width: var(--lp-max); margin: 0 auto; display: grid; gap: 20px; }
.sp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-card { padding: 28px; }
.sp-card h3 { font-size: 18px; }
.sp-role .lp-ic { background: #FEF3C7; color: #B45309; }

/* User guides (/guides): three to a row, the last row centred */
.sp-guides { max-width: var(--lp-max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.sp-guides > .sp-guide { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; }
.sp-guide-ill { display: block; width: 100%; height: auto; margin-bottom: 4px; }
.sp-guide-dl { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-guide-dl .lp-btn { padding: 12px 18px; font-size: 14px; }
.sp-guide-alt { color: var(--lp-teal-700); border-color: var(--lp-border); background: #fff; }
.sp-guide-alt:hover { border-color: var(--lp-teal-400); }

/* About: goals */
.sp-goals {
  max-width: 900px; margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.sp-goals .lp-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 24px; }
.sp-goals .lp-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sp-goals p { font-size: 15px; line-height: 1.7; color: var(--lp-text); }
.sp-goal-num {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--lp-teal-400), var(--lp-teal-500)); color: var(--lp-ink);
  font-weight: 700;
}

/* FAQ page: the landing block with a plain side heading */
.sp-faq .lp-faq-side .lp-h2 { white-space: normal; }

/* ---------- Contact ---------- */
.sp-contact {
  display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start;
  max-width: calc(var(--lp-max) + 2 * var(--lp-gutter)); margin: 0 auto;
}
.sp-contact-info { display: flex; flex-direction: column; gap: 16px; }
.sp-reach { flex-direction: row; align-items: flex-start; gap: 16px; padding: 24px; }
.sp-reach h3 { font-size: 16px; margin-bottom: 6px; }
.sp-reach p { font-size: 14px; line-height: 1.7; color: var(--lp-text-2); }
.sp-reach a { color: var(--lp-teal-700); font-weight: 500; }
.sp-reach a:hover { text-decoration: underline; }
.sp-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.sp-form {
  display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 24px;
  background: #fff; border: 1px solid var(--lp-border); box-shadow: 0 24px 40px -16px rgba(15, 23, 41, .12);
}
.sp-form-title { font-size: 24px; font-weight: 700; line-height: 1.4; }
.sp-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sp-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--lp-text); }
.sp-field input, .sp-field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--lp-border); background: var(--lp-subtle);
  font: 400 15px/1.5 var(--font-family-base); color: var(--lp-text); resize: vertical;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.sp-field input:focus, .sp-field textarea:focus {
  outline: none; background: #fff; border-color: var(--lp-teal-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15);
}
[dir="rtl"] .sp-field input[dir="ltr"] { text-align: right; }
.sp-form-status { min-height: 1.5em; font-size: 14px; color: var(--lp-text-2); }
.sp-form-status.is-ok { color: #15803D; font-weight: 600; }
.sp-form-status.is-error { color: #B91C1C; font-weight: 600; }
.sp-submit { align-self: flex-start; }
.sp-submit[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Privacy / terms: long English text ---------- */
.sp-prose {
  max-width: 880px; margin: 0 auto; padding: 56px 64px; border-radius: 24px;
  background: #fff; border: 1px solid var(--lp-border); box-shadow: 0 12px 16px -4px rgba(15, 23, 41, .06);
  font-size: 15px; line-height: 1.8; color: var(--lp-text-2); text-align: left;
}
.sp-prose h4 {
  margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--lp-border);
  font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--lp-text);
}
.sp-prose h5 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--lp-text); }
.sp-prose > h5:first-child { margin-top: 0; display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--lp-teal-100); color: var(--lp-teal-800); font-size: 13px; }
.sp-prose p { margin: 0 0 12px; }
.sp-prose ul, .sp-prose ol { margin: 0 0 16px; padding-left: 22px; }
.sp-prose ul { list-style: disc; }
.sp-prose ol { list-style: decimal; }
.sp-prose li { margin-bottom: 8px; font-size: inherit !important; }
.sp-prose a { color: var(--lp-teal-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sp-guides > .sp-guide { flex-basis: calc((100% - 20px) / 2); }
  .sp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-contact { grid-template-columns: 1fr; }
  .sp-contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .sp-guides > .sp-guide { flex-basis: 100%; }
  .sp-hero { padding: 116px 16px 64px; }
  .sp-hero-title { font-size: 32px; }
  .sp-hero-desc { font-size: 15px; }
  .sp-section, .sp-cta, .sp-tinted + .sp-cta { padding-block: 56px; }
  .sp-cta { padding-bottom: 72px; }
  .sp-h2 { font-size: 28px; }
  .sp-grid-2, .sp-grid-3, .sp-grid-4, .sp-goals, .sp-field-row { grid-template-columns: 1fr; }
  .sp-card, .sp-goals .lp-card, .sp-reach { padding: 20px; }
  .sp-form { padding: 24px 20px; }
  .sp-submit { align-self: stretch; }
  .sp-prose { padding: 28px 20px; font-size: 14px; }
  .sp-prose h4 { font-size: 19px; }
  .lp-nav-links a.is-current::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-hero-content > * { animation: none; }
}
