/* Drenox Security B2B page. Builds on base.css tokens. */

.section { padding-block: clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink-2); }
.section-head { display: grid; gap: 18px; justify-items: start; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: var(--step-3); text-transform: uppercase; }
.section-head p { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

.hero-sec { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.hero-sec .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start; max-width: 760px; }
.hero-sec h1 { font-size: var(--step-3); font-stretch: 122%; font-weight: 900; text-transform: uppercase; line-height: 1.1; text-wrap: balance; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }

/* ---- pillars: capability cards ---- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--ink); }
.pillar h3 { font: 800 1.15rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.pillar p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ---- ring stack: privilege levels ---- */
.ring-stack { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.ring-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; padding: clamp(20px, 3vw, 32px); background: var(--panel); align-items: start; }
.ring-row h3 { font: 800 1.15rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; margin-bottom: 6px; }
.ring-row p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.ring-level { font: 600 1.6rem/1 var(--mono); color: var(--dim); white-space: nowrap; min-width: 7ch; }
.ring-us { background: var(--ink); }
.ring-us .ring-level { color: var(--cyan); }
.ring-us h3 { color: var(--cyan); }
.ring-tagline { font-family: var(--mono); font-size: .92rem; color: var(--dim); margin-top: clamp(20px, 3vw, 32px); }
.ring-tagline .accent { color: var(--cyan); }

/* ---- terminal block ---- */
.terminal-block { border: 1px solid var(--line-2); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.terminal-dot { width: 10px; height: 10px; background: var(--line-2); }
.terminal-bar span { font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.terminal-body { padding: clamp(16px, 3vw, 28px); background: var(--ink); font: 400 .85rem/1.7 var(--mono); overflow-x: auto; white-space: pre; }
.terminal-body .cmd { color: var(--cyan); }
.terminal-body .ok { color: var(--muted); }
.terminal-body .warn { color: var(--warn); }
.terminal-body .crit { color: var(--hp); }
.terminal-body .comment { color: var(--dim); }

/* ---- comparison table ---- */
.vs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-2); }
.vs-table th, .vs-table td { padding: 14px clamp(12px, 2vw, 20px); text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.vs-table thead th { background: var(--panel-2); font: 700 .78rem/1 var(--display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vs-table tbody th { color: var(--muted); font-weight: 400; }
.vs-table tbody td { font-family: var(--mono); font-size: .85rem; }
.vs-table .yes { color: var(--cyan); }
.vs-table .no { color: var(--hp); }
.vs-table .partial { color: var(--warn); }

/* ---- stats grid ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.stat { display: grid; gap: 6px; padding: clamp(24px, 3vw, 36px); background: var(--ink); }
.stat-num { font: 600 var(--step-3)/1 var(--mono); color: var(--cyan); }
.stat-label { font-size: .85rem; color: var(--muted); }

/* ---- CTA / closing ---- */
.final { padding-block: clamp(64px, 9vw, 112px); background: var(--ink-2); }
.final-inner { display: grid; gap: 28px; justify-items: start; max-width: 620px; }
.final h2 { font-size: var(--step-3); text-transform: uppercase; }
.final p { color: var(--muted); font-size: 1.06rem; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 1.1rem; color: var(--text); }
.contact-email .copy-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; }
.contact-email .copy-btn:hover { border-color: var(--text); color: var(--text); }
.contact-email .copy-btn.copied { border-color: var(--ok); color: var(--ok); }
.nda-note { font-size: var(--step--1); color: var(--dim); }

/* ---- rating cards ---- */
.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.score-card { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--ink); }
.score-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.score-header h3 { font: 800 1.25rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.score-header h3 a { color: inherit; text-decoration: none; }
.score-header h3 a:hover { color: var(--cyan); }
.score-value { font: 700 2.5rem/1 var(--mono); }
.score-max { font-size: .45em; color: var(--muted); font-weight: 400; }
.score-10 { color: var(--cyan); }
.score-9 { color: var(--cyan); opacity: .85; }
.score-8 { color: var(--cyan); opacity: .7; }
.score-label { font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.score-card p { color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* ---- pricing ---- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.pricing-card { display: grid; gap: 16px; align-content: start; padding: clamp(28px, 4vw, 44px); background: var(--ink); }
.pricing-card h3 { font: 800 1.25rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; }
.pricing-metric { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.pricing-range { font: 600 var(--step-2)/1.1 var(--mono); color: var(--cyan); }
.pricing-period { font-size: .75em; color: var(--muted); font-weight: 400; }
.pricing-tiers { display: grid; gap: 12px; }
.pricing-tier { display: grid; gap: 2px; }
.pricing-desc { font-size: .85rem; color: var(--muted); }
.pricing-features { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pricing-features li { font-size: .88rem; color: var(--text); padding-left: 20px; position: relative; }
.pricing-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* ---- architecture flowcharts ---- */
.arch-tabs { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line-2); border-bottom: 0; }
.arch-tab { flex: 1; padding: 14px 16px; background: var(--panel); font: 700 .78rem/1 var(--display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); cursor: pointer; border: none; text-align: center; transition: color .15s, background .15s; }
.arch-tab:hover { color: var(--text); }
.arch-tab[aria-selected="true"] { background: var(--ink); color: var(--cyan); }
.arch-panel { border: 1px solid var(--line-2); border-top: 0; padding: clamp(24px, 4vw, 44px); background: var(--ink); overflow-x: auto; }
.arch-panel[hidden] { display: none; }

.flow { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 340px; }
.flow-node { position: relative; padding: 12px 20px; font: 500 .82rem/1.35 var(--mono); text-align: center; max-width: 340px; width: 100%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.flow-node.n-hyp { border-color: var(--cyan); color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, var(--ink)); }
.flow-node.n-hook { border-color: var(--hp); color: var(--hp); background: color-mix(in srgb, var(--hp) 8%, var(--ink)); }
.flow-node.n-win { border-color: var(--line-2); color: var(--muted); }
.flow-arrow { width: 1px; height: 24px; background: var(--line-2); position: relative; }
.flow-arrow::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--line-2); }

.flow-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: start; width: 100%; }
.flow-decision { padding: 16px 20px; font: 600 .82rem/1.35 var(--mono); text-align: center; border: 1px solid var(--cyan); background: color-mix(in srgb, var(--cyan) 6%, var(--ink)); color: var(--cyan); transform: rotate(45deg); width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; margin: 30px auto; }
.flow-decision span { transform: rotate(-45deg); display: block; max-width: 110px; }

.flow-branch { display: flex; flex-direction: column; align-items: center; gap: 0; }
.flow-branch-label { font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 4px 0; }
.flow-h-arrow { width: 40px; height: 1px; background: var(--line-2); position: relative; align-self: center; }
.flow-h-arrow::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid var(--line-2); }

.flow-legend { display: flex; flex-wrap: wrap; gap: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); margin-top: 32px; }
.flow-legend-item { display: flex; align-items: center; gap: 8px; font: 400 .78rem/1 var(--mono); color: var(--dim); }
.flow-legend-swatch { width: 14px; height: 14px; border: 1px solid; }
.flow-legend-swatch.sw-win { border-color: var(--line-2); background: var(--panel); }
.flow-legend-swatch.sw-hyp { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, var(--ink)); }
.flow-legend-swatch.sw-hook { border-color: var(--hp); background: color-mix(in srgb, var(--hp) 8%, var(--ink)); }
.flow-legend-swatch.sw-dec { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 6%, var(--ink)); transform: rotate(45deg); width: 10px; height: 10px; }

/* decision tree layout */
.dtree { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 500px; }
.dtree-row { display: flex; align-items: flex-start; justify-content: center; gap: 32px; width: 100%; }
.dtree-diamond { width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--cyan); background: color-mix(in srgb, var(--cyan) 6%, var(--ink)); transform: rotate(45deg); flex-shrink: 0; }
.dtree-diamond span { transform: rotate(-45deg); font: 600 .78rem/1.3 var(--mono); color: var(--cyan); text-align: center; max-width: 120px; }
.dtree-side { display: flex; align-items: center; gap: 8px; }
.dtree-side .flow-node { max-width: 260px; }

/* ---- CCU pricing table ---- */
.pricing-card-wide { grid-column: 1 / -1; }
.pricing-card h4 { font: 800 1rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; margin-top: 12px; color: var(--muted); }
.ccu-table-wrap { overflow-x: auto; margin: 4px 0; }
.ccu-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-2); }
.ccu-table th, .ccu-table td { padding: 12px clamp(12px, 2vw, 18px); text-align: left; border-bottom: 1px solid var(--line); font-size: .88rem; }
.ccu-table thead th { background: var(--panel-2); font: 700 .72rem/1 var(--display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ccu-table tbody tr { transition: background .12s; }
.ccu-table tbody tr:hover { background: var(--panel); }
.ccu-table .plan-name { font-family: var(--mono); font-weight: 600; color: var(--cyan); white-space: nowrap; }
.ccu-table td:nth-child(3) { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.ccu-table td:last-child { text-align: right; }
.ccu-table tbody tr.plan-popular { background: color-mix(in srgb, var(--cyan) 5%, var(--ink)); }
.ccu-table tbody tr.plan-popular:hover { background: color-mix(in srgb, var(--cyan) 10%, var(--ink)); }
.plan-badge { display: inline-block; font: 600 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--cyan); padding: 3px 6px; margin-left: 8px; vertical-align: middle; }
.deploy-terms { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.deploy-terms li { font-size: .88rem; color: var(--muted); padding-left: 20px; position: relative; line-height: 1.5; }
.deploy-terms li::before { content: "\2022"; position: absolute; left: 0; color: var(--dim); }

/* ---- lead form ---- */
.lead-form { display: grid; gap: 18px; width: 100%; max-width: 520px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line-2); background: var(--panel); }
.lead-title { font: 800 1.1rem/1.1 var(--display); font-stretch: 112%; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.lead-form .field { display: grid; gap: 6px; }
.lead-form .control { background: var(--ink); }
.lead-form .btn { margin-top: 4px; }
.lead-ok { font-size: .9rem; color: var(--ok); padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); background: color-mix(in srgb, var(--ok) 6%, var(--ink)); }
.lead-error { font-size: .9rem; color: var(--hp); padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--hp) 30%, transparent); background: color-mix(in srgb, var(--hp) 6%, var(--ink)); }
.lead-form + .contact-email { margin-top: 20px; }
.contact-alt { font-size: var(--step--1); color: var(--dim); margin-top: 24px; }

/* ---- copy button feedback ---- */
.copy-btn { gap: 6px; }
.copied-text { font: 500 .75rem/1 var(--mono); color: var(--ok); }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .score-grid { grid-template-columns: minmax(0, 1fr); }
  .ring-row { grid-template-columns: minmax(0, 1fr); }
  .ring-level { min-width: 0; }
  .vs-table { font-size: .82rem; }
  .vs-table th, .vs-table td { padding: 10px 8px; }
  .arch-tabs { flex-wrap: wrap; }
  .flow-decision { width: 110px; height: 110px; }
  .flow-decision span { max-width: 85px; font-size: .72rem; }
  .flow-split { grid-template-columns: 1fr 16px 1fr; gap: 0; }
  .flow-node { font-size: .75rem; padding: 10px 12px; }
  .dtree-diamond { width: 110px; height: 110px; }
  .ccu-table th:nth-child(4), .ccu-table td:last-child { display: none; }
  .ccu-table { font-size: .82rem; }
}
