/* =========================================================================
   The pricing page's questions. Two halves that move together: on the left
   a glass stage that plays a small motion-graphic scene for the open answer
   (the period that runs on after a cancel, the plan badge that flips while
   everything earned stays, Free laid out tile by tile, the clock that
   reaches midnight UTC, the new period an upgrade starts); on the right an
   Apple inset grouped list with disclosure chevrons, one row open at a
   time. Scenes cross-fade through a blur and replay every time they come
   back. Page dots under the stage follow along. js/pricing.js drives it.
   ========================================================================= */

.fq {
  --fq-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fq-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fq-group: color-mix(in srgb, var(--paper-raised) 78%, transparent);
  --fq-edge: color-mix(in srgb, var(--ink) 9%, transparent);
  --fq-card: color-mix(in srgb, var(--paper-raised) 90%, transparent);
  margin: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.fq-head { max-width: 40rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.fq .fq-head h2 { margin: 0.45rem 0 0.5rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.04em; line-height: 1.04; }
.fq-lede { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.fq-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

/* ----------------------------------------------------------------- stage */

.fq-stage {
  position: sticky;
  top: 6.5rem;
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.fq-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fq-glow i {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
  filter: blur(8px);
}
.fq-glow i:nth-child(1) { left: -18%; top: -26%; }
.fq-glow i:nth-child(2) { right: -22%; bottom: -30%; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .fq-glow i:nth-child(1) { animation: fqDrift 16s ease-in-out infinite alternate; }
  .fq-glow i:nth-child(2) { animation: fqDrift 21s ease-in-out -5s infinite alternate-reverse; }
}
@keyframes fqDrift { to { transform: translate(14%, 10%) scale(1.12); } }

.fq-scene {
  position: absolute;
  inset: 0 0 44px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(10px);
  filter: blur(10px);
  transition: opacity 0.45s var(--fq-ease), transform 0.7s var(--fq-ease), filter 0.5s var(--fq-ease), visibility 0s 0.5s;
}
.fq-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: opacity 0.55s 0.12s var(--fq-ease), transform 0.8s 0.12s var(--fq-ease), filter 0.6s 0.12s var(--fq-ease), visibility 0s;
}

/* The card the scenes are built on: a small sheet of raised glass. */
.fq-card {
  position: relative;
  width: min(360px, 100%);
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 20px;
  background: var(--fq-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 0.5px var(--fq-edge),
    0 30px 60px -30px rgba(10, 10, 14, 0.45);
}
[data-theme="dark"] .fq-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 0.5px var(--fq-edge), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.fq-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.fq-plan { font: 650 1.15rem/1 var(--display); letter-spacing: -0.03em; }
.fq-plan small { margin-left: 0.45rem; font: 500 0.78rem/1 var(--sans); letter-spacing: 0; color: var(--ink-faint); }
.fq-pill { font: 600 0.72rem/1 var(--sans); padding: 0.38rem 0.55rem; border-radius: 7px; }
.fq-pill--warn { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* Page dots: the open answer's dot stretches into a capsule. */
.fq-dots {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.fq-dots i {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer;
  transition: width 0.5s var(--fq-spring), background 0.3s;
}
.fq-dots i.is-on { width: 22px; background: var(--accent); }

/* --------------------------------------------------- scene 1: cancelling */

.fq-track { position: relative; height: 10px; margin: 2.1rem 0 0.6rem; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fq-fill {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, var(--ink)), var(--accent));
  transform-origin: left;
  overflow: hidden;
}
.fq-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent) -60% 0 / 40% 100% no-repeat;
}
.fq-marker {
  position: absolute;
  left: var(--at);
  top: -6px; bottom: -6px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--ink);
}
.fq-marker span {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.66rem/1 var(--sans);
  white-space: nowrap;
}
.fq-track-legend { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--ink-faint); }
.fq-renew {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  border-top: 0.5px solid var(--fq-edge);
  font-size: 0.86rem;
}
.fq-renew-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.fq-renew-dot svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 12; }
.fq-renew s { position: relative; text-decoration: none; font-size: 0.8rem; font-weight: 600; color: var(--danger); }

/* --------------------------------------------------- scene 2: downgrading */

.fq-who { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.9rem; }
.fq-who i {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 0.8rem/1 var(--sans);
  font-style: normal;
}
.fq-flip { display: inline-grid; perspective: 400px; transform-style: preserve-3d; }
.fq-flip b {
  grid-area: 1 / 1;
  padding: 0.38rem 0.6rem;
  border-radius: 7px;
  font: 700 0.74rem/1 var(--sans);
  text-align: center;
  backface-visibility: hidden;
  background: var(--ink);
  color: var(--paper);
}
.fq-flip b:last-child { transform: rotateX(180deg); background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.fq-kept { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.fq-kept li {
  position: relative;
  display: grid;
  grid-template-columns: 6.2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.8rem;
  font-size: 0.84rem;
}
.fq-kept li + li::before { content: ""; position: absolute; top: 0; left: 0.8rem; right: 0; height: 0.5px; background: var(--fq-edge); }
.fq-kept span { color: var(--ink-faint); }
.fq-kept b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fq-kept em { display: inline-flex; align-items: center; gap: 0.25rem; font: 600 0.72rem/1 var(--sans); font-style: normal; color: var(--ok); }
.fq-kept svg, .fq-sync svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; }

/* ---------------------------------------------------------- scene 3: free */

.fq-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: min(380px, 100%);
}
.fq-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: var(--fq-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 0.5px var(--fq-edge), 0 16px 34px -22px rgba(10, 10, 14, 0.45);
}
.fq-tile--wide { grid-column: 1 / -1; }
.fq-tile b { font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.fq-tile small { grid-column: 2; font-size: 0.72rem; color: var(--ink-faint); }
.fq-ico {
  grid-row: 1 / 3;
  display: grid; place-items: center;
  min-width: 34px; height: 34px;
  padding: 0 0.35rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font: 700 0.9rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.fq-tile--wide .fq-ico { font-size: 1.15rem; }
.fq-badge {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.76rem/1 var(--sans);
}
.fq-badge::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%) 160% 0 / 250% 100%;
}

/* ------------------------------------------------------ scene 4: the reset */

.fq-card--clock { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
.fq-dial { position: relative; width: 128px; aspect-ratio: 1; }
.fq-dial svg { width: 100%; height: 100%; overflow: visible; }
.fq-dial-face { fill: color-mix(in srgb, var(--ink) 4%, transparent); stroke: var(--fq-edge); stroke-width: 1; }
.fq-dial-ticks path { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 2; stroke-linecap: round; }
.fq-dial-sweep {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 276.5;
  stroke-dashoffset: 92;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 50%, transparent));
}
.fq-dial-hand { transform-origin: 60px 60px; }
.fq-dial-hand path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fq-dial-hand circle { fill: var(--accent); }
.fq-dial-time {
  position: absolute;
  left: 50%; bottom: 22%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  line-height: 1;
}
.fq-dial-time b { font: 650 0.92rem/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fq-dial-time small { font: 600 0.58rem/1.4 var(--sans); color: var(--ink-faint); letter-spacing: 0.06em; }
.fq-meters { display: grid; gap: 0.75rem; }
.fq-meter { display: grid; gap: 0.35rem; font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.fq-meter i { position: relative; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.fq-meter u { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(1); }
.fq-sync { display: flex; align-items: center; gap: 0.45rem; margin: 0.15rem 0 0; font-size: 0.7rem; color: var(--ink-faint); }
.fq-sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* ------------------------------------------------------- scene 5: upgrade */

.fq-lanes { position: relative; display: grid; gap: 0.55rem; padding-top: 1.6rem; --lab: 5.2rem; }
.fq-lanes--extend { padding-top: 0.2rem; margin-top: 1.1rem; border-top: 0.5px solid var(--fq-edge); padding-top: 1rem; }
.fq-lane { position: relative; height: 22px; }
.fq-lane span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.fq-seg {
  position: absolute;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  left: calc(var(--lab) + (100% - var(--lab)) * var(--s, 0));
  width: calc((100% - var(--lab)) * var(--w, 0));
  border-radius: 99px;
  transform-origin: left;
}
.fq-seg--old  { --s: 0;    --w: 0.42; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.fq-seg--new  { --s: 0.42; --w: 0.58; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.fq-seg--left { --s: 0;    --w: 0.36; background: var(--accent); border-radius: 99px 0 0 99px; }
.fq-seg--add  { --s: 0.36; --w: 0.5;  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, transparent) 0 6px, color-mix(in srgb, var(--accent) 30%, transparent) 6px 12px); border-radius: 0 99px 99px 0; }
.fq-marker--tall { top: 1.1rem; bottom: -4px; left: calc(var(--lab) + (100% - var(--lab)) * 0.42); }
.fq-note-line { display: flex; align-items: center; gap: 0.45rem; margin: 0.85rem 0 0; font-size: 0.8rem; font-weight: 600; }
.fq-note-line--muted { font-weight: 500; color: var(--ink-faint); margin-top: 0.6rem; }
.fq-spark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 60%, transparent); flex: none; }

/* ------------------------------------------------- the choreography */

@media (prefers-reduced-motion: no-preference) {
  /* 1. Cancel: the period fills to its last day, today is pinned, the
        badge lands, and only the renewal is struck out. */
  .fq-scene.is-active .fq-fill { animation: fqGrow 1.5s 0.3s var(--fq-ease) both; }
  .fq-scene.is-active .fq-fill::after { animation: fqShimmer 2.4s 1.9s ease-in-out infinite; }
  .fq-scene.is-active .fq-marker { animation: fqDrop 0.7s 0.55s var(--fq-spring) both; }
  .fq-scene.is-active .fq-pill { animation: fqPop 0.6s 1.1s var(--fq-spring) both; }
  .fq-scene.is-active .fq-renew { animation: fqRise 0.7s 0.9s var(--fq-ease) both; }
  .fq-scene.is-active .fq-renew-dot svg { stroke-dashoffset: 12; animation: fqDraw 0.5s 1.45s var(--fq-ease) both; }
  .fq-scene.is-active .fq-renew s { animation: fqRise 0.6s 1.6s var(--fq-ease) both; }

  /* 2. Downgrade: the plan badge flips Pro to Free; down the list every
        row is ticked "Kept". */
  .fq-scene.is-active .fq-flip { animation: fqFlip 0.9s 0.75s var(--fq-ease) both; }
  .fq-scene.is-active .fq-kept li { animation: fqRise 0.6s calc(0.25s + var(--n, 0) * 0.08s) var(--fq-ease) both; }
  .fq-scene.is-active .fq-kept em { animation: fqPop 0.5s calc(1.35s + var(--n, 0) * 0.13s) var(--fq-spring) both; }
  .fq-scene.is-active .fq-kept svg { stroke-dashoffset: 16; animation: fqDraw 0.45s calc(1.45s + var(--n, 0) * 0.13s) var(--fq-ease) both; }

  /* 3. Free: the tiles drop in one by one; the badge lands and glints. */
  .fq-scene.is-active .fq-tile { animation: fqTile 0.75s calc(0.2s + var(--n, 0) * 0.09s) var(--fq-spring) both; }
  .fq-scene.is-active .fq-badge { animation: fqPop 0.6s 0.85s var(--fq-spring) both; }
  .fq-scene.is-active .fq-badge::after { animation: fqGlint 1.2s 1.4s var(--fq-ease) both; }

  /* 4. Reset: the counts run down as the hand climbs to midnight, then
        refill the moment it gets there. */
  .fq-scene.is-active .fq-dial-hand { animation: fqHand 1.7s 0.25s var(--fq-ease) both; }
  .fq-scene.is-active .fq-dial-sweep { animation: fqSweep 1.7s 0.25s var(--fq-ease) both; }
  .fq-scene.is-active .fq-dial-time { animation: fqTick 0.6s 1.9s var(--fq-spring) both; }
  .fq-scene.is-active .fq-meter u { animation: fqMeter 2.4s calc(0.2s + var(--n, 0) * 0.12s) var(--fq-ease) both; }
  .fq-scene.is-active .fq-sync-dot { animation: fqPing 2.2s 2.1s ease-out infinite; }

  /* 5. Upgrade: the old tier runs to today, the new one shoots out from
        it at full length; a renewal tacks its period on the end. */
  .fq-scene.is-active .fq-seg--old { animation: fqGrow 0.8s 0.25s var(--fq-ease) both; }
  .fq-scene.is-active .fq-marker--tall { animation: fqDrop 0.7s 0.8s var(--fq-spring) both; }
  .fq-scene.is-active .fq-seg--new { animation: fqGrow 1.1s 1s var(--fq-ease) both; }
  .fq-scene.is-active .fq-note-line { animation: fqRise 0.6s 1.5s var(--fq-ease) both; }
  .fq-scene.is-active .fq-seg--left { animation: fqGrow 0.7s 1.7s var(--fq-ease) both; }
  .fq-scene.is-active .fq-seg--add { animation: fqGrow 0.9s 2.2s var(--fq-ease) both; }
  .fq-scene.is-active .fq-note-line--muted { animation: fqRise 0.6s 2.5s var(--fq-ease) both; }
}

@keyframes fqGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fqShimmer { 0% { background-position: -60% 0; } 60%, 100% { background-position: 260% 0; } }
@keyframes fqDrop { from { opacity: 0; transform: translateY(-10px) scaleY(0.4); } to { opacity: 1; transform: none; } }
@keyframes fqPop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes fqRise { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fqDraw { to { stroke-dashoffset: 0; } }
@keyframes fqFlip { 0% { transform: rotateX(0); } 100% { transform: rotateX(180deg); } }
@keyframes fqTile { from { opacity: 0; transform: translateY(18px) scale(0.92); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fqGlint { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes fqHand { from { transform: rotate(-150deg); } to { transform: rotate(0deg); } }
@keyframes fqSweep { from { stroke-dashoffset: 276.5; } to { stroke-dashoffset: 0; } }
@keyframes fqTick { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.18); color: var(--accent); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes fqMeter {
  0%   { transform: scaleX(0.72); }
  62%  { transform: scaleX(0.06); }
  78%  { transform: scaleX(1.04); }
  100% { transform: scaleX(1); }
}
@keyframes fqPing {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

/* The flip's end state without motion: the Free face showing. */
@media (prefers-reduced-motion: reduce) {
  .fq-flip { transform: rotateX(180deg); }
  .fq-scene { transition: none; filter: none; transform: none; }
}

/* ------------------------------------------------- the answers: a list */

/* The five rows are one inset group: rounded at the ends, hairlines between,
   no outline -- the grouped background is the edge, as in Settings. */
.fq-list { display: grid; }
.fq-item {
  position: relative;
  background: var(--fq-group);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: background 0.35s var(--fq-ease);
}
.fq-item:first-child { border-radius: 18px 18px 0 0; }
.fq-item:nth-child(5) { border-radius: 0 0 18px 18px; }
.fq-item + .fq-item::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 3.7rem;
  height: 0.5px;
  background: var(--fq-edge);
  z-index: 1;
}
.fq-item.is-open { background: color-mix(in srgb, var(--paper-raised) 96%, transparent); }

.fq-q {
  display: grid;
  grid-template-columns: 2.1rem 1fr 18px;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1.05rem 1.15rem 1.05rem 1.1rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: inherit;
}
.fq-q:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -2px; }
.fq-num {
  font: 600 0.74rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  transition: color 0.3s;
}
.fq-q-text { font: 600 1rem/1.3 var(--sans); letter-spacing: -0.012em; color: var(--ink); }
.fq-chev {
  width: 16px; height: 16px;
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 35%, transparent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--fq-spring), stroke 0.3s;
}
.fq-item.is-open .fq-num { color: var(--accent); }
.fq-item.is-open .fq-chev { transform: rotate(90deg); stroke: var(--accent); }
.fq-q:hover .fq-chev { stroke: var(--ink); }

/* The answer opens by animating its grid row from 0fr to 1fr -- a true
   height transition with no measuring -- and its text rises out of a blur. */
.fq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--fq-ease);
}
.fq-a > div { overflow: hidden; }
.fq-a p {
  margin: 0;
  padding: 0 1.3rem 1.2rem 3.8rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(4px);
  transition: opacity 0.3s var(--fq-ease), transform 0.4s var(--fq-ease), filter 0.3s var(--fq-ease);
}
.fq-item.is-open .fq-a { grid-template-rows: 1fr; }
.fq-item.is-open .fq-a p { opacity: 1; transform: none; filter: none; transition-delay: 0.12s; }

/* The way out, set apart from the group like a separate Settings section. */
.fq-more {
  display: grid;
  position: relative;
  grid-template-columns: 2.1rem 1fr 18px;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding: 0.95rem 1.15rem 0.95rem 1.1rem;
  border-radius: 18px;
  background: var(--fq-group);
  box-shadow: inset 0 0 0 0.5px var(--fq-edge);
  color: inherit;
  text-decoration: none;
  transition: background 0.3s var(--fq-ease);
}
.fq-more:hover { background: color-mix(in srgb, var(--paper-raised) 96%, transparent); }
.fq-more:hover .fq-chev { transform: translateX(3px); stroke: var(--ink); }
.fq-more-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; }
.fq-more-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fq-more b { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.fq-more small { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.1rem; }

/* --------------------------------------------------------------- phones */

@media (max-width: 860px) {
  .fq-body { grid-template-columns: 1fr; }
  .fq-stage { position: relative; top: 0; min-height: 360px; }
}
@media (max-width: 420px) {
  .fq-stage { min-height: 330px; border-radius: 24px; }
  .fq-scene { padding: 1rem; }
  .fq-card--clock { grid-template-columns: 1fr; justify-items: center; }
  .fq-meters { width: 100%; }
  .fq-kept li { grid-template-columns: 4.9rem 1fr auto; padding: 0.58rem 0.7rem; }
  .fq-kept b { white-space: nowrap; }
  .fq-q { padding: 0.95rem 1rem; }
  .fq-a p { padding-left: 3.7rem; padding-right: 1rem; }
}
