/* ============================================================================
   ORPPIO public surface & authentication (ks-*)

   Orppio's own three pages: the root, the access request, and sign-in (with the
   password and invitation pages and the agency chooser that hang off it).
   Scoped to body.ks-site (layouts/site, layouts/auth) so the back office, the
   client portal and the agency public pages are untouched.

   ── One surface ──────────────────────────────────────────────────────────
   There is no navigation bar, no marketing section and no footer band. Each of
   these pages is a single dark green canvas — the ground the brand sheet itself
   is printed on — with one centred column on it: the mark, the name, the line,
   and then whatever the page is actually for. A header, a body and a footer in
   three different colours is precisely what this replaces.

   The canvas is dark and the content that has to be typed into is light. That
   is deliberate: the brand mark carries a warm-grey counter and needs the dark
   ground under it, while a twenty-field form in reversed-out text is a
   readability problem no amount of brand is worth. The card is the one lit
   object on the canvas, which is also the right hierarchy — brand, then task.

   Same discipline as backoffice.css and portal.css: this is the COMPONENT
   layer and declares no colour, radius or type scale of its own. Every value
   comes from kernol.css.
   ============================================================================ */

:root {
  /* ─── The canvas and its inks ──────────────────────────────────────────
     Contrast is against --ks-canvas. */
  --ks-canvas:       var(--orppio-canvas);
  --ks-canvas-deep:  #050F0B;
  --ks-on-canvas:      var(--orppio-warm-grey);  /* 13.9:1 */
  --ks-on-canvas-soft: #B9C7BF;                  /* 10.0:1 */
  --ks-on-canvas-mute: #8B9C92;                  /*  6.6:1 */
  --ks-on-canvas-line: rgb(226 222 215 / 0.14);

  /* ─── The lit card ─────────────────────────────────────────────────────*/
  --ks-surface:     var(--kernol-surface);
  --ks-bg-soft:     var(--kernol-grey-50);
  --ks-bg-warm:     var(--kernol-tan-soft);
  --ks-border:      var(--kernol-grey-300);
  --ks-border-soft: var(--kernol-grey-200);
  --ks-ink:         var(--kernol-navy-900);
  --ks-body:        var(--kernol-grey-800);
  --ks-soft:        var(--kernol-grey-700);
  --ks-muted:       var(--kernol-grey-600);
  --ks-faint:       var(--kernol-grey-500);

  /* ─── Action ───────────────────────────────────────────────────────────
     Pine, on the canvas and on the card alike, so "the thing to press" is one
     colour across the whole surface. */
  --ks-primary:       var(--kernol-primary);
  --ks-primary-hover: var(--kernol-primary-hover);
  --ks-accent:        var(--kernol-tan-400);      /* burnt orange, decorative only */
  --ks-accent-ink:    var(--kernol-tan-700);
  --ks-accent-soft:   var(--kernol-tan-50);
  --ks-link:          var(--kernol-accent);
  --ks-ok:            var(--kernol-teal-700);
  --ks-ok-soft:       var(--kernol-teal-50);
  --ks-danger:        var(--kernol-red-700);
  --ks-danger-soft:   var(--kernol-red-50);
  --ks-danger-line:   var(--kernol-red-200);

  /* ─── Shape, depth, type ───────────────────────────────────────────────*/
  --ks-r:      var(--kernol-radius);
  --ks-r-md:   var(--kernol-radius-md);
  --ks-r-lg:   var(--kernol-radius-lg);
  --ks-r-xl:   var(--kernol-radius-xl);
  --ks-shadow:       var(--kernol-shadow-sm);
  --ks-shadow-pop:   var(--kernol-shadow-pop);
  --ks-shadow-modal: var(--kernol-shadow-modal);
  --ks-focus:        var(--kernol-focus-ring);
  --ks-focus-canvas: 0 0 0 3px rgb(226 222 215 / 0.55);
  --ks-font:   var(--kernol-font);
  --ks-page-x: 20px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body.ks-site {
  margin: 0;
  font-family: var(--ks-font);
  color: var(--ks-on-canvas-soft);
  background: var(--ks-canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ks-site *, .ks-site *::before, .ks-site *::after { box-sizing: border-box; }
.ks-site :where(h1, h2, h3, h4, p, ul, ol, dl, dd, fieldset, legend, figure) { margin: 0; }
.ks-site :where(ul, ol) { padding: 0; list-style: none; }
.ks-site :where(fieldset) { border: 0; padding: 0; min-width: 0; }
.ks-site :where(legend) { padding: 0; }
.ks-site :where(img) { max-width: 100%; height: auto; display: block; }
.ks-site :where(a) { color: var(--ks-link); text-decoration: none; }
.ks-site :where(a):hover { text-decoration: underline; }
/* Two focus rings, because there are two grounds. The pine ring reads on white and
   disappears on the canvas, so the canvas gets a warm-grey one and the lit cards
   switch back. Never `outline: none` without a replacement. */
.ks-site :focus-visible { outline: none; box-shadow: var(--ks-focus-canvas); border-radius: var(--ks-r); }
.ks-authcard :focus-visible, .ks-formcard :focus-visible { box-shadow: var(--ks-focus); }
.ks-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ks-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--ks-on-canvas); color: var(--ks-ink); border-radius: var(--ks-r); font-weight: 600; }
.ks-skip:focus { left: 8px; text-decoration: none; }

/* ── The canvas ───────────────────────────────────────────────────────────
   One element, one background, the whole viewport. Centred while the viewport
   has the height for it and scrolling naturally when it does not: `justify-
   content: center` on a flex column would clip the top of an overflowing form,
   so the centring is done with `margin: auto` on the column instead, which
   collapses to the padding once the content is taller than the canvas. */
.ks-canvas {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(28px, 5vh, 64px) var(--ks-page-x);
  overflow: hidden;
  isolation: isolate;
}

/* Two very soft lights on the ground — one pine, one the barest burnt orange —
   so a full-screen dark surface has some depth to it and does not read as an
   unstyled black page. Decorative, and the first thing to go under
   prefers-reduced-transparency in a browser that supports it. */
.ks-canvas::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 52% at 50% 42%, rgb(46 125 90 / 0.20), transparent 70%),
    radial-gradient(30% 34% at 76% 12%, rgb(255 138 61 / 0.07), transparent 70%);
}
.ks-canvas::after {
  content: "";
  position: absolute;
  inset: 40% 0 -20% 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ks-canvas-deep));
}

.ks-canvas__inner {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: var(--ks-measure, 30rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vh, 40px);
}
.ks-canvas--root  { --ks-measure: 34rem; }
.ks-canvas--form  { --ks-measure: 45rem; }

/* ── The brand lockup ─────────────────────────────────────────────────────
   The mark cut from the brand sheet (public/branding/orppio-icon.png) over the
   name in type and the one line the product says about itself. Every page on
   this canvas opens with it; only the scale changes. */
.ks-lockup { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2.2vh, 20px); }
.ks-lockup__mark { height: var(--ks-mark-h, 76px); width: auto; }
.ks-lockup__name {
  font-size: var(--ks-name-size, clamp(2.6rem, 9vw, 3.6rem));
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1;
  color: var(--ks-on-canvas);
}
.ks-lockup__tagline {
  max-width: 26ch;
  font-size: var(--ks-tagline-size, clamp(1rem, 3.1vw, 1.1875rem));
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -0.004em;
  color: var(--ks-on-canvas-mute);
  text-wrap: balance;
}
/* On the pages where the lockup introduces a task rather than being the page,
   it steps down so the form is the thing the eye lands on. */
.ks-lockup--sm { --ks-mark-h: 52px; --ks-name-size: clamp(1.9rem, 6vw, 2.3rem); --ks-tagline-size: clamp(.9rem, 2.7vw, 1rem); gap: 12px; }

/* ── The canvas footer ────────────────────────────────────────────────────
   Not a band: no background, no border, the same ground as everything above
   it, sitting in the same centred column. */
.ks-canvas__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--ks-on-canvas-mute); text-align: center; }
.ks-canvas__foot a { color: var(--ks-on-canvas-soft); font-weight: 550; }
.ks-canvas__foot a:hover { color: var(--ks-on-canvas); }

/* ── Icons ────────────────────────────────────────────────────────────── */
.ks-ic { flex: 0 0 auto; }
.ks-ic--sm { width: 16px; height: 16px; }
.ks-ic--md { width: 20px; height: 20px; }
.ks-ic--lg { width: 24px; height: 24px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.ks-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--ks-r-md); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background .14s, border-color .14s, color .14s; }
.ks-site a.ks-btn:hover { text-decoration: none; }
.ks-btn--primary { background: var(--ks-primary); color: #fff; }
.ks-btn--primary:hover { background: var(--ks-primary-hover); color: #fff; }
.ks-btn--secondary { background: var(--ks-surface); border-color: var(--ks-border); color: var(--ks-ink); box-shadow: var(--ks-shadow); }
.ks-btn--secondary:hover { border-color: var(--kernol-grey-400); }
/* On the canvas rather than on a card: an outlined button, readable by its own
   border and label and not only by a hover. */
.ks-btn--ghost { background: transparent; color: var(--ks-on-canvas); border-color: var(--ks-on-canvas-line); }
.ks-btn--ghost:hover { background: rgb(226 222 215 / 0.08); border-color: rgb(226 222 215 / 0.32); color: var(--ks-on-canvas); }
.ks-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.ks-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.ks-btn--block { width: 100%; }
.ks-btn[disabled], .ks-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.ks-btn .ks-ic { width: 18px; height: 18px; }
.ks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ks-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--ks-link); font-weight: 600; cursor: pointer; }
.ks-linkbtn:hover { text-decoration: underline; }
.ks-inline-form { display: inline; }

/* ── Flash ────────────────────────────────────────────────────────────── */
.ks-flash { width: 100%; padding: 10px 14px; border-radius: var(--ks-r); font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.ks-flash--ok { background: var(--ks-ok-soft); color: var(--ks-ok); border-color: var(--kernol-teal-200); }
.ks-flash--alert { background: var(--ks-danger-soft); color: var(--ks-danger); border-color: var(--ks-danger-line); }

/* ── Type inside the lit card ─────────────────────────────────────────── */
.ks-h1 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.15; letter-spacing: -0.024em; font-weight: 720; color: var(--ks-ink); }
.ks-h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--ks-ink); }
.ks-h3 { font-size: 17px; font-weight: 680; color: var(--ks-ink); letter-spacing: -0.01em; }
.ks-lede { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ks-soft); }
.ks-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: var(--kernol-tracking-eyebrow); text-transform: uppercase; color: var(--ks-accent-ink); }
.ks-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--ks-accent); border-radius: 2px; }

/* ── Form controls ────────────────────────────────────────────────────── */
.ks-form { display: flex; flex-direction: column; gap: 18px; }
.ks-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ks-field { min-width: 0; }
.ks-field[hidden] { display: none; }
.ks-label { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ks-ink); margin-bottom: 6px; }
.ks-label__tag { font-size: 12px; font-weight: 500; color: var(--ks-muted); }
.ks-label__tag:empty { display: none; }
.ks-input, .ks-select, .ks-textarea { display: block; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--ks-border); border-radius: var(--ks-r-md); background: #fff; color: var(--ks-ink); font: inherit; font-size: 15.5px; line-height: 1.4; transition: border-color .14s, box-shadow .14s; -webkit-appearance: none; appearance: none; }
.ks-input::placeholder, .ks-textarea::placeholder { color: var(--ks-faint); }
.ks-input:focus, .ks-select:focus, .ks-textarea:focus { outline: none; border-color: var(--kernol-teal-500); box-shadow: var(--ks-focus); }
.ks-input[aria-invalid="true"], .ks-select[aria-invalid="true"], .ks-textarea[aria-invalid="true"] { border-color: var(--kernol-red-500); }
.ks-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6559' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.ks-textarea { min-height: 96px; resize: vertical; }
.ks-hint { margin-top: 6px; font-size: 13px; color: var(--ks-muted); }
.ks-count { float: right; font-variant-numeric: tabular-nums; }
/* An error is never colour alone: it is its own line, in bold, under the field
   that has it, and the control is marked aria-invalid beside it. */
.ks-field__error { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ks-danger); }
.ks-form-error { background: var(--ks-danger-soft); color: var(--ks-danger); border: 1px solid var(--ks-danger-line); border-radius: var(--ks-r-md); padding: 12px 16px; font-size: 14.5px; }
.ks-form-error__title { font-weight: 700; }
.ks-form-error ul { margin-top: 4px; padding-left: 1.2em; list-style: disc; }
.ks-trap { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Password field ───────────────────────────────────────────────────── */
.ks-password { position: relative; }
.ks-password .ks-input { padding-right: 78px; }
.ks-password__toggle { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: var(--ks-r); background: transparent; color: var(--ks-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ks-password__toggle:hover { background: var(--ks-bg-soft); color: var(--ks-ink); }
.ks-password__toggle .ks-ic { width: 16px; height: 16px; }
.ks-password__eye-off { display: none; }
.ks-password.is-revealed .ks-password__eye { display: none; }
.ks-password.is-revealed .ks-password__eye-off { display: block; }
.ks-rules { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ks-muted); }
.ks-rules li { display: inline-flex; align-items: center; gap: 6px; }
.ks-rules .ks-ic { width: 14px; height: 14px; color: var(--kernol-teal-600); }

/* ── Choice chips and cards ───────────────────────────────────────────── */
.ks-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-choices--2, .ks-choices--3 { display: grid; gap: 8px; }
.ks-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ks-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ks-choice { position: relative; min-width: 0; }
.ks-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ks-choice label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 14px 9px 12px; border: 1.5px solid var(--ks-border); border-radius: var(--ks-r-md); background: #fff; font-size: 14.5px; font-weight: 550; color: var(--ks-body); cursor: pointer; transition: border-color .12s, background .12s, color .12s; line-height: 1.3; }
.ks-choice label::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--kernol-grey-400); background: #fff; transition: background .12s, border-color .12s; }
.ks-choice input[type="radio"] + label::before { border-radius: 50%; }
.ks-choice label:hover { border-color: var(--kernol-grey-400); }
/* Selection is the pine, and the control itself fills — the border tint alone
   would leave the state to colour. */
.ks-choice input:checked + label { border-color: var(--kernol-teal-500); background: var(--kernol-teal-50); color: var(--ks-ink); }
.ks-choice input:checked + label::before { background: var(--kernol-teal-600); border-color: var(--kernol-teal-600); box-shadow: inset 0 0 0 3px #fff; }
.ks-choice input[type="checkbox"]:checked + label::before { box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.ks-choice input:focus-visible + label { box-shadow: var(--ks-focus); }
.ks-choices[aria-invalid="true"] .ks-choice label { border-color: var(--kernol-red-200); }

/* ── The request-access card ──────────────────────────────────────────── */
.ks-formcard { width: 100%; background: var(--ks-surface); border: 1px solid var(--ks-border-soft); border-radius: var(--ks-r-xl); box-shadow: var(--ks-shadow-modal); padding: 8px 0 0; }
.ks-formsection { padding: 26px clamp(18px, 4vw, 34px) 30px; border-bottom: 1px solid var(--ks-border-soft); }
.ks-formsection:last-of-type { border-bottom: 0; }
.ks-formsection__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.ks-formsection__num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: var(--kernol-chrome-850); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.ks-formsection__title { font-size: 18px; font-weight: 700; color: var(--ks-ink); letter-spacing: -0.015em; }
.ks-formsection__sub { margin-top: 3px; font-size: 14px; color: var(--ks-muted); }
.ks-formsection .ks-form { gap: 20px; }
.ks-question { font-size: 14.5px; font-weight: 600; color: var(--ks-ink); margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.ks-question .ks-label__tag { font-weight: 500; }
.ks-submitbar { padding: 24px clamp(18px, 4vw, 34px) 28px; background: var(--ks-bg-soft); border-top: 1px solid var(--ks-border-soft); border-radius: 0 0 var(--ks-r-xl) var(--ks-r-xl); }
.ks-submitbar p { margin-top: 12px; font-size: 13.5px; color: var(--ks-muted); }
.ks-submitbar .ks-form-error { margin-bottom: 16px; }

/* ── The authentication card ──────────────────────────────────────────── */
.ks-authcard { width: 100%; background: var(--ks-surface); border: 1px solid var(--ks-border-soft); border-radius: var(--ks-r-xl); box-shadow: var(--ks-shadow-modal); padding: 32px 32px 28px; }
.ks-authcard__head { margin-bottom: 20px; }
.ks-authcard__head .ks-eyebrow { margin-bottom: 10px; }
.ks-authcard__title { font-size: 23px; font-weight: 720; letter-spacing: -0.02em; color: var(--ks-ink); line-height: 1.2; }
.ks-authcard__sub { margin-top: 8px; font-size: 14.5px; color: var(--ks-soft); line-height: 1.5; }
.ks-authcard__alert, .ks-authcard__notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--ks-r-md); font-size: 14px; font-weight: 500; margin-bottom: 18px; border: 1px solid transparent; }
.ks-authcard__alert { background: var(--ks-danger-soft); color: var(--ks-danger); border-color: var(--ks-danger-line); }
.ks-authcard__notice { background: var(--ks-ok-soft); color: var(--ks-ok); border-color: var(--kernol-teal-200); }
.ks-authcard__alert .ks-ic, .ks-authcard__notice .ks-ic { margin-top: 1px; }
.ks-authcard__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ks-authcard__row .ks-label { margin-bottom: 0; }
.ks-authcard__link { font-size: 13.5px; font-weight: 550; }
.ks-authcard__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ks-border-soft); font-size: 14px; color: var(--ks-soft); text-align: center; }
.ks-authcard__foot a { font-weight: 600; }
.ks-authcard .ks-form { gap: 16px; }
.ks-authcard .ks-btn { margin-top: 4px; }
.ks-authcard__icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--ks-ok-soft); color: var(--kernol-teal-700); }
.ks-authcard__icon--warn { background: var(--ks-accent-soft); color: var(--ks-accent-ink); }
.ks-authcard__email { font-weight: 650; color: var(--ks-ink); word-break: break-all; }

/* Agency chooser, invitations */
.ks-list { display: grid; gap: 8px; margin-top: 18px; }
.ks-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--ks-r-md); border: 1px solid var(--ks-border); background: #fff; color: var(--ks-ink); text-decoration: none; transition: border-color .12s, background .12s; }
.ks-list__item:hover { text-decoration: none; border-color: var(--kernol-teal-200); background: var(--ks-bg-soft); }
.ks-list__item b { display: block; font-weight: 650; }
.ks-list__item small { display: block; font-size: 12.5px; color: var(--ks-muted); margin-top: 2px; }
.ks-list__item .ks-ic { color: var(--ks-faint); }

/* ── "Request received" ───────────────────────────────────────────────── */
.ks-thanks { width: 100%; text-align: center; }
.ks-thanks__icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 20px; display: inline-flex; align-items: center; justify-content: center; background: rgb(46 125 90 / 0.20); color: var(--kernol-teal-200); }
.ks-thanks .ks-h1 { color: var(--ks-on-canvas); }
.ks-thanks .ks-lede { margin: 12px auto 0; max-width: 44ch; color: var(--ks-on-canvas-mute); }
.ks-thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ── Motion ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .ks-canvas__inner > * { animation: ks-rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .ks-canvas__inner > :nth-child(2) { animation-delay: .07s; }
  .ks-canvas__inner > :nth-child(3) { animation-delay: .14s; }
  @keyframes ks-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .ks-site *, .ks-site *::before, .ks-site *::after { animation: none !important; transition: none !important; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --ks-page-x: 16px; }
  .ks-form-row { grid-template-columns: 1fr; }
  .ks-choices--2, .ks-choices--3 { grid-template-columns: 1fr; }
  .ks-formsection { padding-left: 18px; padding-right: 18px; }
  .ks-submitbar { padding-left: 18px; padding-right: 18px; }
  .ks-submitbar .ks-btn { width: 100%; }
  .ks-authcard { padding: 24px 20px 22px; }
  .ks-actions .ks-btn { flex: 1 1 100%; }
}
/* A short landscape phone: centring costs more than it gives, so the column
   sits at the top and the page simply scrolls. */
@media (max-height: 620px) {
  .ks-canvas { padding-block: 28px; }
  .ks-canvas__inner { margin-block: 0 auto; }
}
