/* Shared styles for the solution pages. */
:root {
  color-scheme: light;
  --paper: #f4f3ee;
  --surface: #fbfaf6;
  --ink: #14211f;
  --muted: #65736f;
  --line: #d8ddd5;
  --lime: #c7ee56;
  --teal: #258a7b;
  --blue: #2878b9;
  --ember: #e06a3e;
  --oil: #e0861f;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", system-ui, sans-serif;
  --content: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }

.topline { height: 34px; display: flex; align-items: center; background: var(--ink); color: #e8eee8; font: 10px var(--mono); letter-spacing: .035em; }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; }
.signal { display: inline-flex; align-items: center; gap: 9px; }
.signal::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--lime); box-shadow: 0 0 0 3px #c7ee5628; }
.topline span:last-child { color: #a7b4af; }
header { position: sticky; top: 0; z-index: 20; height: 76px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, white); backdrop-filter: blur(14px); }
nav { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.055em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--lime); box-shadow: inset 0 0 0 1px #17242222; }
.brand-mark svg { width: 21px; height: 21px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #4d5d58; font-size: 12px; font-weight: 700; }
.nav-links > a:hover { color: var(--teal); }
.nav-cta {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-cta:hover, .nav-dropdown.open > .nav-cta { background: var(--ink); color: white; }
.nav-cta svg { width: 15px; height: 15px; }

.hero {
  padding: 58px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 22%, #c7ee562b 0 110px, transparent 111px),
    linear-gradient(#263d3310 1px, transparent 1px),
    linear-gradient(90deg, #263d3310 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 40px; }
.eyebrow { margin-bottom: 16px; color: var(--teal); }
h1 { max-width: 620px; margin: 0; font-size: clamp(40px, 5.2vw, 64px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: var(--teal); }
.lead { max-width: 520px; margin: 20px 0 14px; color: #586761; font-size: 14px; line-height: 1.8; }
.for-line { max-width: 520px; margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.for-line strong { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); border-color: var(--ink); color: white; }
.button svg, .text-link svg { width: 15px; height: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; }
.text-link:hover { color: var(--teal); }
.status-chip { min-height: 37px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; color: #59675f; font: 9px var(--mono); text-transform: uppercase; white-space: nowrap; }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 99px; }
.status-chip.available::before { background: var(--lime); box-shadow: 0 0 0 1px #8fb52f; }
.status-chip.next::before { background: var(--teal); }
.status-chip.planned::before { border: 1.5px solid #aab5ae; }

/* Interactive visual card */
.viz-card { min-width: 0; padding: 16px; border: 1px solid #cbd3cb; border-radius: 8px; background: var(--surface); box-shadow: 0 22px 60px #24312b18; }
.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 10px; }
.viz-head strong { display: block; font-size: 13px; letter-spacing: -.025em; }
.viz-head span { display: block; margin-top: 4px; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.viz-pill { flex: none; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: #4f5e58; font: 9px var(--mono); text-transform: uppercase; white-space: nowrap; }
.viz-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.viz-stage {
  position: relative;
  min-width: 0;
  border: 1px solid #e0e5dc;
  border-radius: 6px;
  background:
    linear-gradient(#28372f0b 1px, transparent 1px),
    linear-gradient(90deg, #28372f0b 1px, transparent 1px),
    #f9faf5;
  background-size: 24px 24px;
  overflow: hidden;
}
.viz-stage svg { display: block; width: 100%; height: auto; }
.viz-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #f7f7f0; }
.control label, .control .control-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.control strong { color: var(--ink); font-weight: 500; }
input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: var(--teal); }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.segmented button { flex: 1; min-height: 26px; padding: 0 6px; border: 0; border-radius: 3px; background: transparent; color: #62716a; cursor: pointer; font: 9px var(--mono); text-transform: uppercase; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.viz-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.small-button { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 5px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.small-button:hover { background: var(--ink); color: white; }
.small-button.primary { background: var(--ink); color: white; }
.small-button.primary:hover { background: var(--teal); border-color: var(--teal); }
.small-button:disabled { opacity: .4; cursor: default; }
.small-button.alert { border-color: var(--ember); background: var(--ember); color: white; }
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.readout { padding: 10px 12px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.readout span { display: block; color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.readout strong { display: block; margin-top: 5px; font-size: 15px; letter-spacing: -.03em; white-space: nowrap; }
.verdicts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.verdict { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: 11px; font-weight: 800; }
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #aab5ae; }
.verdict.pass { border-color: #b4dc45; background: #f3fadf; color: #3d5a10; }
.verdict.pass::before { background: #7fb31f; }
.verdict.fail { border-color: #f0a17a; background: #fdeee7; color: #9a3412; }
.verdict.fail::before { background: var(--ember); }
.verdict.warn { border-color: #f1c27d; background: #fdf4e4; color: #8a5208; }
.verdict.warn::before { background: var(--oil); }
.viz-note { margin: 10px 0 0; color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; }

/* SVG parts used by the visuals */
.axis { fill: none; stroke: #9ba79f; stroke-width: 1; }
.gridline { fill: none; stroke: #e6e9e2; stroke-width: 1; }
.chart-text { fill: var(--muted); font: 9px var(--mono); }
.chart-title { fill: var(--ink); font: 500 9px var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.curve { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.curve.oil { stroke: var(--oil); }
.curve.ember { stroke: var(--ember); }
.curve.muted { stroke: #aab5ae; }
.limit { fill: none; stroke: var(--ember); stroke-width: 1.3; stroke-dasharray: 5 4; }
.guide { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .4; }
.safe-zone { fill: #c7ee5640; }
.point { fill: var(--lime); stroke: var(--ink); stroke-width: 1.6; }
.point.bad { fill: var(--ember); }
.scene-line { fill: none; stroke: #6d7d76; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.scene-light { fill: none; stroke: #aab5ae; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.scene-metal { fill: #e4e9df; stroke: #394e46; stroke-width: 1.4; stroke-linejoin: round; }
.scene-outline { fill: none; stroke: #394e46; stroke-width: 1.4; stroke-linejoin: round; }
.curve.dashed { stroke-dasharray: 5 4; }
.legend-text { fill: var(--muted); font: 8.5px var(--mono); }
.scene-dark { fill: #31463f; }
.scene-water { fill: #2878b914; }
.scene-surface { fill: none; stroke: #7fa9c9; stroke-width: 1.4; }
.scene-label { fill: #5f6d67; font: 9px var(--mono); letter-spacing: .03em; paint-order: stroke; stroke: #f9faf5; stroke-width: 3px; stroke-linejoin: round; }
.scene-value { fill: var(--ink); font: 500 10px var(--mono); paint-order: stroke; stroke: #f9faf5; stroke-width: 3px; stroke-linejoin: round; }

/* Page sections */
section { scroll-margin-top: 82px; }
.section { padding: 76px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-tag { margin-bottom: 12px; color: var(--teal); }
h2 { margin: 0; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.06; letter-spacing: -.06em; }
.section-copy { max-width: 440px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; }
.copy p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.84; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.feature-list li { min-height: 84px; padding: 16px 16px 15px 0; border-bottom: 1px solid var(--line); }
.feature-list li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
.feature-list strong { display: block; font-size: 12px; letter-spacing: -.02em; }
.feature-list span { display: block; margin-top: 6px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.rig-file { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rig-file > .mono { color: var(--muted); font-size: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: white; color: #7c8a84; font-size: 10.5px; font-weight: 700; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.chip.reused { border-color: #9fd3c9; background: #eef7f5; color: #1d6b60; }
.chip.added { border-color: #b4dc45; background: #f3fadf; color: var(--ink); }

.band { padding: 58px 0; background: #172422; color: white; }
.band .section-tag { color: var(--lime); }
.band h2 { color: white; }
.band .section-copy { color: #b8c4bd; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #40534b; border-bottom: 1px solid #40534b; }
.step { min-height: 140px; padding: 18px 18px 18px 0; }
.step + .step { padding-left: 18px; border-left: 1px solid #40534b; }
.step .mono { color: var(--lime); font-size: 9px; }
.step h3 { margin: 22px 0 7px; font-size: 14px; letter-spacing: -.025em; }
.step p { margin: 0; color: #aebbb5; font-size: 10.5px; line-height: 1.7; }

.early { padding: 60px 0; border-top: 1px solid var(--line); }
.early-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.early h2 { font-size: clamp(26px, 3vw, 36px); }
.early p { max-width: 560px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.note { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--teal); background: #edf1e9; color: #59675f; font-size: 10px; line-height: 1.7; }
.note strong { color: var(--ink); }

footer { background: var(--ink); color: #c8d1cb; }
.footer-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 9px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: white; font-weight: 800; font-size: 11px; }
.footer-brand .brand-mark { width: 21px; height: 21px; border-radius: 5px; }
.footer-brand .brand-mark svg { width: 15px; height: 15px; }
.footer-meta { color: #8d9a94; font-family: var(--mono); text-align: right; }
.legal { margin: 0 auto; padding: 0 0 22px; color: #8d9a94; font-size: 9px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-head { display: block; }
  .section-copy { margin-top: 14px; max-width: 620px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { min-height: auto; padding: 17px 0; border-left: 0; }
  .step + .step { border-top: 1px solid #40534b; }
  .early-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 34px), var(--content)); }
  .topline { font-size: 8px; }
  .topline span:last-child { display: none; }
  header { height: 64px; }
  .brand { font-size: 15px; }
  .nav-links { gap: 13px; }
  .nav-links > a { display: none; }
  .nav-cta { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .hero { padding: 44px 0 38px; }
  h1 { font-size: 42px; }
  .lead { font-size: 12px; }
  .viz-card { padding: 11px; }
  .viz-head { align-items: flex-start; }
  .viz-split { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .footer-meta { text-align: left; }
}
