/* FlyForms — Features: "The builder", "The answers" and "The dashboard" as three large panels
   (src/components/features/TheBuilder, TheAnswers, TheDashboard). Heading top left, words at the
   bottom left, a picture on the right. */

/* The three sections sit 24px apart, as one group */
[data-page=features] .frw { --band: #fff; padding-block: 12px !important; }
[data-page=features] .frw.frw-first { padding-top: var(--wh-section, 144px) !important; }
[data-page=features] .frw.frw-last { padding-bottom: var(--wh-section, 144px) !important; }

.frw-panel {
  --pad: clamp(32px, 4.5vw, 72px);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(460px, 36vw, 540px); border-radius: 28px;
}
.frw-copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(36px, 4vw, 64px); padding: var(--pad) 0 var(--pad) var(--pad); }   /* heading and words close together, centred */
.frw-kicker { font-size: 14px; font-weight: 500; color: var(--wh-grey, #6b6b72); }
.frw .frw-h {
  margin-top: 12px; max-width: 15ch; font-family: var(--wh-display); font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.06; font-weight: 500; letter-spacing: -.02em; text-wrap: balance;
}
.frw .frw-p { max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--wh-grey, #6b6b72); }
.frw-list { display: grid; gap: 10px; margin-top: 20px; font-size: 15px; color: #52525b; }
.frw-list li { display: flex; align-items: flex-start; gap: 10px; }
.frw-check { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--wh-accent, #7147eb); }
.frw-art { position: relative; min-width: 0; }

/* ---------- 1 The builder: violet ---------- */
.frw-violet { background: var(--wh-accent, #7147eb); color: #fff; }
.frw-violet .frw-kicker { color: rgb(255 255 255 / .72); }
.frw-violet .frw-h .wh-accent { color: #dcd2fd; }
.frw-violet .frw-p { color: rgb(255 255 255 / .8); }
.frw-violet .frw-list { color: rgb(255 255 255 / .88); }
.frw-violet .frw-check { color: #fff; }
/* The live screenshot: flush with the panel's right edge, inside the panel top and bottom (with room
   around it), only the left corners rounded. */
.frw-shot { align-self: center; padding: var(--pad) 0 var(--pad) clamp(24px, 3vw, 48px); }
/* main + .theme-whistler: outranks whistler.css, which rounds every .webp image's corners (18px) */
.theme-whistler main .frw-shot img {
  display: block; width: 100%; max-width: none; height: auto;
  scale: .9; transform-origin: right center;   /* drawn 10% smaller, still flush right; the panel keeps its size */
  border: 1px solid #e3e3e7; border-right: 0; border-radius: 16px 0 0 16px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .05), 0 24px 60px rgb(0 0 0 / .10);
}

.theme-whistler main .frw-violet .frw-shot img { border-color: rgb(255 255 255 / .35); box-shadow: 0 30px 70px -20px rgb(20 0 70 / .5); }

/* ---------- 2 The answers: grey ---------- */
.frw-grey { background: #f4f4f5; }

/* ---------- 3 The dashboard: words on white, the screenshot on a soft gradient ---------- */
.frw-split { background: #fff; box-shadow: inset 0 0 0 1px #e7e5e4; }
.frw-split .frw-copy { padding-right: var(--pad); }
.frw-split .frw-shot { align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, #f1d3d3 0%, #efe2da 45%, #f4f0ea 100%); }

/* ---------- smaller screens: words first, then the screenshot ---------- */
@media (max-width: 1023px) {
  .frw-panel { grid-template-columns: 1fr; min-height: 0; }
  .frw-copy, .frw-split .frw-copy { gap: 24px; padding: var(--pad) var(--pad) 0; }
  .frw-shot { padding: 40px 0 var(--pad) var(--pad); }
  .frw-split .frw-shot { margin-top: var(--pad); }
}
@media (max-width: 640px) {
  .frw-panel { border-radius: 22px; }
  .theme-whistler main .frw-shot img { border-radius: 12px 0 0 12px; }
}
