/* Agentic Solar pre call page. Tokens copied from the ROI calculator
   (src/app.css): black surfaces, Instrument Serif headings, Inter body,
   one amber accent, 22px panels, pill buttons with a white wipe. Dark only. */

:root {
  --bg: #000;
  --panel: #0a0a0a;
  --panel-2: #111;
  --raised: #161616;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.4);
  --ghost: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #f5b400;
  --accent-ink: #000;
  --accent-glow: rgba(245, 180, 0, 0.18);
  --danger: #ff6b6b;
  --serif: 'Instrument Serif', 'Times New Roman', Times, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 12px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* a low sun behind the hero */
.sun {
  position: absolute;
  inset: -320px 0 auto 0;
  height: 760px;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(245, 180, 0, 0.28), rgba(245, 180, 0, 0.08) 45%, transparent 75%);
  filter: blur(10px);
  z-index: 0;
}

.top, .wrap, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: center;
  padding: 28px 16px 0;
}
.wordmark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-left: 0.42em;
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
  flex: 1;
}

.hero { text-align: center; padding: 64px 0 36px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.small { margin: 0 0 6px; font-size: 11px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6.4vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lede {
  max-width: 600px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
}

/* video */
.video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 40px 120px -40px rgba(245, 180, 0, 0.25);
  aspect-ratio: 16 / 9;
}
.video wistia-player { display: block; width: 100%; height: 100%; }
.video-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  color: var(--faint); font-size: 14px;
  background: radial-gradient(circle at 50% 120%, rgba(245, 180, 0, 0.14), transparent 60%), var(--panel);
}
.video-placeholder .play {
  width: 72px; height: 72px; margin: 0 auto 14px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #000;
}

/* form panel */
.panel {
  margin: 36px 0 64px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.counter { margin: 0; color: var(--faint); font-size: 13px; white-space: nowrap; }
.progress {
  height: 3px; margin: 18px 0 28px;
  background: var(--line-soft); border-radius: var(--pill); overflow: hidden;
}
.progress span {
  display: block; height: 100%; width: 33.33%;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: grid; gap: 20px; animation: rise 0.45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .grid.two { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 500; }
.field i { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 6px; }
.field small { color: var(--faint); font-size: 13px; margin-top: -4px; }
.field.narrow { max-width: 180px; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 52px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff99' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
input::placeholder, textarea::placeholder { color: var(--ghost); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.invalid input, .invalid select, .invalid textarea, input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }

.money {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.money.invalid { border-color: var(--danger); }
.money b {
  display: grid; place-items: center;
  padding: 0 14px; font-weight: 500; font-size: 13px; letter-spacing: 0.06em;
  color: var(--muted); border-right: 1px solid var(--line);
}
.money input { border: 0; border-radius: 0; box-shadow: none !important; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips.invalid button { border-color: rgba(255, 107, 107, 0.6); }
.chips button {
  font: inherit; font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chips button:hover { border-color: var(--ghost); background: var(--raised); }
.chips button[aria-pressed='true'] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.error { color: var(--danger); font-size: 14px; margin: 18px 0 0; }

.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.actions #next { margin-left: auto; }

/* pill button, amber, white wipe from the bottom on hover */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border: 0; border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.3s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: #fff;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost::before { background: var(--raised); }

.done { text-align: center; padding: 24px 0 8px; animation: rise 0.5s var(--ease); }
.done p { color: var(--muted); max-width: 460px; margin: 16px auto 0; }
.done .faint { color: var(--faint); font-size: 14px; }
.done a { color: var(--accent); }
.tick {
  width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #000;
  box-shadow: 0 0 0 8px var(--accent-glow);
}

.foot {
  display: flex; justify-content: center; gap: 20px;
  padding: 24px 16px 32px;
  color: var(--faint); font-size: 13px;
  border-top: 1px solid var(--line-soft);
}
.foot a { color: var(--faint); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .hero { padding: 44px 0 28px; }
  .actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
