/* Answer-engine kit: clean-room rebuild of the techniques in TEARDOWN.md.
   Loops run only under [data-live] (set by kit.js while the element is seen),
   so with JS off, reduced motion or off-screen, every widget shows its
   finished frame. Theme by overriding the --ae-* tokens on .ae. */

.ae {
  --ae-bg: #F5EFE5;
  --ae-card: #FFFDF8;
  --ae-ink: #17261F;
  --ae-primary: #21483A;
  --ae-accent: #C9643A;
  --ae-accent2: #E7A487;
  --ae-good: #2E7A57;
  --ae-muted: color-mix(in srgb, var(--ae-ink) 66%, transparent);
  --ae-line: color-mix(in srgb, var(--ae-ink) 12%, transparent);
  --ae-tint: color-mix(in srgb, var(--ae-ink) 5%, var(--ae-card));
  --ae-radius: 20px;
  --ae-float: 0 30px 60px -20px color-mix(in srgb, var(--ae-ink) 25%, transparent);
  --ae-soft: 0 8px 24px color-mix(in srgb, var(--ae-ink) 6%, transparent);
  --ae-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ae-serif: "Newsreader", Georgia, serif;
  --ae-ease: cubic-bezier(.3, .7, .35, 1);
  --ae-snap: cubic-bezier(.34, 1.4, .5, 1);
  background: var(--ae-bg);
  color: var(--ae-ink);
  font: 400 16px/1.55 var(--ae-sans);
  -webkit-font-smoothing: antialiased;
}
.ae *, .ae *::before, .ae *::after { box-sizing: border-box; }
.ae [hidden] { display: none !important; }
.ae svg { display: block; flex: none; }

/* ---------- type ---------- */
.ae-h {
  margin: 0;
  font: 700 clamp(38px, 5.6vw, 84px)/.98 var(--ae-sans);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.ae-h--2 { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -.035em; }
/* The italic tail of a heading. Newsreader at 500 holds its weight beside the bold sans and keeps its
   word gaps; a light condensed italic with tight tracking ran its words together (operator, 2026-11-10).
   Set its own tracking: it must never inherit the heading's. */
.ae-h em {
  font: italic 500 1em/.95 var(--ae-serif);
  letter-spacing: -.012em;
  word-spacing: .02em;
}
.ae-lede { margin: 0; max-width: 34rem; color: var(--ae-muted); font-size: clamp(16px, 1.4vw, 19px); }
.ae-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--ae-muted); font: 600 12px/1 var(--ae-sans); letter-spacing: .1em; text-transform: uppercase;
}
.ae-kicker svg { color: var(--ae-accent); }

/* ---------- shared bits ---------- */
.ae-card {
  background: var(--ae-card);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
  box-shadow: var(--ae-soft);
}
.ae-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--ae-line); border-radius: 999px; background: var(--ae-card);
  font: 500 14px/1.2 var(--ae-sans); white-space: nowrap;
}
.ae-disc {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ae-primary); color: var(--ae-card);
}
.ae-disc--empty { background: none; border: 1.5px dashed color-mix(in srgb, var(--ae-ink) 28%, transparent); color: var(--ae-muted); }
.ae-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 1px solid var(--ae-primary); border-radius: 999px; background: var(--ae-primary); color: var(--ae-card);
  font: 600 16px/1 var(--ae-sans); text-decoration: none; cursor: pointer;
}
.ae-btn--ghost { background: transparent; color: var(--ae-ink); border-color: color-mix(in srgb, var(--ae-ink) 40%, transparent); }
.ae-stars { color: var(--ae-accent); letter-spacing: 1px; }

/* ---------- ping ring (CTA, call buttons) ---------- */
.ae-ping::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 2px solid var(--ae-primary); opacity: 0; pointer-events: none;
}
[data-live] .ae-ping::after { animation: ae-ring 2.6s cubic-bezier(.2, .7, .3, 1) 1s infinite; }
@keyframes ae-ring {
  0% { opacity: .8; transform: scale(1); }
  45%, 100% { opacity: 0; transform: scale(1.35, 1.9); }
}

/* ======================================================================
   Answer card: kit.js writes data-step / data-s; CSS draws every frame.
   ====================================================================== */
.ae-answer { position: relative; padding-top: 56px; }
.ae-answer__ask { position: absolute; top: 0; right: 0; display: flex; justify-content: flex-end; }
.ae-q {
  display: inline-block; padding: 12px 20px; border-radius: 22px 22px 6px 22px;
  background: var(--ae-card); border: 1px solid var(--ae-line); box-shadow: var(--ae-soft);
  font: 500 17px/1.3 var(--ae-sans);
  transition: opacity .35s, transform .5s var(--ae-ease);
}
.ae-q mark {
  padding: 1px 6px; border-radius: 6px; color: inherit;
  background: linear-gradient(color-mix(in srgb, var(--ae-accent2) 45%, transparent), color-mix(in srgb, var(--ae-accent2) 45%, transparent)) no-repeat 0 0 / 100% 100%;
  transition: background-size .55s var(--ae-ease) .3s;
}
.ae-answer__card { position: relative; padding: 24px 22px 20px; box-shadow: var(--ae-float); }
.ae-answer__body { transition: opacity .3s, transform .4s var(--ae-ease); }
.ae-answer__lead { margin: 0 0 14px; font-weight: 500; transition: opacity .35s, transform .45s var(--ae-ease); }
.ae-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ae-row {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  padding: 12px 14px; border: 1.5px solid transparent; border-radius: 14px;
  transition: opacity .4s, transform .5s var(--ae-ease), border-color .35s, background-color .35s;
}
.ae-row__name { font-weight: 600; font-size: 17px; }
.ae-row__meta { grid-column: 1; font-size: 14px; color: var(--ae-muted); }
.ae-row__meta b { color: var(--ae-ink); font-weight: 600; }
.ae-row__acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; }
.ae-act {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ae-tint); color: var(--ae-ink);
  transition: background-color .3s, color .3s;
}
.ae-you {
  position: absolute; top: -11px; right: 14px; padding: 4px 9px; border-radius: 999px;
  background: var(--ae-primary); color: var(--ae-card); font: 600 11px/1 var(--ae-sans);
  transition: opacity .3s, transform .45s var(--ae-snap);
}
.ae-answer__follow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ae-line);
  transition: opacity .4s, transform .5s var(--ae-ease);
}
.ae-answer__mark {
  position: absolute; left: -18px; bottom: -18px; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ae-card);
  border: 1px solid var(--ae-line); box-shadow: var(--ae-soft); color: var(--ae-accent);
}
@media (max-width: 600px) { .ae-answer__mark { left: -6px; bottom: -16px; width: 40px; height: 40px; } }
.ae-answer__pause {
  position: absolute; right: 12px; bottom: -40px; display: grid; place-items: center;
  width: 30px; height: 30px; border: 1px solid var(--ae-line); border-radius: 50%;
  background: var(--ae-card); color: var(--ae-muted); cursor: pointer;
}
.ae-answer__pause .ae-i-play { display: none; }
.ae-answer__pause[data-state="paused"] .ae-i-play { display: block; }
.ae-answer__pause[data-state="paused"] .ae-i-pause { display: none; }

/* states */
.ae-answer[data-step="out"] .ae-q { opacity: 0; transform: translateY(-6px) scale(.97); }
.ae-answer[data-step="out"] .ae-q mark { background-size: 0 100%; transition: none; }
.ae-answer[data-step="out"] .ae-answer__body { opacity: 0; transform: translateY(8px); }
.ae-answer:is([data-step="out"], [data-step="ask"]) .ae-answer__lead { opacity: 0; transform: translateY(6px); }
.ae-answer[data-s="0"] .ae-row,
.ae-answer[data-s="1"] .ae-row:nth-child(n + 2),
.ae-answer[data-s="2"] .ae-row:nth-child(n + 3) { opacity: 0; transform: translateY(12px); }
.ae-answer:is([data-step="lock"], [data-step="call"], [data-step="done"]) .ae-row:first-child {
  border-color: color-mix(in srgb, var(--ae-primary) 45%, transparent);
  background: color-mix(in srgb, var(--ae-good) 7%, var(--ae-card));
}
.ae-answer:not(:is([data-step="lock"], [data-step="call"], [data-step="done"])) .ae-you { opacity: 0; transform: translateY(6px) scale(.8); }
.ae-answer:is([data-step="call"], [data-step="done"]) .ae-row:first-child .ae-act--call { background: var(--ae-primary); color: var(--ae-card); }
.ae-answer[data-step="call"] .ae-row:first-child .ae-act--call::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ae-primary);
  animation: ae-ring-once .9s ease-out both;
}
@keyframes ae-ring-once { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
.ae-answer:not([data-step="done"]) .ae-answer__follow { opacity: 0; transform: translateY(8px); }

/* ======================================================================
   Relay grid: one clock, each tile plays its window in turn.
   Children opt in with data-in="a".."f" (0, 3, 6, 9, 12, 15% into the turn)
   and set --from for the entry transform.
   ====================================================================== */
.ae-relay {
  --cycle: 12s; --slot: 2s;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
/* negative delay: on entry every tile is already mid-cycle, so tiles whose
   turn hasn't come show their finished frame instead of an empty card */
.ae-tile { --delay: calc(var(--i, 0) * var(--slot) - var(--cycle)); display: flex; flex-direction: column; overflow: hidden; }
.ae-tile__art {
  position: relative; display: grid; place-items: center; min-height: 190px; padding: 24px 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--ae-card) 70%, transparent), transparent 70%),
    color-mix(in srgb, var(--ae-accent2) 14%, var(--ae-bg));
  border-bottom: 1px solid var(--ae-line);
}
.ae-tile:nth-child(3n + 2) .ae-tile__art { background-color: color-mix(in srgb, var(--ae-primary) 9%, var(--ae-bg)); }
.ae-tile__body { padding: 22px 24px 26px; }
.ae-tile__body h3 { margin: 0 0 6px; font: 600 20px/1.25 var(--ae-sans); letter-spacing: -.01em; }
.ae-tile__body p { margin: 0; color: var(--ae-muted); }
.ae-mini {
  width: 100%; max-width: 300px; padding: 14px 16px; border-radius: 14px;
  background: var(--ae-card); border: 1px solid var(--ae-line); box-shadow: var(--ae-soft);
  font-size: 14px;
}
.ae-mini__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ae-muted); font-size: 13px; }
.ae-chipline { line-height: 2.2; }
.ae-chip { display: inline-block; padding: 1px 8px; border-radius: 7px; background: color-mix(in srgb, var(--ae-primary) 12%, var(--ae-card)); border: 1px solid color-mix(in srgb, var(--ae-primary) 22%, transparent); font-weight: 500; }

.ae-link { display: flex; align-items: center; }
.ae-link .ae-pill { padding: 12px 18px; border-width: 7px; font-weight: 600; }
.ae-link .ae-pill:first-child { border-color: var(--ae-primary); margin-right: -10px; position: relative; z-index: 1; }
.ae-link .ae-pill:last-child { border-color: var(--ae-accent); }
.ae-stack { display: grid; justify-items: center; gap: 14px; }

.ae-switch { display: inline-block; width: 40px; height: 22px; padding: 3px; border-radius: 999px; background: var(--ae-primary); }
.ae-switch i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ae-card); transform: translateX(18px); }
.ae-row-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--ae-line); font-weight: 600; }
.ae-ok { display: flex; align-items: center; gap: 6px; color: var(--ae-muted); }

.ae-qlist { display: grid; gap: 6px; width: 100%; max-width: 280px; }
.ae-qlist > div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--ae-card); border: 1px solid var(--ae-line); font-weight: 500; }
.ae-qlist > div:nth-child(2) { box-shadow: var(--ae-soft); outline: 1.5px solid color-mix(in srgb, var(--ae-primary) 35%, transparent); }
.ae-qlist .ae-disc { width: 18px; height: 18px; }

.ae-schema { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; }
.ae-schema dt { color: var(--ae-muted); }
.ae-schema dd { margin: 0; font-weight: 600; }

.ae-status { display: flex; align-items: center; gap: 10px; }
.ae-status__card { position: relative; padding: 12px 16px; border-radius: 12px; background: var(--ae-primary); color: var(--ae-card); font-weight: 600; }
.ae-status__state { position: relative; display: grid; margin-top: 4px; font-size: 20px; }
.ae-status__state > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; }
.ae-status__state > span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ae-status__closed { color: var(--ae-accent2); opacity: 0; }
.ae-status__open { color: #CFE8DA; }

/* relay keyframes: each holds its finished frame from its window to 96%,
   fades out over the last 4%, so the tile resets right before its turn */
.ae-relay[data-live] [data-in] { animation: var(--ae-in) var(--cycle) linear var(--delay) infinite both; }
[data-in="a"] { --ae-in: ae-in-a; }
[data-in="b"] { --ae-in: ae-in-b; }
[data-in="c"] { --ae-in: ae-in-c; }
[data-in="d"] { --ae-in: ae-in-d; }
[data-in="e"] { --ae-in: ae-in-e; }
[data-in="f"] { --ae-in: ae-in-f; }
@keyframes ae-in-a { 0%, 1% { opacity: 0; transform: var(--from, translateY(8px)); animation-timing-function: var(--ae-ease); } 4%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ae-in-b { 0%, 4% { opacity: 0; transform: var(--from, translateY(8px)); animation-timing-function: var(--ae-ease); } 7%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ae-in-c { 0%, 7% { opacity: 0; transform: var(--from, translateY(8px)); animation-timing-function: var(--ae-ease); } 10%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ae-in-d { 0%, 10% { opacity: 0; transform: var(--from, translateY(8px)); animation-timing-function: var(--ae-ease); } 13%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ae-in-e { 0%, 13% { opacity: 0; transform: var(--from, translateY(8px)); animation-timing-function: var(--ae-ease); } 16%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ae-in-f { 0%, 16% { opacity: 0; transform: var(--from, translateY(8px)); animation-timing-function: var(--ae-ease); } 19%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* special moves inside a turn */
.ae-relay[data-live] .ae-switch { animation: ae-track var(--cycle) linear var(--delay) infinite both; }
.ae-relay[data-live] .ae-switch i { animation: ae-knob var(--cycle) linear var(--delay) infinite both; }
@keyframes ae-track { 0%, 9% { background: color-mix(in srgb, var(--ae-ink) 22%, transparent); } 11%, 97% { background: var(--ae-primary); } 100% { background: color-mix(in srgb, var(--ae-ink) 22%, transparent); } }
@keyframes ae-knob { 0%, 9% { transform: none; animation-timing-function: var(--ae-snap); } 12%, 97% { transform: translateX(18px); } 100% { transform: none; } }
.ae-relay[data-live] .ae-status__closed { animation: ae-flash-out var(--cycle) linear var(--delay) infinite both; }
@keyframes ae-flash-out { 0% { opacity: 0; } 1%, 5% { opacity: 1; transform: none; } 7%, 100% { opacity: 0; transform: translateY(-6px); } }

/* ======================================================================
   Tree: one question, branches checked in order.
   ====================================================================== */
.ae-tree { --cycle: 12s; --delay: 0s; padding: 26px 24px; box-shadow: var(--ae-float); }
.ae-tree__q { display: inline-block; margin: 8px 0 18px; padding: 8px 14px; border-left: 3px solid var(--ae-accent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--ae-accent2) 20%, var(--ae-card)); font-weight: 600; }
.ae-tree__root { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ae-primary); color: var(--ae-card); font-weight: 600; }
.ae-tree__branches { position: relative; list-style: none; margin: 0 0 0 28px; padding: 10px 0 0 18px; display: grid; gap: 10px; }
.ae-tree__branches::before { content: ""; position: absolute; left: 0; top: 0; bottom: 26px; width: 1.5px; background: color-mix(in srgb, var(--ae-ink) 22%, transparent); transform-origin: top; }
.ae-tree__branches li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--ae-line); border-radius: 12px; background: color-mix(in srgb, var(--ae-tint) 60%, var(--ae-card)); font-weight: 500; }
.ae-tree__branches li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 18px; height: 1.5px; background: color-mix(in srgb, var(--ae-ink) 22%, transparent); }
.ae-src { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border: 1px solid var(--ae-line); border-radius: 999px; background: var(--ae-card); font-size: 13px; white-space: nowrap; }
.ae-src .ae-disc { width: 20px; height: 20px; }
.ae-tree[data-live] .ae-tree__branches::before { animation: ae-grow var(--cycle) linear infinite both; }
@keyframes ae-grow { 0%, 3% { transform: scaleY(0); animation-timing-function: cubic-bezier(.45, .2, .4, 1); } 15%, 96% { transform: none; } 100% { transform: scaleY(0); } }
.ae-tree[data-live] [data-in] { animation: var(--ae-in) var(--cycle) linear infinite both; }
.ae-tree[data-live] .ae-src .ae-disc { animation: ae-tick var(--cycle) linear var(--tick, 0s) infinite both; }
@keyframes ae-tick { 0%, 1% { transform: scale(0); animation-timing-function: var(--ae-snap); } 3.5%, 96% { transform: none; } 100% { transform: scale(0); } }

/* ======================================================================
   Matrix: a sweep of checks, one cell after another (wave reset).
   ====================================================================== */
.ae-matrix { --cycle: 11s; padding: 22px 22px 18px; box-shadow: var(--ae-float); }
.ae-matrix table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ae-matrix th { padding: 0 6px 10px; color: var(--ae-muted); font-weight: 500; font-size: 13px; text-align: center; }
.ae-matrix th:first-child { text-align: left; }
.ae-matrix td { padding: 10px 6px; border-top: 1px solid var(--ae-line); text-align: center; }
.ae-matrix td:first-child { text-align: left; font-weight: 500; }
.ae-matrix td .ae-disc { width: 26px; height: 26px; }
.ae-matrix[data-live] td .ae-disc { animation: ae-cell var(--cycle) linear calc(var(--c, 0) * .22s) infinite both; }
@keyframes ae-cell { 0%, 1% { transform: scale(.4); opacity: 0; animation-timing-function: var(--ae-snap); } 3.5%, 95% { transform: none; opacity: 1; } 100% { transform: scale(.4); opacity: 0; } }
.ae-legend { display: flex; gap: 16px; margin-top: 12px; color: var(--ae-muted); font-size: 13px; }
.ae-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ae-legend .ae-disc { width: 16px; height: 16px; }
.ae-changed { margin-top: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ae-accent) 30%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--ae-accent2) 14%, var(--ae-card)); font-size: 14px; }
.ae-changed b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ae-matrix[data-live] .ae-changed { animation: ae-in-f var(--cycle) linear 1.2s infinite both; --from: translateY(10px); }
.ae-note { margin: 10px 0 0; color: var(--ae-muted); font-size: 12px; }

/* ======================================================================
   Pricing: segmented toggle, numbers swap with a short rise.
   ====================================================================== */
.ae-toggle { position: relative; display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 999px; background: var(--ae-card); border: 1px solid var(--ae-line); }
.ae-toggle button { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; color: var(--ae-ink); font: 600 15px/1 var(--ae-sans); cursor: pointer; transition: color .3s; }
.ae-toggle button[aria-pressed="true"] { color: var(--ae-card); }
.ae-toggle::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: var(--w, 50%); border-radius: 999px; background: var(--ae-primary); transform: translateX(var(--x, 0)); transition: transform .45s var(--ae-ease), width .45s var(--ae-ease); }
.ae-save { margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: var(--ae-accent); color: var(--ae-card); font-size: 11px; }
.ae-tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
.ae-tier { padding: 30px 28px; }
.ae-tier--pop { background: var(--ae-primary); color: var(--ae-card); border-color: transparent; box-shadow: var(--ae-float); }
.ae-tier--pop .ae-muted { color: color-mix(in srgb, var(--ae-card) 75%, transparent); }
.ae-tier h3 { margin: 0; font: 600 18px/1.2 var(--ae-sans); }
.ae-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.ae-price b { font: 700 54px/1 var(--ae-sans); letter-spacing: -.04em; }
.ae-swap { animation: ae-swap .45s var(--ae-ease) both; }
@keyframes ae-swap { from { opacity: .15; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ae-muted { color: var(--ae-muted); }
.ae-tier ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ae-tier li { display: flex; gap: 10px; }
.ae-tier li svg { margin-top: 4px; color: var(--ae-good); }
.ae-tier--pop li svg { color: #CFE8DA; }

/* one-click add-ons: a real checkbox drives a switch; kit.js adds the price */
.ae-addons { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.ae-addon { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 22px 24px; cursor: pointer; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.ae-addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ae-addon__switch { display: inline-block; width: 46px; height: 26px; margin-top: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ae-ink) 20%, transparent); transition: background-color .3s; }
.ae-addon__switch i { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--ae-card); box-shadow: 0 1px 3px color-mix(in srgb, var(--ae-ink) 25%, transparent); transition: transform .35s var(--ae-snap); }
.ae-addon input:checked ~ .ae-addon__switch { background: var(--ae-primary); }
.ae-addon input:checked ~ .ae-addon__switch i { transform: translateX(20px); }
.ae-addon input:focus-visible ~ .ae-addon__switch { outline: 2px solid var(--ae-accent); outline-offset: 3px; }
.ae-addon:has(input:checked) { border-color: color-mix(in srgb, var(--ae-primary) 50%, transparent); background: color-mix(in srgb, var(--ae-good) 6%, var(--ae-card)); box-shadow: var(--ae-float); }
.ae-addon__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ae-addon__top b { font-size: 18px; }
.ae-addon__price { color: var(--ae-primary); font-weight: 600; white-space: nowrap; }
.ae-addon__text { display: block; margin-top: 6px; color: var(--ae-muted); }
.ae-addon__text a { color: var(--ae-primary); font-weight: 600; }
.ae-addon-note { margin: 4px 0 0; color: var(--ae-good); font-size: 14px; font-weight: 600; }
.ae-tier--pop .ae-addon-note { color: #CFE8DA; }

/* a build-up container: [data-in] children enter in order while it's seen */
.ae-build { --cycle: 12s; }
.ae-build[data-live] [data-in] { animation: var(--ae-in) var(--cycle) linear infinite both; }

/* ======================================================================
   Tabs: pill tablist; the selected panel replays ae-swap (kit.js).
   ====================================================================== */
.ae-tablist { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: 0 -4px; scrollbar-width: none; }
.ae-tablist::-webkit-scrollbar { display: none; }
.ae-tablist [role="tab"] {
  flex: none; min-height: 46px; padding: 0 18px; border: 1px solid var(--ae-line); border-radius: 999px;
  background: var(--ae-card); color: var(--ae-ink); font: 600 15px/1 var(--ae-sans); cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.ae-tablist [role="tab"]:hover { border-color: color-mix(in srgb, var(--ae-primary) 45%, transparent); }
.ae-tablist [role="tab"][aria-selected="true"] { background: var(--ae-primary); border-color: var(--ae-primary); color: var(--ae-card); }
.ae-tablist [role="tab"]:focus-visible { outline: 2px solid var(--ae-accent); outline-offset: 2px; }

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