/* Supporting page styles — docs, FAQ, pricing, contact, security */

/* Page header */
.page-header {
  border-bottom: 1px solid var(--b1);
  background: var(--bg-1);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 56% at 50% -4%, rgba(201, 168, 76, 0.075), transparent 55%);
}
.page-header-in { position: relative; padding: 88px 0 64px; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 600;
  letter-spacing: -0.028em; color: var(--t1); margin-top: 18px;
}
.page-header-side { font-size: 16px; line-height: 1.65; color: var(--t3); max-width: 480px; margin-top: 16px; }
.page-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.page-meta-item { font-size: 12px; color: var(--t4); }
.page-meta-item strong { color: var(--t3); font-weight: 500; }
.page-notice {
  font-size: 14px; color: var(--t3); line-height: 1.65; max-width: 680px;
  padding: 14px 16px; border: 1px solid var(--b2); border-left: 2px solid var(--gold);
  border-radius: 8px; background: rgba(224, 180, 73, 0.04); margin-top: 20px;
}
.page-notice strong { color: var(--t1); }

/* Doc layout */
.doc-layout {
  max-width: 960px; margin: 0 auto; padding: 48px 32px 80px;
  display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start;
}
.toc { position: sticky; top: 84px; }
.toc-label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--t4); margin-bottom: 12px;
}
.toc-list { list-style: none; border-left: 1px solid var(--b1); }
.toc-list a {
  display: block; font-size: 12px; color: var(--t4); padding: 6px 0 6px 14px;
  border-left: 1px solid transparent; margin-left: -1px; line-height: 1.4;
  transition: color 0.14s, border-color 0.14s;
}
.toc-list a:hover { color: var(--t2); border-left-color: var(--gold); }

.doc-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--b1); }
.doc-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-num {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.section-heading { font-size: 1.35rem; font-weight: 600; color: var(--t1); margin-bottom: 16px; line-height: 1.2; }
.doc-body p { font-size: 14px; color: var(--t3); line-height: 1.75; margin-bottom: 12px; max-width: 65ch; }
.doc-body strong { color: var(--t1); font-weight: 600; }
.subsection { margin-top: 20px; }
.subsection-heading {
  font-size: 13px; font-weight: 600; color: var(--t1);
  padding-bottom: 8px; border-bottom: 1px solid var(--b1); margin-bottom: 12px;
}
.clause-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.clause-list li {
  font-size: 14px; color: var(--t3); line-height: 1.65; padding-left: 18px; position: relative;
}
.clause-list li::before { content: "—"; position: absolute; left: 0; color: var(--t4); font-size: 12px; }
.def-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.def-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 14px; line-height: 1.6; }
.def-term { font-weight: 600; color: var(--t1); }
.def-desc { color: var(--t3); }
.callout {
  padding: 14px 16px; border: 1px solid var(--b2); border-left: 2px solid var(--gold);
  border-radius: 8px; background: rgba(224, 180, 73, 0.04); margin: 16px 0;
}
.callout p { margin: 0 !important; font-size: 14px !important; }
.callout-warn { border-left-color: #d85050; background: rgba(216, 80, 80, 0.06); }
.role-tag {
  display: inline-block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-right: 6px;
}
.role-tag-broker { background: var(--gold-dim); color: var(--gold); }
.role-tag-lender { background: var(--teal-dim); color: var(--teal); }
.role-block { padding: 16px; border: 1px solid var(--b1); border-radius: 8px; background: var(--bg-2); margin-bottom: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; border: 1px solid var(--b1); border-radius: 8px; overflow: hidden; }
.data-table th {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--t4); text-align: left; padding: 10px 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--b1);
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--b1); color: var(--t3); vertical-align: top; line-height: 1.55; }
.data-table td:first-child { color: var(--t1); font-weight: 500; }
.data-table tr:last-child td { border-bottom: none; }
.rights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.right-card { padding: 14px; border: 1px solid var(--b1); border-radius: 8px; background: var(--bg-2); }
.right-card-title { font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 4px; }
.right-card-desc { font-size: 12px; color: var(--t3); line-height: 1.55; }

/* FAQ */
.faq-layout { max-width: 760px; margin: 0 auto; padding: 48px 32px 80px; }
.faq-item { border-bottom: 1px solid var(--b1); padding: 24px 0; }
.faq-q { font-size: 16px; font-weight: 600; color: var(--t1); margin-bottom: 10px; line-height: 1.35; }
.faq-a { font-size: 14px; color: var(--t3); line-height: 1.7; }

/* Security cards */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 48px 0 80px; }
.sec-card { padding: 24px; border: 1px solid var(--b1); border-radius: 8px; background: var(--bg-2); }
.sec-card h3 { font-size: 15px; font-weight: 600; color: var(--t1); margin-bottom: 10px; }
.sec-card p { font-size: 13px; color: var(--t3); line-height: 1.65; }
.sec-card ul { list-style: none; margin-top: 10px; }
.sec-card li { font-size: 13px; color: var(--t3); line-height: 1.6; padding-left: 14px; position: relative; margin-bottom: 6px; }
.sec-card li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-size: 11px; }
.sec-card.full { grid-column: 1 / -1; }
.sec-card.neg { border-left: 2px solid #d85050; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; min-height: calc(100vh - 64px); }
.contact-side { padding: 72px 48px 72px 0; border-right: 1px solid var(--b1); }
.contact-side h1 { font-size: 40px; line-height: 1.08; font-weight: 600; color: var(--t1); margin: 24px 0; letter-spacing: -0.024em; }
.contact-intro { font-size: 15px; color: var(--t3); line-height: 1.65; max-width: 360px; margin-bottom: 28px; }
.contact-list { display: grid; gap: 16px; max-width: 360px; }
.contact-list-item { display: flex; gap: 12px; font-size: 13px; color: var(--t4); line-height: 1.6; }
.contact-list-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.contact-form-wrap { padding: 72px 0 72px 48px; }
.form-stack { display: grid; gap: 28px; max-width: 480px; }
.form-label {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--t4); margin-bottom: 8px;
}
.form-input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--b2);
  font-family: var(--font); font-size: 15px; color: var(--t1); padding: 12px 0; outline: none;
}
.form-input:focus { border-color: rgba(224, 180, 73, 0.45); }
.form-input::placeholder { color: var(--t4); }
.role-row { display: flex; }
.role-btn {
  flex: 1; padding: 12px 8px; font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--b2); margin-right: -1px;
  background: transparent; color: var(--t4); cursor: pointer; transition: all 0.14s ease;
}
.role-btn.active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); z-index: 1; position: relative; }
.form-note { font-size: 11px; color: var(--t4); margin-top: 14px; line-height: 1.55; }
.form-success { padding: 32px; border: 1px solid var(--b2); border-radius: 8px; background: var(--bg-2); max-width: 480px; }
.form-success h2 { font-size: 20px; color: var(--t1); margin-bottom: 10px; }
.form-success p { font-size: 14px; color: var(--t3); line-height: 1.65; }
.form-error { font-size: 13px; color: #d85050; margin-top: 8px; }

/* Pricing */
.pricing-toggle {
  position: sticky; top: 64px; z-index: 100;
  background: var(--bg-0); border-bottom: 1px solid var(--b1);
}
.pricing-toggle-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; }
.pricing-toggle-btn {
  font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--t4);
  background: transparent; border: none; border-bottom: 2px solid transparent;
  padding: 16px 20px; cursor: pointer; transition: all 0.14s ease;
}
.pricing-toggle-btn.active-broker { color: var(--gold); border-bottom-color: var(--gold); }
.pricing-toggle-btn.active-lender { color: var(--teal); border-bottom-color: var(--teal); }
.pricing-view { display: none; }
.pricing-view.active { display: block; }
.pricing-sec { padding: 48px 0; border-bottom: 1px solid var(--b1); }
.pricing-sec-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.merged-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--b1); border-bottom: 1px solid var(--b1); margin: 24px 0; }
.merged-step { padding: 24px 24px 24px 0; border-right: 1px solid var(--b1); }
.merged-step:last-child { border-right: none; }
.merged-step-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.merged-step-label.teal { color: var(--teal); }
.merged-step-body { font-size: 13px; color: var(--t3); line-height: 1.65; }
.billing-row { display: flex; gap: 10px; margin: 24px 0; }
.billing-btn {
  font-size: 13px; color: var(--t3); background: transparent; border: 1px solid var(--b2);
  border-radius: 8px; padding: 8px 16px; cursor: pointer; transition: all 0.14s ease;
}
.billing-btn.active { background: var(--gold-dim); border-color: rgba(224, 180, 73, 0.35); color: var(--gold); font-weight: 600; }
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--b1); border-radius: 8px; overflow: hidden; margin-top: 24px; }
.tier-card { padding: 28px 24px; border-right: 1px solid var(--b1); background: var(--bg-2); display: flex; flex-direction: column; }
.tier-card:last-child { border-right: none; }
.tier-card.featured { background: var(--bg-3); box-shadow: inset 0 2px 0 var(--gold); }
.tier-badge { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: var(--gold-dim); padding: 4px 8px; border-radius: 4px; width: fit-content; margin-bottom: 16px; }
.tier-badge.teal { color: var(--teal); background: var(--teal-dim); }
.tier-spacer { height: 28px; margin-bottom: 16px; }
.tier-name { font-size: 20px; font-weight: 600; color: var(--t1); margin-bottom: 6px; }
.tier-sub { font-size: 13px; color: var(--t3); line-height: 1.55; margin-bottom: 20px; min-height: 40px; }
.tier-price { font-size: 2.2rem; font-weight: 600; color: var(--t1); line-height: 1; letter-spacing: -0.02em; }
.tier-period { font-size: 13px; color: var(--t4); margin-left: 4px; }
.price-note { font-size: 12px; color: var(--t4); margin: 8px 0 16px; }
.tier-cap { border-top: 1px solid var(--b1); padding-top: 14px; margin-bottom: 20px; display: grid; gap: 6px; }
.cap-row { display: flex; justify-content: space-between; font-size: 12px; }
.cap-label { color: var(--t4); }
.cap-value { color: var(--t2); font-weight: 500; }
.features-table { width: 100%; border-collapse: collapse; border: 1px solid var(--b1); border-radius: 8px; overflow: hidden; margin-top: 24px; font-size: 13px; }
.features-table th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t1); padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--b1); text-align: center; }
.features-table th:first-child { text-align: left; }
.features-table td { padding: 12px 16px; border-bottom: 1px solid var(--b1); vertical-align: middle; background: var(--bg-1); }
.features-table td:not(:first-child) { text-align: center; }
.features-table tr:hover td { background: var(--bg-2); }
.feat-name { font-weight: 500; color: var(--t1); margin-bottom: 2px; }
.feat-desc { font-size: 11px; color: var(--t4); line-height: 1.45; }
.feat-check { color: var(--gold); }
.feat-check.teal { color: var(--teal); }
.feat-dash { color: var(--t4); }
.table-section td { padding: 10px 16px; background: var(--bg-0) !important; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t2); font-weight: 600; }
.bridge-line { padding: 20px 0; font-style: italic; font-size: 14px; color: var(--t3); border-bottom: 1px solid var(--b1); }
.merged-eyebrow {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.merged-eyebrow.lender-eyebrow { color: var(--teal); }
.merged-closing { font-size: 15px; font-weight: 500; color: var(--t1); margin: 20px 0 16px; max-width: 560px; }
.merged-sub { font-size: 12px; color: var(--t4); margin-top: 8px; }
.section-h em, .page-header h1 em { font-style: italic; color: var(--gold); }

@media (max-width: 980px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .sec-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { padding: 48px 0 32px; border-right: none; border-bottom: 1px solid var(--b1); }
  .contact-form-wrap { padding: 32px 0 48px; }
  .tiers-grid, .merged-grid { grid-template-columns: 1fr; }
  .tier-card, .merged-step { border-right: none; border-bottom: 1px solid var(--b1); }
  .def-row { grid-template-columns: 1fr; gap: 4px; }
  .rights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .doc-layout, .faq-layout { padding-left: 20px; padding-right: 20px; }
  .pricing-sec-in { padding: 0 20px; }
  .data-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
