/* ==========================================================================
   signup.maple.ltd - the landing page (index.php). The maple.ltd look (websites maple.ltd draft1 assets/css/site.css):
   its palette, Outfit for headings and Inter for text, a violet band with an angled lower edge behind the hero, white
   cards with indigo-tinted shadows. One action colour (--cta). Mobile first; two columns from 960px.
   ========================================================================== */

@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --violet-950: #1d1548; --violet-900: #2c1f6e; --violet-800: #3d2c8c; --violet-700: #5338b4; --violet-600: #6a45d6;
  --violet-300: #c9b8ff; --violet-100: #ece6fd; --violet-50: #f6f3fe;
  --ink-900: #22204a; --ink-700: #3e3c66; --ink-600: #5f5d80;
  --canvas: #f7f5fd; --line: #e8e3f6; --line-strong: #d6cfee;
  --on-violet: #e3dcff; --on-violet-muted: #b9aee6;
  --cta: #6a3fd2; --cta-hover: #5730bb; --ok: #157a52; --danger: #b42318;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 22px;
  --shadow-sm: 0 2px 8px rgb(63 49 178 / 0.06);
  --shadow-lg: 0 10px 30px rgb(44 31 110 / 0.12), 0 36px 80px rgb(44 31 110 / 0.18);
  --pad-x: clamp(1rem, 4vw, 2.5rem);
  --band: 560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink-600); background: var(--canvas); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-600); text-underline-offset: 0.18em; }
a:hover { color: var(--violet-800); }
h1, h2, .h { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink-900); margin: 0 0 0.75rem; text-wrap: balance; }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet-600); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: 100%; max-width: calc(1240px + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10; background: var(--violet-900); color: #fff; padding: 0.75rem 1rem; border-radius: var(--r); }
.skip-link:focus { top: 0.75rem; color: #fff; }

/* the violet band behind the header and the hero, its lower edge angled */
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: var(--band); z-index: -1;
  background: radial-gradient(120% 90% at 85% 0%, #6a45d6 0%, transparent 55%), linear-gradient(160deg, var(--violet-800) 0%, var(--violet-900) 55%, var(--violet-950) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vw), 0 100%);
}

/* ---------- header ---------- */
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { width: 150px; height: auto; }
.top__nav { display: flex; align-items: center; gap: 1rem; }
.top__link { color: var(--on-violet); text-decoration: none; font-size: 0.9rem; }
.top__link:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0.65em 1.35em;
  border: 1px solid transparent; border-radius: 999px; font: 600 0.95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgb(90 49 184 / 0.28); }
.btn--cta:hover { background: var(--cta-hover); color: #fff; transform: translateY(-1px); }
.btn--cta:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn--ghost { border-color: var(--line-strong); color: var(--violet-800); background: #fff; }
.btn--ghost:hover { border-color: var(--violet-600); background: var(--violet-50); }
.btn--ghost-dark { border-color: rgb(255 255 255 / 0.45); color: #fff; background: transparent; }
.btn--ghost-dark:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); color: #fff; }
.btn--sm { min-height: 38px; padding: 0.45em 1em; font-size: 0.85rem; }

/* ---------- layout: hero, then the card, then why (mobile); hero + why beside the card (wide) ---------- */
.page { padding-bottom: 3rem; }
.page__grid { display: grid; gap: 1.5rem; grid-template-areas: "hero" "card" "why"; }
.hero { grid-area: hero; color: var(--on-violet); padding-top: 0.5rem; }
.card { grid-area: card; }
.why { grid-area: why; }
@media (min-width: 960px) {
  .page__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); grid-template-areas: "hero card" "why card"; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .hero { padding-top: 3rem; }
  .card { position: sticky; top: 1.5rem; margin-top: 1rem; }
  .why { margin-top: 3rem; }
  /* wide: the band reaches past the four points (light on violet); the module list sits on its angled edge */
  :root { --band: 860px; }
  .why .points .icon { background: rgb(255 255 255 / 0.1); color: var(--violet-300); }
  .why .points strong { color: #fff; }
  .why .points span { color: var(--on-violet-muted); }
}

/* ---------- hero ---------- */
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #ddd3ff; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 450; letter-spacing: -0.025em; }
.grad { background: linear-gradient(95deg, #9fd8ff 0%, #d9c6ff 50%, #ffc2ea 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); color: var(--on-violet); max-width: 34rem; }

/* ---------- the card and its steps ---------- */
.card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.dots { display: flex; gap: 0.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: 0.8rem; color: var(--ink-600); }
.dots__d { flex: 1; display: flex; align-items: center; gap: 0.45rem; padding-top: 0.6rem; border-top: 3px solid var(--line); }
.dots__d span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--line); color: var(--ink-700); font-weight: 600; font-size: 0.75rem; flex: none; }
.dots__d.is-on { border-top-color: var(--cta); color: var(--ink-900); font-weight: 600; }
.dots__d.is-on span, .dots__d.is-done span { background: var(--cta); color: #fff; }
.dots__d.is-done { border-top-color: var(--violet-300); }
@media (max-width: 420px) { .dots__d { font-size: 0; gap: 0; } .dots__d span { font-size: 0.75rem; } }

.group { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.h { font-size: 1.35rem; padding: 0; }
.h--sm { font-size: 1.05rem; }
.hint { font-size: 0.875rem; margin: -0.35rem 0 0.75rem; }

.kinds { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .kinds { grid-template-columns: 1fr 1fr; } }
.kind { position: relative; display: block; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.kind:hover { border-color: var(--violet-300); }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind__t { display: block; font-weight: 600; color: var(--ink-900); }
.kind__d { display: block; font-size: 0.825rem; line-height: 1.45; margin-top: 0.15rem; }
.kind:has(input:checked) { border-color: var(--cta); background: var(--violet-50); box-shadow: inset 0 0 0 1px var(--cta); }
.kind:has(input:focus-visible) { outline: 3px solid var(--violet-600); outline-offset: 2px; }

.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; color: var(--ink-700); background: #fff; transition: all 0.15s; }
.pill:hover span { border-color: var(--violet-600); }
.pill input:checked + span { background: var(--cta); border-color: var(--cta); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--violet-600); outline-offset: 2px; }

.mods__g { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-600); margin: 0.9rem 0 0.4rem; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.45rem; }
.mod { position: relative; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 0.875rem; color: var(--ink-700); cursor: pointer; transition: all 0.15s; }
.mod input { position: absolute; opacity: 0; pointer-events: none; }
.mod .icon { color: var(--violet-600); }
.mod:hover { border-color: var(--violet-600); }
.mod:has(input:checked) { border-color: var(--cta); background: var(--violet-50); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--cta); }
.mod:has(input:focus-visible) { outline: 3px solid var(--violet-600); outline-offset: 2px; }

.fields { display: grid; gap: 0.9rem; margin-bottom: 1rem; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
.label em { font-weight: 400; font-style: normal; color: var(--ink-600); }
.input { width: 100%; min-height: 44px; padding: 0.55rem 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--r); font: inherit; font-size: 1rem; color: var(--ink-900); background: #fff; }
.input:focus { outline: none; border-color: var(--violet-600); box-shadow: 0 0 0 3px rgb(106 69 214 / 0.18); }
.input.is-bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.12); }
textarea.input { resize: vertical; min-height: 5.5rem; }
.phone { display: flex; }
.phone__dial { display: inline-flex; align-items: center; padding: 0 0.65rem; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--canvas); color: var(--ink-700); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.phone .input { border-radius: 0 var(--r) var(--r) 0; }
.ref summary { cursor: pointer; font-size: 0.875rem; color: var(--violet-600); }
.ref .input { margin-top: 0.4rem; max-width: 16rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.h-captcha { margin-bottom: 0.75rem; }
.fine { font-size: 0.8rem; }

.err { color: var(--danger); background: #fef3f2; border: 1px solid #fecdca; border-radius: var(--r); padding: 0.55rem 0.8rem; font-size: 0.9rem; }
.nav { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.nav--start { justify-content: flex-start; }

.panel h2 { font-size: 1.6rem; }
.done { text-align: left; outline: none; }
.done__tick { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #e7f6ee; color: var(--ok); margin-bottom: 1rem; }
.done__tick .icon { width: 1.6rem; height: 1.6rem; }
.done__ref { font-size: 0.9rem; color: var(--ink-700); background: var(--canvas); border-radius: var(--r); padding: 0.6rem 0.8rem; }

/* ---------- why ---------- */
.points { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }
.points li { display: flex; gap: 0.8rem; }
.points .icon { width: 2.4rem; height: 2.4rem; padding: 0.55rem; border-radius: var(--r); background: var(--violet-100); color: var(--violet-700); }
.points strong { display: block; color: var(--ink-900); font-weight: 600; }
.points span { display: block; font-size: 0.9rem; line-height: 1.5; }
.suite { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem 1.5rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.suite p { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.4rem; }
.suite ul { list-style: none; margin: 0; padding: 0; }
.suite li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--ink-700); padding: 0.15rem 0; }
.suite .icon { color: var(--violet-600); width: 1.05em; height: 1.05em; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: #fff; font-size: 0.85rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 1.25rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
