/* ============================================================================
   Seppi concept site: the character, motion and press feedback, shared by
   seppi-app.com (forked from web/youmala/assets/seppi-site.css). Identity values come from
   seppi.css; this file adds only behaviour and the character's drawing.

   The character follows the "seppi / identity system / visual direction 2026"
   sheet: an asymmetric blob in lavender or lime, eyes only, set high and to
   one side, single-stroke limbs. "Different shape. Same character." Each pose
   has its own lopsided silhouette. It replaces the CI v0.1 stick figure on
   these pages only; the CI document itself is unchanged.

   Motion follows a few rules:
   - Custom curves. Strong ease-out for things arriving, ease-in-out for
     things already on screen, linear only for constant motion.
   - UI feedback stays under 300ms. Marketing reveals may take longer.
   - Only transform, opacity and filter animate. Reveals use the individual
     `translate` and `scale` properties so they never fight an element's own
     `transform` (the rotated stickers and cards).
   - Hover effects only on devices that really hover.
   - Reduced motion: seppi.css already stops animations and shortens
     transitions, so everything lands in its final state at once.
   ========================================================================= */

:root{
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-in-out:cubic-bezier(.77,0,.175,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);   /* small overshoot, playful only */
  /* Proposed UI accent from the 2026 visual-direction sheet: active chips and
     metadata such as times. Not yet in CI v0.1. */
  --violet:#925BFF;

  /* Grey surfaces derive from charcoal and white (2026 sheet); not new
     brand colours. A subtle shadow separates stacked layers. */
  --soft:#F2F2F2;
  --soft-dark:#2E2E2E;
  --lift:0 1px 2px rgba(32,32,32,.06), 0 12px 28px -8px rgba(32,32,32,.16);
}

/* --- the wordmark ----------------------------------------------------------
   The supplied wordmark artwork from the "seppi / identity system" sheet,
   traced to vector (assets/seppi-wordmark.svg). The CI PDF's own specimen is
   marked "a proposed typeset reconstruction, not a recovered logo master",
   so it is not used. Lowercase, upright, monochrome; it takes the text
   colour, so it reverses to white on charcoal. */
.logo{display:inline-block;color:var(--charcoal);line-height:0;text-decoration:none}
.logo svg{display:block;height:var(--logo-h, 30px);width:auto;aspect-ratio:3893.3/1508.3;fill:currentColor}

/* CI labels are sentence case, system sans, medium. seppi.css sets its
   documentation eyebrow in caps; these pages do not. */
.eyebrow{text-transform:none;letter-spacing:0;font-size:14px;font-weight:500}

/* status chips: charcoal on orange, per the CI readability rule */
.chip--status,.chip--orange{background:var(--orange);color:var(--charcoal)}

/* --- the character -------------------------------------------------------- */
.kid{color:var(--charcoal);overflow:visible}
/* The character is never covered: it sits above every box, card and panel.
   Placement rules may make it absolute; they never lower it. */
.kid{position:relative;z-index:40!important}
.blob-fill{fill:var(--blob, var(--lavender))}
.blob-line{fill:none;stroke:currentColor;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
.blob-eye{fill:var(--charcoal)}
.blob-glint{fill:var(--white)}
.blob-shadow{fill:var(--charcoal);opacity:.08}

/* idle life: a slow breath, a blink now and then, an occasional wave.
   --d offsets each figure so a page of them never moves in unison. */
.blob-body{
  transform-box:fill-box;transform-origin:50% 100%;
  animation:blob-breathe 4.4s var(--ease-in-out) infinite;
  animation-delay:var(--d, 0s);
}
.blob-eyes{
  transform-box:fill-box;transform-origin:50% 50%;
  animation:blob-blink 5.6s linear infinite;
  animation-delay:var(--d, 0s);
}
.blob-wave{
  transform-box:view-box;
  animation:blob-wave 3.6s var(--ease-in-out) infinite;
  animation-delay:var(--d, 0s);
}
@keyframes blob-breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.025,.972)}}
@keyframes blob-blink{0%,93%,100%{transform:scaleY(1)}95.5%{transform:scaleY(.12)}}
@keyframes blob-wave{0%,55%,100%{transform:rotate(0)}64%{transform:rotate(-16deg)}73%{transform:rotate(7deg)}82%{transform:rotate(-9deg)}91%{transform:rotate(2deg)}}

/* on dark fields the limbs reverse; the body keeps its colour */
.field--charcoal .kid,.band--charcoal .kid,.tile--dark .kid{color:var(--white)}
.field--charcoal .blob-shadow,.band--charcoal .blob-shadow{fill:var(--white)}

/* --- press feedback --------------------------------------------------------- */
.btn,.pill,.choices button,.textbtn,.store{
  transition:
    scale 160ms var(--ease-out),
    rotate 220ms var(--ease-out),
    translate 220ms var(--ease-out),
    opacity 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}
.btn:active,.pill:active,.choices button:active{scale:.97}
.btn[disabled]:active,.pill[disabled]:active{scale:1}

/* --- the App Store badge -----------------------------------------------------
   A filled pebble in the CI's ink, not Apple's badge artwork: that may only
   be used once the app is available. The URL lives in seppi-store.js; until
   it is set the badge has no href and reads "Bald im App Store", so it is
   information, not a dead link. It presses only once it is a link. */
.store{
  display:inline-flex;align-items:center;gap:10px;text-decoration:none;
  background:var(--charcoal);color:var(--white);border-radius:var(--pebble-md);
  padding:8px 18px 8px 12px;font:600 16px/1.1 var(--sans);cursor:default;
}
.store small{display:block;font:500 11px/1.25 var(--sans);color:var(--grey-dark)}
.store-ic{width:24px;height:24px;flex:none}
.store[href]{cursor:pointer}
.store[href]:active{scale:.97}
.store--light{background:var(--white);color:var(--charcoal)}
.store--light small{color:var(--grey)}

/* numbers that change in place keep their width */
.count,.result b,#ride-status,.ctile b,.tile b,.stat b{font-variant-numeric:tabular-nums}

/* --- reveal on scroll -------------------------------------------------------
   Only armed once the script has run (.js-motion). Without it, or if the
   observer never fires, every element is simply visible. */
.js-motion [data-reveal]{
  opacity:0;translate:0 18px;filter:blur(6px);
  transition:
    opacity 640ms var(--ease-out),
    translate 760ms var(--ease-out),
    scale 760ms var(--ease-out),
    filter 640ms var(--ease-out);
  transition-delay:calc(var(--i, 0) * 70ms);
}
.js-motion [data-reveal="pop"]{scale:.88;translate:0 10px;transition-timing-function:var(--ease-out),var(--ease-spring),var(--ease-spring),var(--ease-out)}
.js-motion [data-reveal].is-in{opacity:1;translate:0 0;scale:1;filter:none}
.mini-logo{display:block;height:17px;width:auto;aspect-ratio:3893.3/1508.3;fill:currentColor}

/* the documentation hairline between sections is not used on these pages */
.section{border-bottom:0}

/* --- the app's card shape ----------------------------------------------------
   seppi-shapes.js paints each card as a slightly skewed, softly cornered
   quadrilateral behind its content and marks the box .is-shaped. The box's
   own background and shadow move onto that silhouette. */
.is-shaped{background-color:transparent!important;background-image:none!important;box-shadow:none!important;isolation:isolate}
.shape-bg{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;pointer-events:none}
.shape-bg.has-lift{filter:drop-shadow(0 1px 1px rgba(32,32,32,.06)) drop-shadow(0 10px 12px rgba(32,32,32,.12))}

/* --- the character at play -------------------------------------------------
   seppi-kids.js makes the characters run in when they first come into view,
   hop and pace now and then, and run off and back when tapped. While a
   character runs, the script sets --run-l/--run-r on it; the custom
   properties inherit into the drawing, and the legs swing from the hip. */
.blob-leg-l,.blob-leg-r{transform-box:view-box}
.blob-leg-l{animation:var(--run-l, none) var(--run-speed, 260ms) linear infinite}
.blob-leg-r{animation:var(--run-r, none) var(--run-speed, 260ms) linear infinite}
@keyframes leg-l{0%,100%{transform:rotate(20deg)}50%{transform:rotate(-20deg)}}
@keyframes leg-r{0%,100%{transform:rotate(-20deg)}50%{transform:rotate(20deg)}}
.kid-wait{opacity:0}
.kid.is-playful{cursor:pointer}

/* touch screens: every control in the examples is a comfortable target */
@media (pointer:coarse){
  .choices button,.btn--sm,.btn--ink{min-height:40px}
  a.logo{padding-block:8px;margin-block:-8px}
  .textbtn{min-height:40px;display:inline-flex;align-items:center}
}
