/* ── Marketing pages shared styles ─────────────────────────────────────── */

/* ── Site Navigation ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent) !important;
  text-decoration: none !important;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

.btn-nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.88rem !important;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--accent-dk) !important; text-decoration: none !important; }

/* ── Gate screen hero ─────────────────────────────────────────────────────── */
.gate-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin: 1.5rem 0 0.6rem;
  letter-spacing: -0.5px;
}

/* ── Why section ─────────────────────────────────────────────────────────── */
.why-section {
  margin: 3rem 0 2rem;
}
.why-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.why-icon { font-size: 1.4rem; flex-shrink: 0; }
.why-item strong { display: block; font-size: 0.93rem; margin-bottom: 0.2rem; }
.why-item p { font-size: 0.83rem; color: var(--muted); margin: 0; }

/* ── Result example (folder tree) ───────────────────────────────────────── */
.result-section {
  margin: 2.5rem 0;
}
.result-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.folder-example {
  background: #1a1a2e;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}
.folder-example pre {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a0e0b0;
}
.folder-example code { font-family: inherit; }

/* ── FAQ section (homepage) ─────────────────────────────────────────────── */
.faq-section {
  margin: 3rem 0 2rem;
}
.faq-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.faq-item p a { color: var(--accent); }
.faq-more-link {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Site Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #ccc;
  margin-top: 4rem;
  padding: 3rem 1.5rem 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand .nav-logo { font-size: 1.2rem; color: #fff !important; }
.footer-brand p { font-size: 0.85rem; color: #999; margin-top: 0.4rem; }
.footer-cols { display: contents; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.85rem; color: #aaa; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: #777;
}
.footer-bottom a { color: #999; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ── Marketing page layout ───────────────────────────────────────────────── */
.mkt-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.mkt-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.mkt-page .page-intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.mkt-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}
.mkt-page h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}
.mkt-page p { line-height: 1.75; margin-bottom: 1rem; color: var(--text); }
.mkt-page ul, .mkt-page ol {
  padding-left: 1.6rem;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.8;
  color: var(--text);
}
.mkt-page ul { list-style-type: disc; }
.mkt-page ol { list-style-type: decimal; }
.mkt-page li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.mkt-page li::marker { color: var(--accent); }
.mkt-page a { color: var(--accent); }

/* ── Feature grid (features page) ───────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.feature-card .icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── Section intro text ──────────────────────────────────────────────────── */
.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 640px;
}

/* ── Alternate section background ───────────────────────────────────────── */
.section-alt { background: var(--surface); }

/* ── Steps (how it works) ────────────────────────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Both .step-num (old) and .step-number (new HTML) */
.step-num,
.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-top: 0.2rem;
  box-shadow: 0 2px 8px rgba(91,80,249,0.3);
}
.step-content { flex: 1; min-width: 0; }
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  line-height: 1.75;
}
.step-content p:last-child { margin-bottom: 0; }
.step-content ul, .step-content ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}
.step-content ul { list-style-type: disc; }
.step-content ol { list-style-type: decimal; }
.step-content li { margin-bottom: 0.4rem; }
.step-content li::marker { color: var(--accent); }
.step-content strong { color: var(--text); font-weight: 600; }

/* ── Step note box ───────────────────────────────────────────────────────── */
.step-note {
  background: #f8f7ff;
  border: 1px solid #d4d0fc;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 1rem;
}
.step-note strong { color: var(--text); }
.step-note code { font-size: 0.83em; }

/* ── AI stages ───────────────────────────────────────────────────────────── */
.ai-stages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}
.ai-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.stage-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.ai-stage h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.ai-stage p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.ai-stage p:last-child { margin-bottom: 0; }
.ai-stage ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.ai-stage ul { list-style-type: disc; }
.ai-stage li { margin-bottom: 0.3rem; }
.ai-stage li::marker { color: var(--accent); }
.ai-stage strong { color: var(--text); font-weight: 600; }

/* ── Tags list (2-column pill grid) ─────────────────────────────────────── */
.tags-list {
  list-style: none !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.4rem;
  margin: 0.75rem 0 0.75rem !important;
}
.tags-list li {
  background: #f0effe;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3em 0.75em;
  border-radius: 20px;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
}
.tags-list li::marker { display: none; color: transparent; }

/* ── Blockquote / prompt example ─────────────────────────────────────────── */
.prompt-example {
  background: #f8f7ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
  margin: 1rem 0;
}

/* ── Tech grid (how it works technical section) ──────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.tech-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.tech-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.tech-block p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.tech-block p:last-child { margin-bottom: 0; }
.tech-block a { color: var(--accent); font-weight: 500; }

/* ── FAQ page ────────────────────────────────────────────────────────────── */
.faq-page-list { margin: 1.5rem 0; }
.faq-page-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-page-item:last-child { border-bottom: 1px solid var(--border); }
.faq-page-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.faq-page-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child  { border-radius: 0 8px 0 0; }
.compare-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: #f9fafb; }
.compare-table .yes { color: var(--success); font-weight: 600; }
.compare-table .no  { color: #dc2626; font-weight: 600; }
.compare-table .partial { color: #d97706; font-weight: 600; }

/* ── Pricing page layout ─────────────────────────────────────────────────── */
.pricing-section { padding-top: 1rem; }

.pricing-card-wrap {
  max-width: 520px;
  margin: 0 auto 3rem;
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(91,80,249,0.15);
}

.pricing-card.featured .pricing-card-header {
  background: linear-gradient(135deg, #5b50f9 0%, #7c6fff 100%);
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
  color: #fff;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.plan-price .price-amount {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: #fff;
}

.plan-price .price-period {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding-bottom: 0.6rem;
}

.plan-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Feature list */
.plan-features {
  list-style: none;
  padding: 1.75rem 2.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-yes {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.feature-yes:last-child { border-bottom: none; }

.feature-yes::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #eef9f1;
  color: var(--success);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA + note */
.plan-cta {
  display: block;
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 0;
  text-decoration: none !important;
  transition: background 0.15s;
  margin: 0 2.5rem 0;
  border-radius: 10px;
}
.plan-cta:hover { background: var(--accent-dk) !important; text-decoration: none !important; }

.plan-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 1rem 2.5rem 2rem;
  margin: 0;
}

/* ── Trust block (pricing page) ──────────────────────────────────────────── */
.trust-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 0;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.trust-icon { font-size: 1.6rem; margin-bottom: 0.6rem; display: block; }
.trust-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.trust-item p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── Comparison table (pricing page) ────────────────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 0.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--surface);
}
.comparison-table thead th {
  background: var(--text);
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
.comparison-table thead th:first-child { border-radius: 12px 0 0 0; }
.comparison-table thead th:last-child  { border-radius: 0 12px 0 0; }
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: #fafafa; }

/* PhotoSort highlighted row */
.comparison-table tr.row-highlight td {
  background: #f5f3ff;
  font-weight: 600;
  color: var(--accent);
}
.comparison-table tr.row-highlight:hover td { background: #eeebff; }

.table-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ── Old-style pricing card (app gate, kept for compatibility) ───────────── */
.price-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 320px;
  margin: 0 auto 2rem;
}
.price-card h2 { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.price-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  text-align: left;
}
.price-card .feature-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.price-card .feature-list li:last-child { border-bottom: none; }
.price-card .check { color: var(--success); font-weight: 700; }

/* ── Trust block ─────────────────────────────────────────────────────────── */
.trust-block {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}
.trust-block p {
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 600;
  margin: 0;
}

/* ── Blog post body content ──────────────────────────────────────────────── */
.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.post-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.3px;
  color: var(--text);
}
.post-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}
.post-body p {
  margin-bottom: 1.1rem;
  line-height: 1.8;
}
.post-body ul,
.post-body ol {
  padding-left: 1.6rem;
  margin: 0.75rem 0 1.25rem;
  line-height: 1.8;
}
.post-body ul { list-style-type: disc; }
.post-body ol { list-style-type: decimal; }
.post-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.post-body li::marker { color: var(--accent); }
.post-body strong { font-weight: 700; color: var(--text); }
.post-body a { color: var(--accent); font-weight: 500; }
.post-body a:hover { text-decoration: underline; }
.post-body pre {
  margin: 1.5rem 0;
}
.post-body code {
  font-size: 0.875em;
}

/* ── Blog layout ─────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blog-card h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent); }
.blog-card p  { font-size: 0.88rem; color: var(--muted); flex: 1; line-height: 1.6; }
.blog-card .read-more { font-size: 0.88rem; font-weight: 600; color: var(--accent); margin-top: 1rem; display: inline-block; }
.blog-card .post-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ── Blog post ────────────────────────────────────────────────────────────── */
.post-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.post-cta {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  border: 1px solid #c4b5fd;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 3rem 0;
  text-align: center;
}
.post-cta h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.post-cta p  { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.post-cta .btn { display: inline-flex; }

.related-posts { margin: 3rem 0 1rem; }
.related-posts h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.related-posts ul { list-style: none; padding: 0; }
.related-posts li { padding: 0.5rem 0; border-top: 1px solid var(--border); }
.related-posts li:last-child { border-bottom: 1px solid var(--border); }
.related-posts a { font-size: 0.9rem; color: var(--accent); font-weight: 500; }

/* ── CTA section ─────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
  color: #fff;
}
.cta-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; }
.cta-section p  { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.btn-cta-white {
  background: #fff;
  color: var(--accent);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}
.btn-cta-white:hover { opacity: 0.9; text-decoration: none !important; }

/* ── About page ──────────────────────────────────────────────────────────── */
.about-hero { margin-bottom: 2rem; }
.tech-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.tech-list dt { font-weight: 700; font-size: 0.9rem; margin-top: 0.75rem; }
.tech-list dd { font-size: 0.87rem; color: var(--muted); margin-left: 0; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gate-h1 { font-size: 1.55rem; }
  .mkt-page h1 { font-size: 1.7rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links li:not(:last-child) { display: none; }
  .cta-section { padding: 2rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .page-hero { padding: 2.5rem 1.25rem 1.5rem; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* ── Page hero (marketing/content pages) ─────────────────────────────────── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.page-hero .container { max-width: 680px; }
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.section { padding: 3rem 1.5rem; }
.section .container { max-width: 860px; }

/* ── CTA inner + sub (used in page CTAs) ────────────────────────────────── */
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.75rem;
}

/* ── Large button variant ────────────────────────────────────────────────── */
.btn-large {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: var(--accent);
  border: none;
  transition: opacity 0.15s;
}
.btn-large:hover { opacity: 0.88; text-decoration: none !important; }

/* ── FAQ page jump nav ───────────────────────────────────────────────────── */
.faq-jump-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}
.faq-jump-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.faq-jump-nav a { font-size: 0.88rem; color: var(--accent); font-weight: 500; }

/* ── FAQ page container ──────────────────────────────────────────────────── */
.faq-page-container { max-width: 760px; }
.faq-page-container h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

/* ── FAQ accordion (details/summary) ────────────────────────────────────── */
details.faq-item {
  border-top: 1px solid var(--border);
}
details.faq-item:last-child { border-bottom: 1px solid var(--border); }
summary.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary.faq-question::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 1rem;
}
details[open] summary.faq-question::after { content: '−'; }
summary.faq-question::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol {
  padding-left: 1.6rem;
  margin: 0.75rem 0 1rem;
  line-height: 1.8;
}
.faq-answer ul { list-style-type: disc; }
.faq-answer ol { list-style-type: decimal; }
.faq-answer li {
  margin-bottom: 0.45rem;
  padding-left: 0.2rem;
}
.faq-answer li::marker { color: var(--accent); }
.faq-answer code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
}
