/* ============================================================
   Solves - public marketing site styles (tokens.css required)
   ============================================================ */
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.site { margin: 0; min-width: 0; max-width: 100%; overflow-x: clip; font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--color-primary-text); }
.wrap { width: min(100%, 1120px); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.mono { font-family: var(--font-mono); }
img, video, canvas, svg { max-width: 100%; }
p, li, h1, h2, h3, h4, h5, h6, td, th, .lede, .sub, .mk-prose { overflow-wrap: anywhere; }

.wordmark { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--color-text); text-decoration: none; }
.wordmark .dot { color: var(--color-primary); font-weight: 700; }

/* Accessibility and shared header helpers */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--color-primary); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: var(--r-sm); transition: top .15s ease; }
.skip-link:focus, .skip-link:focus-visible { top: 12px; }
.header-logout-form { margin: 0; }
.site-login-button { border: 0; background: transparent; cursor: pointer; font: inherit; padding: 0; }
.full-width { width: 100%; }
.cta-line { margin-top: 28px; }
.cta-line.compact { margin-top: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; font-size: 14px; font-weight: 600; border-radius: var(--r-sm); border: 1px solid transparent; padding: 9px 16px; cursor: pointer; text-decoration: none; line-height: 1.3; transition: background-color .14s ease, border-color .14s ease, transform .12s ease; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn-secondary:hover { background: var(--color-bg); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #eaf1ea; border-color: rgba(255,255,255,.2); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(245,247,243,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.site-head-in { display: flex; align-items: center; gap: 24px; min-width: 0; height: 60px; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--color-text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--color-text); }
.site-head-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.site-login { color: var(--color-text-secondary); text-decoration: none; font-size: 14px; font-weight: 600; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #11201a; color: #eaf1ea; padding: 56px 0 64px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg,#000,transparent 80%); -webkit-mask-image: linear-gradient(180deg,#000,transparent 80%); }
.hero::after { content: ""; position: absolute; right: -160px; top: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(95,189,139,.16), transparent 62%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: #5fbd8b; margin-bottom: 16px; }
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 999px; background: #5fbd8b; box-shadow: 0 0 0 0 rgba(95,189,139,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(95,189,139,0); } 100% { box-shadow: 0 0 0 0 rgba(95,189,139,0); } }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -0.028em; font-weight: 700; margin: 0; color: #f6faf6; }
.hero h1 em { font-style: normal; color: #5fbd8b; }
.hero .lede { font-size: 17px; line-height: 1.6; color: #b9cdc0; max-width: 52ch; margin: 18px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 12.5px; color: #7e9a8a; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-trust b { color: #cfe0d4; font-weight: 600; }

/* Product preview card in hero */
.preview { background: var(--color-surface); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); box-shadow: var(--shadow-3); overflow: hidden; color: var(--color-text); }
.preview-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--color-border); font-size: 13px; font-weight: 600; }
.preview-head .live { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--color-success); text-transform: uppercase; letter-spacing: .05em; }
.preview-row { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--color-border); }
.preview-row:last-child { border-bottom: 0; }
.preview-row .bdot { width: 8px; height: 8px; border-radius: 999px; }
.preview-row .s1 { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-row .s2 { font-size: 11px; color: var(--color-text-muted); }
.bdot.brand-a { background: var(--brand-a); } .bdot.brand-b { background: var(--brand-b); }
.chip-sm { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
.chip-sm.risk { background: var(--color-warning-soft); color: var(--color-warning); }
.chip-sm.breach { background: var(--color-danger-soft); color: var(--color-danger); }
.chip-sm.ok { color: var(--color-text-muted); }

/* Sections */
.section { padding: 64px 0; }
.section.tint { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section h1, .section h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section .sub { font-size: 16px; color: var(--color-text-muted); max-width: 60ch; margin: 0 0 32px; line-height: 1.6; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary-text); margin-bottom: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 22px; }
.section.tint .feature { background: var(--color-bg); }
.feature h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; margin: 0; }
.feature .ico { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--color-primary-soft); color: var(--color-primary-text); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; font-weight: 700; }

/* Pain list */
.pain { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 28px; }
.pain li { list-style: none; padding-left: 26px; position: relative; font-size: 15px; color: var(--color-text-secondary); line-height: 1.5; margin: 6px 0; }
.pain li::before { content: "✕"; position: absolute; left: 0; color: var(--color-danger); font-weight: 700; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.tier { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 20px 18px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--color-primary); box-shadow: var(--shadow-2); }
.tier h3 { margin: 0 0 4px; font-size: 16px; }
.tier .price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.tier .price small { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.tier .best { font-size: 12px; color: var(--color-text-muted); min-height: 32px; margin: 6px 0 12px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; color: var(--color-text-secondary); }
.tier ul li { padding: 4px 0 4px 18px; position: relative; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }
.tier .btn { margin-top: auto; }
.tier .featured-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-primary-text); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0 0 14px; }
.prose .lead { font-size: 18px; color: var(--color-text-secondary); line-height: 1.6; margin: 0 0 24px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; color: var(--color-text-secondary); }
.prose ul { padding-left: 20px; }

/* Comparison table */
.cmp { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); overflow: hidden; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--color-border); }
.cmp th { background: var(--color-bg); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-faint); }
.cmp td:first-child { font-weight: 600; color: var(--color-text); }
.verify-note { font-size: 12px; color: var(--color-text-muted); margin-top: 10px; font-family: var(--font-mono); }

/* Auth + forms */
.auth-wrap { max-width: 420px; margin: 56px auto; padding: 0 24px; }
.auth-wrap.medium { max-width: 520px; }
.auth-wrap.wide { max-width: 560px; }
.auth-wrap.xwide { max-width: 680px; }
.auth-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 28px; }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.auth-card .sub { font-size: 14px; color: var(--color-text-muted); margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--color-border-strong); border-radius: var(--r-sm); background: var(--color-surface); color: var(--color-text); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: var(--focus-ring); }
.form-error { background: var(--color-danger-soft); color: #8a1d13; border: 1px solid #f2c4be; border-radius: var(--r-sm); padding: 9px 12px; font-size: 13.5px; margin-bottom: 16px; }
.form-ok { background: var(--color-success-soft); color: #11532f; border: 1px solid #bcdcc5; border-radius: var(--r-sm); padding: 9px 12px; font-size: 13.5px; margin-bottom: 16px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--color-text-muted); margin-top: 16px; }
.seed-hint { margin-top: 18px; font-size: 12px; color: var(--color-text-muted); background: var(--color-sunken); border: 1px dashed var(--color-border-strong); border-radius: var(--r-sm); padding: 10px 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-form { margin: 0; }
.choice-card { text-align: left; cursor: pointer; width: 100%; border-color: var(--color-border); }
.choice-card h3 { margin: 0 0 4px; }
.choice-card p { margin: 0; font-size: 13px; color: var(--color-text-muted); }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.colour-input { height: 42px; padding: 4px; }
.contact-wrap { max-width: 560px; }

/* CTA band */
.cta-band { background: #11201a; color: #eaf1ea; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #f6faf6; margin: 0 0 10px; }
.cta-band p { color: #b9cdc0; margin: 0 0 22px; }

/* Footer */
.site-foot { background: var(--color-sunken); border-top: 1px solid var(--color-border); padding: 48px 0 0; margin-top: 0; }
.site-foot-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 32px; }
.site-foot-brand p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; max-width: 40ch; margin: 10px 0 0; }
.site-foot-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.site-foot-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-faint); margin: 0 0 10px; }
.site-foot-cols a { display: block; font-size: 13.5px; color: var(--color-text-secondary); text-decoration: none; padding: 3px 0; }
.site-foot-cols a:hover { color: var(--color-primary-text); }
.site-foot-legal { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--color-border); padding: 16px clamp(20px, 4vw, 32px); font-size: 12px; color: var(--color-text-muted); }

@media (max-width: 860px) {
  .hero-in, .grid-3, .grid-2, .tiers, .pain, .choice-grid, .site-foot-in, .site-foot-cols { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .tiers { gap: 14px; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-cta .btn, .mk-ctas .btn { width: 100%; }
  .auth-wrap { margin: 36px auto; padding: 0 20px; }
  .auth-card { padding: 22px; }
  .site-foot-in, .site-foot-cols { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .pulse { animation: none; } }
