/* The demo page (/demo): one DOM for every width, mobile first.
   <640   the owner's mobile design's hero; the stats after the form, so the form
          is on the first screen;
   640+   a compact dark band, the form full width (max 720px), the stats after it;
   1024+  a sticky full-height dark panel (45%) laid out as the owner's desktop
          design, beside the form (55%), card up to 720px;
   1280+  the stats in the design's three columns; 1280+ and 880px tall: the
          GÖRÜŞME -> RAPOR card in the panel;
   1024+ and 760px tall or less: a tighter panel; 620px or less: the panel runs
          the page's height, not sticky.
   Motion only under prefers-reduced-motion: no-preference (at the end). */

:root {
  --demo-hero-text: #C5CCCF;
  --demo-hero-muted: #98A4AA;
  --demo-muted: #69767C;
  --demo-hero-accent: #8ED6F6;
  --demo-panel: #171D20;
  --demo-panel-line: #232B2F;
  --demo-band-text: #CAD7DD;
  --demo-link: #00607E;
  --demo-cta-hover: #1996BD;
  --demo-ghost-line: #C5CCCF;
  --demo-gutter: 16px;
  --demo-card-max: 720px;
}

/* ---- the page grid below 1024px: the hero's parts become grid items, so the
   stats can follow the form; ::before paints the dark band behind them. -------- */
.demo-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "mark" "intro" "jump" "form" "stats" "foot";
}

.demo-page::before {
  content: "";
  grid-row: 1 / span 3;
  grid-column: 1;
  background: var(--ink);
}

.demo-hero,
.demo-hero-bottom {
  display: contents;
  color: var(--paper);
}

/* The hero below 640px follows the owner's mobile design (6c749238): padding
   24px 20px, a 28px brand row, 36px between the brand row, the intro and the
   CTA, 18px inside the intro, a 40px headline, 16px copy, a 52px CTA, 40px
   below it. Only the stats move: after the form, so the form is on the first
   screen. */
.demo-mark {
  grid-area: mark;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 24px 20px 0;
  color: var(--paper);
}

.demo-mark-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.demo-mark-rule {
  width: 1px;
  height: 16px;
  background: var(--text);
}

.demo-mark-product {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--demo-hero-accent);
}

.demo-intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 20px 0;
}

.demo-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.demo-headline {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--paper);
}

.demo-headline-accent {
  color: var(--accent);
}

.demo-lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--demo-hero-text);
  text-wrap: pretty;
}

.demo-cta {
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.demo-cta:hover {
  background: var(--demo-cta-hover);
  color: var(--ink);
}

.demo-cta:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.demo-submit:focus-visible {
  outline-color: var(--ink);
}

.demo-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.demo-cta:disabled:hover {
  background: var(--accent);
}

.demo-jump {
  grid-area: jump;
  margin: 36px 20px 40px;
}

/* the GÖRÜŞME -> RAPOR card: only in the desktop panel, as in the mobile design */
.demo-flow {
  display: none;
}

/* the three stats, in the mobile design's box (padding 4px 20px, rows 18px,
   20px titles): after the form below 1024px */
.demo-trio {
  grid-area: stats;
  list-style: none;
  margin: 0 var(--demo-gutter) 32px;
  padding: 4px 20px;
  background: var(--brand);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.demo-trio li {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-trio li + li {
  border-top: 1px solid rgba(202, 215, 221, 0.25);
}

.demo-trio-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.demo-trio-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--demo-band-text);
}

/* ---- the form side ---------------------------------------------------------------- */
.demo-side {
  grid-area: form;
  background: var(--paper);
  padding: 16px var(--demo-gutter) 28px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.demo-card {
  width: 100%;
  max-width: var(--demo-card-max);
  background: #FFFFFF;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 22px 18px 24px;
  box-shadow: 0 1px 2px rgba(19, 24, 27, 0.04), 0 8px 24px rgba(19, 24, 27, 0.05);
}

.demo-entry {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.demo-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--demo-link);
}

.demo-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
}

.demo-title:focus {
  outline: none;
}

.demo-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.demo-noscript {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--danger);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.demo-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.demo-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.demo-optional {
  font-weight: 400;
  color: var(--demo-muted);
}

.fld {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

textarea.fld {
  height: 100px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

select.fld {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
}

.fld::placeholder {
  color: var(--demo-muted);
  opacity: 1;
}

.fld:hover {
  border-color: var(--text);
}

.fld:focus {
  outline: 2px solid transparent;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(5, 80, 108, 0.22);
}

.demo-select {
  position: relative;
  display: flex;
}

.demo-select svg {
  position: absolute;
  right: 14px;
  top: 16px;
  pointer-events: none;
}

.demo-consents {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* each consent label is a touch target of at least 44px */
.demo-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.demo-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.demo-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--danger);
}

/* the honeypot: off-screen, never display:none */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- the success state ---------------------------------------------------------------- */
.demo-success {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.demo-disc {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-summary {
  margin: 0;
  background: var(--paper);
  border-radius: 12px;
  padding: 4px 18px;
  display: flex;
  flex-direction: column;
}

.demo-summary > div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.demo-summary > div + div {
  border-top: 1px solid var(--card-line);
}

.demo-summary dt {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--demo-muted);
  flex-shrink: 0;
}

.demo-summary dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.demo-ghost {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--demo-ghost-line);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.demo-ghost:hover {
  border-color: var(--ink);
}

.demo-ghost:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---- the footer -------------------------------------------------------------------------- */
.demo-foot {
  grid-area: foot;
  background: var(--ink);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--demo-hero-muted);
}

/* 24px from the edges as in the design; the padding makes a 44px touch target */
.demo-foot a {
  font-size: 12px;
  color: var(--demo-hero-text);
  padding: 12px 0;
}

.demo-foot a:hover {
  color: var(--paper);
}

/* ---- tablet: 640px and up ------------------------------------------------------------------- */
@media (min-width: 640px) {
  /* a compact band aligned with the card: the desktop design's brand row and
     type, no CTA (the form follows at once) */
  .demo-mark,
  .demo-intro {
    padding-left: max(32px, calc((100% - var(--demo-card-max)) / 2));
    padding-right: max(32px, calc((100% - var(--demo-card-max)) / 2));
  }

  .demo-mark {
    height: 53px;
    padding-top: 28px;
    gap: 16px;
  }

  .demo-mark-name {
    font-size: 21px;
  }

  .demo-mark-rule {
    height: 18px;
  }

  .demo-mark-product {
    font-size: 12px;
  }

  .demo-intro {
    padding-top: 36px;
    padding-bottom: 40px;
    gap: 18px;
  }

  .demo-kicker {
    font-size: 11px;
  }

  .demo-headline {
    font-size: 46px;
    line-height: 1.02;
  }

  .demo-lede {
    font-size: 17px;
    max-width: 560px;
  }

  .demo-jump {
    display: none;
  }

  .demo-side {
    padding: 32px 32px 32px;
  }

  .demo-card {
    border-radius: 20px;
    padding: 36px;
  }

  .demo-title {
    font-size: 28px;
  }

  .demo-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 18px;
  }

  .demo-wide {
    grid-column: 1 / -1;
  }

  /* the stats after the form, in the desktop design's box: three columns,
     28px padding, 22px titles, separators between */
  .demo-trio {
    margin: 0 max(32px, calc((100% - var(--demo-card-max)) / 2)) 40px;
    padding: 28px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-trio li {
    padding: 0 24px;
    gap: 8px;
  }

  .demo-trio li + li {
    border-top: 0;
    border-left: 1px solid rgba(202, 215, 221, 0.25);
  }

  .demo-trio-title {
    font-size: 22px;
  }

  .demo-summary {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .demo-summary > div {
    padding: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
  }

  .demo-summary > div + div {
    border-top: 0;
  }

  .demo-summary dd {
    text-align: left;
  }

  .demo-ghost {
    width: auto;
    align-self: flex-start;
  }

  .demo-foot {
    padding: 12px 32px;
  }
}

/* ---- desktop: 1024px and up: a sticky full-height panel (45%) beside the form (55%).
   The panel follows the owner's desktop design (6d116d74): padding 56px top and
   bottom, 72px at the sides (from 1440px; 5vw below), the brand row at the top,
   the intro (22px gaps, a 58px headline, 17px copy, max 620/560px) and the bottom
   group (the flow card, 16px, the stats, 32px, the footer) spread with
   space-between. --------------------------------------------------------------- */
@media (min-width: 1024px) {
  .demo-page {
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    grid-template-areas: "hero form";
  }

  .demo-page::before {
    display: none;
  }

  .demo-hero {
    grid-area: hero;
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--ink);
    /* bottom: 56px (the design) + the footer line (16px) + 32px (the design's gap) */
    padding: 56px clamp(40px, 5vw, 72px) 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
  }

  .demo-mark,
  .demo-intro {
    padding: 0;
  }

  .demo-mark {
    height: auto;
    gap: 16px;
  }

  .demo-mark-name {
    font-size: 21px;
  }

  .demo-mark-rule {
    height: 18px;
  }

  .demo-mark-product {
    font-size: 12px;
  }

  .demo-intro {
    gap: 22px;
    max-width: 620px;
  }

  .demo-kicker {
    font-size: 11px;
  }

  .demo-headline {
    font-size: clamp(40px, 4.03vw, 58px);
    line-height: 1.02;
  }

  .demo-lede {
    font-size: 17px;
    line-height: 1.6;
    max-width: 560px;
  }

  .demo-hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* 1024-1279px: the panel is too narrow for three columns: compact rows */
  .demo-trio {
    margin: 0;
    padding: 4px 20px;
    display: flex;
    flex-direction: column;
  }

  .demo-trio li {
    padding: 13px 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: baseline;
    gap: 14px;
  }

  .demo-trio li + li {
    border-left: 0;
    border-top: 1px solid rgba(202, 215, 221, 0.25);
  }

  .demo-trio-title {
    font-size: 17px;
  }

  /* the footer at the panel's bottom, as in the design (56px from the bottom, the
     panel's side padding); it rides there while the form scrolls (sticky bottom) */
  .demo-foot {
    grid-area: hero;
    align-self: end;
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding: 0 clamp(40px, 5vw, 72px) 56px;
    gap: 24px;
  }

  .demo-copy {
    font-size: 10.5px;
  }

  .demo-foot a {
    padding: 0;
  }

  .demo-side {
    min-height: 100vh;
    padding: 48px clamp(32px, 4vw, 64px);
    align-items: center;
  }

  .demo-card {
    padding: clamp(36px, 3.4vw, 48px);
    box-shadow: 0 1px 2px rgba(19, 24, 27, 0.04), 0 12px 32px rgba(19, 24, 27, 0.06);
  }

  .demo-entry {
    gap: 26px;
  }

  .demo-title {
    font-size: 30px;
  }

  .fld {
    font-size: 15px;
  }

  textarea.fld {
    height: 88px;
  }

  .demo-check {
    min-height: 0;
    padding: 4px 0;
    font-size: 13px;
  }

  .demo-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .demo-success {
    gap: 26px;
  }

  .demo-disc {
    width: 56px;
    height: 56px;
  }

  .demo-ghost {
    height: 44px;
    font-size: 13px;
  }
}

/* ---- 1280px and up: the stats as the design's three columns (28px box padding,
   22px titles, separators) ------------------------------------------------------ */
@media (min-width: 1280px) {
  .demo-trio {
    padding: 28px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-trio li {
    padding: 0 clamp(16px, 1.4vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .demo-trio li + li {
    border-top: 0;
    border-left: 1px solid rgba(202, 215, 221, 0.25);
  }

  .demo-trio-title {
    font-size: 22px;
  }
}

/* ---- the flow card when the panel has the room: the design's card (padding 28px
   32px, 24px gaps, labels 14px above), the waveform (236 x 64) and the report card
   (176px) shrinking together in the design's 236:176 proportion ----------------- */
@media (min-width: 1280px) and (min-height: 880px) {
  .demo-flow {
    background: var(--demo-panel);
    border: 1px solid var(--demo-panel-line);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .demo-flow-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
  }

  .demo-flow-col:first-child {
    flex: 0 1 236px;
  }

  .demo-flow-col:last-child {
    flex: 0 1 176px;
  }

  .demo-flow-col svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .demo-flow-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: none;
  }

  .demo-flow-label {
    margin: 0;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--demo-hero-muted);
  }

  .demo-flow-time {
    margin: 0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent);
  }

  .demo-flow-mid svg {
    display: block;
    width: 72px;
    height: 16px;
  }

  .demo-report {
    width: 100%;
    background: var(--paper);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .demo-report span {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: var(--demo-hero-text);
    transform-origin: left center;
  }

  .demo-report span:nth-child(1) { width: 100%; }
  .demo-report span:nth-child(2) { width: 86%; }
  .demo-report span:nth-child(3) { width: 94%; }
  .demo-report span:nth-child(4) { width: 58%; }
}

/* ---- short desktop windows (760px tall or less): a tighter panel (40px top and
   bottom, 24px between the groups, a headline up to 48px, 16px copy, a slimmer
   stats box), so its content fits a 1366 x 657 or a 1024 x 640 window while the
   panel stays sticky. ------------------------------------------------------------ */
@media (min-width: 1024px) and (max-height: 760px) {
  .demo-hero {
    /* bottom: 40px + the footer line (16px) + 24px */
    padding-top: 40px;
    padding-bottom: 80px;
    gap: 24px;
  }

  .demo-intro {
    gap: 16px;
  }

  .demo-headline {
    font-size: clamp(36px, 3.6vw, 48px);
  }

  .demo-lede {
    font-size: 16px;
  }

  .demo-trio li {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .demo-foot {
    padding-bottom: 40px;
  }
}

@media (min-width: 1280px) and (max-height: 760px) {
  .demo-trio {
    padding: 22px 0;
  }

  .demo-trio li {
    padding-top: 0;
    padding-bottom: 0;
  }

  .demo-trio-title {
    font-size: 20px;
  }
}

/* ---- very short desktop windows, 620px tall or less (the tightened content needs
   up to ~630px, at 1024px wide; 621-629px leaves it 16px clear of the footer): the
   panel is no longer a sticky 100vh box. Its content stays top-aligned under the
   brand row with the same rhythm, the footer follows it 32px below the stats (its
   own grid row), ::before keeps the column dark down the page, and the page
   scrolls normally, so nothing can overlap however short the window. -------------- */
@media (min-width: 1024px) and (max-height: 620px) {
  .demo-page {
    grid-template-areas: "hero form" "foot form";
    grid-template-rows: auto 1fr;
  }

  .demo-page::before {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .demo-hero {
    position: relative;
    align-self: start;
    height: auto;
    overflow: visible;
    justify-content: flex-start;
    padding-bottom: 32px;
  }

  .demo-foot {
    grid-area: foot;
    align-self: start;
    position: relative;
    bottom: auto;
  }
}

/* ---- motion: only for visitors who have not asked for less ------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes demo-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes demo-card-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes demo-eq {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.45); }
  }

  @keyframes demo-pulse {
    0%, 100% { opacity: 0.55; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
  }

  @keyframes demo-type {
    0% { transform: scaleX(0); opacity: 1; }
    30% { transform: scaleX(1); opacity: 1; }
    80% { transform: scaleX(1); opacity: 1; }
    92% { transform: scaleX(1); opacity: 0; }
    100% { transform: scaleX(0); opacity: 0; }
  }

  @keyframes demo-pop {
    0% { opacity: 0; transform: scale(0.6); }
    70% { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
  }

  @keyframes demo-draw {
    from { stroke-dashoffset: 22; }
    to { stroke-dashoffset: 0; }
  }

  @keyframes demo-spin {
    to { transform: rotate(360deg); }
  }

  .demo-kicker,
  .demo-headline,
  .demo-lede {
    animation: demo-rise 0.5s ease-out both;
  }

  .demo-headline {
    animation-delay: 0.08s;
  }

  .demo-lede {
    animation-delay: 0.16s;
  }

  .demo-card {
    animation: demo-card-in 0.4s ease-out 0.12s both;
  }

  .demo-flow rect {
    transform-box: fill-box;
    transform-origin: center;
    animation: demo-eq 1.6s ease-in-out infinite;
  }

  .demo-flow rect:nth-child(3n + 1) { animation-duration: 1.3s; }
  .demo-flow rect:nth-child(3n + 2) { animation-duration: 1.9s; animation-delay: -0.4s; }
  .demo-flow rect:nth-child(4n) { animation-delay: -0.8s; }
  .demo-flow rect:nth-child(5n) { animation-duration: 2.2s; }

  .demo-flow-mid svg {
    animation: demo-pulse 1.8s ease-in-out infinite;
  }

  .demo-report span {
    animation: demo-type 4.8s ease-out infinite;
  }

  .demo-report span:nth-child(2) { animation-delay: 0.35s; }
  .demo-report span:nth-child(3) { animation-delay: 0.7s; }
  .demo-report span:nth-child(4) { animation-delay: 1.05s; }

  .fld {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .demo-submit {
    transition: transform 0.15s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease;
  }

  .demo-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 168, 209, 0.35);
  }

  .demo-submit:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(31, 168, 209, 0.25);
  }

  .demo-submit[aria-busy="true"] svg {
    opacity: 0;
  }

  .demo-submit[aria-busy="true"]::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(19, 24, 27, 0.25);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: demo-spin 0.7s linear infinite;
  }

  .demo-success .demo-disc {
    animation: demo-pop 0.45s ease-out both;
  }

  .demo-success .demo-disc path {
    stroke-dasharray: 22;
    animation: demo-draw 0.45s ease-out 0.3s both;
  }

  .demo-success .demo-card-head,
  .demo-success .demo-summary {
    animation: demo-rise 0.45s ease-out 0.15s both;
  }

  .demo-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .demo-reveal:nth-child(2) { transition-delay: 0.09s; }
  .demo-reveal:nth-child(3) { transition-delay: 0.18s; }

  .demo-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* desktop: the tiles are on screen from the start in the sticky panel; they rise
   in after the intro (CSS only; demo.js adds no reveal there) */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .demo-trio li {
    animation: demo-rise 0.5s ease-out 0.3s both;
  }

  .demo-trio li:nth-child(2) {
    animation-delay: 0.39s;
  }

  .demo-trio li:nth-child(3) {
    animation-delay: 0.48s;
  }
}
