/* Endeva Sports Management: design built from the logo.
   Slate-blue ground, light grid lines, cyan data dots, one yellow dot for "you". */

:root {
  --bg: #2d607c;
  --bg-deep: #24526d;
  --panel: #33698a;
  --panel-2: #3a7395;
  --field: #24526d;
  --line: #60879c;
  --line-soft: rgba(171, 191, 202, 0.22);
  --text: #ffffff;
  --muted: #d3e0e7;
  --faint: #abbfca;
  --yellow: #fdb91a;
  --yellow-hot: #ffc93d;
  --ink: #17394d;
  --cyan: #6be4e7;
  --blue: #40b8d5;
  --danger: #ffb3a7;
  --danger-bg: rgba(255, 120, 100, 0.14);
  --ok: #8ff0c0;
  --ok-bg: rgba(110, 230, 170, 0.13);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(8, 30, 44, 0.28);
  --font-brand: "Quicksand", "Varela Round", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Brand wordmark (matches the logo) ---------- */
.wm-endeva {
  font-family: var(--font-brand);
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.02em;
  line-height: 1;
}
.wm-sub {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.2;
}

/* ---------- Top bar ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(45, 96, 124, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 4px 0;
  text-align: left;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy .wm-endeva { font-size: 1.55rem; }
.brand-copy .wm-sub { font-size: 0.72rem; color: var(--muted); }

.nav { display: flex; gap: 6px; }
.nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav button:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.nav button.active { background: rgba(253, 185, 26, 0.16); color: var(--yellow); border-color: rgba(253, 185, 26, 0.4); }

.main { flex: 1; width: 100%; }

/* ---------- Buttons ---------- */
.yellow-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 6px 0 #c98e00, 0 14px 24px rgba(10, 30, 40, 0.25);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.yellow-button:hover, .primary-button:hover { background: var(--yellow-hot); transform: translateY(-2px); box-shadow: 0 8px 0 #c98e00, 0 18px 28px rgba(10, 30, 40, 0.28); }
.yellow-button:active, .primary-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #c98e00, 0 6px 12px rgba(10, 30, 40, 0.2); }
.yellow-button:disabled, .primary-button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.yellow-button strong { font-weight: 800; }
.yellow-button.go { min-width: 110px; font-size: 1.1rem; }

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.ghost-button:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--faint); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Public home ---------- */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.hero-grid {
  display: grid;
  gap: 22px;
  grid-template-areas: "copy" "chart" "form";
}
.hero-copy { grid-area: copy; }
.chart-card { grid-area: chart; }
.lookup { grid-area: form; }

.hero h1 { margin: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.hero h1 .wm-endeva { font-size: clamp(3.4rem, 15vw, 6rem); }
.hero h1 .wm-sub { font-size: clamp(1.25rem, 5vw, 1.9rem); font-weight: 400; }
.question {
  margin: 22px 0 6px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1.2;
}
.lede { margin: 0; color: var(--muted); max-width: 34rem; }

/* drifting background dots, echoing the logo */
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.floaters span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(1px);
  animation: drift 18s ease-in-out infinite alternate;
}
.floaters span:nth-child(1) { width: 140px; height: 140px; background: var(--cyan); left: -40px; top: 60%; }
.floaters span:nth-child(2) { width: 70px; height: 70px; background: var(--blue); left: 40%; top: 4%; animation-duration: 22s; }
.floaters span:nth-child(3) { width: 40px; height: 40px; background: var(--yellow); right: 8%; top: 12%; opacity: 0.18; animation-duration: 15s; }
.floaters span:nth-child(4) { width: 110px; height: 110px; background: var(--blue); right: -30px; bottom: 6%; animation-duration: 26s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -40px) scale(1.12); }
}

/* lookup form */
.lookup {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.lookup-title { margin: 0 0 12px; font-family: var(--font-brand); font-size: 1.15rem; font-weight: 700; }

.field-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.field, .form-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input::placeholder { color: rgba(211, 224, 231, 0.55); }
input:hover, select:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 185, 26, 0.25); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; cursor: pointer; }
select option { background: var(--bg-deep); color: var(--text); }

.lookup .button-row { margin-top: 16px; }
.lookup .button-row .yellow-button:first-child { flex: 1 1 220px; }
.lookup .button-row .go { flex: 1 1 110px; }

.status {
  margin: 14px 0 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s;
}
.status.good { color: var(--ok); }
.status.warn { color: var(--yellow); }
.status.error { color: var(--danger); }
.clear-link {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 6px;
  color: var(--cyan);
  text-decoration: underline;
  font-size: inherit;
}

/* chart card */
.chart-card {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  padding: 4px;
}
.segmented button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 8px;
  border-radius: 999px;
  transition: color 0.3s;
}
.segmented button[aria-selected="true"] { color: var(--ink); }
.segmented .thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--yellow);
  transition: transform 0.45s var(--ease);
}
.segmented[data-active="age"] .thumb { transform: translateX(100%); }

.chart-title { margin: 14px 4px 4px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.chart-title h2 { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: 1.2rem; }
.chart-title span { color: var(--faint); font-size: 0.85rem; }

.graph-wrap { position: relative; width: 100%; touch-action: manipulation; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; opacity: 0.75; }
.chart .axis { stroke: var(--faint); stroke-width: 2; }
.chart .tick { fill: var(--faint); font-size: 12px; font-family: var(--font-body); }
.chart .axis-label { fill: var(--muted); font-size: 12.5px; font-weight: 600; font-family: var(--font-body); }
.chart .better { fill: var(--yellow); font-size: 12.5px; font-weight: 700; font-family: var(--font-body); }
.chart .band { fill: var(--cyan); opacity: 0.13; }
.chart .band.edge { fill: none; stroke: var(--cyan); stroke-opacity: 0.35; stroke-dasharray: 3 4; }
.chart .whisker { stroke: var(--cyan); stroke-opacity: 0.5; stroke-width: 2; }
.chart .median { stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 6 5; opacity: 0.9; }
.chart .band-label { fill: var(--cyan); font-size: 11.5px; font-weight: 600; font-family: var(--font-body); }
.chart .dot { fill: var(--cyan); cursor: pointer; transition: fill 0.2s, opacity 0.3s; }
.chart .dot.alt { fill: var(--blue); }
.chart .dot:hover, .chart .dot.hot { fill: #b8f6f7; }
.chart .you { fill: var(--yellow); cursor: pointer; filter: drop-shadow(0 0 10px rgba(253, 185, 26, 0.65)); }
.chart .you-ring { fill: none; stroke: var(--yellow); stroke-width: 2; animation: ring 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.chart .you-label { fill: var(--yellow); font-weight: 800; font-size: 13px; font-family: var(--font-body); }
.chart .layer { transition: opacity 0.5s var(--ease); }
@keyframes ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.6); opacity: 0; }
}

.chart-empty {
  position: absolute;
  inset: 18% 8% 22%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(36, 82, 109, 0.88);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  animation: fade-up 0.5s var(--ease);
}
.chart-empty strong { display: block; color: var(--text); font-family: var(--font-brand); font-size: 1.1rem; margin-bottom: 4px; }

.tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 7px 11px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: pop 0.18s var(--ease);
}
.tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: #fff;
}
.tooltip.you-tip { background: var(--yellow); }
.tooltip.you-tip::after { border-top-color: var(--yellow); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)) scale(0.9); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 2px 0; }
.chips + .chips { margin-top: 8px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.chip:hover:not(:disabled) { border-color: var(--cyan); color: var(--text); }
.chip:active:not(:disabled) { transform: scale(0.96); }
.chip.active { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.chip:disabled { opacity: 0.45; cursor: not-allowed; }
.chips-note { margin: 10px 4px 0; font-size: 0.82rem; color: var(--faint); }

/* insight under the chart */
.insight {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  animation: fade-up 0.5s var(--ease);
}
.insight.you { background: linear-gradient(135deg, rgba(253, 185, 26, 0.2), rgba(253, 185, 26, 0.06)); border-color: rgba(253, 185, 26, 0.45); }
.insight-big { font-family: var(--font-brand); font-weight: 700; font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.2; }
.insight-big .num { color: var(--yellow); }
.insight p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.tally { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tally i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(107, 228, 231, 0.25);
  transform: scale(0.4);
  opacity: 0;
  animation: tally-in 0.4s var(--ease) forwards;
}
.tally i.on { background: var(--yellow); box-shadow: 0 0 8px rgba(253, 185, 26, 0.6); }
@keyframes tally-in { to { transform: scale(1); opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* stats strip and how-it-works */
.band-section { max-width: 1180px; margin: 0 auto; padding: 8px 16px 36px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.strip-item {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.strip-item strong { display: block; font-family: var(--font-brand); font-size: clamp(1.6rem, 7vw, 2.4rem); color: var(--cyan); line-height: 1.1; }
.strip-item span { font-size: 0.8rem; color: var(--muted); }

.how { display: grid; gap: 12px; margin-top: 22px; }
.how-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 18px 18px 64px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.how-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.how-card .step {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--ink);
  font-weight: 800;
}
.how-card.private .step { background: var(--yellow); }
.how-card h3 { margin: 0 0 4px; font-family: var(--font-brand); font-size: 1.1rem; }
.how-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.site-footer { border-top: 1px solid var(--line-soft); padding: 18px 16px 28px; text-align: center; color: var(--faint); font-size: 0.82rem; }

/* ---------- Dialogs ---------- */
.axis-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--bg-deep);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.axis-dialog[open] { animation: sheet-up 0.35s var(--ease); }
.axis-dialog::backdrop { background: rgba(10, 30, 42, 0.6); backdrop-filter: blur(3px); }
@keyframes sheet-up { from { opacity: 0; transform: translateY(30px); } }
.dialog-body { padding: 20px; }
.dialog-body h3 { margin: 0 0 4px; font-family: var(--font-brand); font-size: 1.35rem; }
.dialog-body > p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.axis-list { display: grid; gap: 8px; }
.axis-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.axis-option:hover { border-color: var(--cyan); transform: translateX(3px); }
.axis-option.active { border-color: var(--yellow); background: rgba(253, 185, 26, 0.14); }
.axis-option small { color: var(--faint); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.axis-option small.has { color: var(--cyan); }

/* ---------- Coach and admin workspace ---------- */
.workspace { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; }
.section { display: flex; flex-direction: column; gap: 18px; }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-title { margin: 0; font-family: var(--font-brand); font-weight: 700; font-size: 1.45rem; }
h3.section-title { font-size: 1.2rem; }
.section-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

.mini-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: rgba(0, 0, 0, 0.16); border-radius: 999px; scrollbar-width: none; }
.mini-tabs::-webkit-scrollbar { display: none; }
.mini-tab {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.mini-tab:hover { color: var(--text); }
.mini-tab.active { background: var(--yellow); color: var(--ink); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid { display: grid; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.toolbar > * { flex: 1 1 200px; }

.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.form-row.span-2, .form-row.span-3 { grid-column: 1 / -1; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: var(--bg-deep); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { color: var(--faint); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(0, 0, 0, 0.12); }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: rgba(107, 228, 231, 0.07); }
tbody tr:last-child td { border-bottom: 0; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--ok-bg); color: var(--ok); }
.badge.off { background: rgba(255, 255, 255, 0.08); color: var(--faint); }

.player-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.player-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--bg-deep);
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.player-card:hover { border-color: var(--cyan); transform: translateX(3px); }
.player-card.active { border-color: var(--yellow); background: rgba(253, 185, 26, 0.12); }
.player-card span { color: var(--faint); font-size: 0.82rem; }

.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--bg-deep); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat span { display: block; color: var(--faint); font-size: 0.78rem; }
.stat strong { font-size: 1rem; }

.message:empty { display: none; }
.message { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; animation: fade-up 0.35s var(--ease); }
.message.error { background: var(--danger-bg); color: var(--danger); }
.message.success { background: var(--ok-bg); color: var(--ok); }

.login-card {
  max-width: 460px;
  margin: 40px auto;
  padding: 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: fade-up 0.5s var(--ease);
}
.login-card h2 { margin: 0 0 6px; font-family: var(--font-brand); font-size: 1.5rem; }
.login-card > p { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
.login-card form { display: grid; gap: 14px; }
.login-card .primary-button { width: 100%; margin-top: 4px; }

/* ---------- Small phones ---------- */
@media (max-width: 479px) {
  .brand-copy .wm-sub { display: none; }
  .nav { gap: 2px; }
  .nav button { padding: 8px 10px; font-size: 0.82rem; white-space: nowrap; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-grid .field:last-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid.three { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(4, 1fr); }
  .chart-card { padding: 18px 20px 20px; }
}

@media (min-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "copy chart" "form chart";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    align-items: start;
  }
  .field-grid { grid-template-columns: 1fr 1fr 1fr; }
  .field-grid .field:last-child { grid-column: auto; }
  .how { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .brand-copy .wm-endeva { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
