/* =============================================================
   INNER PAGES — shared styles for all internal pages
   ============================================================= */

/* Main content offset (below fixed header) */
.inner-main {
  padding-top: calc(68px + 4rem);
  padding-bottom: 6rem;
  min-height: 80vh;
  background: var(--white);
}

/* Prose container */
.inner-content {
  max-width: 760px;
  margin: 0 auto;
}
.inner-wide {
  max-width: 1000px;
}

/* Page header */
.inner-header {
  margin-bottom: 3rem;
}
.inner-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.inner-meta {
  color: var(--gray-500);
  font-size: var(--text-small);
  margin-top: .5rem;
}

/* Hero section for inner pages (partners, etc.) */
.inner-hero {
  background: var(--ink-deep);
  padding: calc(68px + 5rem) 0 5rem;
  text-align: center;
}
.inner-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  max-width: 720px;
  margin: .75rem auto 1.5rem;
  line-height: 1.1;
}
.inner-hero-sub {
  color: rgba(255,255,255,.65);
  font-size: var(--text-large);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Draft banner */
.draft-banner {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #92400e;
  font-size: var(--text-small);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* TOC */
.toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 3rem;
}
.toc-title {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.toc ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.toc a {
  color: var(--accent-blue);
  font-size: var(--text-small);
  text-decoration: none;
  transition: color .2s;
}
.toc a:hover { color: var(--gray-900); }

/* Prose sections */
.inner-content section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-100);
}
.inner-content section:last-of-type {
  border-bottom: none;
}
.inner-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.inner-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 1.25rem 0 .5rem;
}
.inner-content p {
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: .875rem;
}
.inner-content p:last-child { margin-bottom: 0; }
.inner-content ul, .inner-content ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--gray-500);
  font-size: var(--text-small);
  line-height: 1.7;
  margin-bottom: .875rem;
}
.inner-content ul { list-style: disc; }
.inner-content ol { list-style: decimal; }
.inner-content a { color: var(--accent-blue); text-decoration: underline; }
.inner-content a:hover { color: var(--gray-900); }

/* Legal table */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  margin: 1rem 0;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  line-height: 1.5;
}
.legal-table th {
  font-weight: 700;
  background: var(--gray-50);
  color: var(--gray-900);
}
.legal-table tr:last-child td { border-bottom: none; }

/* Back button */
.inner-back {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

/* =====================
   PARTNERS PAGE
   ===================== */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tier-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.tier-card.tier-featured {
  border-color: var(--accent-cyan);
  background: rgba(77,215,231,.05);
  box-shadow: 0 0 0 1px rgba(77,215,231,.2);
}
.tier-badge {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .375rem .75rem;
  border-radius: 100px;
  align-self: center;
}
.tier-1 { background: rgba(107,114,128,.2); color: var(--gray-500); }
.tier-2 { background: rgba(59,123,255,.15); color: var(--accent-blue); }
.tier-3 { background: rgba(77,215,231,.15); color: var(--accent-cyan); }
.tier-4 { background: rgba(30,224,174,.15); color: var(--accent-green); }
.tier-req { color: rgba(255,255,255,.4); font-size: .75rem; }
.tier-commission {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
}
.tier-commission-label { color: rgba(255,255,255,.45); font-size: .7rem; margin-top: -.25rem; }
.tier-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.tier-benefits li { color: rgba(255,255,255,.6); font-size: .75rem; }

.steps-simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step-num-simple {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(77,215,231,.2);
  line-height: 1;
  margin-bottom: .75rem;
}
.steps-simple h3 { font-size: 1.125rem; color: var(--gray-900); margin-bottom: .5rem; }
.steps-simple p { color: var(--gray-500); font-size: var(--text-small); line-height: 1.6; }

/* =====================
   INTEGRATIONS PAGE
   ===================== */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.integration-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.integration-card.available { border-color: rgba(30,224,174,.2); }
.integration-card.coming { opacity: .75; }
.integration-icon { font-size: 1.75rem; }
.integration-card h3 { font-size: 1rem; color: var(--gray-900); margin: 0; }
.integration-card p { color: var(--gray-500); font-size: .8125rem; line-height: 1.5; flex: 1; }
.int-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .625rem;
  border-radius: 100px;
  align-self: flex-start;
  margin-top: .25rem;
}
.int-available { background: rgba(30,224,174,.1); color: #065f46; }
.int-coming { background: var(--gray-100); color: var(--gray-500); }

.webhook-explain {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.webhook-explain h2 { font-size: 1.25rem; color: var(--gray-900); margin-bottom: 1rem; }
.webhook-explain p { color: var(--gray-500); line-height: 1.7; margin-bottom: .75rem; }
.webhook-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  align-items: center;
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: flex-start;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group label span { color: var(--error); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .875rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9375rem;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent-blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(30,224,174,.08);
  border: 1px solid rgba(30,224,174,.2);
  border-radius: var(--radius);
  color: #065f46;
  font-weight: 600;
  font-size: .875rem;
}

.contact-info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.contact-info-card h3 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contact-info-card p {
  color: var(--gray-500);
  font-size: var(--text-small);
  line-height: 1.6;
  margin-bottom: .5rem;
}
.contact-emails {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-emails li {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}
.email-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}
.contact-emails a {
  color: var(--accent-blue);
  font-size: .8125rem;
  text-decoration: none;
}
.contact-emails a:hover { text-decoration: underline; }
.contact-info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-info-card ul a {
  color: var(--accent-blue);
  font-size: var(--text-small);
  text-decoration: none;
}
.contact-info-card ul a:hover { text-decoration: underline; }

/* =====================
   ABOUT PAGE
   ===================== */
.sobre-lead {
  font-size: 1.125rem !important;
  color: var(--gray-700) !important;
  line-height: 1.7 !important;
}
.sobre-origin p { margin-bottom: 1rem; }
.sobre-values {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1rem;
}
.sobre-values li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent-blue);
  color: var(--gray-500) !important;
  font-size: var(--text-small) !important;
  line-height: 1.6;
}

/* =====================
   PLACEHOLDER PAGES
   ===================== */
.placeholder-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 4rem 0;
}
.placeholder-content {
  text-align: center;
  max-width: 480px;
}
.placeholder-emoji { font-size: 4rem; margin-bottom: 1rem; }
.placeholder-content h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.placeholder-content p {
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.placeholder-content a.btn-primary { display: inline-flex; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .steps-simple { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .integrations-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .webhook-cta { flex-direction: column; align-items: flex-start; }
}
