/* FormPulse — shared styles. Modulus1 palette + Inter, adapted for a monitoring product. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:        #0b0a09;
  --surface:   #14120f;
  --surface-2: #1c1a16;
  --ink:       #efece3;
  --ink-soft:  #d6d2c6;
  --muted:     #8a847a;
  --muted-2:   #5a554c;
  --rule:      rgba(239,236,227,0.09);
  --rule-2:    rgba(239,236,227,0.16);

  --accent:    #4d7aff;
  --accent-2:  #6a93ff;
  --glow:      rgba(77,122,255,0.55);
  --glow-soft: rgba(77,122,255,0.14);

  --alert:     #ff6b4d;
  --alert-glow: rgba(255,107,77,0.35);
  --ok:        #7fe3b0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}

/* Ambient background — soft blue radial + warm grain-free noise */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--glow-soft), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(255,107,77,0.06), transparent 60%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }

::selection { background: var(--ink); color: var(--bg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,10,9,0.72);
  border-bottom: 1px solid var(--rule);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 0 var(--alert-glow);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--alert-glow); }
  50%     { box-shadow: 0 0 0 8px rgba(255,107,77,0); }
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a { transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 2px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px -12px var(--glow); }
.btn-ghost {
  border-color: var(--rule-2); color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-alert {
  background: var(--alert); color: var(--bg);
}
.btn-alert:hover { box-shadow: 0 10px 30px -10px var(--alert-glow); }

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--alert);
  padding: 6px 12px;
  border: 1px solid rgba(255,107,77,0.25);
  border-radius: 999px;
  background: rgba(255,107,77,0.05);
}
.kicker .dot-sm { width: 6px; height: 6px; border-radius: 50%; background: var(--alert); }
h1.display {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
  margin: 24px auto 24px; max-width: 20ch;
}
h1.display .accent { color: var(--alert); }
.lead {
  max-width: 62ch; margin: 0 auto;
  font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); line-height: 1.65;
}
.cta-row { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.micro { margin-top: 14px; font-size: 12px; color: var(--muted-2); }

/* Section scaffolding */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.section h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em; font-weight: 600; line-height: 1.15;
}
.section h2 + .sub { margin-top: 10px; color: var(--muted); max-width: 60ch; }

/* 3-up pain cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--rule-2); }
.card .label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--alert); font-weight: 600;
}
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.card.accent-blue .label { color: var(--accent); }

/* Process list */
.process { margin-top: 40px; display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: 60px 1fr; gap: 18px;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: none; }
.step .n { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.08em; }
.step h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.step p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.step .tag {
  display: inline-block; margin-right: 6px;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px; color: var(--accent);
  padding: 2px 6px; background: var(--glow-soft);
  border-radius: 2px;
}

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.tier {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 28px 24px; border-radius: 2px; position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tier.featured {
  border-color: rgba(77,122,255,0.4);
  box-shadow: 0 20px 60px -30px var(--glow);
}
.tier .pill {
  position: absolute; top: -11px; right: 20px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  background: var(--accent); color: var(--bg);
  padding: 4px 10px; border-radius: 2px;
}
.tier h3 { font-size: 15px; color: var(--ink); }
.tier .amount { margin-top: 8px; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.tier .amount small { font-size: 15px; color: var(--muted); font-weight: 400; }
.tier ul { list-style: none; margin-top: 22px; padding: 0; display: grid; gap: 8px; }
.tier li { color: var(--ink-soft); font-size: 14px; padding-left: 18px; position: relative; }
.tier li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7;
}
.tier .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* Install / scan page */
.pane {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 32px; border-radius: 2px;
}
.input-row { display: flex; gap: 10px; margin-top: 28px; }
input[type=url], input[type=text], input[type=email] {
  flex: 1; width: 100%;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--rule-2);
  padding: 14px 16px; border-radius: 2px;
  font: inherit; font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input[type=url]:focus, input[type=text]:focus, input[type=email]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow-soft);
}
.hint { margin-top: 10px; font-size: 12px; color: var(--muted-2); }
.mono { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }

.result-head { margin-top: 48px; display: flex; align-items: baseline; justify-content: space-between; }
.result-head h2 { font-size: 18px; font-weight: 600; }
.result-head span { font-size: 12px; color: var(--muted); }

.form-row {
  display: flex; align-items: flex-start; gap: 18px; justify-content: space-between;
  padding: 18px 20px; border: 1px solid var(--rule);
  background: var(--bg); border-radius: 2px; margin-top: 10px;
}
.form-row .meta { min-width: 0; }
.form-row .meta .title { font-size: 14px; font-weight: 500; }
.form-row .meta .title .method { color: var(--muted); font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 12px; margin-left: 6px; }
.form-row .meta .actn { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55ch; }
.form-row .meta .fields { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.form-row .status { font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
.form-row .status.ok { color: var(--ok); }
.form-row .status.fail { color: var(--alert); }
.form-row .status.warn { color: #e6c56a; }

.next-box {
  margin-top: 24px; padding: 20px; border: 1px solid var(--rule); background: var(--surface-2); border-radius: 2px;
}
.next-box h3 { font-size: 14px; font-weight: 600; }
.next-box p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.next-box .btn { margin-top: 14px; }

.err {
  margin-top: 24px; padding: 16px 18px;
  border: 1px solid rgba(255,107,77,0.35);
  background: rgba(255,107,77,0.06);
  color: #ffb8a5; font-size: 14px; border-radius: 2px;
}

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--rule); padding: 18px 20px; border-radius: 2px; }
.stat .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.stat .v.ok { color: var(--ok); }
.stat .v.fail { color: var(--alert); }

.dash-list { margin-top: 28px; display: grid; gap: 10px; }
.dash-row {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  padding: 18px 20px; border: 1px solid var(--rule); background: var(--surface); border-radius: 2px;
  transition: border-color 0.2s var(--ease);
}
.dash-row:hover { border-color: var(--rule-2); }
.dash-row .lbl { font-size: 14.5px; font-weight: 500; }
.dash-row .u { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); margin-top: 3px; }
.dash-row .st { font-size: 12.5px; margin-top: 8px; letter-spacing: 0.02em; }
.dash-row .st.ok { color: var(--ok); }
.dash-row .st.fail { color: var(--alert); }
.dash-row .right { text-align: right; font-size: 11px; color: var(--muted); line-height: 1.5; font-variant-numeric: tabular-nums; }
.dash-row .right b { color: var(--ink-soft); display: block; font-weight: 500; font-size: 13px; }

.footnote { margin: 48px 0 20px; font-size: 11.5px; color: var(--muted-2); }

/* Footer */
footer.site {
  margin-top: 80px; padding: 28px 0;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--muted-2);
}
footer.site .row { display: flex; justify-content: space-between; align-items: center; }
footer.site .status { color: var(--ok); }
