/* FieldFlow — static portfolio */
:root {
  --bg: #070b14;
  --bg-elev: #0c1220;
  --bg-card: #111827;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e8eef7;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --orange: #f97316;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --font: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, 1280px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 1.25rem; height: 1px; background: var(--accent); opacity: 0.7;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 38rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0B1120; box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(56, 189, 248, 0.35); color: #0B1120; }
a.btn-primary, button.btn-primary, .nav-links a.btn-primary, .nav-cta.btn-primary {
  color: #0B1120;
}
.nav-links a.btn-primary:hover { color: #0B1120; }
.btn-ghost {
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03); color: var(--text);
}
.btn-ghost:hover { border-color: rgba(56,189,248,0.45); background: var(--accent-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(129, 140, 248, 0.15); color: #c7d2fe; border: 1px solid rgba(129,140,248,0.3);
}

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(7, 11, 20, 0.9); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.05rem;
}
.logo-img {
  height: 2rem; width: auto; display: block;
}
.footer .logo-img { height: 1.85rem; }
.logo-mark {
  width: 2rem; height: 2rem; border-radius: 0.55rem;
  background: linear-gradient(135deg, #14B8A6, #38BDF8);
  display: grid; place-items: center; color: white; font-size: 0.95rem; font-weight: 800;
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.3);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 0.5rem; padding: 0.55rem 1rem; font-size: 0.85rem; }
.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem; border-radius: 0.6rem;
  border: 1px solid var(--border); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 1.1rem; height: 2px; background: var(--text); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.hero {
  position: relative; padding: 4.5rem 0 5rem; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 70%;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(56,189,248,0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(99,102,241,0.14), transparent 70%),
    radial-gradient(ellipse 35% 45% at 15% 30%, rgba(20,184,166,0.1), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: 3.5rem; align-items: center;
  grid-template-columns: 1.05fr 1fr;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin: 1rem 0 1.25rem; }
.hero-copy .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem;
  color: var(--dim); font-size: 0.85rem;
}
.hero-meta strong { color: var(--muted); font-weight: 600; }

.hero-stage {
  position: relative; min-height: 420px;
  perspective: 1400px;
}
.stage-frame {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-elev);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  aspect-ratio: 16 / 10;
}
.stage-slide {
  position: absolute; inset: 0; opacity: 0;
  transform: scale(1.03) translateY(8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.stage-slide.active {
  opacity: 1; transform: scale(1) translateY(0); pointer-events: auto;
}
.stage-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.stage-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.65rem 0.85rem; border-radius: 12px;
  background: rgba(7,11,20,0.78); backdrop-filter: blur(10px);
  border: 1px solid var(--border); font-size: 0.8rem; z-index: 3;
}
.stage-caption strong { display: block; font-size: 0.9rem; }
.stage-caption span { color: var(--muted); font-size: 0.75rem; }
.stage-dots {
  display: flex; gap: 0.45rem; justify-content: center; margin-top: 1.1rem;
}
.stage-dots button {
  width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--dim);
  transition: width 0.3s, background 0.3s;
}
.stage-dots button.active { width: 1.4rem; background: var(--accent); }
.stage-float {
  position: absolute; width: 26%; border-radius: 18px;
  border: 3px solid #1e293b; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  right: -2%; bottom: 12%; z-index: 2;
  background: #000;
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.stage-float img { width: 100%; display: block; }
.stage-float.is-hidden { opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; }

section { padding: 5.5rem 0; position: relative; scroll-margin-top: 5rem; }
[id] { scroll-margin-top: 5rem; }
.section-head { margin-bottom: 2.75rem; max-width: 40rem; }
.section-head .eyebrow { margin-bottom: 0.85rem; }
.section-head h2 { margin-bottom: 0.85rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.process-card {
  position: relative; padding: 1.5rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(12,18,32,0.9));
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.process-card:hover { border-color: rgba(56,189,248,0.35); transform: translateY(-3px); }
.process-num {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 1rem;
}
.process-card h3 { margin-bottom: 0.55rem; }
.process-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.showcase-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem; border-radius: 999px;
  background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.22);
  color: #c7d2fe; font-size: 0.85rem; margin-bottom: 2rem;
}
.app-block {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem;
  align-items: center; padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.app-block:first-of-type { border-top: none; padding-top: 0; }
.app-block.reverse { direction: rtl; }
.app-block.reverse > * { direction: ltr; }
.app-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-elev);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.app-visual img { width: 100%; display: block; }
.app-phone {
  position: absolute; width: 26%; right: 4%; bottom: 4%;
  border-radius: 14px; border: 2px solid #1e293b; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55); background: #000;
}
.app-copy .badge { margin-bottom: 0.85rem; }
.app-copy h3 { font-size: 1.65rem; margin-bottom: 0.35rem; }
.app-trade {
  color: var(--accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.85rem;
}
.app-copy > p { color: var(--muted); margin: 0 0 1.25rem; }
.feature-list { display: grid; gap: 0.65rem; }
.feature-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  color: var(--text); font-size: 0.95rem;
}
.feature-list li::before {
  content: ""; flex-shrink: 0; margin-top: 0.4rem;
  width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.app-roofing .app-trade { color: var(--orange); }
.app-roofing .feature-list li::before { background: var(--orange); }
.app-plumbing .app-trade { color: var(--teal); }
.app-plumbing .feature-list li::before { background: var(--teal); }
.app-electrical .app-trade { color: var(--amber); }
.app-electrical .feature-list li::before { background: var(--amber); }

.why {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56,189,248,0.08), transparent 60%),
    var(--bg);
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.why-card {
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.why-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--accent-soft); color: var(--accent);
}
.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.trades-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.trade-chip {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.1rem 1.15rem; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.trade-chip:hover { border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.05); }
.trade-chip svg { width: 1.35rem; height: 1.35rem; color: var(--accent); flex-shrink: 0; }
.trade-chip.muted { color: var(--muted); font-weight: 500; }
.trade-chip.muted svg { color: var(--dim); }

.contact-panel {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem;
  padding: 2.5rem; border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(56,189,248,0.1), rgba(99,102,241,0.08)),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.contact-panel h2 { margin: 0.75rem 0 0.85rem; }
.contact-panel .lead { margin-bottom: 1.75rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contact-side {
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(7,11,20,0.45); border: 1px solid var(--border);
}
.contact-row { font-size: 0.92rem; }
.contact-row span { display: block; color: var(--dim); font-size: 0.75rem; margin-bottom: 0.2rem; }
.contact-row a { color: var(--text); font-weight: 600; }
.contact-row a:hover { color: var(--accent); }

.footer {
  padding: 3rem 0 2.5rem; border-top: 1px solid var(--border);
  color: var(--dim); font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer .logo { margin-bottom: 0.85rem; }
.footer p { margin: 0; max-width: 22rem; color: var(--muted); }
.footer h4 {
  margin: 0 0 0.85rem; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.footer a { color: var(--muted); transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer ul { display: grid; gap: 0.5rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage-slide { transition: none; }
}

@media (max-width: 960px) {
  .hero-grid, .app-block, .app-block.reverse, .contact-panel, .footer-grid {
    grid-template-columns: 1fr; direction: ltr;
  }
  .footer-grid { gap: 1.5rem; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .trades-grid { grid-template-columns: 1fr 1fr; }
  .hero-stage { min-height: 0; }
  .stage-float { width: 24%; right: 3%; bottom: 3%; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 4.25rem;
    padding: 1rem 1.25rem 1.25rem; gap: 1rem;
    background: rgba(7,11,20,0.97); border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links .nav-cta { margin-left: 0; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  section { padding: 4rem 0; }
  .process-grid, .trades-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .contact-panel { padding: 1.5rem; }
  .app-phone { width: 30%; }
  .stage-caption { flex-direction: column; align-items: flex-start; }
}


/* Results / stats */
.results {
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(56,189,248,0.1), transparent 65%),
    radial-gradient(ellipse 40% 50% at 100% 80%, rgba(99,102,241,0.08), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.stat-card {
  position: relative;
  padding: 2rem 1.6rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(17,24,39,0.95), rgba(12,18,32,0.88));
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, transparent);
  opacity: 0.85;
}
.stat-card:hover {
  border-color: rgba(56,189,248,0.4);
  transform: translateY(-3px);
}
.stat-value {
  font-size: clamp(2.75rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e8eef7 10%, #38bdf8 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  max-width: 18rem;
}
.stats-footnote {
  margin: 1.75rem 0 0;
  font-size: 0.8rem;
  color: var(--dim);
  max-width: 40rem;
}
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-label { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-card { transition: none; }
}

/* Nav dropdown */
.nav-item { position: relative; }
.nav-item > button, .nav-item > a.has-caret {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--muted); font-size: 0.9rem; font-weight: 500; background: none; border: none;
  padding: 0; cursor: pointer; font-family: inherit;
}
.nav-item > button:hover, .nav-item > a.has-caret:hover { color: var(--text); }
.nav-item .caret {
  width: 0.55rem; height: 0.55rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px); opacity: 0.7;
}
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
  min-width: 11.5rem; padding: 0.45rem;
  background: rgba(12,18,32,0.98); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.45); z-index: 60;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown { display: grid; gap: 0.15rem; }
.nav-dropdown a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 8px;
  color: var(--muted); font-size: 0.88rem; font-weight: 500; white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(56,189,248,0.08); color: var(--text); }
@media (max-width: 960px) {
  .nav-item { width: 100%; }
  .nav-dropdown {
    position: static; transform: none; display: none; min-width: 0;
    box-shadow: none; background: transparent; border: none; padding: 0.25rem 0 0.25rem 0.75rem;
  }
  .nav-item.open .nav-dropdown { display: grid; }
}

/* Calculator */
.calculator {
  background:
    radial-gradient(ellipse 50% 55% at 20% 0%, rgba(20,184,166,0.1), transparent 60%),
    radial-gradient(ellipse 45% 50% at 90% 80%, rgba(56,189,248,0.08), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.calc-panel {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem;
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.calc-fields { display: grid; gap: 0.75rem; align-content: start; }
.field {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.28rem;
  min-width: 0;
}
.field label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--text);
  line-height: 1.3; margin: 0;
}
.field .hint {
  display: block; font-size: 0.72rem; color: var(--dim); font-weight: 400;
  line-height: 1.35; margin: 0;
}
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box;
  height: 2.75rem; min-height: 2.75rem; max-height: 2.75rem;
  padding: 0 0.85rem; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(7,11,20,0.55);
  color: var(--text); font-family: inherit; font-size: 0.95rem; font-weight: 500;
  line-height: 1.2; transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield; appearance: textfield;
}
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.field select {
  appearance: none; height: 2.75rem; min-height: 2.75rem; max-height: 2.75rem;
  background-color: rgba(7,11,20,0.55);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2rem;
}
.field textarea {
  height: auto; min-height: 6.5rem; max-height: none;
  padding: 0.75rem 0.9rem; resize: vertical; line-height: 1.45;
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
  align-items: start;
}

/* Number stepper control */
.stepper {
  display: grid; grid-template-columns: 2.65rem 1fr 2.65rem;
  align-items: stretch; height: 2.75rem;
  border-radius: 10px; border: 1px solid var(--border-strong);
  background: rgba(7,11,20,0.55); overflow: hidden;
}
.stepper:focus-within {
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.stepper input {
  height: 100%; min-height: 0; max-height: none;
  border: none; border-radius: 0; background: transparent;
  text-align: center; padding: 0 0.35rem; font-variant-numeric: tabular-nums;
  box-shadow: none !important;
}
.stepper input:focus { box-shadow: none !important; outline: none; }
.stepper-btn {
  display: grid; place-items: center;
  background: rgba(255,255,255,0.03); color: var(--text);
  font-size: 1.15rem; font-weight: 600; line-height: 1;
  border: none; cursor: pointer; transition: background 0.15s, color 0.15s;
  user-select: none;
}
.stepper-btn:hover { background: rgba(56,189,248,0.12); color: var(--accent); }
.stepper-btn:active { background: rgba(56,189,248,0.2); }
.stepper-btn:disabled { opacity: 0.35; cursor: default; }
.stepper-minus { border-right: 1px solid var(--border); }
.stepper-plus { border-left: 1px solid var(--border); }
.field .range-row {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem; margin-top: 0.15rem;
}
.field input[type="range"] {
  height: 1.25rem; min-height: 1.25rem; max-height: 1.25rem;
  padding: 0; border: none; background: transparent; box-shadow: none;
  accent-color: #38bdf8; cursor: pointer;
}
.field input[type="range"]:focus { box-shadow: none; }
.calc-results {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.35rem; border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(56,189,248,0.1), rgba(20,184,166,0.06)),
    rgba(7,11,20,0.5);
  border: 1px solid var(--border);
}
.calc-metric {
  padding: 0.85rem 1rem; border-radius: 12px;
  background: rgba(7,11,20,0.4); border: 1px solid var(--border);
}
.calc-metric .label { display: block; font-size: 0.75rem; color: var(--dim); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.calc-metric .value {
  font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #e8eef7, #38bdf8 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-assumptions {
  margin: 0; padding: 0.85rem 1rem; border-radius: 12px;
  background: rgba(7,11,20,0.35); border: 1px dashed var(--border);
  color: var(--muted); font-size: 0.8rem; line-height: 1.5;
}
.calc-assumptions strong { color: var(--text); font-weight: 600; }
.calc-disclaimer { margin: 0; font-size: 0.75rem; color: var(--dim); line-height: 1.45; }
.calc-cta { margin-top: auto; padding-top: 0.5rem; }

/* Lead form */
.lead-form {
  display: grid; gap: 0.9rem;
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(7,11,20,0.45); border: 1px solid var(--border);
}
.lead-form .form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.25rem; }
.lead-form .required { color: var(--accent); }
.lead-compact { max-width: 36rem; }
.contact-panel.has-form { grid-template-columns: 1fr 1.1fr; align-items: start; }
.contact-secondary { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Trade pages */
.trade-hero { padding-top: 3.5rem; padding-bottom: 3rem; }
.trade-hero .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
.pain-grid, .include-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem;
}
.pain-card, .include-card {
  padding: 1.25rem 1.35rem; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border);
}
.pain-card h3, .include-card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.pain-card p, .include-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.trade-links {
  display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem;
}
.trade-links a {
  padding: 0.55rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03); color: var(--muted);
}
.trade-links a:hover, .trade-links a.is-active {
  border-color: rgba(56,189,248,0.45); color: var(--text); background: var(--accent-soft);
}
.trade-chip a { color: inherit; display: flex; align-items: center; gap: 0.75rem; width: 100%; }
a.trade-chip { text-decoration: none; }

/* Thanks / 404 */
.simple-page {
  min-height: 70vh; display: grid; place-items: center; padding: 4rem 0;
  text-align: center;
}
.simple-page .card {
  max-width: 32rem; padding: 2.5rem 2rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.simple-page h1 { margin: 0.75rem 0 0.85rem; font-size: clamp(1.85rem, 4vw, 2.4rem); }
.simple-page p { color: var(--muted); margin: 0 0 1.5rem; }
.simple-page .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

@media (max-width: 960px) {
  .calc-panel, .contact-panel.has-form, .trade-hero .hero-grid { grid-template-columns: 1fr; }
  .pain-grid, .include-grid, .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .calc-panel { padding: 1.15rem; gap: 1.15rem; }
  .stepper { height: 2.75rem; grid-template-columns: 2.75rem 1fr 2.75rem; }
  .field input, .field select { height: 2.75rem; min-height: 2.75rem; max-height: 2.75rem; }
}


/* Footer pride flags */
.footer-pride {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin-top: 1.1rem; padding: 0.45rem 0.7rem 0.45rem 0.55rem;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.footer-pride .flag-icons { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-pride .flag {
  display: block; height: 22px; width: auto;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(148,163,184,0.25);
}
.footer-pride-text {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.01em;
}
