/* Duit website: the product pages, /solo and /grow (SPEC8, SPEC9, SPEC10). The home page loads it too, and adds
   home.css after it. Needs site.css (tokens, .wrap .sec
   .sec-head .panel .card .cards .feature .pills .state, the buttons) and window.css (.dw: the still windows). Styled by
   token only: both themes come from site.css, never from a theme selector here. No inline styles or scripts (strict CSP).

   p-*      the product pages: .p-hero (h1, a .lede, the pills, a .p-status line with its label, then a .p-panel with a
            still window), .p-four (four cards, two by two), .p-more (the smaller lines under a feature's sentence),
            still windows (.p-win: .p-solo, .p-rail, .p-chips), .p-mini (a card's small window); on /solo#claude
            (SPEC11) a .p-label line under the head, three .cards (.p-claude) and .p-qs, the questions and answers in
            one column.
   ea-*     Solo's early-access form: the email and its pill on one row. */

/* ---------- Product pages (also /agencies and /local-ai, SPEC13, and /marketers, SPEC14) ---------- */
.p-hero { padding-block: clamp(44px, 6vw, 80px) clamp(16px, 2vw, 24px); }
.p-hero-copy { display: grid; justify-items: start; gap: 14px; }
.p-hero-copy h1 { max-width: 22ch; }
.p-hero-copy .lede { max-width: 60ch; }
.p-cta { margin-top: 10px; }
.p-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.p-panel { display: grid; place-items: center; min-height: 420px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(18px, 4vw, 56px); }
.p-win { width: 100%; max-width: 620px; container-type: inline-size; }
.feature > .panel .p-win { max-width: 560px; }

/* four cards, two by two from 900px (one per row under it, as .cards does) */
@media (min-width: 900px) { .p-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card > .p-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 0; font-size: 14px; color: var(--muted); }
/* a card's link to a page of its own (SPEC13: /solo's Local AI card to /local-ai, /local-ai's two ways): a 44px target */
.card > .p-go { font-size: 16px; }
.p-go a.link { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }

/* the smaller lines under a feature's one sentence, and its text links */
.feature-text > .p-more { display: grid; gap: 10px; margin-top: 16px; font-size: 16px; line-height: 1.55; letter-spacing: 0; color: var(--muted); }
.p-more .state { margin-right: 4px; }
.feature-text > .p-links { gap: 0 20px; margin-top: 10px; }

/* /solo#claude (SPEC11): a label line under the head, three cards, then the three questions in one column */
.sec-head:has(+ .p-label) { margin-bottom: 12px; }
.p-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: clamp(20px, 2.4vw, 28px); font-size: 16px; line-height: 1.5; color: var(--muted); }
.p-qs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: clamp(36px, 4vw, 56px); }
.sec-head + .p-qs { margin-top: 0; } /* questions right under their own head (/agencies, /local-ai, SPEC13) */
.p-qs h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
.p-qs p { max-width: 60ch; margin-top: 6px; line-height: 1.6; color: var(--muted); }

/* ---------- Still windows (.dw, aria-hidden, with a .sr account beside each) ---------- */
/* a window's sections rail: Solo's Grow, Automations and the rest on the left */
.p-rail { display: grid; align-content: start; gap: .2em; margin: 0; padding: 0; list-style: none; font-size: max(12px, .93em); color: var(--wmuted); }
.p-rail > li { padding: .35em .65em; border-radius: 8px; white-space: nowrap; }
.p-rail > .is-on { background: var(--chrome); color: var(--wtext); font-weight: 500; }

/* Solo: its sections on the left, Grow's work on duit.sh on the right */
.p-solo { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 1em; }
.p-solo-main { display: grid; align-content: start; gap: .8em; min-width: 0; }
@container (max-width: 470px) {
  .p-solo { grid-template-columns: minmax(0, 1fr); gap: .6em; }
  .p-solo .p-rail { display: flex; flex-wrap: wrap; }
}

/* a card's small window, and a row of names */
.card > .p-mini { min-height: 168px; }
.p-mini .p-win { max-width: 340px; }
.p-mini .dw-body { padding: 14px; }
.p-chips { display: flex; flex-wrap: wrap; gap: .45em; }
.p-chips > span {
  padding: .3em .75em; border: 1px solid var(--wline); border-radius: 999px; background: var(--chrome);
  font-size: max(12px, .93em); color: var(--wtext);
}

/* ---------- Solo's early access: the email and its pill on one row (stacked on phones) ---------- */
.ea { max-width: 640px; }
.ea-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.ea .cf-send { margin-top: 0; padding-top: calc(15px * 1.4 + 8px); } /* level with the input, under the label */
.ea .cf-status:empty { display: none; }
@media (max-width: 559.98px) {
  .ea-row { grid-template-columns: minmax(0, 1fr); }
  .ea .cf-send { padding-top: 0; }
}
/* under the email row (the conversion work, 2026-11-28): the lines a hero's form shows under its button (/solo), the
   optional "Where is your site?" and, on Solo's early access, the founding box. The box keeps its own small size; its
   label, the whole line, is the target. */
.ea-next { display: grid; gap: 4px; margin-top: -8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ea-next .state { margin-inline: 2px 4px; }
/* /solo's hero (N5): the form in the copy column, left-aligned; then what Grow will need */
.p-form { width: 100%; max-width: 640px; margin-top: 8px; }
.p-form .cf { gap: 16px; margin-inline: 0; padding: clamp(16px, 2vw, 24px); }
.p-form .cf-note { padding-top: 12px; }
.p-need { max-width: 64ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.p-need strong { color: var(--text); }
.p-need .state { margin-inline: 2px 4px; }
.ea-more { display: grid; gap: 16px; }
.ea-site { max-width: 340px; }
/* The founding box: the checkbox itself is visually hidden (.sr) and its whole label is the tap target, 44px tall or
   more (redesign_check G counts a hidden control's label); the label draws the 20px box (::before) and its tick
   (::after, in --bg on --link), and the focus ring sits on .ea-check, the control's wrapper. */
.ea-check { position: relative; border-radius: 8px; }
.cf .ea-check input.sr { width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; border: 0; } /* .cf input would size it */
.cf .ea-check input.sr:focus-visible { outline: none; } /* the ring is .ea-check's */
.ea-check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.cf .ea-check label {
  position: relative; display: block; min-height: 44px; padding: 0 0 0 32px; cursor: pointer;
}
.ea-check label::before {
  content: ""; position: absolute; left: 0; top: 1px; box-sizing: border-box; width: 20px; height: 20px;
  border: 2px solid var(--field); border-radius: 4px; background: var(--bg);
}
.ea-check label::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; box-sizing: border-box;
  border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0;
}
.ea-check input:checked + label::before { border-color: var(--link); background: var(--link); }
.ea-check input:checked + label::after { opacity: 1; }
@media (forced-colors: active) {
  .ea-check label::before { border-color: CanvasText; background: Canvas; }
  .ea-check input:checked + label::before { background: Highlight; border-color: Highlight; }
  .ea-check label::after { border-color: HighlightText; }
}
.ea-check .cf-opt { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; }

/* ---------- A real pull request (the conversion work, N6): Grow's #20 on duit.sh's repository, copied as it is ----------
   On a panel: the home page's hero and /grow's #at-work. The card is a window (.win-scope: the page's tokens point at
   the window's), real text, not a picture; the caption sits on the panel. */
.pr-fig { display: grid; gap: 14px; width: 100%; max-width: 580px; min-width: 0; }
.pr-card {
  display: grid; gap: 12px; min-width: 0; padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid var(--line); border-radius: var(--r-win); background: var(--bg); color: var(--text);
  box-shadow: var(--shadow); font-size: 15px; line-height: 1.45;
}
.pr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.pr-state {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px 0 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 500;
}
.pr-title { font-size: clamp(18px, .5vw + 15px, 21px); font-weight: var(--w-head); line-height: 1.3; letter-spacing: -0.01em; }
.pr-meta, .pr-label, .pr-rest { font-size: 14px; line-height: 1.45; color: var(--muted); }
.pr-checks, .pr-files { display: grid; gap: 6px; }
.pr-checks > li, .pr-held { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.45; }
.pr-files { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pr-files > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 12px; }
.pr-files > li.pr-rest { display: block; }
.pr-files code { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.pr-add { font-family: var(--code); font-size: 13px; color: var(--ok); }
.pr-held { padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.pr-fig > figcaption { max-width: 60ch; font-size: 14px; line-height: 1.5; color: var(--ptext); }
.pr-fig > figcaption a { color: inherit; text-decoration-color: currentColor; }
.pr-panel { display: grid; place-items: center; margin-top: clamp(24px, 3vw, 36px); padding: clamp(18px, 4vw, 48px); }
@media (max-width: 599.98px) {
  .pr-panel { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
}
