/* =====================================================================
   FlyForms — ten designs for the home page's builder and answers rows
   (rows-variations.html). The illustrations are the real app screens,
   drawn in HTML: the Customer Feedback builder and its Submissions table.
   Every app colour is a variable on .rw-win, so the same screens also
   render in the app's dark theme.
   ===================================================================== */

:root {
  --rw-ink: #1d1830;
  --rw-grey: #6b6680;
  --rw-line: #e7e6ef;
  --rw-panel: #ebebed;          /* one step deeper than the feature cards, so the screens stand out */
  --rw-violet: #7147eb;
  --rw-violet-ink: #5732d4;
  --rw-violet-soft: #eee9fd;
  --rw-ring: rgb(113 71 235 / .16);
  --rw-green: #16a34a;
  --rw-amber: #f59e0b;
  --rw-radius: 28px;
}

/* ---------- Page bands ---------- */

.rwp {
  padding: clamp(64px, 8vw, 120px) var(--wh-gutter, 24px);
  background: var(--wh-warm, #faf9f8);
}
.rwp:nth-of-type(even) { background: #fff; }
.rwp > * { max-width: var(--wh-content, 1495px); margin-inline: auto; }

/* ---------- Copy ---------- */

.rw-copy { min-width: 0; max-width: 620px; }
.rw-copy h2 { margin-bottom: 0; }
.rw-points { display: grid; gap: 12px; margin-top: 28px; }
.rw-points li, .rw-points-row li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 24px; color: var(--rw-grey);
}
.rw-points .rw-i, .rw-points-row .rw-i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--rw-green); }
.rw-i { width: 16px; height: 16px; flex: none; }

/* ---------- Two-column rows ---------- */

.rw-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(40px, 5vw, 96px);
}
.rw-row + .rw-row { margin-top: clamp(88px, 10vw, 150px); }
.rw-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.rw-flip > .rw-copy { order: 2; }
@media (max-width: 1023px) {
  .rw-row, .rw-flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rw-flip > .rw-copy { order: 0; }
}

/* ---------- Stage: the off-white panel the screen sits on ---------- */

.rw-stage {
  position: relative; overflow: hidden; container-type: inline-size;
  height: clamp(400px, 38vw, 560px); border-radius: var(--rw-radius); background: var(--rw-panel);
}
@media (max-width: 640px) { .rw-stage { height: 400px; border-radius: 22px; } }

/* ---------- The app window ---------- */

.rw-win {
  --w-bg: #fff; --w-soft: #f6f5fa; --w-line: var(--rw-line); --w-ink: var(--rw-ink); --w-grey: var(--rw-grey);
  --w-tabs: #f2f1f6; --w-tab-on: #fff; --w-check: #cfcbdc; --w-head: #fafafb; --w-shadow: 0 30px 70px -30px rgb(29 24 48 / .35);
  overflow: hidden; border-radius: 16px; background: var(--w-bg); color: var(--w-ink);
  box-shadow: var(--w-shadow), 0 0 0 1px var(--w-line);
  font-family: var(--font-sans); font-size: 12.5px; line-height: 1.4; text-align: left;
}
.rw-win-dark {
  --w-bg: #15141c; --w-soft: #1d1b26; --w-line: #2c2a37; --w-ink: #ecebf3; --w-grey: #9b97ab;
  --w-tabs: #1d1b26; --w-tab-on: #2a2835; --w-check: #4a4757; --w-head: #191822; --w-shadow: 0 30px 80px -30px rgb(0 0 0 / .7);
}
/* A screen that runs off the panel's right and bottom edges */
.rw-win-bleed { position: absolute; left: clamp(24px, 6%, 56px); top: clamp(28px, 9%, 56px); width: 900px; }
@container (max-width: 760px) { .rw-win-bleed { width: 780px; } }
@container (max-width: 560px) { .rw-win-bleed { left: 18px; top: 22px; width: calc(100% - 36px); } }

.rw-appbar {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  border-bottom: 1px solid var(--w-line); white-space: nowrap;
}
.rw-formico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--rw-violet-soft); color: var(--rw-violet); }
.rw-win-dark .rw-formico { background: rgb(113 71 235 / .22); color: #b9a6fb; }
.rw-formname { font-size: 14px; font-weight: 600; }
.rw-open {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--w-line, var(--rw-line)); font-size: 11.5px; color: var(--w-grey, var(--rw-grey)); background: var(--w-bg, #fff);
}
.rw-open i { width: 6px; height: 6px; border-radius: 99px; background: #22c55e; }
.rw-tabs { display: flex; gap: 2px; margin-left: 10px; padding: 3px; border-radius: 10px; background: var(--w-tabs); }
.rw-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; color: var(--w-grey); }
.rw-tab .rw-i { width: 14px; height: 14px; }
.rw-tab.on { background: var(--w-tab-on); color: var(--w-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.rw-appbar-r { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--w-grey); }
@container (max-width: 760px) { .rw-appbar-r { display: none; } }
@container (max-width: 560px) { .rw-tab:not(.on), .rw-open { display: none; } }
@container (max-width: 420px) { .rw-tabs { display: none; } }

/* ---------- Builder ---------- */

.rw-builder { position: relative; display: grid; grid-template-columns: 176px minmax(0, 1fr) 214px; min-height: 560px; }
@container (max-width: 760px) { .rw-builder { grid-template-columns: 168px minmax(0, 1fr); } .rw-props { display: none; } }
@container (max-width: 560px) { .rw-builder { grid-template-columns: minmax(0, 1fr); } .rw-fields { display: none; } }

.rw-fields { padding: 14px 12px; border-right: 1px solid var(--w-line); }
.rw-fields-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.rw-kbd { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border: 1px solid var(--w-line); border-radius: 7px; font-size: 11px; font-weight: 400; color: var(--w-grey); }
.rw-kbd .rw-i { width: 12px; height: 12px; }
.rw-group { margin: 14px 0 8px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--w-grey); }
.rw-tilegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rw-tilegrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 300px; }
.rw-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 8px 4px;
  border: 1px solid var(--w-line, var(--rw-line)); border-radius: 10px; background: var(--w-bg, #fff);
  font-size: 11.5px; line-height: 1.2; text-align: center; color: var(--w-ink, var(--rw-ink));
}
.rw-tile .rw-i { width: 15px; height: 15px; color: var(--w-grey, var(--rw-grey)); }
.rw-tile-hot { border-color: var(--rw-violet); background: var(--rw-violet-soft); color: var(--rw-violet-ink); }
.rw-tile-hot .rw-i { color: var(--rw-violet); }
.rw-win-dark .rw-tile-hot { background: rgb(113 71 235 / .2); color: #cdbffc; }

.rw-canvas { padding: 14px 24px 24px; min-width: 0; }
.rw-saved { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--w-grey, var(--rw-grey)); }
.rw-saved .rw-i { width: 14px; height: 14px; color: var(--rw-green); }
.rw-q { position: relative; margin-bottom: 6px; padding: 12px 14px 14px 30px; border: 1.5px solid transparent; border-radius: 12px; }
.rw-q > p { margin: 0; font-size: 13px; font-weight: 500; }
.rw-q > p em { font-style: normal; color: #dc2626; margin-left: 2px; }
.rw-q-sel { border-color: var(--rw-violet); box-shadow: 0 0 0 4px var(--rw-ring); }
.rw-grip { position: absolute; left: 9px; top: 13px; width: 14px; height: 14px; color: var(--w-grey); }
.rw-qtools {
  position: absolute; right: 10px; top: -13px; display: flex; gap: 8px; padding: 4px 8px;
  border: 1px solid var(--w-line); border-radius: 8px; background: var(--w-bg); color: var(--w-grey);
}
.rw-qtools .rw-i { width: 13px; height: 13px; }
.rw-stars { display: flex; gap: 6px; margin-top: 8px; }
.rw-star { display: inline-grid; }
.rw-star .rw-i { width: 20px; height: 20px; color: #bdb9cc; }
.rw-star.on .rw-i { color: var(--rw-amber); fill: var(--rw-amber); }
.rw-radios { display: grid; gap: 2px; margin-top: 8px; }
.rw-radios li { display: flex; align-items: center; gap: 9px; padding: 3px 0; font-size: 12.5px; }
.rw-radios li > i { flex: none; width: 15px; height: 15px; border-radius: 99px; border: 1.5px solid var(--w-check, #cfcbdc); background: var(--w-bg, #fff); }
.rw-radios li.on > i { border-color: var(--rw-violet); background: var(--rw-violet); box-shadow: inset 0 0 0 3px var(--w-bg, #fff); }
.rw-other { flex: 1; height: 1px; margin-left: 6px; border-bottom: 1px dashed var(--w-line); }
.rw-area { display: block; height: 58px; margin-top: 8px; border: 1px solid var(--w-line); border-radius: 10px; }

.rw-props { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-left: 1px solid var(--w-line); min-width: 0; }
.rw-props-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.rw-propsico { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--w-line); border-radius: 8px; }
.rw-propsico .rw-i { width: 14px; height: 14px; }
.rw-props label { margin-top: 4px; font-size: 11.5px; font-weight: 600; }
.rw-input {
  display: flex; align-items: center; height: 32px; padding: 0 10px; overflow: hidden; white-space: nowrap;
  border: 1px solid var(--w-line); border-radius: 9px; font-size: 11.5px; background: var(--w-bg);
}
.rw-select { justify-content: space-between; }
.rw-select .rw-i { width: 13px; height: 13px; color: var(--w-grey); }
.rw-caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; background: var(--rw-violet); }
.rw-anim.is-in .rw-caret { animation: rw-blink 1.1s steps(1) infinite; }
@keyframes rw-blink { 50% { opacity: 0; } }
.rw-togglerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 10px; }
.rw-togglerow b { font-size: 12px; font-weight: 600; }
.rw-togglerow small { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.35; color: var(--w-grey); }
.rw-switch { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--w-check, #d9d6e4); }
.rw-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 99px; background: #fff; transition: left .25s ease; }
.rw-switch.on { background: var(--rw-violet); }
.rw-switch.on::after { left: 14px; }

/* The rule sentence (the guide's "When to ask this") */
.rw-rule-in { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--w-line); }
.rw-rule-h { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: var(--rw-ink); }
.rw-win .rw-rule-h { color: var(--w-ink); }
.rw-rule-h .rw-i { width: 14px; height: 14px; color: var(--rw-violet); }
.rw-rule-s { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 7px; }
.rw-chip { padding: 4px 8px; border: 1px solid var(--w-line, var(--rw-line)); border-radius: 7px; font-size: 11.5px; line-height: 1.3; background: var(--w-bg, #fff); color: var(--w-ink, var(--rw-ink)); }
.rw-chip-k { border-color: var(--rw-violet); background: var(--rw-violet); color: #fff; }
.rw-chip-w { padding-inline: 1px; border-color: transparent; background: none; color: var(--w-grey, var(--rw-grey)); }
.rw-chip-q { background: var(--w-soft, #f6f5fa); }
.rw-chip-v { border-color: transparent; background: var(--rw-violet-soft); color: var(--rw-violet-ink); }
.rw-rule-n { margin: 0; font-size: 10.5px; color: var(--w-grey, var(--rw-grey)); }
.rw-rule-card {
  padding: 16px 18px; border-radius: 16px; background: #fff; text-align: left; font-family: var(--font-sans);
  box-shadow: 0 18px 40px -22px rgb(29 24 48 / .35), 0 0 0 1px var(--rw-line);
}
.rw-rule-card .rw-chip { font-size: 12.5px; padding: 5px 9px; }
.rw-rule-card .rw-rule-h { font-size: 13px; }
.rw-rule-card .rw-rule-n { font-size: 12px; }

/* ---------- Submissions table ---------- */

.rw-subs { padding: 20px 22px 24px; min-height: 520px; }
.rw-subs-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rw-subs-h b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.rw-subs-h small { display: block; margin-top: 3px; font-size: 12px; color: var(--w-grey); }
.rw-ghost {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; flex: none;
  border: 1px solid var(--w-line, var(--rw-line)); border-radius: 9px; font-size: 12.5px; font-weight: 500; background: var(--w-bg, #fff); color: var(--w-ink, var(--rw-ink));
}
.rw-ghost .rw-i { width: 14px; height: 14px; }
.rw-ghost-hot { border-color: var(--rw-violet); color: var(--rw-violet-ink); box-shadow: 0 0 0 4px var(--rw-ring); }
.rw-subtabs { display: flex; gap: 18px; margin-top: 16px; border-bottom: 1px solid var(--w-line, var(--rw-line)); white-space: nowrap; }
.rw-subtabs > span { padding: 8px 2px; font-size: 12.5px; color: var(--w-grey, var(--rw-grey)); }
.rw-subtabs i { display: inline-grid; margin-left: 3px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 10.5px; background: var(--w-tabs, #f1f0f5); }
.rw-subtabs .on { color: var(--w-ink, var(--rw-ink)); font-weight: 600; box-shadow: inset 0 -2px var(--rw-violet); }
.rw-subtabs .on i { background: var(--rw-violet-soft); color: var(--rw-violet-ink); }
.rw-win-dark .rw-subtabs .on i { background: rgb(113 71 235 / .25); color: #cdbffc; }
.rw-searchrow { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.rw-search {
  display: inline-flex; align-items: center; gap: 7px; width: min(260px, 60%); height: 32px; padding: 0 10px;
  border: 1px solid var(--w-line, var(--rw-line)); border-radius: 9px; font-size: 12px; color: var(--w-grey, var(--rw-grey)); background: var(--w-bg, #fff);
}
.rw-search .rw-i { width: 14px; height: 14px; }
.rw-q-typed { color: var(--w-ink, var(--rw-ink)); }
.rw-pill {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--rw-violet); color: #fff; font-size: 11.5px; font-weight: 600; box-shadow: 0 8px 18px -8px rgb(113 71 235 / .7);
}
.rw-anim .rw-searchrow .rw-pill { opacity: 0; transform: translateY(4px) scale(.94); transition: opacity .4s ease .9s, transform .4s ease .9s; }
.rw-anim.is-in .rw-searchrow .rw-pill { opacity: 1; transform: none; }

.rw-table { overflow: hidden; border: 1px solid var(--w-line); border-radius: 12px; }
.rw-tr {
  --cols: 14px 15px 62px minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 52px;
  display: grid; grid-template-columns: var(--cols); align-items: center; gap: 12px;
  height: 42px; padding: 0 14px; border-top: 1px solid var(--w-line); white-space: nowrap; font-size: 12px;
}
.rw-tr > span { overflow: hidden; text-overflow: ellipsis; }
.rw-th { height: 36px; border-top: 0; background: var(--w-head); color: var(--w-grey); font-size: 11px; }
.rw-cb { width: 13px; height: 13px; border: 1.5px solid var(--w-check); border-radius: 4px; }
.rw-star-o { width: 14px; height: 14px; color: var(--w-grey); }
.rw-unread { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 99px; background: var(--rw-violet); vertical-align: middle; }
@container (max-width: 760px) { .rw-tr { --cols: 14px 15px 56px minmax(0, 1fr) minmax(0, 1.3fr) 48px; } .rw-c3 { display: none; } }
@container (max-width: 560px) {
  .rw-tr { --cols: 50px minmax(0, 1fr) 44px; gap: 10px; }
  .rw-tr > .rw-cb, .rw-tr > .rw-star-o, .rw-tr > :nth-child(2), .rw-c2, .rw-c3 { display: none; }
  .rw-subs-h small { display: none; }
  .rw-search { width: 100%; }
}

/* ---------- Small cards: an opened response, a summary, and the bento pictures ---------- */

.rw-card {
  padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--rw-ink); font-family: var(--font-sans); text-align: left;
  box-shadow: 0 24px 50px -24px rgb(29 24 48 / .4), 0 0 0 1px var(--rw-line);
}
.rw-card-h { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.rw-card-h .rw-i { width: 15px; height: 15px; color: var(--rw-violet); }
.rw-unread-l { display: inline-flex; align-items: center; margin-left: auto; font-size: 11px; font-weight: 500; color: var(--rw-grey); }
.rw-qa { padding: 8px 0; border-top: 1px solid var(--rw-line); }
.rw-qa small { display: block; font-size: 11px; color: var(--rw-grey); }
.rw-qa b { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; }
.rw-qa .rw-stars { margin-top: 3px; gap: 3px; }
.rw-qa .rw-star .rw-i { width: 15px; height: 15px; }
.rw-card-q { margin: 0; font-size: 13px; font-weight: 600; }
.rw-summary > small { display: block; margin-top: 2px; font-size: 11px; color: var(--rw-grey); }
.rw-bars { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 6px; height: 120px; margin-top: 10px; }
.rw-bars > span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.rw-bars em { font-style: normal; font-size: 10.5px; color: var(--rw-grey); }
.rw-bars i { width: 6px; height: calc(var(--h) * 64px); border-radius: 99px; background: var(--rw-violet); transform-origin: bottom; }
.rw-bars small { font-size: 9.5px; color: var(--rw-grey); }
.rw-anim .rw-bars i { transform: scaleY(.1); transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.5s + var(--i) * 90ms); }
.rw-anim.is-in .rw-bars i { transform: none; }

.rw-savedcard, .rw-searchcard, .rw-exportcard, .rw-mailrow {
  border-radius: 14px; background: #fff; font-family: var(--font-sans); color: var(--rw-ink);
  box-shadow: 0 18px 36px -22px rgb(29 24 48 / .35), 0 0 0 1px var(--rw-line);
}
.rw-savedcard { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; width: 100%; max-width: 340px; }
.rw-savedcard .rw-saved { margin: 0; }
.rw-unpub { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.rw-searchcard { display: grid; gap: 8px; padding: 14px; width: 100%; max-width: 360px; }
.rw-searchcard .rw-search { width: 100%; }
.rw-hit { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 4px 10px; font-size: 12px; }
.rw-hit > span:last-child { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rw-grey); }
.rw-hit mark { padding: 0 2px; border-radius: 3px; background: #fde68a; color: var(--rw-ink); }
.rw-dim { opacity: .4; }
.rw-exportcard { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; max-width: 340px; }
.rw-exportcard .rw-subtabs { margin: 0; border: 0; flex-basis: 100%; }
.rw-csv { padding: 3px 8px; border-radius: 6px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.rw-newcard { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rw-mailrow { display: flex; align-items: center; gap: 9px; padding: 11px 14px; font-size: 12.5px; }
.rw-mailrow .rw-i { width: 16px; height: 16px; color: var(--rw-violet); }
.rw-mailrow .rw-unread { margin: 0 0 0 6px; }

/* =====================================================================
   The designs
   ===================================================================== */

/* 2 · Centred stage */
.rw-center { text-align: center; }
.rw-center + .rw-center { margin-top: clamp(96px, 11vw, 160px); }
.rw-copy-center { max-width: 780px; margin-inline: auto; }
.rw-stage-wide { height: clamp(380px, 40vw, 600px); margin-top: clamp(36px, 4vw, 56px); padding: clamp(22px, 4vw, 56px) clamp(22px, 4vw, 56px) 0; }
.rw-win-wide { width: 100%; }
.rw-points-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin-top: 32px; text-align: left; }
@media (max-width: 767px) { .rw-points-row { grid-template-columns: minmax(0, 1fr); } }

/* 3 · Bento */
.rw-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.rw-bento + .rw-bento { margin-top: clamp(80px, 9vw, 130px); }
.rw-bcard { border-radius: var(--rw-radius); background: var(--rw-panel); }
.rwp:nth-of-type(even) .rw-bcard { background: var(--rw-panel); }
.rw-bcopy { grid-column: span 5; display: flex; align-items: flex-end; padding: clamp(28px, 3.4vw, 48px); }
.rw-bbig { grid-column: span 7; overflow: hidden; }
.rw-bbig .rw-stage { height: 100%; min-height: 440px; border-radius: 0; }
.rw-bmini { grid-column: span 4; display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 2.6vw, 32px); }
.rw-bill { display: grid; place-items: center; min-height: 190px; }
.rw-bmini > p { margin: 0; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--rw-ink); }
@media (max-width: 1023px) {
  .rw-bcopy, .rw-bbig { grid-column: span 12; }
  .rw-bmini { grid-column: span 12; }
}
@media (min-width: 640px) and (max-width: 1023px) { .rw-bmini { grid-column: span 6; } .rw-bmini:last-child { grid-column: span 12; } }

/* 4 · Points that point */
.rw-focuslist { display: grid; gap: 6px; margin-top: 28px; }
.rw-focuslist button {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; overflow: hidden;
  padding: 14px 16px; border: 0; border-radius: 14px; background: transparent; text-align: left;
  font: inherit; font-size: 16px; line-height: 24px; color: var(--rw-grey); cursor: pointer; transition: background-color .25s ease, color .25s ease;
}
.rw-focuslist button:hover { color: var(--rw-ink); }
.rw-focuslist button[aria-selected=true] { background: var(--rw-panel); color: var(--rw-ink); }
.rw-focuslist button:focus-visible { outline: 2px solid var(--rw-violet); outline-offset: 2px; }
.rw-fnum { font-size: 12.5px; font-weight: 600; color: var(--rw-violet); font-variant-numeric: tabular-nums; }
.rw-fbar { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--rw-violet); transform: scaleX(0); transform-origin: left; }
.rw-focuslist.rw-run button[aria-selected=true] .rw-fbar { animation: rw-fill 3.4s linear forwards; }
@keyframes rw-fill { to { transform: scaleX(1); } }

/* The part of the screen a point is about stays bright; the rest steps back. */
.rw-focusstage [data-part], .rw-focusstage .rw-fields, .rw-focusstage .rw-canvas > *, .rw-focusstage .rw-props > *,
.rw-focusstage .rw-subs > *, .rw-focusstage .rw-searchrow > *, .rw-focusstage .rw-subs-h > * { transition: opacity .35s ease, box-shadow .35s ease, background-color .35s ease; }
.rw-focusstage[data-focus=fields] :is(.rw-canvas, .rw-props),
.rw-focusstage[data-focus=logic] :is(.rw-fields, .rw-canvas, .rw-props > :not(.rw-rule)),
.rw-focusstage[data-focus=saved] :is(.rw-fields, .rw-props, .rw-canvas > .rw-q),
.rw-focusstage[data-focus=search] :is(.rw-subs-h, .rw-subtabs, .rw-table, .rw-pill),
.rw-focusstage[data-focus=export] :is(.rw-subs-h > div, .rw-subtabs, .rw-searchrow, .rw-table),
.rw-focusstage[data-focus=new] :is(.rw-subs-h, .rw-subtabs, .rw-search, .rw-table) { opacity: .28; }
.rw-focusstage[data-focus=fields] .rw-fields { background: #faf8ff; box-shadow: inset 0 0 0 2px var(--rw-violet); }
.rw-focusstage[data-focus=logic] .rw-rule { border-radius: 12px; background: #faf8ff; box-shadow: 0 0 0 2px var(--rw-violet), 0 0 0 7px var(--rw-ring); }
.rw-focusstage[data-focus=saved] .rw-saved { border-radius: 8px; box-shadow: 0 0 0 2px var(--rw-violet), 0 0 0 7px var(--rw-ring); padding: 3px 8px; }
.rw-focusstage[data-focus=search] .rw-search { box-shadow: 0 0 0 2px var(--rw-violet), 0 0 0 7px var(--rw-ring); }
.rw-focusstage[data-focus=export] .rw-ghost { box-shadow: 0 0 0 2px var(--rw-violet), 0 0 0 7px var(--rw-ring); }
.rw-focusstage[data-focus=new] .rw-pill { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rw-violet), 0 10px 22px -8px rgb(113 71 235 / .8); }
.rw-focusstage .rw-rule-in { margin-inline: -6px; padding: 10px 6px 8px; }
.rw-focusstage[data-focus=fields] .rw-tile-hot, .rw-focusstage .rw-tile { transition: transform .3s ease; }
/* Here the whole screen fits inside the panel, so every part a point names is on show. */
.rw-focusstage .rw-builder { min-height: 600px; }
.rw-focusstage .rw-win-bleed { width: auto; right: clamp(24px, 6%, 56px); }
/* Narrower: the settings column swaps in when the logic point is active, the fields column otherwise. */
@container (max-width: 760px) {
  .rw-focusstage[data-focus=logic] .rw-builder { grid-template-columns: minmax(0, 1fr) 210px; }
  .rw-focusstage[data-focus=logic] .rw-props { display: flex; }
  .rw-focusstage[data-focus=logic] .rw-fields { display: none; }
}
@container (max-width: 560px) {
  .rw-focusstage[data-focus=logic] .rw-builder, .rw-focusstage[data-focus=fields] .rw-builder { grid-template-columns: minmax(0, 1fr); }
  .rw-focusstage[data-focus=logic] .rw-canvas, .rw-focusstage[data-focus=fields] .rw-canvas { display: none; }
  .rw-focusstage[data-focus=fields] .rw-fields { display: block; border-right: 0; }
  .rw-focusstage[data-focus=fields] .rw-tilegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 5 · Light, then dark */
.rw-darkband {
  margin-top: clamp(80px, 9vw, 130px); padding-block: clamp(72px, 9vw, 128px);
  background: #0e0d14; box-shadow: 0 0 0 100vmax #0e0d14; clip-path: inset(0 -100vmax); color: #fff;
}
.rwp-5 { padding-bottom: 0; }
.rw-darkband .text-title { color: #fff; }
.rw-darkband .text-muted-foreground, .rw-darkband .rw-points li { color: rgb(255 255 255 / .72); }
.rw-darkband .wh-kicker { background: rgb(255 255 255 / .08); color: #d9cffd; box-shadow: none; }
.rw-darkband .wh-accent { color: #a891fb; }
.rw-darkband .rw-points .rw-i { color: #4ade80; }
.rw-stage-dark { background: #1a1823; }

/* 6 · One section, two screens */
.rw-toggle { text-align: center; }
.rw-switch-bar { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: clamp(40px, 5vw, 64px); border-radius: 999px; background: var(--rw-panel); }
.rw-switch-bar button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--rw-grey); cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.rw-switch-bar button[aria-selected=true] { background: #fff; color: var(--rw-ink); box-shadow: 0 1px 2px rgb(29 24 48 / .08), 0 6px 16px -10px rgb(29 24 48 / .4); }
.rw-switch-bar button:focus-visible { outline: 2px solid var(--rw-violet); outline-offset: 2px; }
.rw-switch-bar .rw-i { width: 17px; height: 17px; }
.rw-tpanels { text-align: left; }
.rw-tpanel { display: none; }
.rw-tpanel[data-active] { display: block; animation: rw-in .5s ease; }
@keyframes rw-in { from { opacity: 0; transform: translateY(8px); } }

/* 7 · From the question to the row */
.rw-flowhead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(40px, 6vw, 120px); margin-bottom: clamp(40px, 5vw, 64px); }
.rw-flow {
  display: grid; grid-template-columns: minmax(0, 4fr) clamp(48px, 7vw, 110px) minmax(0, 7fr); align-items: center;
  padding: clamp(22px, 3.5vw, 52px); border-radius: var(--rw-radius); background: var(--rw-panel);
}
.rw-flow-l, .rw-flow-r { min-width: 0; container-type: inline-size; }
.rw-flow-cap { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rw-grey); }
.rw-respond {
  padding: 22px; border-radius: 18px; background: #fff; color: var(--rw-ink); font-family: var(--font-sans); font-size: 12.5px;
  box-shadow: 0 24px 50px -26px rgb(29 24 48 / .35), 0 0 0 1px var(--rw-line);
}
.rw-respond-t { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.rw-q-plain { padding: 10px 0; border: 0; }
.rw-send { display: inline-flex; margin-top: 8px; padding: 9px 20px; border-radius: 10px; background: var(--rw-violet); color: #fff; font-size: 13px; font-weight: 600; }
.rw-flow-mid { position: relative; height: 40px; }
.rw-flow-mid svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rw-flow-mid path { fill: none; stroke: #c9bdf8; stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.rw-flow-dot { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 99px; background: var(--rw-violet); box-shadow: 0 0 0 5px var(--rw-ring); opacity: 0; }
.rw-win-flow { position: relative; width: 100%; }
.rw-win-flow .rw-subs { min-height: 0; }
.rw-n { display: inline-grid; }
.rw-n > b { grid-area: 1 / 1; font-weight: inherit; }
.rw-n-new { opacity: 0; }
.rw-tr-new { height: 0; opacity: 0; border-top-width: 0; background: #fff8e6; }

/* the story, on a 9-second loop while it is on screen */
.rw-flow.is-in .rw-respond .rw-star:nth-child(-n+3) .rw-i { animation: rw-f-star 9s infinite; animation-delay: calc(var(--i) * .3s); }
.rw-flow.is-in .rw-pick > i { animation: rw-f-pick 9s infinite; }
.rw-flow.is-in .rw-send { animation: rw-f-send 9s infinite; }
.rw-flow.is-in .rw-flow-dot { animation: rw-f-dot 9s infinite; }
.rw-flow.is-in .rw-tr-new { animation: rw-f-row 9s infinite; }
.rw-flow.is-in .rw-n-old { animation: rw-f-old 9s infinite; }
.rw-flow.is-in .rw-n-new { animation: rw-f-new 9s infinite; }
@keyframes rw-f-star { 0%, 8% { color: #bdb9cc; fill: none; } 10%, 92% { color: var(--rw-amber); fill: var(--rw-amber); } 96%, 100% { color: #bdb9cc; fill: none; } }
@keyframes rw-f-pick { 0%, 26% { border-color: #cfcbdc; background: #fff; box-shadow: none; } 28%, 92% { border-color: var(--rw-violet); background: var(--rw-violet); box-shadow: inset 0 0 0 3px #fff; } 96%, 100% { border-color: #cfcbdc; background: #fff; box-shadow: none; } }
@keyframes rw-f-send { 0%, 38% { transform: none; } 40% { transform: scale(.93); } 43%, 100% { transform: none; } }
@keyframes rw-f-dot { 0%, 42% { left: 0; opacity: 0; } 44% { opacity: 1; } 56% { left: calc(100% - 12px); opacity: 1; } 59%, 100% { left: calc(100% - 12px); opacity: 0; } }
@keyframes rw-f-row { 0%, 57% { height: 0; opacity: 0; border-top-width: 0; background: #fff8e6; } 61% { height: 42px; opacity: 1; border-top-width: 1px; background: #fff3cf; } 80% { background: #fff8e6; } 92% { height: 42px; opacity: 1; border-top-width: 1px; } 97%, 100% { height: 0; opacity: 0; border-top-width: 0; } }
@keyframes rw-f-old { 0%, 59% { opacity: 1; } 61%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes rw-f-new { 0%, 59% { opacity: 0; } 61%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@media (max-width: 1023px) {
  .rw-flowhead { grid-template-columns: minmax(0, 1fr); }
  .rw-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rw-flow-mid { height: 56px; }
  .rw-flow-mid svg { display: none; }
  .rw-flow-mid::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; border-left: 2px dashed #c9bdf8; }
  .rw-flow-dot { left: 50% !important; margin-left: -6px; }
  .rw-respond { max-width: 420px; margin-inline: auto; }
}

/* 8 · Close-ups */
.rw-stage-zoom { background: var(--rw-panel); }
.rw-zoomin {
  position: absolute; top: 36px; right: 36px; width: 900px; border-radius: 16px; background: #fff; overflow: hidden;
  transform: scale(1.32); transform-origin: 100% 0; box-shadow: 0 30px 70px -30px rgb(29 24 48 / .35), 0 0 0 1px var(--rw-line);
  --w-bg: #fff; --w-soft: #f6f5fa; --w-line: var(--rw-line); --w-ink: var(--rw-ink); --w-grey: var(--rw-grey);
  --w-tabs: #f2f1f6; --w-check: #cfcbdc; --w-head: #fafafb; font-family: var(--font-sans); font-size: 12.5px; color: var(--rw-ink);
}
.rw-zoom-t .rw-zoomin { right: auto; left: 36px; transform-origin: 0 0; }
.rw-zoom { position: absolute; inset: 0; }
[data-mark] { position: relative; }
.rw-zoom [data-mark]::after {
  content: attr(data-mark); position: absolute; z-index: 2; right: -9px; top: -9px; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 99px; background: var(--rw-violet); color: #fff; font: 700 10.5px/1 var(--font-sans);
  box-shadow: 0 0 0 3px #fff;
}
.rw-legend {
  position: absolute; left: 20px; bottom: 20px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 40px);
}
.rw-legend span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 500; color: var(--rw-ink); box-shadow: 0 10px 24px -14px rgb(29 24 48 / .5), 0 0 0 1px var(--rw-line);
}
.rw-legend b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 99px; background: var(--rw-violet); color: #fff; font-size: 11px; }
.rw-zoom-t .rw-legend { left: auto; right: 20px; justify-content: flex-end; }
/* The zoomed screen is always full size, whatever the panel's width */
.rw-zoomin .rw-builder { grid-template-columns: 176px minmax(0, 1fr) 214px; }
.rw-zoomin .rw-props { display: flex; }
.rw-zoomin .rw-fields { display: block; }
.rw-zoomin .rw-tr { --cols: 14px 15px 62px minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 52px; gap: 12px; }
.rw-zoomin .rw-tr > .rw-cb, .rw-zoomin .rw-tr > .rw-star-o, .rw-zoomin .rw-tr > :nth-child(2), .rw-zoomin .rw-c2, .rw-zoomin .rw-c3 { display: block; }
.rw-zoomin .rw-subs-h small { display: block; }
.rw-zoomin .rw-search { width: min(260px, 60%); }
.rw-zoomin .rw-propsico[data-mark]::after { right: -8px; top: -8px; }
.rw-zoomin .rw-unread[data-mark]::after { right: -6px; top: -22px; }
@container (max-width: 760px) { .rw-zoomin { transform: scale(1.1); } }
@container (max-width: 560px) {
  .rw-zoomin { transform: scale(.82); right: 16px; top: 18px; }
  .rw-zoom-t .rw-zoomin { left: 16px; }
  .rw-legend span { font-size: 12px; }
}

/* 9 · Numbered steps */
.rw-steps { display: grid; gap: clamp(72px, 9vw, 130px); }
.rw-step { display: grid; grid-template-columns: clamp(64px, 9vw, 140px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); }
.rw-rail { position: relative; }
.rw-num { position: sticky; top: 110px; display: block; font-family: var(--wh-display, var(--font-sans)); font-size: clamp(44px, 6vw, 88px); line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--rw-violet); }
.rw-rail > i { position: absolute; left: .35em; top: clamp(64px, 8vw, 110px); bottom: calc(-1 * clamp(72px, 9vw, 130px)); border-left: 2px dashed #d6ccfb; font-size: clamp(44px, 6vw, 88px); }
.rw-step:last-child .rw-rail > i { bottom: 0; border-left-color: transparent; }
.rw-stephead .rw-copy { max-width: 760px; }
.rw-stepbody .rw-stage-wide { margin-top: 40px; }
@media (max-width: 640px) { .rw-step { grid-template-columns: minmax(0, 1fr); gap: 8px; } .rw-rail > i { display: none; } .rw-num { position: static; } }

/* 10 · Layers to the edge */
.rw-bleedrow {
  --edge: calc((min(100vw - 2 * var(--wh-gutter, 24px), var(--wh-content, 1495px)) - 100vw) / 2);   /* negative: out to the screen edge */
  --in: calc(-1 * var(--edge));                                                                     /* from the screen edge back to the content edge */
}
.rw-stage-bleed { height: clamp(460px, 42vw, 620px); margin-right: var(--edge); border-radius: var(--rw-radius) 0 0 var(--rw-radius); }
.rw-flip .rw-stage-bleed { margin-right: 0; margin-left: var(--edge); border-radius: 0 var(--rw-radius) var(--rw-radius) 0; }
.rw-layer { position: absolute; inset: 0; }
.rw-win-layer { position: absolute; left: clamp(24px, 6%, 64px); top: clamp(28px, 8%, 60px); width: 900px; }
.rw-flip .rw-win-layer { left: calc(var(--in) + clamp(24px, 3vw, 48px)); }   /* starts at the content edge, runs off behind the text */
.rw-float { position: absolute; z-index: 2; }
.rw-float-b { left: 34%; bottom: 28px; width: min(360px, 60%); }
.rw-float-t { right: 6%; top: 18%; width: min(290px, 46%); }
.rw-flip .rw-float-t { right: 4%; top: 12%; }
.rw-float-s { left: 30%; bottom: 26px; width: min(300px, 46%); }
.rw-flip .rw-float-s { left: calc(var(--in) + 20px); right: auto; bottom: 18px; }
@media (max-width: 1023px) {
  .rw-bleedrow { --in: 0px; }
  .rw-stage-bleed, .rw-flip .rw-stage-bleed { margin: 0; border-radius: var(--rw-radius); }
}
@container (max-width: 760px) { .rw-float-s { display: none; } .rw-float-b { left: 18px; } }
@container (max-width: 560px) {
  .rw-win-layer, .rw-flip .rw-win-layer { left: 18px; right: auto; top: 22px; width: calc(100% - 36px); }
  .rw-float-b, .rw-float-t, .rw-flip .rw-float-t { left: 18px; right: 18px; top: auto; bottom: 18px; width: auto; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .rw-anim .rw-searchrow .rw-pill { opacity: 1; transform: none; transition: none; }
  .rw-anim .rw-bars i { transform: none; transition: none; }
  .rw-tpanel[data-active] { animation: none; }
  .rw-flow .rw-respond .rw-star:nth-child(-n+3) .rw-i { color: var(--rw-amber); fill: var(--rw-amber); }
  .rw-flow .rw-pick > i { border-color: var(--rw-violet); background: var(--rw-violet); box-shadow: inset 0 0 0 3px #fff; }
  .rw-flow .rw-tr-new { height: 42px; opacity: 1; border-top-width: 1px; }
  .rw-flow .rw-n-old { opacity: 0; } .rw-flow .rw-n-new { opacity: 1; }
  .rw-flow.is-in * { animation: none !important; }
}

/* On the home page the two rows sit in one band of their own. */
.rwp-home { background: #fff; }   /* the home page builder and answers rows sit on white */
/* On white, the screens run off the panel's edge into the page; a light stroke round the panel
   keeps that edge visible. The border sits outside the clipped area, so it shows over the screen too. */
.rwp-home .rw-stage { border: 1px solid #e2e2e6; }
