/* Storefront Sections: Hero, Pulse, Workflows, Pipeline, 2-Step Explorer, Compare, Security, Pricing, FAQ & Footer */

.section-band {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-band-alt {
  background: var(--bg-alt);
}

.section-intro {
  max-width: 740px;
  margin-bottom: 32px;
}

/* ---------- Hero Section (Architectural Hairline Paper) ---------- */
.hero-section {
  position: relative;
  padding: 62px 0 48px;
  background:
    linear-gradient(to right, rgba(18, 20, 23, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(18, 20, 23, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.09;
  color: var(--text);
  letter-spacing: -0.032em;
}

.hero-lead {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.center-actions {
  justify-content: center;
  margin-bottom: 0;
}

.hero-proof-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-proof-row strong {
  color: var(--text);
}

/* ---------- Hero Interactive Terminal (Carbon Contrast Anchor) ---------- */
.terminal-shell {
  background: var(--carbon);
  border: 1px solid var(--carbon-border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--carbon-chrome);
  border-bottom: 1px solid var(--carbon-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-red { background: #f87171; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #2ecc71; }

.terminal-path {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  background: #14171d;
  border-bottom: 1px solid var(--carbon-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.term-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.term-tab:hover {
  color: #f3f4f6;
}

.term-tab.is-active {
  color: #34d399;
  border-bottom-color: #34d399;
}

.terminal-body {
  padding: 16px;
  min-height: 245px;
  max-height: 320px;
  overflow: auto;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #14171d;
  border-top: 1px solid var(--carbon-border);
}

.verify-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #6ee7b7;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-link:hover {
  text-decoration: underline;
}

.terminal-footer .icon-copy-btn {
  width: 30px;
  height: 30px;
  background: #1e222b;
  border-color: #353c4a;
  color: #e5e7eb;
}

.terminal-footer .icon-copy-btn:hover {
  border-color: #34d399;
  color: #34d399;
}

.terminal-footer .icon-copy-btn .icon-check {
  color: #34d399;
}

.terminal-footer .icon-copy-btn.is-copied {
  border-color: #34d399;
}

/* Hero Human Brief Card */
.hero-brief-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  border-top: 4px solid var(--accent);
  padding: 18px 20px;
}

.hb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hb-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.hb-title {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.28;
  color: #0b1220;
}

.hb-agency {
  font-size: 0.84rem;
  color: #475569;
  margin-top: -6px;
}

.hb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.hb-stat-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.hb-stat-val {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: #0f172a;
}

.hb-signals-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.hb-signals-row .status-item {
  font-size: 0.74rem;
}

/* ---------- Live Pulse & Native Integration Badges ---------- */
.pulse-section {
  padding: 12px 0 46px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.pulse-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.pulse-label {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-value {
  font-family: var(--mono);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pulse-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.ecosystem-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ecosystem-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ecosystem-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.ecosystem-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 6px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.ecosystem-badges li:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.eco-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.eco-claude { color: #c26d18; }
.eco-cursor { color: #121417; }
.eco-windsurf { color: #0b6e4f; }
.eco-n8n { color: #d94645; }
.eco-make { color: #6d28d9; }
.eco-zapier { color: #ea580c; }
.eco-lang { color: #0f766e; }
.eco-python { color: #2563eb; }
.eco-node { color: #15803d; }
.eco-curl { color: #334155; }

/* ---------- 2x2 Bento Workflows Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.bento-card:hover {
  border-color: var(--accent);
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.bento-metric {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--emerald);
  font-weight: 600;
}

.bento-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ---------- Pipeline SVG & 2-Step Explorer / Credit Builder ---------- */
.diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.pipeline-svg {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}

.pipeline-mobile {
  display: none;
}

.explorer-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.explorer-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explorer-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explorer-step + .explorer-step {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.explorer-step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--text);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.explorer-step-head strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.25;
}

.step-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.explorer-subrow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 34px;
}

.explorer-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.depth-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 34px;
}

.depth-card {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: inherit;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.depth-card:hover {
  border-color: var(--accent);
}

.depth-card.is-selected {
  border-color: var(--accent);
  background: #f2fbf7;
  box-shadow: 0 0 0 2px rgba(11, 110, 79, 0.14);
}

.depth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.depth-card-top strong {
  font-size: 0.92rem;
  color: var(--text);
}

.depth-cost-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.depth-cost-deep {
  color: #b45309;
}

.depth-card-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.explorer-output {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.explorer-receipt-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cost-pill {
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cost-pill.is-deep {
  color: #b45309;
}

.cost-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.explorer-human-pane,
.explorer-rest-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explorer-human-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explorer-human-headline {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.explorer-human-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.87rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explorer-mcp-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mcp-prompt-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.explorer-format-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explorer-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.explorer-cta-row {
  margin-top: auto;
}

.explorer-run-cta {
  width: 100%;
}

/* ---------- Comparison Table ---------- */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.91rem;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-alt);
}

.compare-table th:first-child {
  color: var(--text);
  font-weight: 800;
  background: #ebe8df;
  border-right: 1px solid var(--border-strong);
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--text);
  background: #f7f6f2;
  border-right: 1px solid var(--border-strong);
  white-space: nowrap;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .col-highlight {
  background: rgba(11, 110, 79, 0.06);
  border-left: 1px solid rgba(11, 110, 79, 0.35);
}

.compare-table th.col-highlight {
  color: var(--accent);
}

.cell-bad {
  color: #991b1b;
}

.cell-good {
  color: #065f46;
}

/* ---------- Security Grid ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sec-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding: 0 0 0 8px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sec-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Pricing Grid & Enterprise Strip ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.price-card-featured {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(11, 110, 79, 0.11);
}

.popular-pill {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--amber);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 0 7px 0 6px;
}

.price-tier {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.price-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-once {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.price-credits {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin: 6px 0 10px;
}

.price-runway {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0 0 14px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text-soft);
}

.price-features li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 700;
}

.enterprise-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- FAQ Accordion ---------- */
.faq-container {
  max-width: 880px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: rgba(11, 110, 79, 0.45);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 2px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ---------- Final CTA & Site Footer ---------- */
.final-cta-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.final-cta-card {
  text-align: center;
  background: var(--carbon);
  border: 1px solid var(--carbon-border);
  border-radius: 12px;
  padding: 46px 24px;
  color: #f8fafc;
}

.final-cta-card h2 {
  color: #ffffff;
}

.final-cta-card p {
  color: #cbd5e1;
  margin: 0 0 24px;
}

.final-cta-card .btn-secondary {
  background: #1d222b;
  border-color: #353c4a;
  color: #f8fafc;
}

.final-cta-card .btn-secondary:hover:not(:disabled) {
  background: #272d38;
  border-color: #6ee7b7;
}

.site-footer {
  border-top: 1px solid var(--border-strong);
  padding: 42px 0 56px;
  background: #ece9e1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 32px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: var(--accent);
}
