/* Nidus site stylesheet: light default, orange accent, no effects noise. */

:root {
  --ink: #111827;
  --ink-2: #3f4a5a;
  --muted: #6b7280;
  --line: #e4e7eb;
  --line-strong: #cfd4da;
  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --accent: #f76436;
  --accent-dark: #c8451a;
  --accent-soft: #fdf1ec;
  --positive: #16624a;
  --deep: #101a24;
  --radius: 8px;
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.brand img { width: 34px; height: 34px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 15px; color: var(--ink-2); }
.site-nav a:hover { color: var(--accent-dark); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: transparent; color: var(--accent-dark); border-color: var(--accent); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 76px 0; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); margin-top: 20px; max-width: 640px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); margin-top: 14px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 70px; }
.hero h1 { max-width: 900px; }
.hero .lede { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- proof ---------- */
.proof {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: #fff;
  padding: 28px 30px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
}
.proof-main { flex: 1 1 420px; min-width: 0; }
.proof-main h3 { font-size: 1.35rem; }
.proof-main p { color: var(--ink-2); margin-top: 10px; }

/* ---------- goal statement ---------- */
.goal {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: #fff; padding: 32px 34px;
}
.goal h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin-bottom: 12px; }
.goal p { color: var(--ink-2); max-width: 780px; font-size: 1.05rem; }

/* ---------- lists and grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: #fff;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card ul { margin: 12px 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.card li { margin-bottom: 6px; }

.tick { list-style: none; margin: 0; }
.tick li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2); }
.tick li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.problem li { margin-bottom: 12px; }

/* ---------- availability ---------- */
.avail { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.avail-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.avail-col.now { border-top: 3px solid var(--positive); }
.avail-col.next { border-top: 3px solid var(--accent); }
.avail-col h4 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.avail-col p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- proof chart ---------- */
.proof-chart {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 20px 22px 8px;
}
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.chart-head h3 { font-size: 1.05rem; }
.chart-head .chart-note { font-size: 13px; color: var(--muted); }
.proof-chart .plot { height: 300px; }
.proof-chart .legend { margin: 8px 0 6px; }

/* ---------- sub-block inside a section ---------- */
.subblock { margin-top: 54px; padding-top: 42px; border-top: 1px solid var(--line-strong); }
.subblock h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.subblock > p { color: var(--ink-2); max-width: 660px; margin-bottom: 30px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.step { border-left: 2px solid var(--line); padding-left: 18px; }
.step h4 { margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- pricing teaser ---------- */
.teaser {
  background: var(--accent-soft); border: 1px solid #f6d8cc; border-radius: var(--radius);
  padding: 34px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.teaser h3 { font-size: 1.35rem; }
.teaser p { color: var(--ink-2); margin-top: 8px; max-width: 560px; }

/* ---------- estimator ---------- */
.estimator { display: grid; gap: 32px; grid-template-columns: 380px 1fr; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field input.num {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.field input.num:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.prefix { position: relative; }
.prefix span { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.prefix input { padding-left: 26px !important; }

.size-input { display: flex; align-items: stretch; }
.size-input input {
  flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none;
}
.size-input .unit-label {
  display: flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--line-strong); border-left: none;
  border-top-right-radius: 6px; border-bottom-right-radius: 6px;
  background: var(--bg-soft); color: var(--muted); font-size: 14px; white-space: nowrap;
}
.field input:disabled { background: var(--bg-soft); color: var(--muted); }

.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.segmented label { margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block; padding: 9px 16px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); border-right: 1px solid var(--line-strong);
}
.segmented label:last-child span { border-right: none; }
.segmented input:checked + span { background: var(--accent); color: #fff; font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }

.check { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 15px; margin: 0; }
.check input { width: 16px; height: 16px; flex: none; }

.result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.result-row:last-of-type { border-bottom: none; }
.result-row .k { color: var(--ink-2); font-size: 15.5px; }
.result-row .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.result-total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 18px; }
.result-total .k { font-weight: 600; color: var(--ink); }
.result-total .v { font-size: 1.5rem; color: var(--accent-dark); }
.result-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.pct-bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 14px; overflow: hidden; }
.pct-bar i { display: block; height: 100%; background: var(--accent); width: 0; }

/* ---------- chart panel ---------- */
.chart-panel {
  margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 26px 28px;
}
.chart-panel h3 { margin-bottom: 6px; }
.chart-cap { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; max-width: 660px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--ink-2); margin: 6px 0 26px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 18px; border-radius: 2px; }
.sw-curve { height: 3px; background: var(--accent); }
.sw-flat { height: 3px; background: #b8c0c8; }
.sw-gap { height: 10px; background: rgba(247,100,54,0.22); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 620px; }

table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
td.yes { color: var(--positive); font-weight: 600; }
td.no { color: var(--muted); }

/* ---------- contact ---------- */
.contact-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; background: #fff; }
.email-link { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; color: var(--accent-dark); }
.stacked { display: grid; gap: 10px; margin-top: 20px; }
.stacked dt { font-weight: 600; font-size: 14px; }
.stacked dd { color: var(--ink-2); font-size: 15.5px; margin-bottom: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #cbd3da; padding: 46px 0 34px; }
.site-footer a { color: #cbd3da; }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand strong { color: #fff; letter-spacing: 0.08em; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14.5px; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 20px; font-size: 13.5px; color: #8d99a4; }

/* ---------- tooltips ---------- */
.tip {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; flex: none; margin-left: 6px;
  border: none; border-radius: 50%; padding: 0;
  background: #edf0f3; color: #5b6472;
  font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1;
  cursor: help; vertical-align: 1px;
}
.tip:hover, .tip:focus-visible { background: var(--accent); color: #fff; outline: none; }
.bubble {
  display: none; position: absolute; left: 50%; bottom: calc(100% + 9px);
  transform: translateX(-50%); width: 268px; z-index: 200;
  background: #0f1a24; color: #e6ecf1;
  font-size: 12.5px; font-weight: 400; line-height: 1.5;
  letter-spacing: 0; text-transform: none; text-align: left;
  padding: 10px 13px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: #0f1a24;
}
.tip:hover .bubble, .tip:focus .bubble,
.chip:hover .bubble, .chip:focus .bubble { display: block; }
.tip.below .bubble { bottom: auto; top: calc(100% + 9px); }
.tip.below .bubble::after {
  top: auto; bottom: 100%;
  border-top-color: transparent; border-bottom-color: #0f1a24;
}

/* ---------- compact single-viewport page ---------- */
.page-fit { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.page-fit .site-header .wrap { min-height: 54px; }
.fit { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 0 12px; }
.fit-row { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.fit-head h1 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.fit-head .sub { color: var(--ink-2); font-size: 14px; margin-top: 5px; }
.fit-cols { flex: 0 0 auto; display: grid; grid-template-columns: 350px 1fr; gap: 16px; align-items: stretch; }
.fit-totals { display: flex; flex-direction: column; }
.fit-totals #pctNote { margin-top: auto; }
.fit-col { display: flex; flex-direction: column; gap: 12px; }
.fit-charts { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 262px; gap: 16px; }
.fit-side { display: flex; flex-direction: column; gap: 7px; min-height: 0; }
.fit-side .plabel { margin-bottom: 3px; }
.fit-side .chip { display: block; width: 100%; text-align: left; padding: 8px 13px; }
.fit-side .bubble { left: auto; right: 0; transform: none; }
.fit-side .bubble::after { left: auto; right: 16px; margin-left: 0; }

.panel.tight { padding: 16px 18px; }
.panel.tight.grow { flex: 1 1 auto; }
.fld { margin-bottom: 11px; }
.fld:last-child { margin-bottom: 0; }
.fld > label { display: flex; align-items: center; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.fld input.num { padding: 7px 10px; font-size: 15px; }
.fld .size-input input { padding: 7px 10px; }
.fld .size-input .unit-label { padding: 0 11px; font-size: 13px; }
.panel.tight .segmented span { padding: 6px 13px; font-size: 13.5px; }
.panel.tight .prefix span { top: 8px; }

.plabel {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center;
}

.chip {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 5px 12px; font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); cursor: help;
}
.chip:hover, .chip:focus-visible { border-color: var(--accent); color: var(--accent-dark); outline: none; }

.chartbox {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 9px 12px 6px; display: flex; flex-direction: column;
  flex: 1 1 0; min-height: 170px;
}
.chartbox h3 { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; margin-bottom: 4px; }
.chartbox .plot { flex: 1; min-height: 0; }
.chartbox .legend {
  position: absolute; top: 9px; right: 12px; margin: 0;
  display: flex; gap: 12px; font-size: 11px; color: var(--ink-2);
}
.chartbox .legend i { width: 14px; }

.fit-totals .result-row { padding: 9px 0; }
.fit-totals .result-row .k { font-size: 14.5px; }
.fit-totals .result-total { padding-top: 12px; }
.fit-totals .result-total .v { font-size: 1.5rem; }
.fit-totals .result-note { margin-top: 10px; font-size: 12.5px; }

.fit-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot-right { display: flex; align-items: center; gap: 14px; }
.foot-note { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--muted); }

/* Below these sizes the single-viewport layout cannot hold; fall back to normal flow. */
@media (max-width: 1000px), (max-height: 780px) {
  .page-fit { height: auto; overflow: visible; display: block; }
  .fit { display: block; padding: 0; }
  .fit-head, .fit-cols, .fit-charts, .fit-foot { padding: 16px 24px; }
  .fit-cols { display: grid; grid-template-columns: 1fr; }
  .fit-charts { display: grid; grid-template-columns: 1fr; }
  .chartbox { height: 250px; }
  .fit-col { gap: 16px; }
  .fit-side { flex-direction: row; flex-wrap: wrap; }
  .fit-side .chip { width: auto; }
  .fit-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .estimator { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .grid-2, .grid-3, .avail, .steps { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
  .brand span { display: none; }
  .proof { flex-direction: column; align-items: stretch; gap: 20px; }
  .teaser { padding: 26px; }
  .panel { padding: 20px; }
}
