/* Brand: xariotech.com palette. Manrope for text and interface, Instrument Serif italic for accents. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/Manrope.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0712;
  --bg-2: #13111a;
  --purple: #5b2c87;
  --purple-2: #7c3aad;
  --lavender: #a78bda;
  --lilac: #c4a8e8;
  --lilac-2: #e9d5ff;
  --tint: #faf5ff;
  --paper: #ffffff;
  --ink: #191919;
  --muted: #5f5b6b;
  --line: #e6e2ee;
  --danger: #b42318;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1100px;
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (max-width: 600px) { body { font-size: 16px; } }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; -webkit-tap-highlight-color: rgba(124, 58, 173, 0.18); }
p { margin: 0 0 .9rem; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; color: var(--bg); margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0 0 .9rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--purple); }
.serif, .title em, .cta h2 em, .reg-head h1 em, .success h2 em, .simple h1 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.08em; color: var(--purple);
}
.cta h2 em { color: var(--lilac); }
:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 3px; border-radius: 3px; }
.top :focus-visible, .hero :focus-visible, .cta :focus-visible, .foot :focus-visible, .sticky-cta :focus-visible { outline-color: var(--lilac); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--bg); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(var(--wrap), 100% - 4rem); } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(10, 7, 18, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-weight: 700; font-size: 1rem; color: #fff; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand span { color: var(--lilac); }
.top-nav { display: flex; align-items: center; gap: .25rem 1.4rem; font-size: .88rem; font-weight: 600; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.top-nav a:hover { color: #fff; }
.top-nav .top-register { min-height: 40px; padding: 0 1.1rem; border-radius: 999px; background: #fff; color: var(--bg); font-weight: 700; margin-left: .4rem; }
.top-nav .top-register:hover { background: var(--lilac-2); color: var(--bg); }
@media (max-width: 760px) {
  .top-nav a:not(.top-register) { display: none; }
  .top-nav .top-register { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); color: #fff; padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 60% at 88% 12%, rgba(124, 58, 173, 0.6), transparent 68%),
    radial-gradient(42% 50% at 6% 100%, rgba(91, 44, 135, 0.5), transparent 68%),
    radial-gradient(rgba(196, 168, 232, 0.14) 1px, transparent 1.4px) 0 0 / 26px 26px;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: -8px; right: -24px;
  width: min(980px, 110vw); height: 100%;
  background: url("/img/hero-code.svg") no-repeat top right / 980px auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%), linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%), linear-gradient(180deg, #000 60%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 860px) {
  .hero::after { width: 120vw; right: -30vw; background-size: 760px auto; opacity: .65; }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.kicker { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); margin-bottom: .9rem; }
.kicker-light { color: var(--lilac); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 8vw, 4.6rem); font-weight: 700; letter-spacing: -.03em; line-height: .98; max-width: 11ch; margin-bottom: 1rem; }
.hero h1 span { color: var(--lilac); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; color: var(--lilac); max-width: 30ch; margin-bottom: 2rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); gap: 1rem 0; margin: 0 0 2rem; padding: 0; }
.facts > div { padding: .1rem 1.75rem .1rem .9rem; border-left: 2px solid rgba(196, 168, 232, 0.35); }
.facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(196, 168, 232, 0.85); }
.facts dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.05rem; color: #fff; }
.facts dd s { color: rgba(255, 255, 255, 0.5); font-weight: 500; font-size: .92rem; margin-left: .3rem; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { padding-right: .75rem; } }
@media (max-width: 360px) { .facts { grid-template-columns: 1fr; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px;
  padding: .85rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: .97rem; line-height: 1; letter-spacing: -.005em;
  color: var(--bg); background: #fff; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.button:hover { background: var(--lilac-2); transform: translateY(-1px); }
.button:active { transform: none; }
.button[disabled] { opacity: .7; cursor: wait; transform: none; }
.button-purple { background: var(--purple); color: #fff; }
.button-purple:hover { background: var(--purple-2); color: #fff; }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
@media (max-width: 600px) { .actions .button { width: 100%; } }
.textlink { color: var(--lilac); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(196, 168, 232, 0.5); }
.textlink:hover { color: #fff; text-decoration-color: #fff; }
.textlink-dark { color: var(--purple); text-decoration-color: rgba(91, 44, 135, 0.4); }
.textlink-dark:hover { color: var(--purple); text-decoration-color: var(--purple); }

.hero-note { margin: 1.1rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, 0.6); }
.hero-note span { margin-left: .4rem; }
.button-small { min-height: 44px; padding: .7rem 1.2rem; font-size: .9rem; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.download span { flex: 1 1 16rem; }
.hero-media { position: relative; justify-self: end; width: 100%; max-width: 380px; }
.hero-media::before { content: ""; position: absolute; inset: -6% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(124, 58, 173, 0.65), transparent); filter: blur(28px); }
@media (max-width: 860px) { .hero-media { justify-self: center; max-width: 340px; } }
.flyer { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--bg-2) url("/img/flyer-still.webp") center / cover no-repeat; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1); }

/* ---------- Sections ---------- */
.block { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.block-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
.lede { font-size: 1.12rem; line-height: 1.55; color: var(--bg); margin-bottom: 1rem; }
.prose { max-width: 62ch; }
.aside { color: var(--muted); margin-bottom: 0; }

.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; gap: 1.5rem; } }
.side { border-left: 3px solid var(--lilac); padding-left: 1.25rem; }
.side h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.side ul { margin-bottom: .75rem; }
.side li { font-size: .98rem; }

/* ---------- Parts ---------- */
.parts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .parts { grid-template-columns: 1fr; } }
.part {
  position: relative; overflow: hidden; margin: 0; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(91, 44, 135, 0.05);
}
/* Each part opens with a tinted band that holds the number, the title and a line illustration. */
.part-head {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 1rem; min-height: 172px; padding: 1.5rem;
  background: linear-gradient(115deg, #ece2f7 0%, #f6f0fb 50%, #fdfbff 100%);
  border-bottom: 1px solid var(--line);
}
.part-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: no-repeat right -14px top -10px / 250px auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 40%, #000 62%);
}
.part-head::after { content: ""; position: absolute; z-index: -2; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(196, 168, 232, 0.45), transparent); pointer-events: none; }
.part-head h3 { font-size: 1.45rem; max-width: 56%; margin: 0; }
.part-head .part-num { align-self: center; }
.part-1 .part-head::before { background-image: url("/img/part-frontend.svg"); }
.part-2 .part-head::before { background-image: url("/img/part-backend.svg"); }
.part-3 .part-head::before { background-image: url("/img/part-database.svg"); }
.part-4 .part-head::before { background-image: url("/img/part-devops.svg"); }
.part-num {
  font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--bg); letter-spacing: -.02em;
  position: relative; z-index: 0; width: max-content; align-self: start; padding: 0 .1em;
}
.part-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .34em; background: var(--lilac-2); z-index: -1; }
.part-body { min-width: 0; padding: 1.25rem 1.5rem 1.5rem; }
.part-head h3 small { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.05rem; color: var(--purple); margin-top: .2rem; letter-spacing: 0; }
.part-body p { font-size: 1rem; }
.part-body ul { margin-bottom: .9rem; list-style: disc; }
.part-body li { font-size: .97rem; }
.build strong { font-weight: 700; color: var(--bg); }

details { margin-top: .25rem; }
summary { cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }
.more > summary {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  font-weight: 700; font-size: .9rem; color: var(--purple);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--lilac); text-decoration-thickness: 2px;
}
.more > summary::before { content: "+"; font-weight: 700; font-size: 1.1rem; width: 1rem; text-align: center; }
.more[open] > summary::before { content: "−"; }
.tools { font-size: .9rem; color: var(--muted); margin: .5rem 0 .7rem; }
.phases { list-style: none; padding: 0 0 0 1rem; margin: 0; border-left: 2px solid var(--lilac-2); }
.phases > li { margin-bottom: 1.1rem; counter-increment: phase; }
.phases > li:last-child { margin-bottom: .25rem; }
.phases h4 { font-size: .98rem; margin-bottom: .15rem; }
.phases h4::before { content: counter(phase) ". "; color: var(--purple); font-weight: 600; }
.phases p { margin: 0 0 .2rem; font-size: .95rem; }
.sessions { color: var(--muted); font-size: .88rem; }
.outcome { font-family: var(--serif); font-style: italic; font-size: 1.05rem !important; color: var(--purple); }
@media (max-width: 560px) { .part { border-radius: 14px; } .part-head { min-height: 140px; padding: 1.1rem; gap: .75rem; } .part-head::before { background-size: 200px auto; background-position: right -34px top -8px; } .part-head h3 { font-size: 1.25rem; max-width: 60%; } .part-body { padding: 1rem 1.1rem 1.25rem; } .part-num { font-size: 1.9rem; } }

/* ---------- Trainers and details ---------- */
.trainers-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .trainers-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 420px) { .people { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.people li { margin: 0; }
.people img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: .6rem; background: var(--tint); }
.people strong { display: block; font-weight: 700; font-size: .95rem; color: var(--bg); line-height: 1.25; }
.people span { display: block; color: var(--muted); font-size: .9rem; }

.details { margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); padding-top: .3rem; }
.details dd { margin: 0; font-size: .98rem; }
.contact { font-size: .98rem; margin: 0; line-height: 1.8; }
.contact a { color: var(--purple); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--lilac); text-decoration-thickness: 2px; }
.contact a:hover { text-decoration-color: var(--purple); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq { border-bottom: 1px solid var(--line); }
.faq details { margin: 0; border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; min-height: 52px; font-weight: 700; font-size: 1.02rem; color: var(--bg); }
.faq summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--purple); font-weight: 600; font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--tint); }
.faq p { max-width: 62ch; margin: 0 0 1.1rem; color: var(--ink); }

/* ---------- Call to action band ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 50%, rgba(124, 58, 173, 0.5), transparent 70%), radial-gradient(rgba(196, 168, 232, 0.12) 1px, transparent 1.4px) 0 0 / 26px 26px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .5rem; }
.cta p { color: rgba(255, 255, 255, 0.78); max-width: 58ch; margin: 0; }
@media (max-width: 600px) { .cta-row .button { width: 100%; } }

/* ---------- Sticky mobile call to action ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 7, 18, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
    transition: transform .25s ease, visibility .25s;
  }
  .sticky-cta.hide { transform: translateY(110%); visibility: hidden; }
  .sticky-cta .price { margin: 0; font-size: .78rem; color: var(--lilac); line-height: 1.25; }
  .sticky-cta .price b { display: block; color: #fff; font-size: 1rem; }
  .sticky-cta .button { min-height: 46px; padding: .7rem 1.2rem; font-size: .92rem; }
  body.has-sticky { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Registration page ---------- */
.reg-page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.reg-head { max-width: 70ch; margin-bottom: 1.75rem; }
.reg-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .75rem; }
.reg-head .lede { margin-bottom: 0; }
.teaser {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: start;
  padding: 1.5rem 0 1.75rem; margin-bottom: 2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .teaser { grid-template-columns: 1fr; gap: 1.5rem; } }
.teaser h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.teaser p { font-size: 1rem; margin-bottom: .75rem; }
.teaser-meta { color: var(--muted); font-size: .95rem; }
.teaser-parts { list-style: none; padding: 0; margin: .35rem 0 0; display: grid; gap: .7rem; }
.teaser-parts li { display: flex; gap: .8rem; align-items: flex-start; margin: 0; }
.teaser-parts .n { flex: 0 0 auto; font-weight: 800; font-size: 1.1rem; line-height: 1.3; color: var(--bg); position: relative; z-index: 0; padding: 0 .18em; }
.teaser-parts .n::after { content: ""; position: absolute; left: 0; right: 0; bottom: .22em; height: .36em; background: var(--lilac-2); z-index: -1; }
.teaser-parts b { display: block; font-weight: 700; font-size: .95rem; color: var(--bg); line-height: 1.3; }
.teaser-parts small { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }

.reg-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .reg-layout { grid-template-columns: 1fr; gap: 2rem; } }
.reg-main { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .5rem 2rem 2rem; box-shadow: 0 10px 40px rgba(91, 44, 135, 0.06); }
@media (max-width: 520px) { .reg-main { padding: .25rem 1rem 1.5rem; border-radius: 12px; } }
.reg-aside { position: sticky; top: calc(var(--header) + 16px); border-top: 3px solid var(--lilac); padding-top: 1rem; }
@media (max-width: 900px) { .reg-aside { position: static; } }
.reg-aside h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.aside-note { color: var(--muted); font-size: .95rem; }
.aside-contact { font-size: .95rem; line-height: 1.9; }
.aside-contact a { font-weight: 700; font-size: .92rem; color: var(--purple); text-decoration-color: var(--lilac); text-underline-offset: 4px; text-decoration-thickness: 2px; }

.form-section { border: 0; padding: 1.5rem 0 .5rem; margin: 0; border-top: 1px solid var(--line); min-width: 0; }
.form-section:first-of-type { border-top: 0; }
.form-section legend { font-weight: 700; font-size: 1.05rem; color: var(--bg); padding: 0; margin-bottom: .25rem; float: left; width: 100%; }
.form-section legend + * { clear: both; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { margin: 1rem 0 0; min-width: 0; }
.field-half { max-width: 24rem; }
.field label, .field .label { display: block; font-weight: 700; font-size: .88rem; color: var(--bg); margin-bottom: .4rem; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .76rem; margin-left: .3rem; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: inherit; font-size: max(16px, 1rem); color: var(--ink);
  background: #fff; border: 1px solid #cfc9da; border-radius: 10px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b2c87' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem; }
.field textarea { resize: vertical; min-height: 5rem; }
.field input::placeholder { color: #a39eb0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91, 44, 135, 0.18); }
.field.invalid input:not([type="radio"]), .field.invalid select { border-color: var(--danger); }
.field.invalid .choice { border-color: #e4b6b1; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem .75rem; }
@media (max-width: 440px) { .choices { grid-template-columns: 1fr; } }
.field label.choice, .choice {
  display: flex; align-items: center; gap: .6rem; margin: 0; min-height: 48px;
  font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: .6rem .85rem; border: 1px solid #cfc9da; border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--purple); }
.choice input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--purple); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--purple); background: var(--tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--purple-2); outline-offset: 2px; }

.error { display: none; font-size: .84rem; font-weight: 600; color: var(--danger); margin: .35rem 0 0; }
.error.show { display: block; }
.form-error { margin: 0 0 .9rem; }
.form-foot { padding-top: 1.5rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.form-foot .button { min-width: 240px; }
@media (max-width: 600px) { .form-foot .button { width: 100%; } }
.form-note { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.success { padding: 1.5rem 0 1rem; }
.success h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.success a { color: var(--purple); font-weight: 600; }

/* ---------- Footer ---------- */
.foot { background: var(--bg); color: rgba(255, 255, 255, 0.72); font-size: .9rem; padding: 2.25rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.foot-brand { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; }
.foot-brand span { color: var(--lilac); }
.foot-small { margin: 0; max-width: 40ch; font-size: .88rem; }
.foot-nav, .foot-contact { display: flex; flex-direction: column; gap: .15rem; }
.foot a { display: inline-flex; align-items: center; min-height: 36px; color: #fff; text-decoration: none; width: max-content; max-width: 100%; }
.foot a:hover { color: var(--lilac); }
.foot-head { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac); margin: 0 0 .4rem; }

/* ---------- Simple pages (thanks, 404) ---------- */
.simple { padding: clamp(4rem, 10vw, 8rem) 0; min-height: 50vh; }
.simple .wrap { max-width: 560px; }
.simple h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); margin-bottom: 1rem; }
.simple p { color: var(--muted); }
.simple .button { margin-top: .5rem; }
