/* The six pages in the site header: Startups, Automation, Agents, Pricing, Docs and Contact (src/page-look.ts adds
   this file and data-pg on <body> only there). The rest of the public pages keep seo.css and site.css.
   The idea (the owner, 2026-11-21: "not vibecoded, special"): pages set like a well-made manual rather than a landing
   template. Headings that state the thing at a reading size, a picture of the product beside them (the agents and
   their log, drawn on the server), the contents in a column beside the text, lists set as ruled entries, plain rules
   instead of glowing cards, and nothing centred for the sake of it. */

[data-pg] { --pg-gap: clamp(40px, 6vw, 88px); }

/* the small line above a heading, with a dot in the colour of the page's agent */
.pg-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s-4); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.pg-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pg-dot, var(--pen)); }
[data-pg="startups"] { --pg-dot: #2f6bff; }
[data-pg="automation"] { --pg-dot: #14a36b; }
[data-pg="agents"] { --pg-dot: #e2589b; }
[data-pg="docs"] { --pg-dot: #e08a12; }

/* ---------------- Startups, Automation, Agents (src/seo.ts with src/page-look.ts) ---------------- */

.pg .crumbs ol { margin-bottom: var(--s-6); }
.pg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--pg-gap); align-items: center; margin-bottom: var(--pg-gap); padding-bottom: var(--pg-gap); border-bottom: 1px solid var(--line); }
.pg-hero h1 { max-width: 16ch; margin: 0 0 var(--s-5); font-size: clamp(36px, 4.1vw, 56px); line-height: 1.05; letter-spacing: -0.026em; font-weight: 500; text-wrap: balance; }
.pg-hero .lede { max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--body); }
.pg-hero .meta { margin-top: var(--s-5); }
.pg-art { margin: 0; }

/* the picture: a panel the product itself would draw */
.pa { padding: 20px 22px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--body); }
.pa-top { display: flex; justify-content: space-between; gap: var(--s-3); margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pa-top span:first-child { color: var(--text); font-weight: 500; }
.pa ol, .pa ul { margin: 0; padding: 0; list-style: none; }
.pa-end { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pa-end .mascot { width: 22px; height: 22px; }
.pa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pen) 22%, transparent); }

/* Startups: the build as its log reads, each agent handing on to the next */
.pa-log li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; }
.pa-log li + li { border-top: 1px solid var(--line); }
.pa-log li:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 46px; bottom: -12px; width: 1px; background: var(--line-2); }
.pa-log .mascot { position: relative; z-index: 1; width: 38px; height: 38px; }
.pa-log b { display: block; font-size: 14.5px; font-weight: 500; color: var(--text); }
.pa-log small { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }

/* Automation: an example night of the shift, what it did and what waits for you */
.pa-shift li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; line-height: 1.45; }
.pa-shift li + li { border-top: 1px solid var(--line); }
.pa-shift time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
.pa-shift em { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-style: normal; font-size: 12px; color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pen) 60%, var(--line)); background: color-mix(in srgb, var(--pen) 14%, transparent); white-space: nowrap; }
.pa-shift li.hold span { color: var(--text); }

/* Agents: the team, standing together */
.pa-team { padding: 32px 22px 20px; }
.pa-team ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; text-align: center; }
.pa-team li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pa-team .mascot { width: 72px; height: 72px; margin-bottom: 8px; }
.pa-team b { font-size: 14px; font-weight: 500; color: var(--text); }
.pa-team small { font-size: 12.5px; color: var(--muted); }
.pa-team .pa-end { margin-top: 20px; justify-content: center; }

/* the text: the contents in a column of their own, kept in view */
.pg-body { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: var(--pg-gap); align-items: start; }
.pg-toc { position: sticky; top: 96px; font-size: 14px; }
.pg-toc .label { margin: 0 0 var(--s-3); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.pg-toc ol { margin: 0; padding: 0; list-style: none; }
.pg-toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--muted); line-height: 1.35; transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease); }
.pg-toc a:hover { color: var(--text); border-left-color: var(--text); }
.pg .prose > h2:first-child { margin-top: 0; }
.pg .prose h2 { margin-top: 88px; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.018em; font-weight: 500; }

/* a list whose items each lead with a bold phrase is a set of entries: ruled, two to a row, the phrase as the title */
.pg .prose ul:has(> li > strong:first-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: var(--s-5); padding: 0; list-style: none; }
.pg .prose ul:has(> li > strong:first-child) > li { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.55; color: var(--body); }
.pg .prose ul:has(> li > strong:first-child) > li > strong:first-child { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 500; color: var(--text); }

/* the closing band: the five, the line, the one way in */
.pg-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; max-width: none; margin-top: var(--pg-gap); padding: 28px 32px; border-radius: 24px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.pg-next h2 { font-size: 22px; font-weight: 500; }
.pg-next p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.pa-crew { display: flex; }
.pa-crew .mascot { width: 40px; height: 40px; }
.pa-crew .mascot + .mascot { margin-left: -8px; }

@media (max-width: 1000px) {
  .pg-hero { grid-template-columns: minmax(0, 1fr); }
  .pg-art { max-width: 560px; }
  .pg-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .pg-toc { position: static; }
  .pg-toc ol { columns: 2 220px; column-gap: var(--s-6); }
}
@media (max-width: 680px) {
  .pg .prose ul:has(> li > strong:first-child) { grid-template-columns: minmax(0, 1fr); }
  .pa-team ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .pg-next { grid-template-columns: minmax(0, 1fr); }
  .pa-shift em { margin: 6px 0 0; }
}

/* ---------------- Docs (src/seo-catalog.ts, the /docs index) ---------------- */

.dx-head { max-width: 760px; margin-bottom: var(--pg-gap); }
.dx-head h1 { margin: 0 0 var(--s-4); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.026em; font-weight: 500; }
.dx-head .lede { max-width: 60ch; font-size: 18px; line-height: 1.6; }
.dx-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--pg-gap); align-items: start; }
.dx-nav { position: sticky; top: 96px; font-size: 14px; }
.dx-nav ol { margin: 0; padding: 0; list-style: none; }
.dx-nav a { display: flex; justify-content: space-between; gap: var(--s-3); padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--muted); transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease); }
.dx-nav a:hover { color: var(--text); border-left-color: var(--text); }
.dx-nav span { font-variant-numeric: tabular-nums; color: var(--muted); opacity: 0.7; }
.dx-group + .dx-group { margin-top: 72px; }
.dx .hub-group { margin: 0; padding-bottom: 14px; font-size: 24px; font-weight: 500; letter-spacing: -0.012em; border-bottom: 1px solid var(--line-2); scroll-margin-top: 96px; }
.dx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.dx-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dx-list b { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--text); }
.dx-list span { font-size: 14px; line-height: 1.5; max-height: 3em; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-list a:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
@media (max-width: 1000px) {
  .dx-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .dx-nav { position: static; }
  .dx-nav ol { columns: 2 200px; column-gap: var(--s-6); }
}
@media (max-width: 680px) { .dx-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- Pricing (src/legal.ts) ---------------- */

/* the heading on the left like every other page, and the plans as ruled columns rather than three glowing cards */
[data-pg="pricing"] .pr-head { align-items: flex-start; text-align: left; margin-bottom: var(--s-6); }
[data-pg="pricing"] .pr-head h1 { font-size: clamp(40px, 5vw, 64px); }
[data-pg="pricing"] .pr-sub { font-size: 20px; }
[data-pg="pricing"] .pr-head .lede { max-width: 66ch; font-size: 15.5px; line-height: 1.6; }
[data-pg="pricing"] .pr-seg { margin: 0 0 var(--s-7); }
[data-pg="pricing"] .pr-grid { column-gap: 48px; }
[data-pg="pricing"].site .pr-plan, [data-pg="pricing"] .pr-plan { padding: 24px 0 0; border-radius: 0; background: none; box-shadow: none; border-top: 2px solid var(--line-2); }
[data-pg="pricing"].site .pr-plan.pr-hi, [data-pg="pricing"] .pr-plan.pr-hi { border-top-color: var(--pen); }
[data-pg="pricing"] .pr-plan h2 { font-size: 16px; }
[data-pg="pricing"] .pr-amt { font-size: 48px; }
[data-pg="pricing"] .pr-fine { text-align: left; margin-top: -6px; }
[data-pg="pricing"] .tp-wide > .tp-note { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: var(--pg-gap); max-width: none; margin-top: 88px; padding-top: 28px; }
[data-pg="pricing"] .tp-wide > .tp-note > * { grid-column: 2; }
[data-pg="pricing"] .tp-wide > .tp-note > h2 { grid-column: 1; grid-row: 1 / span 20; margin: 0; font-size: 22px; font-weight: 500; }
[data-pg="pricing"] .tp-wide > .tp-note > p, [data-pg="pricing"] .tp-wide > .tp-note > ul { max-width: 68ch; }
@media (max-width: 900px) {
  [data-pg="pricing"] .pr-you, [data-pg="pricing"] .pr-team { margin-inline: 0; }
  [data-pg="pricing"] .tp-wide > .tp-note { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
  [data-pg="pricing"] .tp-wide > .tp-note > *, [data-pg="pricing"] .tp-wide > .tp-note > h2 { grid-column: 1; grid-row: auto; }
}

/* ---------------- Contact (src/legal.ts) ---------------- */

[data-pg="contact"] .tp-page { max-width: var(--col); }
.ct { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--pg-gap); align-items: start; }
.ct-side .tp-head { margin-bottom: var(--s-6); }
.ct-side .lede { font-size: 17px; line-height: 1.6; color: var(--body); }
.ct-ways { margin: 0; }
.ct-ways div { padding: 18px 0; border-top: 1px solid var(--line); }
.ct-ways div:last-child { border-bottom: 1px solid var(--line); }
.ct-ways dt { font-size: 15px; font-weight: 500; color: var(--text); }
.ct-ways dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ct-ways a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.ct-main { padding: 32px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ct-main .lg-form { max-width: none; margin: 0; }
@media (max-width: 860px) { .ct { grid-template-columns: minmax(0, 1fr); } .ct-main { padding: 22px; } }

@media (prefers-reduced-motion: reduce) { .pg-toc a, .dx-nav a { transition: none; } }

/* Pricing: downgrading takes two steps, the dialog then a code emailed to the account (public/pricing.js) */
.pr-free-note { margin: var(--s-3) 0 0; font-size: 14px; color: var(--muted); }
.pr-code { display: grid; gap: 8px; margin-top: var(--s-4); }
.pr-code label { font-size: 14px; color: var(--body); }
.pr-code input { max-width: 200px; min-height: 48px; padding: 0 14px; border-radius: var(--r-control); border: 0; background: var(--raised); color: var(--text); font: inherit; font-size: 22px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.pr-code input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.pr-resend { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pr-resend:hover { color: var(--text); }
[data-cancel-step2][hidden], [data-cancel-next][hidden], [data-cancel-confirm][hidden] { display: none; }
/* under an upgrade, only the note that matches the plan's state (it was showing both) */
[data-pg="pricing"]:has([data-cancel-row][data-state="on"]) .pr-switch-off,
[data-pg="pricing"]:has([data-cancel-row][data-state="cancelled"]) .pr-switch-on { display: none; }
