/* ============================================================
   Shared styles for the hand-authored content pages
   (demo, contact, faq, blog, news, status, privacy, terms, landing).
   Builds on base.css tokens — no duplication of foundation rules.
   ============================================================ */

.section { padding: var(--sec-pad) 0; }
.section--tight { padding: var(--sec-pad-tight) 0; }
.section--flush { padding-top: 0; }

/* ---- Page hero -------------------------------------------- */
.page-hero {
  padding: var(--hero-pad-t) 0 var(--hero-pad-b);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(26, 60, 242, .08), transparent 55%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 760px; }
.page-hero--center .page-hero__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; margin-top: 14px;
}
.page-hero .lede { color: var(--muted); font-size: 1.15rem; margin-top: 16px; }
.page-hero--center .lede { margin-left: auto; margin-right: auto; max-width: 56ch; }

.lede { font-size: 1.1rem; color: var(--muted); }

/* ---- Section headings ------------------------------------- */
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head.center { margin: 0 auto 36px; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; margin-top: 10px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }

/* ---- Card grids ------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: transform .18s, box-shadow .18s, border-color .15s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(13, 13, 18, .24); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px; color: var(--blue);
}
.card h3 { font-size: 1.12rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .94rem; margin-top: 8px; }
.card .lk { font-size: .85rem; font-weight: 600; color: var(--blue); margin-top: 10px; display: inline-block; }

/* ---- Prose (legal + long-form) ---------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; font-weight: 800; margin: 36px 0 10px; }
.prose h3 { font-size: 1.08rem; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { color: #2c2e3a; font-size: 1rem; line-height: 1.7; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); }
.doc-meta {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
  color: var(--muted); margin-top: 10px;
}
.callout {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-size: .94rem; color: var(--muted); margin: 22px 0;
}

/* ---- Forms ------------------------------------------------ */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 30px; box-shadow: 0 30px 60px -34px rgba(13, 13, 18, .28);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .8rem; font-family: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.btn-full { width: 100%; }

/* ---- Two-column layout (form + aside) --------------------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.aside-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.aside-list li { display: flex; gap: .7rem; align-items: flex-start; }
.aside-list .ck {
  width: 22px; height: 22px; border-radius: 50%; background: var(--verified); color: #fff;
  display: grid; place-items: center; font-size: .7rem; flex: none; margin-top: 2px;
}

/* ---- FAQ (native details/summary, no JS) ------------------ */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 2px;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: .98rem; padding: 0 2px 20px; margin: 0; line-height: 1.65; }

/* ---- Post / article cards (blog + news) ------------------- */
.post-card { display: flex; flex-direction: column; }
.post-card .meta {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
}
.tag { color: var(--blue); font-weight: 700; }
.post-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: .92rem; margin-top: 8px; flex: 1; }
.post-card.feature { grid-column: 1 / -1; }
@media (min-width: 861px) { .post-card.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; } }

/* ---- Newsletter / status / CTA bands ---------------------- */
.cta-band {
  background: linear-gradient(120deg, #1A3CF2 0%, #3b2bd0 55%, #6c2bb0 100%);
  color: #fff; border-radius: 28px; padding: 50px 44px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 14px auto 24px; max-width: 50ch; font-size: 1.05rem; }
.cta-band .final-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 200px; border: 0; border-radius: 999px; padding: .85rem 1.2rem; font-family: inherit; font-size: .95rem; }

/* ---- Misc ------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .06em; color: var(--blue);
  background: rgba(26, 60, 242, .08); border: 1px solid rgba(26, 60, 242, .25);
  border-radius: 999px; padding: 6px 12px;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 620px) { .stat-row { grid-template-columns: 1fr; } }
.stat-row .num { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--blue); line-height: 1; }
.stat-row .lbl { color: var(--muted); font-size: .92rem; margin-top: 6px; }
