/* Robocode brand foundation for ltp.robocode.uk.
   Source of truth: Robocode Design System tokens + BRAND.md conversion
   patterns, with the LTP plum (pink-950) carrying roughly 20% of the chrome.
   Type law: Air Force appears ONCE per page (the main heading, uppercase);
   Myriad Pro carries everything else. Pink #FF00BF means the pay action and
   is never spent on decoration. */

@font-face {
  font-family: "Air Force";
  src: url("/assets/air-force.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("/assets/myriad-pro.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* ink + surfaces */
  --ink: #0F1A1F;
  --ink-soft: #2A3A40;
  --muted: #5c6e72;
  --paper: #FFFFFF;
  --surface: #F6F9F9;
  --surface-tint: #EDFFFE;
  --surface-darkest: #012226;
  --border: rgba(15,26,31,0.10);
  --hairline: rgba(15,26,31,0.05);
  /* brand ramps (subset) */
  --teal-500: #16D2DC;
  --teal-600: #0FB5BE;
  --teal-700: #00888E;
  --teal-800: #06696E;
  --teal-50: #E2FAF8;
  --pink-600: #FF00BF;
  --pink-400: #FF58EA;
  --pink-50: #FFF0FD;
  --plum: #5F003E;            /* pink-950 */
  --plum-mid: #98036C;        /* pink-900 */
  --plum-deep: #3C0028;       /* surface-plum */
  --navy: #1E2A4A;
  --emerald-600: #059669;
  /* gradients */
  --gradient-bar: linear-gradient(90deg, var(--teal-500) 0%, var(--pink-600) 100%);
  --gradient-strap: linear-gradient(90deg, var(--teal-500) 0%, var(--pink-400) 100%);
  --gradient-deep: linear-gradient(160deg, #04333A 0%, #012226 55%, #2A0A25 100%);
  --gradient-hero:
    radial-gradient(1100px 700px at 88% 30%, rgba(95,0,62,0.10), transparent 60%),
    linear-gradient(120deg, #E2FAF8 0%, #FFFFFF 50%, #FDF1F8 100%);
  /* shape + shadow */
  --radius-card: 24px;
  --radius-chip: 16px;
  --shadow-card: 0 10px 30px -15px rgba(81,38,160,0.18);
  --shadow-lg: 0 24px 60px -24px rgba(15,26,31,0.28);
  --shadow-cta: 0 8px 20px -8px rgba(0,136,142,0.45);
  --shadow-cta-hover: 0 12px 24px -8px rgba(0,136,142,0.6);
  --shadow-pay: 0 10px 28px rgba(255,0,191,0.32);
  /* type */
  --font-display: "Air Force", "Myriad Pro", "Segoe UI", sans-serif;
  --font-body: "Myriad Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
p { margin: 0 0 1rem; }
a { color: var(--teal-700); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 46rem; margin-inline: auto; padding-inline: 24px; }

/* type roles */
.display {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.01em; line-height: 1.12; color: var(--ink); margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}
h2, .h2 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.5rem; }
h3, .h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.35rem; color: var(--ink); }
.p1 { font-size: 17px; line-height: 1.6; }
.p2 { font-size: 15px; line-height: 1.6; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem;
  font-weight: 700; color: var(--plum); margin: 0 0 0.6rem;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.gradbar { width: 120px; height: 4px; border-radius: 2px; border: 0; margin: 1rem 0 1.1rem; background: var(--gradient-bar); }
.center .gradbar, .gradbar.center { margin-inline: auto; }

/* pills + chips */
.pill {
  display: inline-block; border: 1.5px solid var(--teal-600); background: var(--teal-50);
  color: var(--teal-800); border-radius: 999px; padding: 0.3rem 0.95rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.95);
  color: var(--ink); border-radius: 999px; padding: 0.32rem 0.9rem; font-size: 0.78rem;
  font-weight: 700; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.25); border: 1px solid var(--border);
}
.tickpill {
  display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px;
  background: var(--surface); padding: 0.28rem 0.8rem; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-soft); border: 1px solid var(--hairline);
}
.tickpill::before { content: "✓"; color: var(--teal-700); font-weight: 800; }

/* buttons */
.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 0.85rem 1.7rem; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--teal-800); transform: translateY(-2px); box-shadow: var(--shadow-cta-hover); }
.btn-secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px rgba(15,26,31,0.25); }
.btn-pay { background: var(--pink-600); color: #fff; box-shadow: var(--shadow-pay); }
.btn-pay:hover { background: #E100A8; transform: translateY(-1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; box-shadow: none; }
.btn-block { display: block; width: 100%; text-align: center; }

/* cards */
.card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 1.6rem 1.75rem; box-shadow: var(--shadow-card);
}

/* sections */
section { padding: 80px 0; }
section.deep { padding: 96px 0; }
section.shallow { padding: 48px 0; }
section.tinted { background: var(--surface); }
section.tinted-cyan { background: var(--surface-tint); }
@media (max-width: 810px) { section { padding: 56px 0; } section.deep { padding: 64px 0; } }

/* dot grid overlay helper: place inside a position:relative parent */
.dotgrid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.10;
  background-image: radial-gradient(#7FE3E9 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
.on-dark .dotgrid { opacity: 0.14; }

/* sticky navbar */
.nav {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 1rem; height: 68px; }
.nav .brand img { height: 32px; display: block; }
.nav nav { margin-left: auto; display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; opacity: 0.75; }
.nav nav a:hover { opacity: 1; color: var(--plum); }
.nav .btn { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
@media (max-width: 810px) { .nav nav a.navlink { display: none; } }

/* tables */
.table-scroll { overflow-x: auto; }
table.brand { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 0.95rem; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
table.brand th, table.brand td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--hairline); }
table.brand th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); background: var(--surface); }
table.brand tr:last-child td { border-bottom: none; }

/* numbered steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0 0; }
ol.steps li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 1.1rem; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -0.1rem;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--plum); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
}

/* the canon pricing cards (shared by homepage and the wizard) */
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 810px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; border: 2px solid var(--hairline); border-radius: 18px; overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column; margin: 0; padding: 0;
  box-shadow: var(--shadow-card); font-weight: 400;
}
.plan-card .head { color: #fff; text-align: center; padding: 0.8rem 0.75rem 0.75rem; }
.plan-card .head .t { display: block; font-weight: 700; font-size: 1.2rem; color: #fff; }
.plan-card .head .d { display: block; color: rgba(255,255,255,0.88); font-size: 0.76rem; margin-top: 0.1rem; }
.plan-card.monthly .head { background: var(--navy); }
.plan-card.termly .head { background: #06696e; }
.plan-card.annual .head { background: #b80080; }
.plan-card .body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.plan-card .tier { text-align: center; }
.plan-card .tier + .tier { border-top: 1px solid var(--hairline); padding-top: 0.7rem; }
.plan-card .tier .days { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.plan-card .tier .amount { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.plan-card .tier .per { display: block; font-size: 0.78rem; color: var(--muted); }
.plan-card .save { margin-top: auto; text-align: center; border-radius: 999px; padding: 0.35rem 0.6rem; font-size: 0.8rem; font-weight: 700; background: var(--surface); color: var(--muted); }
.plan-card.termly .save { background: var(--teal-50); color: var(--teal-800); }
.plan-card.annual .save { background: var(--pink-50); color: var(--plum-mid); }

/* photo frame with caption chip */
.photo { position: relative; }
.photo img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow-lg); object-fit: cover; }
.photo .chip { position: absolute; left: 0.9rem; bottom: 0.9rem; }
.photo .chip.top { bottom: auto; top: 0.9rem; left: auto; right: 0.9rem; }

/* trust strip */
.trust { text-align: center; }
.trust .marks { display: flex; justify-content: center; align-items: center; gap: 1.7rem; flex-wrap: wrap; }
.trust img { height: 30px; width: auto; filter: grayscale(1); opacity: 0.55; transition: filter 150ms, opacity 150ms; }
.trust img:hover { filter: none; opacity: 1; }
.trust p { font-size: 0.78rem; color: var(--muted); margin: 0.8rem 0 0; }

/* forms */
label { display: block; font-weight: 600; margin: 1.1rem 0 0.3rem; font-size: 0.95rem; }
.help { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 0.1rem; }
.req::after { content: " *"; color: var(--pink-600); font-weight: 700; }
input, select, textarea {
  width: 100%; padding: 0.68rem 0.8rem; border: 1px solid #D3DCE0; border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-600); outline-offset: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--plum); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: start; }
@media (max-width: 544px) { .two { grid-template-columns: 1fr; } }

/* One field, one shape: label, then the control, then any help, in that order,
   always. The form grew two shapes -- a label WRAPPING its input in the
   children step, and a label sitting BESIDE it everywhere else -- and put help
   text above the control in some fields and below it in others. So `label`'s
   own top margin applied to a whole cell in one step and to a single line in
   another, and a cell whose help sat above its input pushed that input a line
   lower than the box beside it. Two boxes in one row physically could not line
   up.
   The rhythm moves off `label` and onto the block, and help always goes below
   the control, where it cannot push anything down. */
.formfield { margin-top: 1.1rem; }
.formfield > label, .formfield > .flabel { display: block; font-weight: 600; margin: 0 0 0.3rem; font-size: 0.95rem; }
.formfield > input, .formfield > select, .formfield > textarea { margin: 0; }
.formfield > .help { margin: 0.3rem 0 0; }
.formfield > .choices { margin-top: 0; }
/* A checkbox is the one case where wrapping the control IS the right markup:
   the label is the hit area. */
.checkfield { font-weight: 400; margin-top: 1.1rem; }
.checkfield > .help { margin-top: 0.2rem; }
.age-note { display: none; }
/* The whole spacing scale. Two classes, not a system, replacing fourteen
   hand-written margins that no two of which agreed. */
.gap-lg { margin-top: 1.5rem; }
.gap-0 { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 0.9rem 1.1rem; border-radius: 12px; margin-top: 1.25rem; }
.note.bad { background: #fff1f2; border: 1px solid #fecdd3; }
.note.good { background: #ecfdf5; border: 1px solid #a7f3d0; }

/* choice tiles */
.choices { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.choices.cols { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.choice {
  position: relative; border: 2px solid var(--hairline); border-radius: 14px;
  padding: 0.9rem 1rem; cursor: pointer; background: #fff; display: block; margin: 0; font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.choice:hover { border-color: var(--teal-600); }
.choice input { position: absolute; opacity: 0; }
.choice .t { font-weight: 700; color: var(--plum); display: block; }
.choice .d { font-size: 0.85rem; color: var(--muted); display: block; margin-top: 0.15rem; }
.choice.on { border-color: var(--plum); background: var(--pink-50); box-shadow: 0 0 0 2px rgba(95,0,62,0.10); }
.choice.on::after { content: "✓"; position: absolute; top: 0.55rem; right: 0.8rem; color: var(--plum); font-weight: 800; }
.plan-card.choice { padding: 0; display: flex; }
.plan-card.choice.on::after { color: #fff; top: 0.7rem; }

/* wizard */
.wizard-progress { display: flex; align-items: center; gap: 0; margin: 1.5rem 0 0.5rem; }
.wizard-progress .wstep { flex: 1; text-align: center; position: relative; }
.wizard-progress .dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 0.3rem; font-weight: 800; font-size: 0.82rem;
  background: var(--surface); color: var(--muted); border: 2px solid var(--hairline);
  position: relative; z-index: 1;
}
.wizard-progress .wstep.done .dot { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.wizard-progress .wstep.now .dot { background: var(--plum); border-color: var(--plum); color: #fff; box-shadow: 0 0 0 4px rgba(95,0,62,0.14); }
.wizard-progress .wlabel { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.wizard-progress .wstep.now .wlabel { color: var(--plum); }
.wizard-progress .wstep::before {
  content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--hairline);
}
.wizard-progress .wstep:first-child::before { display: none; }
.wizard-progress .wstep.done::before, .wizard-progress .wstep.now::before { background: var(--teal-700); }
@media (max-width: 544px) { .wizard-progress .wlabel { display: none; } }
.wizard-panel { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.6rem 1.75rem 1.9rem; margin-top: 1rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.wizard-nav .back { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0.5rem 0; }
.review-rows { border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.review-rows .rrow { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; padding: 0.75rem 1rem; border-bottom: 1px solid var(--surface); font-size: 0.92rem; align-items: start; }
.review-rows .rrow:last-child { border-bottom: 0; }
.review-rows .rk { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 2px; }
.review-rows .redit { border: 0; background: none; color: var(--teal-700); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; text-decoration: underline; }
.review-rows .rrow.total { background: var(--pink-50); font-weight: 700; }
@media (max-width: 544px) { .review-rows .rrow { grid-template-columns: 90px 1fr auto; } }

/* footer */
footer.brand { background: var(--plum-deep); color: rgba(255,255,255,0.85); padding: 3rem 0; }
footer.brand img { height: 30px; display: block; margin-bottom: 1.25rem; }
footer.brand a { color: #fff; }
footer.brand .strap {
  background: var(--gradient-strap); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.78rem; margin-top: 1.25rem;
}
footer.brand .small { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: 0.6rem 1rem;
  display: none; align-items: center; justify-content: space-between; gap: 0.8rem;
  transform: translateY(110%); transition: transform 220ms ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .p2 { color: var(--muted); font-weight: 600; }
@media (max-width: 810px) { .sticky-cta { display: flex; } body.has-sticky { padding-bottom: 64px; } }
