/* RedNetMonitor marketing site styles
   ----------------------------------------------------------
   Built on Bootstrap 5. Brand tokens are mirrored from the
   RedNetMonitor design system so this stylesheet can be
   ported into the Claude Code project unchanged.
*/

:root {
  /* Brand */
  --rnm-primary: #d11a1b;
  --rnm-primary-shade: #b81718;
  --rnm-primary-tint: #d63132;
  --rnm-primary-light: #ffd1d2;
  --rnm-primary-dark: #700000;

  --rnm-tertiary: #fb7115;
  --rnm-tertiary-shade: #dd6312;
  --rnm-tertiary-tint: #fb7f2c;
  --rnm-tertiary-light: #ffc894;

  --rnm-secondary: #f0f0f0;
  --rnm-secondary-shade: #cdcdcd;

  /* Foreground / surface */
  --rnm-body: #383030;
  --rnm-muted: #6b6363;
  --rnm-divider: #b3b3b3;
  --rnm-border: #e0e0e0;
  --rnm-bg: #ffffff;
  --rnm-bg-page: #fafafa;
  --rnm-bg-muted: #f5f5f5;

  /* Status */
  --rnm-ok: #2dd55b;
  --rnm-unstable: #ffbb00;
  --rnm-critical: #c5000f;
  --rnm-fail: #5500b0;
  --rnm-unknown: #636469;

  /* Radii */
  --rnm-radius-button: 20px;
  --rnm-radius-card: 12px;
  --rnm-radius-pill: 9999px;

  /* Shadows */
  --rnm-shadow-card: 0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.06);
  --rnm-shadow-card-lg: 0 4px 12px rgba(0,0,0,.08);
  --rnm-shadow-hero: 0 20px 60px rgba(0,0,0,.18);

  /* Bootstrap variable overrides */
  --bs-primary: var(--rnm-primary);
  --bs-primary-rgb: 209,26,27;
  --bs-body-color: var(--rnm-body);
  --bs-body-font-family: "Nunito Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-link-color: var(--rnm-primary);
  --bs-link-hover-color: var(--rnm-primary-shade);
  --bs-border-color: var(--rnm-border);
  --bs-body-bg: #ffffff;
}

html, body { height: 100%; }
body {
  font-family: var(--bs-body-font-family);
  color: var(--rnm-body);
  background: var(--rnm-bg);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------- Headings */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--rnm-body); }
h1 { font-size: clamp(2rem, 4vw + .5rem, 3.25rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2vw + .5rem, 2.25rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; }
.lead { font-weight: 400; color: var(--rnm-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rnm-primary);
}

/* ------------------------------------------------- Buttons */
.btn {
  border-radius: var(--rnm-radius-button);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  border-width: 1px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-primary {
  background: var(--rnm-primary);
  border-color: var(--rnm-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--rnm-primary-shade);
  border-color: var(--rnm-primary-shade);
  color: #fff;
}
.btn-outline-primary {
  border-color: var(--rnm-primary);
  color: var(--rnm-primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--rnm-primary-light);
  border-color: var(--rnm-primary);
  color: var(--rnm-primary-shade);
}
.btn-light-grey {
  background: var(--rnm-secondary);
  border-color: var(--rnm-secondary);
  color: var(--rnm-body);
}
.btn-light-grey:hover {
  background: var(--rnm-secondary-shade);
  border-color: var(--rnm-secondary-shade);
  color: var(--rnm-body);
}
.btn-ghost { background: transparent; color: var(--rnm-body); }
.btn-ghost:hover { background: var(--rnm-bg-muted); color: var(--rnm-body); }

/* ------------------------------------------------- Navbar */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--rnm-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rnm-primary);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.site-nav .navbar-brand img { width: 36px; height: 36px; object-fit: contain; }
.site-nav .nav-link {
  color: var(--rnm-body);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
}
.site-nav .nav-link:hover { background: var(--rnm-bg-muted); color: var(--rnm-body); }
.site-nav .nav-link.active { background: var(--rnm-primary-light); color: var(--rnm-primary); }

/* ------------------------------------------------- Hero */
.hero {
  background:
    radial-gradient(60% 80% at 80% 0%, #fff 0%, #f7f8fb 60%, #eef0f5 100%);
  padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero .trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--rnm-primary-light);
  color: var(--rnm-primary);
  border-radius: var(--rnm-radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
}
.hero .trial-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rnm-primary);
  box-shadow: 0 0 0 4px rgba(209,26,27,.15);
}
.hero-descriptor {
  display: block;
  text-align: center;
  padding: 16px 24px;
  margin: 0 0 36px;
  background: #fff;
  color: var(--rnm-primary);
  border: 1px solid var(--rnm-primary);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--rnm-radius-card);
  letter-spacing: -0.01em;
}
.hero h1 { margin: 10px 0 14px; }
.hero h1 .accent { color: var(--rnm-primary); }
.hero .lead { font-size: 1.125rem; max-width: 36ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-meta {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--rnm-muted);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-meta span::before {
  content: "✓";
  color: var(--rnm-ok);
  margin-right: 6px;
  font-weight: 700;
}

.hero-screenshot {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  box-shadow: var(--rnm-shadow-hero);
  overflow: hidden;
  background: #fff;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
  transform-origin: left center;
}
.hero-screenshot img { width: 100%; display: block; }

/* ------------------------------------------------- Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-muted { background: var(--rnm-bg-page); }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-title p { color: var(--rnm-muted); font-size: 1.05rem; }

/* ------------------------------------------------- Feature card */
.feature {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  background: #fff;
  padding: 20px;
  height: 100%;
  box-shadow: var(--rnm-shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--rnm-shadow-card-lg); }
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--rnm-primary-light);
  color: var(--rnm-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature .icon ion-icon { font-size: 22px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 6px; font-weight: 700; }
.feature p { color: var(--rnm-muted); font-size: 0.92rem; margin: 0; }

/* ------------------------------------------------- Check-types grid */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.check-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  background: #fff;
}
.check-chip ion-icon { font-size: 22px; color: var(--rnm-primary); }
.check-chip .name { font-weight: 600; font-size: 0.95rem; }
.check-chip .sub { font-size: 0.8rem; color: var(--rnm-muted); }

/* ------------------------------------------------- Screenshot showcase */
.shot {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--rnm-shadow-card);
}
.shot img { width: 100%; display: block; }
.shot .caption {
  padding: 14px 16px;
  border-top: 1px solid var(--rnm-border);
  background: #fff;
}
.shot .caption h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 700; }
.shot .caption p { margin: 0; color: var(--rnm-muted); font-size: 0.85rem; }

/* ------------------------------------------------- Pricing */
.plan-tabs {
  display: inline-flex;
  background: var(--rnm-bg-muted);
  padding: 4px;
  border-radius: var(--rnm-radius-pill);
  border: 1px solid var(--rnm-border);
}
.plan-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rnm-muted);
  border-radius: var(--rnm-radius-pill);
  cursor: pointer;
}
.plan-tabs button.active {
  background: #fff;
  color: var(--rnm-body);
  box-shadow: var(--rnm-shadow-card);
}

.plan {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  background: #fff;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--rnm-shadow-card);
  position: relative;
}
.plan.featured {
  border-color: var(--rnm-primary);
  box-shadow: 0 0 0 1px var(--rnm-primary), var(--rnm-shadow-card-lg);
}
.plan .ribbon {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--rnm-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--rnm-radius-pill);
}
.plan h3 { font-size: 1.05rem; margin: 0 0 4px; }
.plan .plan-sub { color: var(--rnm-muted); font-size: 0.85rem; margin-bottom: 14px; }
.plan .price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 14px;
}
.plan .price .amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; }
.plan .price .per { color: var(--rnm-muted); font-size: 0.9rem; }
.plan .checks { font-size: 0.9rem; color: var(--rnm-body); margin-bottom: 16px; }
.plan .checks strong { color: var(--rnm-primary); }
.plan ul.feat {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--rnm-body);
}
.plan ul.feat li {
  padding: 6px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.plan ul.feat li::before {
  content: "✓";
  color: var(--rnm-ok);
  font-weight: 700;
  flex-shrink: 0;
}
.plan .btn { margin-top: auto; }

/* ------------------------------------------------- Status chips */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--rnm-radius-pill);
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}
.status-chip.ok { background: var(--rnm-ok); color: #0d4d1f; }
.status-chip.unstable { background: var(--rnm-unstable); color: #5a4500; }
.status-chip.critical { background: var(--rnm-critical); }
.status-chip.fail { background: var(--rnm-fail); }
.status-chip.unknown { background: var(--rnm-unknown); }

/* ------------------------------------------------- Download cards */
.dl-card {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  background: #fff;
  padding: 22px;
  height: 100%;
  box-shadow: var(--rnm-shadow-card);
}
.dl-card h3 { display:flex; align-items:center; gap:10px; }
.dl-card h3 ion-icon { color: var(--rnm-primary); font-size: 26px; }
.dl-card p { color: var(--rnm-muted); }
.dl-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.dl-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--rnm-border);
  border-radius: 10px;
  background: var(--rnm-bg-page);
}
.dl-list li .meta { font-size: 0.85rem; color: var(--rnm-muted); }
.dl-list li .platform { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.dl-list li ion-icon { font-size: 20px; color: var(--rnm-body); }
.dl-coming-soon {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--rnm-border);
  border-radius: 10px;
  background: var(--rnm-bg-page);
  color: var(--rnm-muted);
  font-size: 0.9rem;
}
.dl-coming-soon ion-icon { font-size: 18px; color: var(--rnm-tertiary); }
.dl-list li { flex-wrap: wrap; }
.dl-sha {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rnm-border);
  min-width: 0;
}
.dl-sha-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rnm-muted);
  flex-shrink: 0;
}
.dl-sha code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--rnm-muted);
  word-break: break-all;
  line-height: 1.4;
}
.dl-copy {
  flex-shrink: 0;
  border: 1px solid var(--rnm-border);
  background: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  color: var(--rnm-muted);
  line-height: 1;
}
.dl-copy:hover { color: var(--rnm-primary); border-color: var(--rnm-primary); }
.dl-copy.copied { color: var(--rnm-ok); border-color: var(--rnm-ok); }
.dl-copy ion-icon { font-size: 14px; vertical-align: middle; }

/* ------------------------------------------------- How-to steps */
.step {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  background: #fff;
  padding: 22px;
  position: relative;
  height: 100%;
}
.step .num {
  position: absolute;
  top: -14px; left: 22px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rnm-primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.step h4 { margin: 4px 0 8px; font-size: 1.05rem; font-weight: 700; }
.step p { color: var(--rnm-muted); margin: 0; font-size: 0.92rem; }
.step code {
  background: var(--rnm-bg-muted);
  border: 1px solid var(--rnm-border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--rnm-body);
}

/* ------------------------------------------------- Code block */
.code-block {
  background: #1f1b1b;
  color: #f5efef;
  border-radius: var(--rnm-radius-card);
  padding: 16px 18px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  line-height: 1.6;
}
.code-block .c { color: #b3b3b3; }
.code-block .k { color: #ff8a8a; }

/* ------------------------------------------------- CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #1f1b1b 0%, #2b1f1f 100%);
  color: #fff;
  border-radius: var(--rnm-radius-card);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; }
.cta-strip p { color: rgba(255,255,255,0.7); margin: 0; }
.cta-strip .btn-primary { background: var(--rnm-primary); border-color: var(--rnm-primary); }
.cta-strip .btn-outline-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-strip .btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

/* ------------------------------------------------- Footer */
.site-footer {
  background: #1f1b1b;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.site-footer h5 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 4px 0; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 400; font-size: 18px;
  margin-bottom: 14px;
}
.site-footer .brand img { width: 32px; height: 32px; object-fit: contain; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px; padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ------------------------------------------------- Page header */
.page-header {
  background: var(--rnm-bg-page);
  border-bottom: 1px solid var(--rnm-border);
  padding: 56px 0 40px;
}
.page-header h1 { margin: 6px 0 8px; }
.page-header .lead { max-width: 60ch; }

/* ------------------------------------------------- FAQ / accordion */
.accordion-item {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-button {
  background: #fff;
  font-weight: 600;
  color: var(--rnm-body);
}
.accordion-button:not(.collapsed) {
  background: var(--rnm-primary-light);
  color: var(--rnm-primary);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--rnm-primary); }

/* ------------------------------------------------- Contact form */
.contact-card {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  background: #fff;
  padding: 28px;
  box-shadow: var(--rnm-shadow-card);
}
.form-label { font-weight: 500; font-size: 0.9rem; }
.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--rnm-border);
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--rnm-primary);
  box-shadow: 0 0 0 3px rgba(209,26,27,0.15);
}

/* ------------------------------------------------- Signup (front page) */
.signup-blurb {
  color: var(--rnm-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.signup-blurb code {
  background: var(--rnm-bg-muted);
  border: 1px solid var(--rnm-border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--rnm-body);
}
.signup-panel .input-group-text {
  background: var(--rnm-bg-muted);
  border-color: var(--rnm-border);
  color: var(--rnm-muted);
  font-size: 0.9rem;
}
.signup-sent h3,
.signup-result h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.signup-sent h3 ion-icon,
.signup-result h3 ion-icon { font-size: 22px; }

.signup-result.success h3 { color: var(--rnm-ok); }
.signup-result.success h3 ion-icon { color: var(--rnm-ok); }
.signup-result.error h3 { color: var(--rnm-critical); }
.signup-result.error h3 ion-icon { color: var(--rnm-critical); }
.signup-result.loading h3 ion-icon { color: var(--rnm-primary); }
.signup-result-body { color: var(--rnm-body); font-size: 0.95rem; }

/* ------------------------------------------------- Misc */
.divider { height: 1px; background: var(--rnm-border); margin: 56px 0; }
.text-muted-rnm { color: var(--rnm-muted) !important; }
.bg-soft { background: var(--rnm-bg-page); }
.kbd {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: var(--rnm-bg-muted);
  border: 1px solid var(--rnm-border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.82em;
}
img.bordered-shot {
  border: 1px solid var(--rnm-border);
  border-radius: var(--rnm-radius-card);
  box-shadow: var(--rnm-shadow-card);
  width: 100%;
}

/* Mobile */
@media (max-width: 991.98px) {
  .hero-screenshot { transform: none; margin-top: 32px; }
  .cta-strip { text-align: left; }
}
