/* LOOK=middle: half-way between the standard light look and LOOK=dark, with
 * the logo colours up front (Kyle, 19 Oct 2026: "a combination of the 2,
 * meeting right in the middle", with the colours pulled from the peopleEV
 * and Ready Steady EV logos prominent). Loaded after site.css and kit.css on
 * every page.
 *
 * A mid-tone backdrop painted in the logo colours (indigo #3F57A6 and sage
 * #5BB69A from the peopleEV wordmark; sky #479CD8, cobalt #0535CC and mint
 * #00DFAE from the Ready Steady EV rings), with the panels in "indigo smoke":
 * see-through indigo glass with white text (Kyle, 20 Oct, picked from twelve
 * panel finishes, after the first near-white panels read as "straight up
 * white"). The header stays white so the logo shows in its own colours, and
 * a bar of all five colours runs under the header and along the top of every
 * card.
 *
 * The smoke is a touch deeper than the mock-up (48-52% rather than 26-34%)
 * so white text clears 4.5:1 even over the palest corner of the backdrop,
 * where sage and mint meet: worst case about 4.8:1, and 7:1 or better over
 * most of the page. The main heading's gradient runs white to pale mint to
 * pale sky. Footer text on its indigo is 9:1 or better.
 */

:root {
  --ink: #ffffff;
  --ink-soft: #e4eaff;
  --line: rgba(255, 255, 255, 0.22);
  --deep: #3f57a6;
  --sky-ink: #c9f8ea;
  --link: #c9f8ea;
  --soft: rgba(91, 182, 154, 0.2);
  --soft-2: rgba(255, 255, 255, 0.14);
  --head-ink: #1f2440;
  --logo-bar: linear-gradient(90deg, #00dfae 0%, #5bb69a 28%, #479cd8 56%, #3f57a6 80%, #0535cc 100%);
  --sunrise: var(--logo-bar);

  /* On the smoke the call to action is white with indigo text. */
  --accent: #ffffff;
  --accent-ink: #2a3f86;
  --accent-hover: #e3f9f1;
  --secondary: rgba(255, 255, 255, 0.75);

  --smoke: linear-gradient(180deg, rgba(28, 42, 102, 0.48), rgba(28, 42, 102, 0.52));
  --glass-fill: var(--smoke);
  --glass-line: 1px solid rgba(255, 255, 255, 0.3);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 24px 60px -30px rgba(10, 25, 70, 0.7);
  --mint-fill: linear-gradient(180deg, rgba(20, 70, 90, 0.48), rgba(20, 62, 92, 0.52));
}

html { background: #4a78b8; }

body::before {
  background:
    radial-gradient(1100px 680px at 4% -6%, rgba(0, 223, 174, 0.38), transparent 60%),
    radial-gradient(1200px 740px at 100% 0%, rgba(5, 53, 204, 0.42), transparent 62%),
    radial-gradient(900px 620px at 45% 45%, rgba(71, 156, 216, 0.32), transparent 62%),
    radial-gradient(1000px 680px at 6% 96%, rgba(91, 182, 154, 0.55), transparent 62%),
    radial-gradient(1100px 700px at 70% 110%, rgba(255, 159, 110, 0.22), transparent 62%),
    linear-gradient(172deg, #4a66b4 0%, #4a86c4 38%, #4fa3a6 72%, #5bb69a 100%);
}
body::after {
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 120px);
}

/* ---- type: bold, the main heading in a pale gradient that reads on smoke ---- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; }
h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.12;
  padding-bottom: 0.08em;
  background: linear-gradient(95deg, #ffffff 0%, #c9f8ea 55%, #bfe3ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (forced-colors: active) {
  h1 { background: none; color: CanvasText; }
}
/* The home panel keeps the light look's heading size, so it is no bigger
   here than there (Kyle, 20 Oct). */
.hero-text h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
a { color: var(--link); }
.kicker, .lbl { color: var(--sky-ink); letter-spacing: 0.18em; }
/* A page's kicker keeps the Light look's tracking so it stays on one line
   (Kyle, 20 Oct). */
.title-band .kicker { letter-spacing: 0.1em; }
.skip { background: var(--deep); color: #fff; }

/* ---- header: white, so the logo keeps its own colours; its text stays dark ---- */
.site-header { background: rgba(255, 255, 255, 0.9); }
.nav nav a:not(.button) { color: var(--head-ink); background: #fff; border-color: rgba(63, 87, 166, 0.22); }
.nav nav a:not(.button):hover { color: var(--deep); background: #fff; outline-color: var(--mint); }
.nav nav a[aria-current="page"]:not(.button) { color: #04221a; }
.nav .button { background: var(--deep); color: #fff; }
.nav .button:hover { background: #0535cc; }
.burger i { background: var(--deep); }
@media (max-width: 1020px) {
  .nav nav { background: rgba(255, 255, 255, 0.97); }
}

/* ---- buttons ---- */
.button, .contact-form button { box-shadow: 0 10px 30px -12px rgba(5, 20, 80, 0.6); }
.button.ghost { color: #fff; border-color: var(--secondary); box-shadow: none; }
.button.light { background: #fff; color: #2a3f86; box-shadow: none; }
.button.light:hover { background: #e8f0fa; }

/* ---- the five logo colours along the top of every card ---- */
.card, .steps li, .safety li { position: relative; overflow: hidden; }
.card::before, .steps li::after, .safety li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--logo-bar);
}
.card::after { background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 38%); }
.pill { background: rgba(255, 255, 255, 0.12); border-color: rgba(201, 248, 234, 0.55); color: #fff; }
.pill.standin, .photo[data-standin], p.standin { border-color: rgba(201, 248, 234, 0.7); }
.steps li::before { background: #5bb69a; color: #0d2a22; font-weight: 700; }
.ring-accent { border-color: #c9f8ea; }
.standin-caption { background: rgba(255, 255, 255, 0.92); color: #3a3f5c; }
.photo { box-shadow: 0 24px 60px -30px rgba(10, 25, 70, 0.7); }

/* ---- accordion, form ---- */
.accordion summary::after { border-color: #c9f8ea; }
.field input[type="text"], .field input[type="email"], .field textarea {
  background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.4);
}
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--mint); }
fieldset.field input { accent-color: var(--mint); }

/* ---- investor band: indigo into cobalt ---- */
.band {
  background: linear-gradient(120deg, #3f57a6 0%, #0535cc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 24px 60px -30px rgba(10, 25, 70, 0.7);
}

/* ---- footer: deeper indigo than the panels ---- */
.site-footer {
  background: linear-gradient(180deg, rgba(31, 42, 92, 0.92), rgba(22, 30, 70, 0.94));
  border-color: rgba(190, 210, 255, 0.2);
}
.site-footer small, .legal { color: #c4cbe6; }
.site-footer a { color: #ffffff; }
.site-footer :focus-visible { outline-color: var(--mint); }

/* ---- where translucency is unwanted or unsupported, panels go solid ---- */
@media (prefers-reduced-transparency: reduce) {
  .section, .title-band, .glass, .card, .steps li, .safety li { background: #2b3d80; }
  .soft, .strip, .soft-card { background: #1f5266; }
  .site-footer { background: #1f2a5c; }
}
@supports not (backdrop-filter: blur(1px)) {
  .section, .title-band, .glass, .card { background: rgba(28, 42, 102, 0.85); }
  .soft, .strip { background: rgba(20, 66, 92, 0.85); }
  .site-footer { background: #1f2a5c; }
}
