/* ==========================================================================
   Milanuncios card evolution: the old listing card turns into the new one,
   one change at a time, with design annotations (Figma-style callouts,
   spacing redlines and color swatches).
   The scene is drawn on a fixed canvas (1280×720, or 560×880 on narrow
   screens) and scaled to the stage width by card-evolution.js.
   ========================================================================== */

@font-face { font-family: "Switzer"; src: url("/assets/fonts/Switzer-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/Switzer-Extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.ce {
  --ce-bg: #eef1f0;
  --ce-ink: #1b1d1f;
  --ce-muted: #6b7178;
  --ce-green: #17694d;
  /* card palette (light); dark values below follow the site theme */
  --ce-card: #fff;
  --ce-fin: #6f777e;
  --ce-top-bg: #e6f2ed;
  --ce-credit-bg: #fdf4c7; --ce-credit-fg: #6a5200;
  --ce-warr-bg: #e7eef9;   --ce-warr-fg: #1f4fa3;
  --ce-seller-bg: #e3f1ec;
  --ce-shield: #1f5fd1;
  --ce-sw-edge: rgba(0, 0, 0, .12);
  --ce-shadow-old: 0 0 0 1px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .07);
  --ce-shadow-new: 0 0 0 1px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .1);
  --ce-mark: #007aff;      /* annotations: Apple system blue (iOS buttons) */
  --ce-mark-ink: #fff;
  --ce-k: 1;               /* canvas scale, set by JS */
  --ce-ease: cubic-bezier(.65, 0, .35, 1);
  --ce-soft: cubic-bezier(.33, 0, .15, 1);   /* gentler in-out for the photo step */
  --ce-t: .7s;
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: none; color: var(--ink);
}
:root[data-theme="dark"] .ce {
    --ce-bg: var(--panel);
    --ce-mark: #0a84ff;   /* Apple system blue, dark appearance */
    --ce-ink: #eceef0; --ce-muted: #9aa1a8; --ce-green: #5cc9a0;
    --ce-card: #1c1f22; --ce-fin: #858d95;
    --ce-top-bg: #173a2e;
    --ce-credit-bg: #3b3313; --ce-credit-fg: #f0d67a;
    --ce-warr-bg: #1c2c47;   --ce-warr-fg: #a3c0f3;
    --ce-seller-bg: #173a2e;
    --ce-shield: #79a6f5;
    --ce-sw-edge: rgba(255, 255, 255, .16);
    --ce-shadow-old: 0 0 0 1px rgba(255, 255, 255, .07), 0 6px 20px rgba(0, 0, 0, .45);
    --ce-shadow-new: 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ce {
    --ce-bg: var(--panel);
    --ce-mark: #0a84ff;   /* Apple system blue, dark appearance */
    --ce-ink: #eceef0; --ce-muted: #9aa1a8; --ce-green: #5cc9a0;
    --ce-card: #1c1f22; --ce-fin: #858d95;
    --ce-top-bg: #173a2e;
    --ce-credit-bg: #3b3313; --ce-credit-fg: #f0d67a;
    --ce-warr-bg: #1c2c47;   --ce-warr-fg: #a3c0f3;
    --ce-seller-bg: #173a2e;
    --ce-shield: #79a6f5;
    --ce-sw-edge: rgba(255, 255, 255, .16);
    --ce-shadow-old: 0 0 0 1px rgba(255, 255, 255, .07), 0 6px 20px rgba(0, 0, 0, .45);
    --ce-shadow-new: 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .55);
} }
.ce.is-narrow { aspect-ratio: 560 / 900; }

.ce__canvas {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px;
  transform: scale(var(--ce-k)); transform-origin: 0 0;
  display: flex; align-items: center;
}
.ce.is-narrow .ce__canvas { width: 560px; height: 900px; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 40px; }

/* ---------- Caption (left column / top on narrow) ---------- */
.ce__caption { position: absolute; left: 80px; top: 50%; width: 300px; transform: translateY(-50%); }
.ce.is-narrow .ce__caption { position: static; transform: none; width: 480px; height: 180px; text-align: left; }
.ce__step { font-size: 15px; line-height: 1.4; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.ce__title { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--ink); }
.ce__text { margin-top: 12px; font-size: 17px; line-height: 1.4; color: var(--muted); }
.ce__caption > * { transition: opacity .35s ease, transform .35s ease; }
.ce__caption.is-swapping > * { opacity: 0; transform: translateY(6px); }
.ce.is-narrow .ce__title { font-size: 30px; }
.ce.is-narrow .ce__text { font-size: 19px; }

/* ---------- Card ---------- */
.ce__card {
  position: relative; width: 400px; margin-left: 440px;
  background: var(--ce-card); color: var(--ce-ink); border-radius: 4px;
  font-family: "Switzer", "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 20px;
  box-shadow: var(--ce-shadow-old);
  transition: border-radius var(--ce-t) var(--ce-ease), box-shadow var(--ce-t) ease, opacity .5s ease, background-color .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}
.ce.is-narrow .ce__card { margin-left: 0; }
.ce.is-fading .ce__card { opacity: 0; }
.ce.is-resetting * { transition-duration: 0s !important; }

.ce__photo { position: relative; height: 300px; border-radius: 4px 4px 0 0; overflow: hidden; background: #1a2440;
  transition: height var(--ce-t) var(--ce-ease), border-radius var(--ce-t) var(--ce-ease); }
.ce__photo img { width: 100%; height: 100%; object-fit: cover; }
.ce__count {
  position: absolute; z-index: 2; left: 10px; bottom: 10px; width: 54px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22, 26, 30, .8); color: #fff; font-size: 14px; font-weight: 500;
  transition: left var(--ce-t) var(--ce-ease);
}
.ce__count svg { width: 15px; height: 15px; flex: none; }
/* two camera icons: the left one folds away while the right one unfolds, so the icon glides to the other side */
.ce__ic { display: inline-flex; width: 15px; overflow: hidden; transition: width .6s var(--ce-soft), margin .6s var(--ce-soft), opacity .4s ease; }
.ce__ic--l { margin-right: 5px; }
.ce__ic--r { width: 0; margin-left: 0; opacity: 0; }
.ce__top {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 8px;
  background: var(--ce-top-bg); color: var(--ce-green); font-size: 12px; font-weight: 800; letter-spacing: .4px;
  opacity: 0; transform: translateY(-4px) scale(.9); transform-origin: 0 0;
  transition: opacity .5s ease, transform .6s var(--ce-soft);
}

.ce__body { padding: 16px 16px 12px; }
.ce__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ce__name { position: relative; flex: 1; height: 28px; font-size: 21px; line-height: 28px; }
.ce__name span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .45s ease; }
.ce__name-old { font-weight: 400; text-transform: uppercase; letter-spacing: .2px; }
.ce__name-new { font-weight: 600; opacity: 0; }
.ce__heart { position: relative; width: 36px; height: 36px; margin: -6px -6px -6px 0; display: grid; place-items: center; color: var(--ce-green); flex: none; }
.ce__heart::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ce-green); transform: scale(0); }
.ce__heart svg { position: relative; width: 24px; height: 24px; }
.ce__heart path { fill: transparent; }

/* ---------- Final step: a finger taps the favorite button and the heart fills ---------- */
/* fingertip indicator, same look as the Following Flights demo */
.ce__tap { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; z-index: 2; pointer-events: none;
  background: rgba(60, 64, 70, .28); border: 2px solid rgba(255, 255, 255, .95); box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 3px 12px rgba(0, 0, 0, .3); opacity: 0; }
.ce__tap::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 2px solid rgba(90, 96, 104, .55); opacity: 0; }
.ce[data-step="8"] .ce__tap { animation: ce-tap 1s ease-out .8s both; }
.ce[data-step="8"] .ce__tap::after { animation: ce-ripple .4s cubic-bezier(0, 0, .3, 1) 1.3s both; }
.ce[data-step="8"] .ce__heart::before { animation: ce-fav-bg .5s var(--ce-soft) 1.3s both; }
.ce[data-step="8"] .ce__heart svg { animation: ce-fav-heart .55s ease 1.25s both; }
.ce[data-step="8"] .ce__heart path { animation: ce-fav-fill .3s ease 1.38s both; }
/* glide in → hold → press (1.3s) → hold → lift away */
@keyframes ce-tap {
  0% { opacity: 0; transform: scale(1.35); }
  25%, 45% { opacity: 1; transform: scale(1); }
  52%, 70% { opacity: 1; transform: scale(.82); background: rgba(60, 64, 70, .42); }
  100% { opacity: 0; transform: scale(1.1); }
}
@keyframes ce-ripple { 0% { opacity: 0; } 1% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }
@keyframes ce-fav-bg { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* the heart squeezes on press, then pops back filled (card color on the green circle, so it works in both themes) */
@keyframes ce-fav-heart {
  0% { color: var(--ce-green); transform: scale(1); }
  30% { transform: scale(.8); }
  60% { color: var(--ce-card); transform: scale(1.18); }
  100% { color: var(--ce-card); transform: scale(1); }
}
@keyframes ce-fav-fill { from { fill: transparent; } to { fill: var(--ce-card); } }

.ce__prices { position: relative; display: flex; align-items: flex-end; margin-top: 12px; }
.ce__price-col { min-width: 0; }
.ce__fin { margin-left: 16px; max-width: 200px; max-height: 60px; overflow: hidden; white-space: nowrap;
  transition: max-width var(--ce-t) var(--ce-ease), max-height var(--ce-t) var(--ce-ease), margin var(--ce-t) var(--ce-ease), opacity .4s ease; }
.ce__label { font-size: 14px; line-height: 18px; }
.ce__fin .ce__label { color: var(--ce-muted); }
.ce__price { font-weight: 800; font-size: 24px; line-height: 30px; letter-spacing: -.2px; white-space: nowrap;
  transition: font-size var(--ce-t) var(--ce-ease), line-height var(--ce-t) var(--ce-ease); }
.ce__fin .ce__price { color: var(--ce-fin); }

/* collapsible rows (grid 1fr ⇄ 0fr animates height) */
.ce-c, .ce-x { display: grid; transition: grid-template-rows var(--ce-t) var(--ce-ease), opacity .45s ease, margin var(--ce-t) var(--ce-ease); }
.ce-c { grid-template-rows: 1fr; }
.ce-x { grid-template-rows: 0fr; opacity: 0; }
.ce-c > div, .ce-x > div { min-height: 0; overflow: hidden; }

.ce__chips > div { display: flex; gap: 8px; padding-top: 4px; }
.ce-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 14px; }
.ce-chip svg { width: 14px; height: 14px; }
.ce-chip--credit { background: var(--ce-credit-bg); color: var(--ce-credit-fg); }
.ce-chip--warranty { background: var(--ce-warr-bg); color: var(--ce-warr-fg); }

.ce__info { position: relative; margin-top: 12px; transition: margin var(--ce-t) var(--ce-ease); }
.ce-row { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.ce-row svg { width: 15px; height: 15px; flex: none; }
.ce__loc { color: var(--ce-ink); transition: color var(--ce-t) ease; }
.ce__info > * + * { margin-top: 2px; }
.ce__shield { color: var(--ce-shield); }
.ce__specs-old .ce-row { font-weight: 600; }
.ce__specs .ce-row { gap: 14px; color: var(--ce-muted); }
.ce__specs .ce-row span { display: inline-flex; align-items: center; gap: 5px; }
.ce__final .ce-row { color: var(--ce-muted); }

.ce__foot { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; min-height: 26px;
  transition: margin var(--ce-t) var(--ce-ease); }
.ce__seller { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-8px);
  transition: opacity .45s ease, transform .6s var(--ce-ease); }
.ce-chip--seller { background: var(--ce-seller-bg); color: var(--ce-green); font-weight: 500; }
.ce__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ce-green); font-weight: 500; }
.ce__rating svg { width: 13px; height: 13px; }
.ce__date { margin-left: auto; color: var(--ce-muted); font-size: 14px; }

/* ---------- Steps (cumulative classes s1…s7 on .ce) ---------- */
/* 1 · title */
.ce.s1 .ce__name-old { opacity: 0; }
.ce.s1 .ce__name-new { opacity: 1; }
/* 2 · one price */
.ce.s2 .ce__labels { grid-template-rows: 0fr; opacity: 0; }
.ce.s2 .ce__fin { max-width: 0; max-height: 0; margin-left: 0; opacity: 0; }
.ce.s2 .ce__price { font-size: 34px; line-height: 40px; }
.ce.s2 .ce__vat { grid-template-rows: 0fr; opacity: 0; }
.ce.s2 .ce__prices { margin-top: 4px; }
/* 3 · badges */
.ce.s3 .ce__warr { grid-template-rows: 0fr; opacity: 0; }
.ce.s3 .ce__chips { grid-template-rows: 1fr; opacity: 1; }
/* new rows open first, then fade in, so they don't look wiped in through a slot */
.ce.s3 .ce__chips, .ce.s4 .ce__specs { transition: grid-template-rows var(--ce-t) var(--ce-ease), opacity .45s ease .3s, margin var(--ce-t) var(--ce-ease); }
/* 4 · specs */
.ce.s4 .ce__specs-old, .ce.s4 .ce__final { grid-template-rows: 0fr; opacity: 0; }
.ce.s4 .ce__specs { grid-template-rows: 1fr; opacity: 1; }
.ce.s4 .ce__loc { color: var(--ce-muted); }
/* 5 · spacing */
.ce.s5 .ce__info { margin-top: 22px; }
.ce.s5 .ce__specs { margin-top: 12px; }
.ce.s5 .ce__foot { margin-top: 22px; }
.ce.s5 .ce__body { padding-bottom: 16px; }
.ce__body { transition: padding var(--ce-t) var(--ce-ease); }
/* 6 · seller */
.ce.s6 .ce__seller { opacity: 1; transform: none; }
/* 7 · photo */
/* staged so it reads in order: photo grows and softens → counter glides right → TOP badge settles in */
.ce.s7 .ce__card { border-radius: 20px; box-shadow: var(--ce-shadow-new);
  transition: border-radius 1s var(--ce-soft), box-shadow 1s ease, opacity .5s ease, background-color .3s ease, color .3s ease; }
.ce.s7 .ce__photo { height: 312px; border-radius: 20px 20px 0 0; transition: height 1s var(--ce-soft), border-radius 1s var(--ce-soft); }
.ce.s7 .ce__count { left: 336px; transition: left 1.1s var(--ce-soft) .45s; }
.ce.s7 .ce__ic--l { width: 0; margin-right: 0; opacity: 0; transition-delay: .65s; }
.ce.s7 .ce__ic--r { width: 15px; margin-left: 5px; opacity: 1; transition-delay: .75s; }
.ce.s7 .ce__top { opacity: 1; transform: none; transition-delay: 1.4s; }

/* ---------- Annotations ---------- */
/* focus outline on the block being changed */
.ce [data-focus] { outline: 1.5px dashed transparent; outline-offset: 5px; border-radius: 3px; }
/* the outline fade is added to (not instead of) each block's own layout transitions */
.ce__head, [data-focus="3"] { transition: outline-color .3s ease; }
.ce__prices, .ce__info, .ce__foot { transition: outline-color .3s ease, margin var(--ce-t) var(--ce-ease); }
.ce__photo { transition: outline-color .3s ease, height var(--ce-t) var(--ce-ease), border-radius var(--ce-t) var(--ce-ease); }
.ce.s7 .ce__photo { transition: outline-color .3s ease, height 1s var(--ce-soft), border-radius 1s var(--ce-soft); }
.ce[data-step="1"] [data-focus="1"], .ce[data-step="2"] [data-focus="2"], .ce[data-step="3"] [data-focus="3"],
.ce[data-step="4"] [data-focus="4"], .ce[data-step="6"] [data-focus="6"], .ce[data-step="7"] [data-focus="7"] { outline-color: var(--ce-mark); }

/* callout: pill to the right of the card with a leader line back to the card edge */
.ce-note {
  position: absolute; top: 50%; left: calc(100% + 16px + 48px); z-index: 2;
  display: flex; flex-direction: column; gap: 6px; width: max-content; max-width: 330px;
  transform: translate(-8px, -50%); opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--ce-ease);
  font-family: var(--font-body);
}
.ce-note::before { content: ""; position: absolute; right: calc(100% + 6px); top: 50%; width: 46px; border-top: 1.5px dashed var(--ce-mark); }
.ce-note::after { content: ""; position: absolute; right: calc(100% + 49px); top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--ce-mark); }
.ce-note b { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 6px; background: var(--ce-mark); color: var(--ce-mark-ink); font-size: 15px; font-weight: 600; line-height: 1.2; }
.ce-note span { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1.3; color: var(--ink); }
.ce-note s { text-decoration: line-through; color: var(--muted); }
.ce-note i { font-style: normal; color: var(--muted); }
.ce-sw { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ce-sw-edge); flex: none; }
.ce[data-step="1"] .ce-note[data-note="1"], .ce[data-step="2"] .ce-note[data-note="2"], .ce[data-step="3"] .ce-note[data-note="3"],
.ce[data-step="4"] .ce-note[data-note="4"], .ce[data-step="5"] .ce-note[data-note="5"], .ce[data-step="6"] .ce-note[data-note="6"],
.ce[data-step="7"] .ce-note[data-note="7"] { opacity: 1; transform: translate(0, -50%); transition-delay: .25s; }
/* the photo callout sits a little higher, next to the counter's path */
.ce__photo-note { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }

/* spacing redlines (step 5): bars that span the gap they measure */
.ce-gap { position: absolute; left: -32px; width: 20px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.ce-gap::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px solid var(--ce-mark); }
.ce-gap::after { content: ""; position: absolute; left: 4px; right: 4px; top: 0; bottom: 0; border-top: 1.5px solid var(--ce-mark); border-bottom: 1.5px solid var(--ce-mark); }
.ce-gap em { position: relative; z-index: 1; padding: 1px 4px; border-radius: 4px; background: var(--ce-mark); color: #fff; font: 600 11px / 1.2 var(--font-body); font-style: normal; }
.ce[data-step="5"] .ce-gap { opacity: 1; transition-delay: .65s; }
.ce__info > .ce-gap { bottom: 100%; height: 22px; }
.ce__foot > .ce-gap { bottom: 100%; height: 22px; }

/* counter path arrow (step 7) */
.ce-move { position: absolute; z-index: 1; left: 72px; right: 82px; bottom: 22px; height: 0; border-top: 1.5px dashed #fff; opacity: 0; transform-origin: 0 50%; }
.ce-move::after { content: ""; position: absolute; right: -2px; top: -5.5px; border: 5px solid transparent; border-left: 8px solid #fff; border-right: 0; }
.ce[data-step="7"] .ce-move { animation: ce-trail 1.9s var(--ce-soft) .3s both; }
/* the trail draws ahead of the counter, then fades once it has arrived */
@keyframes ce-trail { 0% { opacity: 0; transform: scaleX(0); } 20% { opacity: .85; } 65% { opacity: .85; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }

/* ---------- Narrow: callouts become one line under the caption ---------- */
.ce.is-narrow .ce-note { display: none; }
.ce.is-narrow .ce-gap { left: -28px; }

/* ---------- Controls (not scaled) ---------- */
.ce__controls { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.ce__play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 10px rgba(0, 0, 0, .1); transition: transform .2s ease; }
.ce__play:hover { transform: translateY(-1px); }
.ce__play svg { width: 18px; height: 18px; }
.ce__play .i-play { display: none; }
.ce.is-paused .ce__play .i-play { display: block; }
.ce.is-paused .ce__play .i-pause { display: none; }
.ce__dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ce__dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.ce__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .35; transition: opacity .2s ease, transform .2s ease; }
.ce__dots button[aria-current="step"]::before { opacity: 1; transform: scale(1.25); background: var(--ink); }
.ce__dots button:hover::before { opacity: .8; }
@media (max-width: 767.98px) {
  .ce__controls { left: 8px; bottom: 8px; gap: 6px; }
  .ce__play { width: 36px; height: 36px; }
  .ce__dots { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ce * { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  /* no tap animation: just show the favorited heart on the final step */
  .ce[data-step="8"] .ce__heart::before { transform: none; }
  .ce[data-step="8"] .ce__heart { color: var(--ce-card); }
  .ce[data-step="8"] .ce__heart path { fill: var(--ce-card); }
}

/* ---------- Column layout (Home): no panel, step caption above the card, notes to its right ---------- */
.ce { text-align: left; }
.ce[data-layout="column"] { background: none; }
/* desktop: step caption left of the card, notes right; the canvas is 1040 × 600 */
.ce.is-column { aspect-ratio: 1040 / 600; overflow: visible; }
.ce.is-column .ce__canvas { width: 1040px; height: 600px; }
.ce.is-column .ce__caption { left: 48px; width: 220px; }
.ce.is-column .ce__title { font-size: 30px; }
.ce.is-column .ce__card { margin-left: 312px; }
.ce.is-column .ce-note { max-width: 280px; }
.ce.is-column .ce-note span { font-size: 17px; }
.ce.is-column .ce-note b { font-size: 16px; }
.ce.is-column .ce__step { font-size: 16px; }
.ce.is-column .ce__text { font-size: 19px; }
/* stepper + pause pill, stacked and centered under the card (x 312–712 of the 1040 canvas) */
.ce-under { align-self: flex-start; width: 100%; margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ce.is-column + .ce-under { width: calc(400 / 1040 * 100%); margin-left: calc(312 / 1040 * 100%); }
.ce-under .ce__dots { display: flex; gap: 2px; }
.ce-section .ce-under .ff-toggle { margin-top: 0; }
/* previous · play/pause · next, same surface and lift as the pill */
.ce-nav { display: flex; align-items: center; gap: 8px; }
.ce-step-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 10px rgba(0, 0, 0, .1); transition: transform .25s ease, box-shadow .25s ease; }
.ce-step-btn svg { width: 14px; height: 14px; }
.ce-step-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 8px 18px rgba(0, 0, 0, .14); }
.ce-step-btn:active { transform: translateY(0); transition-duration: .1s; }
:root[data-theme="dark"] .ce-step-btn { background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .ce-step-btn:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 8px 18px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { .ce-step-btn:hover, .ce-step-btn:active { transform: none; } }
/* round focus ring on the step dots */
.ce__dots button:focus-visible { outline-offset: 0; border-radius: 50%; }
.ce-section .ff-demo__stage .ce { width: 100%; }
.ce-section .ce-more { display: flex; justify-content: center; margin-top: 64px; }
/* phone, Home: controls live under the animation, so the canvas needs less room at the bottom */
.ce.is-narrow[data-layout="column"] { aspect-ratio: 560 / 820; }
.ce.is-narrow[data-layout="column"] .ce__canvas { height: 820px; }
