/* Page CSS: only what sits inside a visual and the kit lacks, plus one --p-h per card group. */

/* app-frame (sections-library.md): one app window, the list beside the open item. */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
/* in the hero the window keeps one height and the frame cuts it under its fade */
.hero__window .app.ui { height: 440px; }
@media (max-width: 1023px) {
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; }
}

/* the hero frame: the brand's lavender, lit from the top left, deepening to its purple at the lower right */
.hero--centred .hero__window { background:
  radial-gradient(70% 110% at 12% 0%, #f1e4f8 0%, transparent 62%),
  radial-gradient(75% 120% at 100% 100%, #8a5aa8 0%, transparent 68%),
  linear-gradient(135deg, #d8b4e2 0%, #bc96e6 100%); }
/* the product window stands white on it */
.hero__window .app.ui, .hero__window .app.ui .ui { --u-bg: #ffffff; }

/* the lit ground behind UI, in the brand's own lilac (the kit's sand, sky and sage are not this brand's) */
:root, :root[data-ground] { --ground-bg: #eadff5; --ground-surface: #f6f0fa; --ground-ink: #210b2c; --ground-muted: #6a5673; --ground-accent: #55286f; }

/* picture panels: one flat brand tint with a soft light from the top right, a hairline, no texture */
/* (:root:has(meta) matches the kit's own software-page mesh rule, so this one, coming later, wins) */
:root:has(meta[name="site-kind"]) :is(.card, .menu-card, #questions) .panel:not([data-fx], .panel--device) {
  background: radial-gradient(110% 90% at 100% 0%, #e9dcf4 0%, transparent 62%), #f6f0fa;
  box-shadow: inset 0 0 0 1px rgb(33 11 44 / 0.06);
}
:is(.card, .menu-card, #questions) .panel::before { display: none; }
/* on the tinted band the panels step to white-lilac so they still read as pictures */
:root:has(meta[name="site-kind"]) .ground-surface .card .panel:not([data-fx], .panel--device) { background: radial-gradient(110% 90% at 100% 0%, #eadff5 0%, transparent 62%), #f3ebf9; }

/* one panel height per card group */
#features .panel { --p-h: 336px; }
#setup .panel { --p-h: 400px; }
@media (max-width: 639px) {
  #features .panel { --p-h: 180px; }
  #features .ui-chat__day { display: none; }
  #features .stage { --fade-h: 40px; }
  #setup .panel { --p-h: 276px; }
}

/* the hero's sub-line is body text: ink, 7:1 on the ground */
.hero--centred .hero__lead { color: var(--ink); }

/* the featured plan's badge sits beside its name without joining the heading */
.card--plan { position: relative; }
.card--plan > .badge { position: absolute; top: var(--s-6); right: var(--s-6); }

/* the questions' picture: the answer rule at work, under the section's words */
#questions .panel { --p-h: 300px; margin-top: var(--s-5); }
@media (max-width: 639px) { #questions .panel { --p-h: 360px; } #questions .faq > .faq__item { padding-block: var(--s-6); } #questions .faq > .faq__item:first-child { padding-top: var(--s-6); } }

/* the big close button's label wraps on the narrowest phones instead of widening the page */
@media (max-width: 359px) { .close--type .btn--xl { white-space: normal; height: auto; min-height: 48px; padding-block: var(--s-2); } }

/* phone: the four plans fit two screens: each plan with its first three lines; the full lists are on wider screens */
@media (max-width: 639px) {
  #pricing .card--plan > p:not(.price) { display: none; }
  #pricing .card--plan .checks li:nth-child(n + 4) { display: none; }
}
@media (max-width: 639px) { .card--plan > .badge { top: 20px; right: 20px; } }

/* tablet: the three setup cards stack, so the section takes two screens there */
#setup { --hm: 2; }
@media (min-width: 640px) and (max-width: 1023px) { #setup { --h: 2; } }
/* small laptop: the feature panels give up 16px so both rows hold their screen */
@media (min-width: 1024px) and (max-width: 1279px) { #features .panel { --p-h: 320px; } }

/* features: the hero's brand light on every picture (lavender lit from one corner, deepening to the
   brand purple in the other), so the white product UI stands out; flat colour only, no texture.
   --lx sets the lit corner, --dx the deep one, alternating from card to card. */
:root:has(meta[name="site-kind"]) #features .card .panel:not([data-fx], .panel--device) {
  background:
    radial-gradient(75% 95% at var(--lx, 0%) 0%, #f6eefb 0%, transparent 62%),
    radial-gradient(80% 110% at var(--dx, 100%) 100%, #9d70bb 0%, transparent 70%),
    linear-gradient(150deg, #e9d8f1 0%, #cdb0ec 100%);
  box-shadow: inset 0 0 0 1px rgb(33 11 44 / 0.08);
}
#live-chat .panel, #handoff .panel { --lx: 100%; --dx: 0%; }
#features .panel .ui { --u-shadow: 0 1px 2px rgb(33 11 44 / 0.08), 0 12px 32px -8px rgb(33 11 44 / 0.28); --u-shadow-sm: 0 1px 2px rgb(33 11 44 / 0.06), 0 6px 16px -6px rgb(33 11 44 / 0.22); }

/* features, second screen: the row fills the screen, so each picture sits centred, whole and unfaded,
   as a pair: the handoff with the question that set it off, the review with the request behind it */
.stage > .duo { display: grid; gap: 16px; }
.stage > .duo > .duo__lead { display: grid; justify-items: end; gap: 10px; width: 100%; }
.duo__lead .ui-msg--me { max-width: 300px; background: #55286f; color: #ffffff; box-shadow: var(--u-shadow-sm); }
.duo__lead .ui-chip { justify-self: start; height: 26px; padding: 0 10px; background: #ffffff; color: #55286f; box-shadow: var(--u-shadow-sm); }
.duo__lead .ui-chip::before { background: #55286f; opacity: 1; }
.stage > .duo > .duo__tail {
  display: flex; align-items: center; gap: 10px; justify-self: end; width: auto; max-width: none; white-space: nowrap;
  margin: -24px -16px 0 0; padding: 10px 12px; position: relative; z-index: 1;
  border-radius: var(--u-r); background: var(--u-bg); border: 1px solid var(--u-border); box-shadow: var(--u-shadow);
  font-size: 13px; line-height: 20px; color: var(--u-muted);
}
.duo__tail .ui-avatar { width: 28px; height: 28px; font-size: 12px; }
.duo__tail b { font-weight: 500; color: var(--u-ink); }
.duo__tail .ui-btn { margin-left: 4px; background: #55286f; color: #fff; }
/* a phone keeps only the main picture, whole */
@media (max-width: 639px) {
  #handoff .panel, #review .panel { --p-h: 300px; }
  .stage > .duo > :is(.duo__lead, .duo__tail) { display: none; }
}

/* the answer rule: one sentence, so the band is as tall as the sentence plus the section's top padding
   on both sides, not a whole screen (main > #rule outweighs the kit's one-screen height at every width) */
main > #rule { height: auto; min-height: 0; padding-bottom: var(--padt); }
main > #rule > .wrap { height: auto; justify-content: center; }

/* a phone (audit F19): the short sections size to their content, not two screens each, so there is no
   empty band under "Open your first workspace today" or above "Questions" (ids outweigh the kit's rule) */
@media (max-width: 639px) {
  main > :is(#setup, #pricing, #questions), footer.closing#contact { min-height: 0; }
  main > :is(#setup, #pricing, #questions) > .wrap, footer.closing#contact > .wrap { grid-template-rows: auto; row-gap: var(--s-8, 48px); }
}

/* stakes: the relief line under the three cards */
.stakes__relief { margin-top: var(--s-6); font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
/* setup: the main action under the three steps */
.setup__cta { margin-top: var(--s-7, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
/* the hero's headline is a full sentence: give it a little more width */
.hero--centred h1 { max-width: 20ch; }
