/* ==========================================================================
   WattSwap — marketing page kit (network, partners, app, about, and later host/franchise/...).
   Builds on css/ws-premium.css. Class prefix: pg-
   ========================================================================== */

.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.pg-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 132px)) 0 clamp(64px, 9vw, 132px);
  background: var(--bg);
}
.pg-hero > .wp-wrap { position: relative; z-index: 2; }
.pg-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pg-aurora .wp-fx.is-live { opacity: 0.42; }
.pg-aurora::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 65% at 50% 45%, rgba(1, 3, 8, 0.6), rgba(1, 3, 8, 0) 100%),
    linear-gradient(to bottom, rgba(1, 3, 8, 0) 70%, var(--bg) 100%);
}
.pg-hero .display { max-width: 15ch; margin: 14px auto 26px; font-size: clamp(46px, 7.2vw, 104px); }
.pg-hero .lede { max-width: 58ch; margin-inline: auto; }
.pg-hero .btn-row { justify-content: center; margin-top: clamp(26px, 3.4vw, 40px); }
.pg-hero.is-split { text-align: left; }
.pg-hero.is-split .display { margin-inline: 0; max-width: 12ch; }
.pg-hero.is-split .lede { margin-inline: 0; }
.pg-hero.is-split .btn-row { justify-content: flex-start; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; list-style: none; }
.pg-hero:not(.is-split) .pg-chips { justify-content: center; }
.pg-chips .wp-chip svg { width: 15px; height: 15px; flex: none; color: var(--cyan); }

/* ---------- Generic section helpers ---------- */
.pg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px); align-items: center; }
.pg-split.top { align-items: start; }
.pg-split .h1, .pg-split .h2 { margin: 10px 0 18px; }
.pg-num { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.04em; color: var(--cyan); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.pg-cards .wp-card .h3 { margin-bottom: 10px; font-size: 22px; }
.pg-cards .wp-card .body-copy { font-size: 16px; }
.pg-cards .wp-card a.link-arrow { margin-top: 18px; font-size: 15px; }
.pg-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t3); }
.pg-fine { margin: 18px 0 0; color: var(--t3); font-size: 14px; }
.pg-lead { margin: 22px 0 0; color: var(--t1); font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; max-width: 28ch; }

/* Light "studio" frames for light renders/mockups on a dark page */
.pg-studio { overflow: hidden; border-radius: var(--r-lg); background: #eef0f2; box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -34px rgba(0, 102, 255, 0.4), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.pg-studio img { display: block; width: 100%; height: auto; }
.pg-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.pg-phones figure { margin: 0; }
.pg-phones figcaption { margin-top: 12px; text-align: center; color: var(--t2); font-size: 14px; }
.pg-phones .pg-studio:first-child { transform: translateY(-8%); }
.pg-photo { overflow: hidden; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, 0.85); }
.pg-photo img { display: block; width: 100%; height: auto; }

/* Today vs WattSwap */
.pg-duo { display: grid; gap: 16px; }
.pg-duo .wp-card { display: flex; align-items: center; gap: 22px; padding: clamp(18px, 2.2vw, 28px); }
.pg-duo .wp-card img { flex: none; width: clamp(84px, 11vw, 132px); height: auto; border-radius: 22px; }
.pg-duo .pg-kicker { margin-bottom: 6px; }
.pg-duo b { display: block; font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -0.025em; line-height: 1.2; }
.pg-duo .is-today { opacity: 0.85; }
.pg-duo .is-with { border-color: transparent; background: var(--iri-soft); box-shadow: 0 0 0 1px rgba(0, 217, 245, 0.45) inset, 0 0 60px -14px rgba(0, 217, 245, 0.35); }
.pg-duo .is-with .pg-kicker { color: var(--cyan); }

/* ---------- Film ---------- */
.pg-film { position: relative; width: min(1120px, 100%); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 60px 140px -40px rgba(0, 102, 255, 0.45); }
.pg-film #ws-network-film-player, .pg-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pg-film-sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; display: none; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: #fff;
  background: rgba(1, 3, 8, 0.7); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pg-film-sound.is-visible { display: inline-flex; }
.pg-film-sound:hover { background: rgba(1, 3, 8, 0.9); }
.pg-film-sound svg { width: 16px; height: 16px; }

/* ---------- Flywheel ---------- */
.pg-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pg-flow .wp-card { position: relative; }
.pg-flow .wp-card:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; right: calc(clamp(16px, 2vw, 28px) / -2 - 9px); width: 18px; height: 18px; z-index: 2;
  border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: translateY(-50%) rotate(45deg);
}

/* ---------- Banner (founding network / call-outs) ---------- */
.pg-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 4.4vw, 64px); border-radius: var(--r-lg); background: var(--iri-soft); border: 1px solid var(--line-2);
}
.pg-banner .h2 { margin: 8px 0 12px; }

/* ---------- Roadmap ---------- */
.pg-road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pg-road .wp-card { display: flex; flex-direction: column; gap: 10px; }
.pg-road .h3 { font-size: 24px; }
.pg-pill { align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--t2); }
.pg-pill.is-live { color: var(--mint); border-color: rgba(0, 245, 160, 0.4); background: rgba(0, 245, 160, 0.08); }
.pg-pill.is-next { color: var(--cyan); border-color: rgba(0, 217, 245, 0.35); background: rgba(0, 217, 245, 0.07); }
.pg-road .is-live-card { box-shadow: 0 0 0 1px rgba(0, 245, 160, 0.35) inset, var(--shadow-card); }

/* ---------- Facts (company) ---------- */
.pg-facts { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.pg-facts > div { display: grid; grid-template-columns: minmax(120px, 0.4fr) 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pg-facts dt { color: var(--t3); }
.pg-facts dd { margin: 0; font-weight: 550; }
.pg-facts a { color: var(--cyan); }

/* ---------- Actions row / store badges ---------- */
.pg-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-stores .btn svg { width: 18px; height: 18px; }

/* ---------- Final CTA ---------- */
.pg-final { overflow: hidden; text-align: center; }
.pg-final::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 50% 100%, rgba(0, 102, 255, 0.28), transparent 70%); }
.pg-final .wp-wrap { position: relative; }
.pg-final .btn-row { justify-content: center; margin-top: 14px; }

.pg-faq { max-width: 860px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pg-road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-hero-grid, .pg-split { grid-template-columns: 1fr; }
  .pg-hero.is-split .display { max-width: 14ch; }
  .pg-flow { grid-template-columns: 1fr; }
  .pg-flow .wp-card:not(:last-child)::after { top: auto; bottom: calc(clamp(16px, 2vw, 28px) / -2 - 9px); right: auto; left: 32px; transform: rotate(135deg); }
  .pg-banner { grid-template-columns: 1fr; }
  .pg-phones .pg-studio:first-child { transform: none; }
}
@media (max-width: 560px) {
  .pg-road { grid-template-columns: 1fr; }
  .pg-duo .wp-card { flex-direction: column; align-items: flex-start; }
  .pg-facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* 3-column steps variant (collapses via ws-premium mobile rule) */
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps.steps-3 { grid-template-columns: 1fr; } }

/* =====================================================================
   FORM KIT (Phase 2B+): paper surface forms, toasts, location box.
   Restyle only: ids/names/classes used by page scripts are untouched
   (.ws-location-box/.ws-location-actions/.ws-location-status[.ok|.err], .hidden).
   ===================================================================== */
.wp-sec[data-surface='paper'] { color: var(--t1); }
.fx-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 24px);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.4vw, 40px);
}
.fx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fx-form .full { grid-column: 1 / -1; }
.fx-field label,
.fx-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--t2);
}
.fx-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--t1);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
select.fx-input {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--t3) 50%), linear-gradient(135deg, var(--t3) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
textarea.fx-input { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.fx-input::placeholder { color: var(--t3); }
.fx-input:hover { border-color: rgba(0, 0, 0, 0.32); }
.fx-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.16); background: #fff; }
.fx-input:user-invalid { border-color: #d92d20; }
.fx-help { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--t3); }
.fx-error { margin: 8px 0 0; font-size: 13px; color: #d92d20; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.fx-status { font-size: 14px; line-height: 1.4; color: var(--t3); }
.fx-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--t3); }
.fx-fine a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.hidden { display: none !important; }

/* location capture (host survey) */
.ws-location-box {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  background: var(--card-2);
}
.ws-location-box .fx-help { margin: 0 0 14px; }
.ws-location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ws-location-status { margin-top: 12px; font-size: 14px; color: var(--t3); }
.ws-location-status.ok { color: #067647; font-weight: 600; }
.ws-location-status.err { color: #b42318; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--t1); background: var(--bg-2); border: 1px solid var(--line-2);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-line:hover { border-color: var(--t1); }
.btn-line:active { transform: scale(0.98); }
.btn-primary[disabled], .btn[disabled] { opacity: 0.6; cursor: progress; }

/* toast used by the contact script (was Tailwind classes) */
.pg-toast {
  position: fixed; top: 84px; right: 20px; z-index: 200;
  max-width: min(420px, calc(100vw - 40px));
  padding: 16px 20px; border-radius: 16px;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.45);
  transform: translateX(110%); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.pg-toast.ok { background: #067647; }
.pg-toast.err { background: #b42318; }
.pg-toast.in { transform: translateX(0); opacity: 1; }

@media (max-width: 720px) {
  .fx-form { grid-template-columns: 1fr; }
}
/* ---------- Phase 2B helpers ---------- */
.pg-hero-compact { padding-bottom: clamp(36px, 5vw, 72px); }
.pg-hero-compact .display { max-width: 18ch; }
[data-surface='paper'] .pg-facts a, [data-surface='paper'] .fx-fine a { color: var(--blue); }
.pg-facts-flat { margin-top: 28px; }
.pg-stat { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.pg-stat.iri { background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pg-fees { max-width: 760px; margin-inline: auto; }
.pg-fees .wp-spec th { width: auto; padding-right: 16px; color: var(--t1); font-weight: 600; }
.pg-fees .wp-spec td.rate { font-weight: 700; font-size: 20px; white-space: nowrap; }
.pg-fees .wp-spec td.applies { color: var(--t3); font-weight: 450; font-size: 15px; }
.pg-fees .wp-spec thead th { color: var(--t3); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; padding-top: 0; }
.pg-cards .btn-row { margin-top: 22px; }

/* Phase 2D: icon checklist */
.pg-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.pg-checks li { display: flex; align-items: flex-start; gap: 12px; color: var(--t2); }
.pg-checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--green, #34d399); }
.pg-fine { max-width: 62ch; }
.wp-sec-head.center + .wp-grid + .pg-fine, .wp-grid + .pg-fine { margin-inline: auto; text-align: center; }
