/* Web Application Protection (WAP) — OneFirewall-branded product page. Scoped to .wap; uses the site tokens from main.css. */
.wap {
  --wap-bad: #c2410c;
  --wap-ok: #1f7a4d;
  background: var(--surface);
  color: var(--ink);
}
:where(.wap) section { padding: 0; }
.wap p { color: var(--ink-soft); }
.wap a { text-decoration: none; }
.wap-wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wap-narrow { max-width: 920px; }
.wap-band { padding: 96px 0; }
.wap-band.alt { background: var(--surface-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.wap .wap-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-blue); margin: 0 0 12px; }
.wap-h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; color: var(--navy-900); }
.wap-lead { font-size: 1.06rem; line-height: 1.7; max-width: 62ch; margin: 0 0 40px; }
.wap mark { background: linear-gradient(transparent 62%, rgba(217,99,31,.28) 62%); color: inherit; padding: 0 .05em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wap code { font-family: var(--font-mono); font-size: 0.84em; background: var(--brand-blue-light); color: var(--brand-blue-dark); border-radius: 4px; padding: 1px 6px; }

/* buttons */
.wap-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.wap-btn { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.98rem; background: var(--accent-orange); color: #fff !important; border: 1.5px solid var(--accent-orange); transition: background .15s, border-color .15s; }
.wap-btn:hover { background: var(--accent-orange-dark); border-color: var(--accent-orange-dark); }
.wap-btn.sec { background: var(--surface); color: var(--navy-900) !important; border-color: var(--line); }
.wap-btn.sec:hover { border-color: var(--brand-blue); color: var(--brand-blue) !important; }

/* hero */
.wap-hero { background: linear-gradient(180deg, var(--brand-blue-light) 0%, #fff 100%); padding: 84px 0 88px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.wap-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(28,74,133,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(28,74,133,0.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 80% 20%, #000 15%, transparent 65%); }
.wap-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.wap-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 30px; padding: 8px 16px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.wap-brand svg { width: 36px; height: 36px; display: block; border-radius: 50%; }
.wap-brand b { display: block; font-size: 1rem; color: var(--navy-900); line-height: 1.1; }
.wap-brand small { display: block; font-size: 0.74rem; color: var(--ink-mute); }
.wap-hero h1 { color: var(--navy-900); font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.07; margin: 0 0 22px; font-weight: 800; letter-spacing: -0.02em; }
.wap-hero p.sub { font-size: 1.12rem; line-height: 1.65; max-width: 54ch; margin: 0 0 30px; }
.wap-hero .note { color: var(--ink-mute); font-size: 0.88rem; margin: 18px 0 0; }

.wap-log { background: var(--navy-900); border-radius: var(--radius-lg); font-family: var(--font-mono); font-size: 0.85rem; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--navy-700); }
.wap-log-head { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--navy-700); color: #8fa2ba; font-size: 0.76rem; background: var(--navy-800); }
.wap-log-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-700); display: inline-block; }
.wap-log-head span { margin-left: 8px; }
.wap-log-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,.05); color: #dbe4f0; opacity: 0; animation: waprow .45s forwards; }
.wap-log-row:last-child { border-bottom: 0; }
.wap-log-row .m { color: #8fa2ba; }
.wap-log-row .p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wap-log-row .v { font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.wap-log-row .v.bad { color: #ffb38a; background: rgba(217,99,31,.18); }
.wap-log-row .v.ok { color: #9fd8bb; background: rgba(31,122,77,.22); }
.wap-log-row:nth-child(2) { animation-delay: .1s } .wap-log-row:nth-child(3) { animation-delay: .35s }
.wap-log-row:nth-child(4) { animation-delay: .6s } .wap-log-row:nth-child(5) { animation-delay: .85s }
.wap-log-row:nth-child(6) { animation-delay: 1.1s } .wap-log-row:nth-child(7) { animation-delay: 1.35s }
.wap-log-row:nth-child(8) { animation-delay: 1.6s }
@keyframes waprow { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* pains */
.wap-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wap-pain { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 24px; background: var(--surface); display: flex; flex-direction: column; position: relative; }
.wap-pain::before { content: "\201C"; position: absolute; right: 18px; top: 4px; font-size: 4.2rem; line-height: 1; color: var(--brand-blue-light); font-family: Georgia, serif; }
.wap-gain { align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-orange); margin-bottom: 14px; }
.wap-pain h3 { font-size: 1.08rem; line-height: 1.4; margin: 0 0 12px; color: var(--navy-900); position: relative; }
.wap-pain p { margin: 0; font-size: 0.94rem; line-height: 1.6; padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* steps */
.wap-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.wap-steps li { counter-increment: s; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); position: relative; }
.wap-steps li::before { content: "0" counter(s); display: block; font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: var(--brand-blue); line-height: 1; margin-bottom: 18px; }
.wap-steps li:last-child::before { color: var(--accent-orange); }
.wap-steps strong { display: block; font-size: 1.15rem; margin-bottom: 6px; color: var(--navy-900); }
.wap-steps span { color: var(--ink-soft); line-height: 1.6; }

/* evaluation */
.wap-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.wap-checks { list-style: none; padding: 0; margin: 0 0 30px; }
.wap-checks li { padding: 8px 0 8px 32px; position: relative; color: var(--ink); font-weight: 500; }
.wap-checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wap-evalcard { background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent-orange); }
.wap-evalcard h3 { color: #fff; font-size: 1.3rem; margin: 0 0 10px; }
.wap-evalcard p { color: #b9c6d9; margin: 0 0 24px; line-height: 1.65; }
.wap-evalcard .fine { font-size: 0.86rem; color: #8fa2ba; margin: 20px 0 0; }
.wap-evalcard .fine a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }

/* free checklist */
.wap-free { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wap-fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; min-width: 0; }
.wap-fcard h3 { font-size: 1.04rem; margin: 0 0 6px; color: var(--navy-900); }
.wap-fcard > p { font-size: 0.92rem; margin: 0 0 16px; }
.wap-code { background: var(--navy-900); color: #dbe4f0; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.65; border-radius: var(--radius-sm); padding: 16px; margin: 0; overflow-x: auto; white-space: pre; }
.wap-fcard .wap-checks li { font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); }

/* protections */
.wap-prot { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.wap-prot details { border-top: 1px solid var(--line-soft); }
.wap-prot details:first-child { border-top: 0; }
.wap-prot details[open] { background: var(--surface-alt); }
.wap-prot summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; }
.wap-prot summary::-webkit-details-marker { display: none; }
.wap-prot summary:hover { background: var(--surface-alt); }
.wap-prot .t { font-weight: 700; font-size: 1rem; color: var(--navy-900); }
.wap-prot .t small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--ink-mute); margin-top: 2px; }
.wap-tags { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.wap-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-mute); background: var(--surface); }
.wap-tag.on { background: var(--brand-blue-light); border-color: transparent; color: var(--brand-blue); }
.wap-code-out { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent-orange-dark); min-width: 92px; text-align: right; }
.wap-prot .body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 22px 22px; }
.wap-prot .body p { margin: 0; font-size: 0.94rem; line-height: 1.65; }
.wap-prot .body p strong { color: var(--navy-900); display: block; margin-bottom: 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.wap-prot .req { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.8rem; background: var(--navy-900); color: #ffb38a; padding: 10px 14px; border-radius: var(--radius-sm); overflow-x: auto; white-space: nowrap; }
.wap-notyet { margin-top: 20px; padding: 18px 20px; border-left: 3px solid var(--accent-orange); background: #fdf3ec; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.94rem; line-height: 1.6; }
.wap-notyet strong { color: var(--navy-900); }

/* faq */
.wap-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; }
.wap-faq details[open] { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.wap-faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.02rem; position: relative; color: var(--navy-900); }
.wap-faq summary::-webkit-details-marker { display: none; }
.wap-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-blue-light); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.wap-faq details[open] summary::after { content: "−"; background: var(--brand-blue); color: #fff; }
.wap-faq details p { margin: 0; padding: 0 22px 20px; line-height: 1.7; }

/* closing */
.wap-closing { background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-dark) 70%); padding: 96px 0; position: relative; overflow: hidden; }
.wap-closing::after { content: ""; position: absolute; width: 560px; height: 560px; left: -180px; bottom: -280px; background: radial-gradient(closest-side, rgba(217,99,31,.22), transparent); pointer-events: none; }
.wap-closing .wap-wrap { position: relative; z-index: 1; }
.wap-closing h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 16px; max-width: 22ch; }
.wap-closing p { color: #d3deec; font-size: 1.06rem; max-width: 60ch; margin: 0 0 30px; }
.wap-closing .wap-btn.sec { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.3); }
.wap-closing .wap-btn.sec:hover { border-color: #fff; color: #fff !important; }
.wap-closing .by { margin-top: 40px; font-size: 0.88rem; color: #c3d1e3; display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.wap-closing .by svg { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.35); flex: none; }
.wap-closing .by a { color: #fff; }

@media (max-width: 900px) {
  .wap-hero-grid, .wap-split { grid-template-columns: 1fr; gap: 40px; }
  .wap-pains, .wap-free { grid-template-columns: 1fr 1fr; }
  .wap-steps { grid-template-columns: 1fr; }
  .wap-prot .body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wap-band, .wap-closing { padding: 64px 0; }
  .wap-hero { padding: 56px 0 64px; }
  .wap-pains, .wap-free { grid-template-columns: 1fr; }
  .wap-prot summary { grid-template-columns: 1fr; gap: 8px; }
  .wap-code-out { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .wap-log-row { animation: none; opacity: 1; } }
