/* Railstead public site — draft brand pending owner confirmation
   Distinctive IT/MSP catalog look: slate + teal, not purple/cream AI defaults. */

@import url("https://fonts.bunny.net/css?family=fraunces:600,700|sora:400,500,600,700");

:root {
  --bg: #0f1419;
  --bg-elev: #182029;
  --bg-soft: #1e2a36;
  --ink: #e8eef4;
  --muted: #9aabbc;
  --line: rgba(232, 238, 244, 0.12);
  --accent: #2ec4b6;
  --accent-deep: #1a9e92;
  --accent-soft: rgba(46, 196, 182, 0.14);
  --warn: #e8b86d;
  --danger: #e07a7a;
  --radius: 14px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(46, 196, 182, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 140, 200, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7fe0d6; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(15, 20, 25, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover { color: var(--ink); }

.nav .nav-cta {
  background: var(--accent);
  color: #06201d;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav .nav-cta:hover { background: #7fe0d6; color: #06201d; }

.hero {
  padding: 4.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.button.primary {
  background: var(--accent);
  color: #06201d;
}

.button.primary:hover { background: #7fe0d6; color: #06201d; }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fine-print {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-panel {
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-panel ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-panel li { margin: 0.55rem 0; }
.hero-panel strong { color: var(--ink); }

.section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 0.5rem; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.price-note { color: var(--muted); font-size: 0.9rem; }

.check-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.check-list li { margin: 0.35rem 0; }

.featured {
  border-color: rgba(46, 196, 182, 0.45);
  box-shadow: 0 0 0 1px rgba(46, 196, 182, 0.15);
}

.banner {
  background: var(--accent-soft);
  border: 1px solid rgba(46, 196, 182, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--ink);
}

.hidden,
[hidden] {
  display: none !important;
}

.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.scenario {
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.2rem;
}

.scenario .label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.scenario h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.scenario p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.pain-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.pain-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.pain-card p { color: var(--muted); margin: 0; }

.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contrast-col {
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.contrast-col.without {
  background: rgba(224, 122, 122, 0.08);
  border-color: rgba(224, 122, 122, 0.28);
}

.contrast-col.with {
  background: var(--accent-soft);
  border-color: rgba(46, 196, 182, 0.35);
}

.contrast-col h3 { margin-bottom: 0.75rem; }
.contrast-col ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.contrast-col li { margin: 0.4rem 0; }

.pull {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink);
}

.pull span {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-align: center;
}

.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  color: var(--accent);
}

.stat .label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.value-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.value-row:last-child { border-bottom: 0; }
.value-row p { margin: 0; color: var(--muted); }
.value-row strong { color: var(--ink); }
.value-row .worth { white-space: nowrap; color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .pain-grid, .contrast { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .value-row { grid-template-columns: 1fr; }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin: 0.3rem 0;
}

.footer-grid a:hover { color: var(--accent); }

.legal {
  max-width: 48rem;
}

.legal p, .legal li { color: var(--muted); }
.legal h2 { margin-top: 2rem; }

.draft-banner {
  background: #3a2c12;
  color: #f0d9a8;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid #6a5228;
}

.draft-banner strong { color: #ffe6b0; }

/* Sample output preview + FAQ (product page conversion) */
.sample-table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.sample-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.sample-table th,
.sample-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.sample-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-soft);
}

.sample-table tbody tr:last-child td { border-bottom: 0; }
.sample-table td { color: var(--muted); }
.sample-table td strong { color: var(--ink); font-weight: 600; }

.sample-caption { margin: 0.85rem 1rem 1rem; }

.risk-low,
.risk-medium,
.risk-high,
.decision-approved,
.decision-conditional,
.decision-review,
.decision-not-approved {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.risk-low { background: rgba(46, 196, 182, 0.18); color: #7fe0d6; }
.risk-medium { background: rgba(232, 184, 109, 0.2); color: #f0d9a8; }
.risk-high { background: rgba(224, 122, 122, 0.2); color: #f0b0b0; }
.decision-approved { background: rgba(46, 196, 182, 0.18); color: #7fe0d6; }
.decision-conditional { background: rgba(232, 184, 109, 0.2); color: #f0d9a8; }
.decision-review { background: rgba(90, 140, 200, 0.22); color: #a8c8f0; }
.decision-not-approved { background: rgba(224, 122, 122, 0.2); color: #f0b0b0; }

.faq-list { margin-top: 1.25rem; display: grid; gap: 0.65rem; }

.faq-list details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.15rem 1rem 0.15rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  font-weight: 600;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-list details[open] summary::after { content: "–"; }
.faq-list details[open] summary { color: var(--accent); }

.faq-list details p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 48rem;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { justify-content: flex-end; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .draft-banner, .nav-cta, .cta-row { display: none !important; }
  body { background: white; color: black; }
}
