/* ============================================================
   SitesByNate LLC — "daylight rack room" design system
   Technical spec-sheet white · steel ink · signal orange
   Display/body: Archivo (variable) · Utility: IBM Plex Mono
   ============================================================ */
:root {
  --paper: #F7F7F4;
  --panel: #FFFFFF;
  --ink: #18222E;
  --muted: #5A6572;
  --line: #DCDFE3;
  --line-strong: #18222E;
  --rack: #0F141B;
  --rack-2: #151C25;
  --rack-line: #2A3441;
  --rack-text: #B9C2CC;
  --accent: #F04E23;
  --accent-dark: #D43D15;
  --led: #33C173;
  --amber: #FFB020;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(24, 34, 46, 0.09);
  --font-sans: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --rail-h: 38px;
  --nav-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--rail-h) + var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0 0 0.5em; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 830; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 790; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
strong { font-weight: 680; }
.accent { color: var(--accent); }
.strike { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--accent); color: var(--muted); }

.mono, .eyebrow, .plate-code { font-family: var(--font-mono); }
.eyebrow {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

/* plate label row — equipment-tag section headers */
.plate {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 34px;
  border-top: 2px solid var(--line-strong); padding-top: 14px;
}
.plate-code { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--ink); white-space: nowrap; }
.plate-note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ---------- status rail (signature) ---------- */
.rail {
  height: var(--rail-h); background: var(--rack); color: var(--rack-text);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  display: flex; align-items: center;
}
.rail .wrap { display: flex; align-items: center; gap: 22px; width: 100%; }
.rail-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; animation: rail-on 0.4s ease forwards; }
.rail-item:nth-child(2) { animation-delay: 0.15s; }
.rail-item:nth-child(3) { animation-delay: 0.3s; }
.rail-item:nth-child(4) { animation-delay: 0.45s; }
@keyframes rail-on { to { opacity: 1; } }
.rail-phone { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; }
.rail-phone:hover { color: var(--accent); }
.rail .hide-m { display: inline-flex; }
.led {
  width: 8px; height: 8px; border-radius: 50%; background: var(--led); flex: none;
  box-shadow: 0 0 0 0 rgba(51, 193, 115, 0.5); animation: led-pulse 2.4s ease-out infinite;
}
.led--accent { background: var(--accent); box-shadow: 0 0 0 0 rgba(240, 78, 35, 0.5); }
@keyframes led-pulse {
  0% { box-shadow: 0 0 0 0 rgba(51, 193, 115, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(51, 193, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(51, 193, 115, 0); }
}

/* ---------- header / nav ---------- */
.site-head { position: sticky; top: 0; z-index: 100; }
.nav {
  height: var(--nav-h); background: rgba(247, 247, 244, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow 0.25s ease;
}
.site-head.is-stuck .nav { box-shadow: 0 6px 24px rgba(24, 34, 46, 0.08); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em;
  background: var(--ink); color: #fff; padding: 6px 9px; border-radius: 4px;
}
.brand:hover .brand-mark { background: var(--accent); }
.brand-name { font-weight: 760; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.95rem; font-weight: 560; color: var(--ink); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 660; font-size: 0.98rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ondark { border-color: var(--rack-line); color: #fff; background: transparent; }
.btn--ondark:hover { border-color: #fff; }
.btn--sm { padding: 11px 18px; font-size: 0.9rem; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--rack); color: var(--rack-text); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .plate { border-top-color: var(--rack-line); }
.section--dark .plate-code { color: var(--rack-text); }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 92px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; }
.hero-ticks li { font-size: 0.88rem; font-weight: 560; color: var(--muted); }
.hero-ticks li::before { content: "✓ "; color: var(--led); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-call { margin-top: 18px; font-size: 0.95rem; color: var(--muted); }
.hero-call a { font-family: var(--font-mono); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.hero-call a:hover { color: var(--accent); }
.hero-price { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); margin: 18px 0 0; }

/* rack console (hero signature panel) */
.console {
  background: var(--rack); border-radius: 10px; padding: 26px 26px 20px;
  font-family: var(--font-mono); color: var(--rack-text); box-shadow: var(--shadow);
  border: 1px solid var(--rack-line);
}
.console-head {
  display: flex; align-items: center; gap: 10px; font-size: 0.68rem; letter-spacing: 0.14em;
  color: #7E8994; padding-bottom: 16px; border-bottom: 1px solid var(--rack-line); margin-bottom: 6px;
}
.console-head .led { margin-left: auto; }
.console-row {
  display: flex; align-items: baseline; gap: 12px; padding: 13px 0;
  border-bottom: 1px dashed var(--rack-line); font-size: 0.8rem; letter-spacing: 0.06em;
  opacity: 0; transform: translateY(4px); animation: row-on 0.45s ease forwards;
}
.console-row:nth-child(2) { animation-delay: 0.5s; }
.console-row:nth-child(3) { animation-delay: 0.7s; }
.console-row:nth-child(4) { animation-delay: 0.9s; }
.console-row:nth-child(5) { animation-delay: 1.1s; }
@keyframes row-on { to { opacity: 1; transform: none; } }
.console-row .k { color: #7E8994; }
.console-row .v { margin-left: auto; color: #fff; font-weight: 600; }
.console-row .ok { color: var(--led); font-weight: 600; }
.console-foot { padding-top: 14px; font-size: 0.66rem; letter-spacing: 0.12em; color: #7E8994; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- sale band ---------- */
.sale { background: var(--ink); color: #fff; padding: 18px 0; }
.sale .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sale-tag { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; background: var(--accent); color: #fff; padding: 5px 10px; border-radius: 4px; white-space: nowrap; }
.sale p { margin: 0; font-size: 0.98rem; }
.sale a { color: #fff; font-weight: 640; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card { text-decoration: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.card .plate-code { color: var(--accent); }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card-more { margin-top: auto; padding-top: 14px; font-weight: 640; font-size: 0.92rem; color: var(--ink); }
.card:hover .card-more { color: var(--accent); }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.94rem; display: grid; gap: 7px; }
.card ul li::before { content: "+ "; font-family: var(--font-mono); color: var(--accent); font-weight: 600; }

/* spec list (dark infrastructure band) */
.spec-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }
.spec-list { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; }
.spec-list li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--rack-line); }
.spec-list .k { color: #7E8994; }
.spec-list .v { color: #fff; font-weight: 600; text-align: right; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; }
.plan--hot { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.plan-flag {
  position: absolute; top: -13px; left: 26px; font-family: var(--font-mono); font-size: 0.64rem;
  font-weight: 600; letter-spacing: 0.12em; background: var(--accent); color: #fff; padding: 5px 10px; border-radius: 4px;
}
.plan h3 { font-size: 1.32rem; }
.plan-price { margin: 10px 0 4px; font-weight: 830; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; font-stretch: 112%; }
.plan-price small { font-size: 1rem; font-weight: 560; color: var(--muted); letter-spacing: 0; }
.plan-terms { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.95rem; color: var(--muted); }
.plan ul li::before { content: "✓ "; color: var(--led); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan-steps { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); }
.plan-steps .n { font-family: var(--font-mono); color: var(--accent); font-weight: 600; margin-right: 8px; }

/* ---------- work ---------- */
.case { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 46px; }
.case-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.case-badges li { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; border: 1px solid var(--line); border-radius: 4px; padding: 5px 9px; color: var(--muted); }
.case ul.ticks { columns: 2; gap: 26px; list-style: none; margin: 18px 0 26px; padding: 0; font-size: 0.94rem; color: var(--muted); }
.case ul.ticks li { margin-bottom: 9px; break-inside: avoid; }
.case ul.ticks li::before { content: "✓ "; color: var(--led); font-weight: 700; }
.case-shot { background: var(--rack); border-radius: var(--radius); padding: 22px; font-family: var(--font-mono); color: var(--rack-text); font-size: 0.78rem; letter-spacing: 0.06em; }
.case-shot .row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--rack-line); }
.case-shot .row:last-child { border-bottom: 0; }
.case-shot .v { color: #fff; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-list details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq-list details[open] { border-color: var(--ink); box-shadow: var(--shadow); }
.faq-list summary {
  display: flex; align-items: baseline; gap: 16px; cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 640; font-size: 1.04rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plate-code { color: var(--accent); font-size: 0.68rem; }
.faq-list summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); font-size: 1.1rem; color: var(--muted); }
.faq-list details[open] summary::after { content: "–"; color: var(--accent); }
.faq-a { padding: 0 24px 22px 24px; color: var(--muted); font-size: 0.98rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: start; }
.form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 34px; }
.form label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); display: block; margin-bottom: 7px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0; }
.lines { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; }
.lines li { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.lines .k { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); width: 84px; flex: none; }
.lines a { font-weight: 640; text-decoration: none; color: var(--ink); }
.lines a:hover { color: var(--accent); }
.lines .big { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; }
.steps { counter-reset: step; list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: baseline; font-size: 0.96rem; color: var(--muted); }
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
  border: 1px solid var(--line); border-radius: 4px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 0.8rem;
}

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--radius);
  font-size: 0.94rem; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 300;
  max-width: min(92vw, 480px); box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--accent-dark); }
.form__spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--rack); color: var(--rack-text); }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .hero-call a { color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--rack); color: var(--rack-text); padding: 64px 0 0; border-top: 1px solid var(--rack-line); }
.foot a { color: var(--rack-text); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot h4 { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; color: #7E8994; margin: 0 0 16px; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.foot .brand-name { color: #fff; }
.foot .brand-name small { color: #7E8994; }
.foot-blurb { font-size: 0.92rem; margin: 16px 0 0; max-width: 30em; }
.foot-phone { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; color: #fff !important; }
.foot-rail {
  border-top: 1px solid var(--rack-line); padding: 18px 0; font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.12em; color: #7E8994;
}
.foot-rail .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-rail .right { margin-left: auto; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap, .spec-cols, .case, .contact-grid, .cta-band .wrap { grid-template-columns: 1fr; }
  .grid--3, .plans { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 72px; }
  .case { padding: 32px; }
}
@media (max-width: 768px) {
  .grid--3, .grid--2, .plans, .form-row, .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .rail .hide-m, .foot-rail .hide-m { display: none; }
  .rail .wrap { gap: 12px; }
  .brand-name { font-size: 0.9rem; white-space: nowrap; }
  .brand-name small { display: none; }
  .nav .wrap { gap: 12px; }
  .btn--sm { padding: 10px 14px; font-size: 0.85rem; }
  .plate { flex-wrap: wrap; gap: 8px 16px; }
  .plate-note { display: none; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-sheet {
    position: fixed; inset: calc(var(--rail-h) + var(--nav-h)) 0 0 0; background: var(--paper);
    display: none; flex-direction: column; gap: 6px; padding: 28px 24px; z-index: 90; overflow: auto;
  }
  .nav-sheet.open { display: flex; }
  .nav-sheet a { text-decoration: none; font-size: 1.35rem; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-sheet .btn { margin-top: 18px; border-bottom: 0; font-size: 1rem; }
  .case ul.ticks { columns: 1; }
}
@media (min-width: 769px) { .nav-sheet { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .rail-item, .console-row { opacity: 1; transform: none; }
}
