:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-deep: #ece4d4;
  --card: #fffdf8;
  --ink: #16233b;
  --ink-soft: #24344f;
  --muted: #56607a;
  --line: #d8cfbc;
  --accent: #b83a08;
  --accent-hover: #982f05;
  --amber: #ffb454;
  --on-dark: #f6f1e7;
  --on-dark-muted: #b9c2d3;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  --whatsapp: #15703f;
  --whatsapp-hover: #0f5a32;
  --whatsapp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.ph {
  background: #fff1a8;
  color: #4a3a00;
  border: 1px dashed #a68a00;
  border-radius: 4px;
  padding: 0 6px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  font: 700 1rem var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-small { padding: 9px 18px; font-size: 0.95rem; white-space: nowrap; }
.btn-wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-hover); border-color: var(--whatsapp-hover); }

[data-whatsapp]::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-right: 8px;
  vertical-align: -0.2em;
  background: currentColor;
  -webkit-mask: var(--whatsapp-icon) center / contain no-repeat;
  mask: var(--whatsapp-icon) center / contain no-repeat;
}
.btn-block { display: block; width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.3rem var(--serif); text-decoration: none; }
.brand em, .footer-brand em { font-style: normal; font-weight: 500; color: var(--muted); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { font-weight: 500; font-size: 0.98rem; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-wa { color: var(--whatsapp); font-weight: 700; font-size: 0.98rem; text-decoration: none; white-space: nowrap; }
.header-wa:hover { color: var(--whatsapp-hover); }
.nav-toggle {
  display: none;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font: 500 0.95rem var(--sans);
  cursor: pointer;
}

/* Hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 72px); }
/* Aligned to the top because the form changes height from one question to the next. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.underlined { box-shadow: inset 0 -0.22em 0 var(--amber); }
.lede { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-levels { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

/* Simulator */
.sim { margin: 0; padding: 22px; background: var(--ink); color: var(--on-dark); border-radius: 16px; }
.sim-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sim-tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.sim-head h3 { font-size: 1.4rem; }
.sim-plot { display: block; width: 100%; height: auto; background: #0f1a2e; border-radius: var(--radius); }
#sim-path { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; }
#sim-ball { fill: #ff7a3d; }
.sim-axis { stroke: #5a6a86; stroke-width: 1.5; }
.sim-tick { stroke: #2b3a56; stroke-width: 1; }
.sim-label { fill: var(--on-dark-muted); font: 11px var(--mono); text-anchor: middle; }
.sim-controls { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: auto auto; gap: 2px 20px; margin-top: 16px; }
.sim-controls label { display: flex; justify-content: space-between; font-size: 0.92rem; }
.sim-controls output { font-family: var(--mono); color: var(--amber); }
.sim-controls input { width: 100%; accent-color: var(--amber); }
.sim-readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.sim-readout div { padding: 8px 12px; background: var(--ink-soft); border-radius: 8px; }
.sim-readout dt { font-size: 0.8rem; color: var(--on-dark-muted); }
.sim-readout dd { margin: 0; font-family: var(--mono); font-size: 1.05rem; }
.sim-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.formula { font-family: var(--mono); font-size: 0.95rem; color: var(--on-dark-muted); }
.sim-tip { margin-top: 12px; font-size: 0.9rem; color: var(--on-dark-muted); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sub { margin-top: 12px; color: var(--muted); }
.tint { background: var(--paper-deep); }
.band { background: var(--ink); color: var(--on-dark); }
.band .eyebrow { color: var(--amber); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-side > p:last-child:not(.eyebrow) { margin-top: 16px; color: var(--muted); }

/* Tabs */
.tablist { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--line); }
.tablist button {
  padding: 12px 8px 14px;
  margin-bottom: -2px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font: 700 1.1rem var(--serif);
  text-align: left;
  cursor: pointer;
}
.tablist button small { display: block; font: 400 0.75rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { padding-top: 26px; }
.panel-for { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 20px; }
.topics li { padding: 11px 0; border-bottom: 1px solid var(--line); }

/* Method */
.band h2 { max-width: 18em; }
.moves { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid #3a4a66; }
.moves li { padding: 26px 24px 4px 0; }
.moves li + li { padding-left: 24px; border-left: 1px solid #3a4a66; }
.move-sym { display: block; font: 500 2.4rem var(--serif); color: var(--amber); margin-bottom: 12px; line-height: 1; }
.moves p { margin-top: 8px; color: var(--on-dark-muted); }

/* Example */
.example-intro { max-width: 40em; }
.example-intro > p:last-child { margin-top: 14px; color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.compare-card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-card-strong { border: 2px solid var(--accent); }
.compare-eq { margin: 14px 0; font: 500 1.15rem var(--mono); overflow-wrap: anywhere; }
.compare-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.97rem; }

/* Parent questions */
.age-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(500px, 100%);
  margin-top: 30px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.age-tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(calc(var(--active, 0) * 100%));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.age-tabs button {
  position: relative;
  padding: 11px 6px;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font: 700 0.95rem var(--sans);
  cursor: pointer;
  transition: color 0.25s;
}
.age-tabs button:hover { color: var(--ink); }
.age-tabs button[aria-selected="true"] { color: var(--on-dark); }
.age-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.parent-q {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.parent-q:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(22, 35, 59, 0.12); }
.parent-q p { margin-top: 10px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .age-panel:not([hidden]) .parent-q { animation: chip-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .age-panel:not([hidden]) .parent-q:nth-child(2) { animation-delay: 70ms; }
  .age-panel:not([hidden]) .parent-q:nth-child(3) { animation-delay: 140ms; }
}

@media (prefers-reduced-motion: reduce) {
  .age-tabs::before, .age-tabs button, .parent-q { transition: none; }
}

@media (max-width: 960px) {
  .age-panel { grid-template-columns: minmax(0, 1fr); }
}

/* Pricing */
.plans { margin-top: 34px; border-top: 2px solid var(--ink); }
.plan { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 190px; align-items: center; gap: 20px; padding: 24px 16px; border-bottom: 1px solid #c9bea8; }
.plan-featured { background: var(--card); }
.plan h3 + p { color: var(--muted); }
.plan-freq { font-family: var(--mono); font-size: 0.92rem; }
.plan-price { font: 700 1.2rem var(--serif); }
.plan-price small { font: 400 0.85rem var(--sans); color: var(--muted); margin-left: 3px; }
.plan-note { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

/* Free resources */
.res-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); }
.res-hero .lede { max-width: 40em; }
.res-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.res-jump a { display: block; padding: 8px 16px; background: var(--card); border: 1.5px solid #8d8778; border-radius: 999px; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.res-jump a:hover { border-color: var(--ink); color: var(--accent); }
.res-note { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 34px; align-items: start; }
.res-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.tool, .quiz { padding: clamp(20px, 2.4vw, 28px); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.tool h3, .quiz h3 { margin-top: 6px; }
.tool-tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tool-desc { margin: 10px 0 18px; color: var(--muted); }
.tool-levels { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.tool-form > label, .tool-fields label { display: block; margin-bottom: 12px; font-weight: 500; font-size: 0.92rem; }
.tool label small { margin-left: 4px; font-weight: 400; color: var(--muted); }
.tool-fields-suvat label small { display: block; margin-left: 0; font-size: 0.78rem; }
.tool input[type="number"], .tool input[type="text"], .tool select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  background: #fff;
  border: 1.5px solid #8d8778;
  border-radius: 8px;
  color: var(--ink);
  font: 1rem var(--sans);
}
.tool-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0 10px; }
.tool-switch { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; border: 0; font-size: 0.95rem; }
.tool-switch legend { width: 100%; margin-bottom: 4px; padding: 0; font-weight: 500; font-size: 0.92rem; }
.tool-switch input { accent-color: var(--accent); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.working:not(:empty) { margin-top: 16px; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; }
.work-step + .work-step { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.work-title { margin-bottom: 4px; font-weight: 700; font-size: 0.9rem; }
.work-line { font-family: var(--mono); font-size: 0.88rem; overflow-wrap: anywhere; }
.work-answer { margin-top: 2px; font-weight: 500; color: var(--accent); }
.work-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.work-error { color: var(--accent); font-weight: 500; font-size: 0.95rem; }

.game-pad { fill: #2b3a56; }
.game-pad-label { fill: #3ddc84; font: 500 12px var(--mono); text-anchor: middle; }
.alien { transform-box: fill-box; transform-origin: 50% 100%; }
.alien-head { fill: #3ddc84; }
.alien-antenna { stroke: #3ddc84; stroke-width: 2; stroke-linecap: round; }
.alien-tip { fill: var(--amber); }
.alien-eye { fill: #fff; }
.alien-pupil { fill: #0f1a2e; }
.alien-mouth { fill: none; stroke: #0f1a2e; stroke-width: 1.4; stroke-linecap: round; }
.alien.is-happy { animation: alien-jump 0.6s cubic-bezier(0.3, 0, 0.4, 1); }
.alien.is-sad { animation: alien-wobble 0.45s ease; }
@keyframes alien-jump {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(0) scale(1.15, 0.85); }
  50% { transform: translateY(-16px) scale(0.95, 1.08); }
  80% { transform: translateY(0) scale(1.1, 0.9); }
}
@keyframes alien-wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  60% { transform: rotate(9deg); }
}

.tool-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; font-size: 0.88rem; color: var(--muted); }
.tool-examples button {
  padding: 5px 12px;
  background: var(--paper);
  border: 1.5px dashed #8d8778;
  border-radius: 999px;
  color: var(--ink);
  font: 500 0.88rem var(--sans);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.tool-examples button:hover { border-style: solid; border-color: var(--accent); background: #fff; transform: translateY(-1px); }
.game-path { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.game-ball { fill: #ff7a3d; }
.game-status { min-height: 2.9em; color: var(--on-dark); }
#game-launch:disabled { opacity: 0.6; cursor: progress; }

.quiz-q { font-size: 1.25rem; line-height: 1.3; }
.quiz-q:focus { outline: none; }
.quiz-options { display: grid; gap: 8px; margin-top: 16px; }
.quiz-option {
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid #8d8778;
  border-radius: 8px;
  color: var(--ink);
  font: 500 1rem var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--ink); }
.quiz-option:disabled { cursor: default; }
.quiz-option.is-right { background: #e3f4e8; border-color: #1f7a45; }
.quiz-option.is-right::after { content: "  ✓ Correct answer"; font-weight: 700; color: #1f7a45; }
.quiz-option.is-wrong { background: #fbe9e2; border-color: var(--accent); }
.quiz-option.is-wrong::after { content: "  ✗ Your answer"; font-weight: 700; color: var(--accent); }
.quiz-feedback:not(:empty) { margin-top: 14px; color: var(--muted); }
.quiz-next { margin-top: 14px; }
.quiz-gaps-title { margin-top: 4px; font-weight: 700; }
.quiz-gaps { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.quiz-gaps li { padding: 4px 12px; background: #fbe9e2; border-radius: 999px; font-size: 0.92rem; }

.res-cta-copy { margin-top: 14px; color: var(--on-dark-muted); }
.res-trust h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.res-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.res-teaser a { display: block; height: 100%; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.res-teaser a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(22, 35, 59, 0.12); }
.res-teaser h3 { font-size: 1.15rem; }
.res-teaser p { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }
.res-teaser-more { margin-top: 24px; }

/* FAQ */
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 18px 32px 18px 0; position: relative; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.6rem var(--serif); color: var(--accent); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding-bottom: 20px; color: var(--muted); }

/* Booking */
.book-card { padding: clamp(20px, 2.6vw, 30px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 36px rgba(22, 35, 59, 0.12); }
.book-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); }
.book-copy { margin: 8px 0 18px; color: var(--muted); }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.95rem; }
.q { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.q legend, .q-label { padding: 0; font-weight: 700; font-size: 1rem; }
.q legend { margin-bottom: 10px; }
.field .q-label { margin-bottom: 8px; font-weight: 700; font-size: 1rem; }
.q small, .q-label small { margin-left: 4px; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: 8px 14px; background: var(--card); border: 1.5px solid #8d8778; border-radius: 999px; font-size: 0.95rem; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-section { margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1.2rem; }
.field textarea { resize: vertical; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px;
  background: var(--card);
  border: 1.5px solid #8d8778;
  border-radius: 8px;
  color: var(--ink);
  font: 1rem var(--sans);
}
.field input::placeholder, .field textarea::placeholder { color: #6a6f7d; }
.form-status { margin-top: 12px; font-size: 0.95rem; }
.form-status:empty { display: none; }

/* Assessment slider */
.step-nav { display: flex; gap: 10px; margin-top: 10px; }
.step-nav #step-next, .step-nav #step-submit { margin-left: auto; }
.step-error { color: var(--accent); font-size: 0.95rem; font-weight: 500; }
.step-error:empty { display: none; }

.is-slider { --p: 0; overflow: hidden; }
.step-head {
  margin-bottom: 20px;
  padding: 14px 18px 10px;
  background: var(--ink-soft);
  border-radius: var(--radius);
  color: var(--on-dark-muted);
}
.step-meta { display: flex; justify-content: space-between; font: 0.8rem var(--mono); letter-spacing: 0.04em; }
.step-meta #step-count { color: var(--amber); }
.step-arc { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.step-arc path { fill: none; }
.arc-base { stroke: #4a5b79; stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.arc-fill {
  stroke: var(--amber);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p));
  transition: stroke-dashoffset 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.arc-target { fill: #4a5b79; }
.arc-ball {
  fill: #ff7a3d;
  offset-path: path("M12 74 Q300 -54 588 74");
  offset-rotate: 0deg;
  offset-distance: calc(var(--p) * 100%);
  transition: offset-distance 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 7px rgba(255, 122, 61, 0.85));
}

.is-slider .slides-viewport { overflow: hidden; transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.is-slider .slides { display: flex; align-items: flex-start; transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.is-slider .slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 6px;
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-slider .slide.is-active { opacity: 1; transform: none; }
.slide:focus { outline: none; }
.is-slider .q legend, .is-slider .q-label, .is-slider .form-section {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 18px;
}
.is-slider .form-section { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section small { display: block; margin-top: 4px; font: 400 0.85rem var(--sans); color: var(--muted); }
.field label small { margin-left: 4px; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.is-slider .q-sub legend { margin-bottom: 8px; font: 500 0.95rem var(--sans); }
.q-sub { margin-bottom: 16px; }
.is-slider .q small, .is-slider .q-label small { display: block; margin: 4px 0 0; font-family: var(--sans); }

.chip span { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover span { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(22, 35, 59, 0.16); }
.chip input:checked + span { box-shadow: 0 0 0 3px var(--amber); animation: chip-pop 0.3s ease; }

.conf-value { display: block; margin-bottom: 18px; font: 500 1.5rem var(--serif); color: var(--accent); }
.field input.conf-range {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 33%), var(--line) var(--fill, 33%));
  cursor: grab;
}
.conf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  background: var(--card);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(22, 35, 59, 0.3);
  transition: transform 0.15s ease;
}
.conf-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--card);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(22, 35, 59, 0.3);
}
.conf-range::-moz-range-track { background: transparent; }
.conf-range:active::-webkit-slider-thumb { transform: scale(1.18); }
.conf-ends { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

.shake { animation: shake 0.38s ease; }

@keyframes chip-pop { 50% { transform: scale(1.08); } }
@keyframes chip-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: no-preference) {
  .is-slider .slide.is-active .chip { animation: chip-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 180ms); }
}

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

/* Footer */
.site-footer { padding: 30px 0; background: #0f1a2e; color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer-brand { font: 700 1.15rem var(--serif); color: var(--on-dark); }
.footer-brand em { color: var(--on-dark-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 12px 18px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

/* WhatsApp buttons before a number is added, in the same colours as .ph */
[data-whatsapp].is-pending, [data-whatsapp].is-pending:hover {
  background: #fff1a8;
  color: #4a3a00;
  border: 1.5px dashed #a68a00;
  cursor: not-allowed;
}
.header-wa.is-pending { padding: 4px 10px; border-radius: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .moves { grid-template-columns: 1fr 1fr; }
  .moves li:nth-child(3) { padding-left: 0; border-left: 0; }
  .moves li:nth-child(n+3) { border-top: 1px solid #3a4a66; }
  .plan { grid-template-columns: minmax(0, 1fr) auto; }
  .plan > div { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .header-wa { display: none; }
}

@media (max-width: 560px) {
  .brand em, .btn-more { display: none; }
}

@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .brand { margin-right: auto; }
  .nav-toggle { display: block; order: 3; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .compare, .topics, .field-row { grid-template-columns: minmax(0, 1fr); }
  .moves { grid-template-columns: minmax(0, 1fr); }
  .moves li, .moves li + li { padding: 22px 0 18px; border-left: 0; }
  .moves li + li { border-top: 1px solid #3a4a66; }
  .sim { padding: 16px; }
  .sim-controls { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .tablist button { font-size: 1rem; padding-inline: 2px; }
  .plan { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-inline: 8px; }
  .plan .btn { justify-self: start; }
}
