/* Prodex public website. Custom CSS, no framework.
   Spec: docs/superpowers/specs/2026-11-08-website-refresh-design.md §4 (style A) and §5 (logo).

   TYPEFACE — Plus Jakarta Sans (Google Fonts), weights 400, 500, 700 and 800, for headings
   and body alike. Big, tight headings (tracking −0.03em) in 800 carry the friendly voice;
   body copy is 400 at 17–18px. "Prodex Fallback" below is Arial resized to take the same
   room, so the page does not jump when the web font arrives or never does.

   COLOUR — pure white pages, near-black ink and one coral. Coral (#FF6A3D) is a fill only:
   the primary button, the logo and the pastel shapes. Coral *text* is coral-ink (#C2410C),
   because #FF6A3D text fails AA on white; text on a coral button is ink, because white on
   coral fails too. Each module has a pastel pair (a tag background and its text colour).
   test/site/contrast.test.js checks every pair against WCAG AA.

   TOKENS — the whole look is set here. Every page reuses these and adds none. */
:root {
  --s-bg: #FFFFFF;          /* the page */
  --s-soft: #F7F7FA;        /* a soft section, the footer */
  --s-surface: #FFFFFF;     /* forms, tables, and behind a screenshot while it loads */
  --s-ink: #141821;         /* text (17.9:1 on white) */
  --s-muted: #5B6272;       /* secondary text (6.2:1 on white, 5.8:1 on soft) */
  --s-rule: #ECEDF2;        /* decorative lines only: never the only edge of a control */
  --s-field: #8A91A0;       /* the border of an input (3.2:1 on white) */
  --s-coral: #FF6A3D;       /* fills: the primary button, the logo, shapes */
  --s-coral-hover: #F2592A; /* the primary button under the pointer (ink on it 6.0:1) */
  --s-coral-ink: #C2410C;   /* coral text and links on white (5.2:1) */
  --s-accent: var(--s-coral);
  --s-accent-ink: var(--s-ink);  /* text on coral (7.0:1) — white on coral fails AA */
  --s-focus: #C2410C;       /* keyboard focus ring (5.2:1 on white) */

  /* Pastel pairs, one per module: a tag's background and its text. The coral tag's text is
     --s-coral-tag-ink, darker than --s-coral-ink: #C2410C on #FFE9E1 is only 4.4:1. */
  --s-coral-bg: #FFE9E1;  --s-coral-tag-ink: #B03A0A;
  --s-lilac-bg: #ECEAFF;  --s-lilac-ink: #5B4BD6;
  --s-mint-bg: #DDF6EC;   --s-mint-ink: #0F7A57;
  --s-butter-bg: #FFF3CC; --s-butter-ink: #7A5700;
  --s-sky-bg: #E1EEFF;    --s-sky-ink: #1764C0;
  --s-rose-bg: #FFE2E7;   --s-rose-ink: #B4233D;

  --s-font-display: 'Plus Jakarta Sans', 'Prodex Fallback', Arial, sans-serif;
  --s-font-body: 'Plus Jakarta Sans', 'Prodex Fallback', Arial, sans-serif;

  --s-step--1: 0.9375rem;                                 /* 15px: nav, footer, notes, tags */
  --s-step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);  /* 17–18px: body */
  --s-step-1: 1.25rem;                                    /* 20px: the terms beside a price */
  --s-step-2: 1.375rem;                                   /* 22px: h3 */
  --s-step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);    /* 28–40px: h2 */
  --s-step-4: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);   /* 34–52px: h1, and a price */
  --s-step-5: clamp(2.5rem, 1.55rem + 3.9vw, 4rem);       /* 40–64px: the hero */

  --s-space-1: 0.5rem;
  --s-space-2: 1rem;
  --s-space-3: 1.5rem;
  --s-space-4: 2.5rem;
  --s-space-5: 4.5rem;
  --s-space-6: 7.5rem;

  --s-gutter: 16px;         /* side gutter on a phone */
  --s-page: 72rem;          /* widest the page gets */
  --s-measure: 62ch;        /* line length for body copy — under 75 characters */
  --s-radius: 14px;         /* cards, inputs, screenshots */
  --s-radius-pill: 999px;   /* buttons and tags */
  --s-shot-shadow: 0 1px 2px rgba(20, 24, 33, 0.06), 0 22px 48px -12px rgba(20, 24, 33, 0.20);
  --s-lift: 0 1px 2px rgba(20, 24, 33, 0.05), 0 12px 32px -8px rgba(20, 24, 33, 0.16);
}

/* LAYOUT CLASSES later pages reuse:
   s-wrap      the page column (max --s-page, 16px gutter)
   s-section   a block with generous space either side (no rule)
   s-hero      the top of a page: the h1 (s-lede for a full sentence) over one screenshot
   s-job       words above a full-width screenshot. On a wide screen the heading sits left
               and the text right (s-job__words)
   s-pan       wraps a capture that has no phone version: on a phone it is shown wide in a
               strip you swipe (s-pan__hint is the line that says so)
   s-pair      two short sections side by side on a wide screen, stacked on a phone
   s-price     a plain price line: s-price__sum (the figure) and s-price__terms
   s-more      a "read more" link under a paragraph, in coral-ink
   s-end       the one action at the foot of a page
   s-top       the top of a page that opens with words, not a screenshot (with s-hero)
   s-cap       the word or two above a second or third screenshot in one section
   s-stack     paragraphs and a list in one column, with a line's space between them
   s-price--lead  the one price a page is about, set larger than its h1
   s-rows      a plain list with a rule between rows; s-rows--priced is a definition list of
               name, price (s-rows__price) and description (s-rows__desc), stacked on a phone
   s-qa        questions as headings, each with its answer under it
   s-form      a form in one column: s-field is a label with its control under it; the control
               is an s-input (48px tall, 18px text so a phone does not zoom in); s-hp keeps
               the field only a bot fills in off the screen
   s-note      what happened after a form was sent, in a box that opens with a bold word
               ("Sent." or "Not sent."), so it does not rely on colour
   s-rows__label  the plain word before a value in an s-rows line (Email, Phone, Hours)
   s-prose     a reading page (privacy, terms) in one column at the body measure; its title
               section is s-hero s-top s-legal-top, which sits close above it
   s-vs        the comparison table: three columns on a wide screen, stacked on a phone,
               where every cell says whose it is (s-vs__who)
   s-plan      the signup form: the fields (s-plan__fields) beside the running price
               (s-plan__sum, made of s-plan__line rows; s-plan__total sticks to the foot of
               a phone screen)
   s-pick      a row you tick: s-pick__words, s-pick__name, s-pick__desc and a price;
               s-picks rules a list of them, s-choice sets two side by side
   s-affix     an input with fixed text after it (".prodex.tv"); s-field--short is a field
               for a small number; s-code shows a typed code in capitals
   s-hint      the small line under a field, a total or a table
   s-narrow    one short message in a narrow column in the middle of the page
   s-facts, s-fact  pastel cards with a heading and a line or two (s-fact--mint|sky|rose);
               s-facts sets two side by side on a wide screen
   s-contact   the contact form (s-contact__form) beside its details card (s-contact__details)
   s-result    a signup result page: its h1 over one s-fact card
   s-tag       a pastel pill naming a module: s-tag--coral|lilac|mint|butter|sky|rose
   s-blob      a soft pastel shape behind a screenshot (aria-hidden, decorative):
               s-blob--coral|lilac|mint|butter|sky|rose; its parent must be positioned
   s-home-hero the home page's top: words (s-home-hero__words: __line, __tags, __act, __free)
               left of the screenshot on its blobs (s-home-hero__art), stacked on a phone
   s-switch    the logo's switch, drawn small and "on", before a short reassuring line
   s-home-svc  the key-services section: its heading and line (s-home-svc__head) over s-svcs
   s-svcs, s-svc  the grid of module cards (1, 2 then 3 across); s-svc--<tone> is the card's
               pastel fill, s-svc__top holds s-svc__name and the s-svc__addon pill,
               s-svc__line the one line
   s-block     words beside a screenshot on its blob (s-block__words, s-block__tag,
               s-block__art); s-block--flip puts the screenshot on the left. Stacked on a
               phone, words first
   s-home-pair, s-home-origin, s-home-price  the origin and price pair on the home page
   s-reviews   the customer reviews on the home page (absent until one is filled in): s-reviews__list
               holds s-review cards, each a quote, then s-review__photo (round, optional) and s-review__who
   s-feat      a module's section on /features (with s-block): s-feat__head (tags, heading,
               s-feat__terms for what it costs), s-feat__body (its paragraphs), s-feat__more
               (further screenshots, two across on a wide screen, each under an s-feat__cap).
               s-block--words lays out a module with no screenshot: heading left, text right
   s-feat-top  the top of /features: the hero h1, s-feat-top__intro, and s-jump, the list of
               links to each module's section, each an s-tag in the module's tone
   s-mod-top   the top of a module page (/features/<slug>, views/module-page.ejs): s-crumbs (the
               breadcrumb trail), the module's tag, the h1, s-top__intro, the button. s-points is the
               list of facts (s-points__item); s-cost the one line of what it costs; s-mod-related the
               links to the other module pages, set as s-jump tags
   s-end--coral   the closing band in soft coral, with a blob (s-end__words sits above it)
   s-menu      the phone menu: a <details> disclosure in the header, no script
   a-shell     the sign-in, sign-up and My Workspaces frame (views/partials/auth-shell.ejs):
               a-panel (the form on white: a-panel__top for the logo or a workspace's a-logo,
               a-panel__body, a-panel__body--long for a long form, a-foot) beside a-side, the
               pastel panel with a real screenshot (a-side__shot), hidden under 900px.
               a-shell--wide is one column under a top bar (a-top, a-top__row, a-top__brand,
               a-top__bar, a-top__who) with the content in a-wide
   a-title, a-sub  a sign-in page's heading and the line under it
   a-form      a sign-in form: s-field labels, s-input fields, one s-btn--primary s-btn--block;
               a-pass wraps a password with its Show button (a-pass__btn, wired by auth.js);
               a-check a tick with its words; a-row a line of small things side by side;
               a-busy the button while a form sends; a-code a short code in big digits
   a-alert     what the last try did: a-alert--error or a-alert--ok, opening with a bold word
   a-links, a-link, a-links__sep  the small links under a form, in coral-ink
   a-more      a disclosure holding a second small form (a-more__box); a-alt the line and
               button under a form for another way in
   a-ws        My Workspaces: a list of a-ws__item, each an a-ws__card (white, rounded) with
               a pastel a-ws__mark--coral|lilac|mint|sky|rose|butter, a-ws__words (a-ws__name,
               a-ws__sub), the arrow a-ws__go, and an a-ws__manage link; a-ws__staff the staff
               console's ink card; a-ws__empty the box shown with no workspaces
   a-steps     the setup wizard's steps (a-steps__on); a-card a white step card; a-step-form
               its form; a-grid (a-grid--2, a-grid--2s) fields side by side; a-choices and
               a-choice the two ways to start (a-choice__name, a-choice__desc); a-pills and
               a-pill ticks drawn as pills; a-actions (a-actions--end) the buttons at the foot;
               a-next (a-next__name, a-next__desc) where to go next
   a-section   a titled group of fields in the freelancer registration; a-photo (a-photo__img,
               a-photo__ph, a-file) its photo picker; a-ticks a box of ticks
   s-btn, s-btn--primary (coral pill, ink text), s-btn--large, s-btn--block (full width), s-shot, s-muted,
   s-visually-hidden; pdx-brand is the logo partial (views/partials/brand.ejs) */

/* The fallback face: Arial resized to Plus Jakarta Sans's widths and line box. Measured in
   Chromium with the web font loaded (canvas measureText at 1000px on English body text):
   Jakarta 400 is 4.12% wider than Arial on body text, and Jakarta 800 (what headings use)
   is 2.32% wider than Arial Bold on the site's headings; its line box is ascent 1.038em and descent 0.222em, no line gap. Each override below is that
   metric divided by the size-adjust. One face for regular weights, one for bold ones. */
@font-face {
  font-family: 'Prodex Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
  font-weight: 100 600;
  size-adjust: 104.12%;
  ascent-override: 99.69%;
  descent-override: 21.32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Prodex Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold');
  font-weight: 700 900;
  size-adjust: 102.32%;
  ascent-override: 101.45%;
  descent-override: 21.70%;
  line-gap-override: 0%;
}

/* ---- The logo (views/partials/brand.ejs): the switch mark, then the word ---- */
.pdx-brand { display: inline-flex; align-items: center; gap: 0.4em; line-height: 1; }
.pdx-brand svg { flex: none; display: block; }
.pdx-brand__word { font-family: 'Plus Jakarta Sans', 'Prodex Fallback', Arial, sans-serif; font-weight: 800; letter-spacing: -0.035em; text-transform: lowercase; }
.pdx-brand--ink .pdx-brand__word { color: #141821; }
.pdx-brand--white .pdx-brand__word { color: #FFFFFF; }

/* ---- Base: only on pages that have been rebuilt (<body class="site">) ---- */
body.site { margin: 0; background: var(--s-bg); color: var(--s-ink); font: 400 var(--s-step-0)/1.6 var(--s-font-body); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.site *, body.site *::before, body.site *::after { box-sizing: border-box; }
body.site h1, body.site h2, body.site h3 { font-family: var(--s-font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
body.site h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
body.site h1 { font-size: var(--s-step-4); }
body.site h2 { font-size: var(--s-step-3); }
body.site h3 { font-size: var(--s-step-2); }
body.site p { margin: 0; max-width: var(--s-measure); overflow-wrap: break-word; }
body.site a { color: inherit; text-underline-offset: 0.2em; }
body.site img { max-width: 100%; height: auto; display: block; }
.s-wrap { max-width: var(--s-page); margin: 0 auto; padding: 0 var(--s-gutter); }
.s-section { padding: var(--s-space-5) 0; }
.s-muted { color: var(--s-muted); }
.s-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Reviews ---- */
.s-reviews { background: var(--s-soft); border-radius: var(--s-radius); padding-left: var(--s-gutter); padding-right: var(--s-gutter); margin: var(--s-space-4) 0; }
.s-reviews h2 { margin-bottom: var(--s-space-3); }
.s-reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--s-space-3); }
.s-review { margin: 0; padding: var(--s-space-3); background: var(--s-surface); border-radius: var(--s-radius); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-space-2); }
.s-review blockquote { margin: 0; font-family: var(--s-font-display); font-weight: 500; letter-spacing: -0.01em; }
.s-review figcaption { display: flex; align-items: center; gap: 0.75rem; font-size: var(--s-step--1); }
.s-review__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---- Focus and motion: everywhere the new chrome appears ---- */
.s-nav :focus-visible, .s-foot :focus-visible, .s-skip:focus-visible, body.site :focus-visible { outline: 2px solid var(--s-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .s-btn, .s-nav__links a, .s-menu__panel a, .s-foot__col a, .s-more a { transition: background-color 0.15s ease, color 0.15s ease, text-decoration-color 0.15s ease, transform 0.15s ease; }
  .s-btn--primary:hover { transform: translateY(-1px); }
}

/* ---- Skip link ---- */
.s-skip { position: absolute; left: var(--s-gutter); top: -4rem; background: var(--s-ink); color: var(--s-bg); padding: 0.6rem 1rem; border-radius: var(--s-radius-pill); font: 700 var(--s-step--1)/1.2 var(--s-font-body); z-index: 20; }
.s-skip:focus { top: 0.5rem; }
body.site .s-skip { color: var(--s-bg); }   /* beats "body.site a", which would make it ink on ink */

/* ---- Buttons: full pills ---- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 44px; padding: 0 1.25rem; border-radius: var(--s-radius-pill); border: 1.5px solid var(--s-ink); font: 700 var(--s-step--1)/1 var(--s-font-body); letter-spacing: -0.005em; text-decoration: none; color: var(--s-ink); background: transparent; white-space: nowrap; cursor: pointer; }
.s-btn:hover { background: var(--s-soft); }
body.site .s-btn--primary, .s-btn--primary { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-accent-ink); }
body.site .s-btn--primary:hover, .s-btn--primary:hover { background: var(--s-coral-hover); border-color: var(--s-coral-hover); }
.s-btn--large { min-height: 56px; padding: 0 1.75rem; font-size: var(--s-step-0); }

/* ---- Tags: a pastel pill per module ---- */
.s-tag { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.3rem 0.85rem; border-radius: var(--s-radius-pill); background: var(--s-soft); color: var(--s-ink); font: 500 var(--s-step--1)/1.2 var(--s-font-body); white-space: nowrap; }
.s-tag--coral { background: var(--s-coral-bg); color: var(--s-coral-tag-ink); }
.s-tag--lilac { background: var(--s-lilac-bg); color: var(--s-lilac-ink); }
.s-tag--mint { background: var(--s-mint-bg); color: var(--s-mint-ink); }
.s-tag--butter { background: var(--s-butter-bg); color: var(--s-butter-ink); }
.s-tag--sky { background: var(--s-sky-bg); color: var(--s-sky-ink); }
.s-tag--rose { background: var(--s-rose-bg); color: var(--s-rose-ink); }

/* ---- Blobs: soft pastel shapes behind a screenshot. Each tone has its own shape and corner
   so two on one page do not look stamped out. The parent must be position: relative. ---- */
.s-blob { position: absolute; z-index: 0; pointer-events: none; width: 46%; aspect-ratio: 1 / 0.92; border-radius: 42% 58% 54% 46% / 48% 44% 56% 52%; }
.s-blob--coral { background: var(--s-coral-bg); top: -6%; right: -4%; }
.s-blob--lilac { background: var(--s-lilac-bg); bottom: -8%; left: -5%; width: 34%; border-radius: 58% 42% 46% 54% / 52% 60% 40% 48%; }
.s-blob--mint { background: var(--s-mint-bg); top: -7%; left: -4%; width: 40%; border-radius: 50% 50% 38% 62% / 60% 42% 58% 40%; }
.s-blob--butter { background: var(--s-butter-bg); bottom: -7%; right: -5%; width: 38%; border-radius: 62% 38% 56% 44% / 44% 56% 44% 56%; }
.s-blob--sky { background: var(--s-sky-bg); top: -6%; right: -5%; width: 42%; border-radius: 46% 54% 60% 40% / 54% 38% 62% 46%; }
.s-blob--rose { background: var(--s-rose-bg); bottom: -8%; left: -4%; width: 36%; border-radius: 40% 60% 48% 52% / 58% 50% 50% 42%; }
@media (max-width: 640px) {
  .s-blob { width: 52%; }   /* the gutter is narrow: shapes stay mostly behind the shot */
  .s-blob--butter, .s-blob--sky { right: -4%; }   /* no further than the 16px gutter, or the page scrolls sideways */
  .s-blob--lilac, .s-blob--rose, .s-blob--mint { left: -4%; }
}

/* ---- Header: brand, the button, then the links (or, on a phone, the menu) ---- */
.s-nav { position: relative; z-index: 10; background: var(--s-bg); color: var(--s-ink); font-family: var(--s-font-body); }
.s-nav__row { max-width: var(--s-page); margin: 0 auto; padding: 1rem var(--s-gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; }
.s-brand { display: inline-flex; align-items: center; color: var(--s-ink); text-decoration: none; margin-right: auto; }
.s-nav .pdx-brand { font-size: 1.5rem; }
.s-logo { width: auto; display: block; }
.s-nav__actions { display: flex; align-items: center; order: 2; }
.s-nav__links { display: flex; align-items: center; gap: 1.75rem; order: 1; }
.s-nav__links a { color: var(--s-ink); font-size: var(--s-step--1); font-weight: 500; text-decoration: none; padding: 0.75rem 0; }
.s-nav__links a:hover { color: var(--s-coral-ink); }
.s-nav__links .s-nav__login { font-weight: 700; margin-left: 0.25rem; }

/* The menu. A <details> needs no script; it is hidden on a wide screen, where the links sit
   in the row above instead. The row collapses at 900px, not 720px: the five links, the
   button and the logo need about 860px, more when signed in ("My Workspaces"), with an
   edited button label or an uploaded logo. The row also wraps, so content wider still
   drops to a second line instead of running past the gutter. */
.s-menu { display: none; order: 3; }
.s-menu > summary { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.95rem; border-radius: var(--s-radius-pill); border: 1.5px solid var(--s-ink); font: 700 var(--s-step--1)/1 var(--s-font-body); cursor: pointer; list-style: none; user-select: none; }
.s-menu > summary::-webkit-details-marker { display: none; }
.s-menu__icon { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.s-menu__icon::before, .s-menu__icon::after { content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.s-menu__icon::before { top: -5px; }
.s-menu__icon::after { top: 5px; }
.s-menu[open] .s-menu__icon { background: transparent; }
.s-menu[open] .s-menu__icon::before { top: 0; transform: rotate(45deg); }
.s-menu[open] .s-menu__icon::after { top: 0; transform: rotate(-45deg); }
.s-menu__panel { position: absolute; left: var(--s-gutter); right: var(--s-gutter); top: calc(100% - 0.25rem); display: grid; padding: 0.5rem; background: var(--s-bg); border-radius: var(--s-radius); box-shadow: var(--s-lift); outline: 1px solid var(--s-rule); }
.s-menu__panel a { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border-radius: 10px; color: var(--s-ink); font-weight: 500; text-decoration: none; }
.s-menu__panel a:hover { background: var(--s-soft); }
.s-menu__panel .s-nav__login { font-weight: 700; }
@media (max-width: 900px) {
  .s-nav__row { gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .s-nav__links { display: none; }
  .s-menu { display: block; }
  .s-nav .pdx-brand { font-size: 1.375rem; }
  .s-nav__actions .s-btn { padding: 0 1rem; }
  .s-nav__actions { min-width: 0; }
  .s-nav__actions .s-btn { white-space: normal; text-align: center; line-height: 1.15; padding-top: 0.4rem; padding-bottom: 0.4rem; }
}
@media (max-width: 400px) {
  .s-menu > summary { padding: 0; width: 44px; justify-content: center; }
  .s-menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---- Real screenshots: rounded, a soft shadow, no border ---- */
.s-shot { position: relative; isolation: isolate; margin: 0; }
.s-shot img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: var(--s-radius); box-shadow: var(--s-shot-shadow); background: var(--s-surface); }

/* ---- Page furniture: hero, a job, a pair, a price, the one action ---- */
.s-hero { padding: var(--s-space-4) 0 var(--s-space-5); }
body.site .s-lede { max-width: 16em; margin-bottom: var(--s-space-4); font-size: var(--s-step-5); line-height: 1.02; }

.s-job__words { display: grid; gap: var(--s-space-2); margin-bottom: var(--s-space-4); }
body.site .s-more { margin-top: var(--s-space-2); }
.s-more a { color: var(--s-coral-ink); font-weight: 700; text-decoration-line: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.s-more a:hover { color: var(--s-ink); }

.s-pan__hint { display: none; }
@media (max-width: 640px) {
  /* A wide capture on a phone: shown at 60% of its real size, edge to edge, swiped sideways. */
  .s-pan { overflow-x: auto; margin: 0 calc(-1 * var(--s-gutter)); padding: 0.25rem var(--s-gutter) 1.5rem; }
  .s-pan .s-shot { width: 54rem; padding-right: var(--s-gutter); box-sizing: content-box; }
  .s-pan .s-shot img { max-width: none; box-shadow: 0 1px 2px rgba(20, 24, 33, 0.06), 0 8px 18px rgba(20, 24, 33, 0.10); }
  body.site .s-pan__hint { display: block; margin-top: -0.5rem; color: var(--s-muted); font-size: var(--s-step--1); }
}

/* The strip takes keyboard focus so it can be scrolled with the arrow keys; it runs edge to
   edge, so its ring is drawn inside it where the whole ring can be seen. */
body.site .s-pan:focus-visible { outline-offset: -2px; }

.s-pair { display: grid; gap: var(--s-space-5); }
body.site .s-pair h2, body.site .s-end h2 { margin-bottom: var(--s-space-2); }
body.site .s-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; margin-bottom: var(--s-space-2); }
.s-price__sum { font: 800 var(--s-step-4)/1.05 var(--s-font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.s-price__terms { font-size: var(--s-step-1); }

.s-end { padding: var(--s-space-5) var(--s-space-3); margin: var(--s-space-4) 0 var(--s-space-5); background: var(--s-soft); border-radius: 28px; }
body.site .s-end p + p { margin-top: var(--s-space-3); }

/* ---- A long page of sections (features): words-first top, index, module line, captions ---- */
body.site .s-top h1 { margin-bottom: var(--s-space-3); }
.s-top { padding-bottom: var(--s-space-4); }
.s-job__words:last-child { margin-bottom: 0; }

/* ---- Stacks, plain rows and questions (pricing, contact, signup) ---- */
.s-stack { display: grid; gap: var(--s-space-2); }
.s-price--lead .s-price__sum { font-size: calc(var(--s-step-4) * 1.6); line-height: 1; }
body.site .s-stack .s-price { margin-bottom: 0; }
.s-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--s-rule); max-width: var(--s-measure); }
.s-rows > li { padding: 0.8rem 0; border-top: 1px solid var(--s-rule); font-weight: 700; }
.s-rows dt { font-weight: 700; overflow-wrap: break-word; }
.s-rows dd { margin: 0; }
.s-rows__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.s-rows__price span { font-weight: 400; color: var(--s-muted); }
body.site .s-qa h2, body.site .s-qa h3 { font-size: var(--s-step-1); line-height: 1.3; letter-spacing: -0.015em; margin-bottom: var(--s-space-1); }
body.site .s-qa p + h2, body.site .s-qa p + h3 { margin-top: var(--s-space-4); }

/* ---- A form (contact, signup): one column, labels above fields, a plain note for the result.
   Every text field, select and textarea is an s-input; ticks and radios keep the browser's
   own control in coral-ink (accent-color), and every control takes the site's focus ring. ---- */
.s-form { display: grid; gap: var(--s-space-3); max-width: 34rem; }
.s-field { display: grid; gap: 0.4rem; font-weight: 700; }
.s-input { width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; border: 1px solid var(--s-field); border-radius: 12px; background: var(--s-surface); color: var(--s-ink); font: 400 var(--s-step-0)/1.5 var(--s-font-body); }
.s-input:hover, .s-input:focus-visible { border-color: var(--s-ink); }
textarea.s-input { resize: vertical; }
.s-input::placeholder { color: var(--s-muted); opacity: 1; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.site .s-note { max-width: 34rem; padding: var(--s-space-2) var(--s-space-3); border: 1px solid var(--s-field); border-left: 6px solid var(--s-ink); border-radius: var(--s-radius); background: var(--s-soft); }
.s-rows__label { display: inline-block; min-width: 4.5em; font-weight: 400; color: var(--s-muted); }
.s-rows a { overflow-wrap: anywhere; }

/* ---- A reading page (privacy, terms) ---- */
/* a reading page opens close under its title */
.s-legal-top { padding-bottom: 0; }
.s-legal-top + .s-prose { padding-top: var(--s-space-3); }
body.site .s-prose > * + * { margin-top: var(--s-space-2); }
body.site .s-prose > h2 { font-size: var(--s-step-2); letter-spacing: -0.02em; margin-top: var(--s-space-4); }
.s-prose ul { margin-bottom: 0; padding-left: 1.25rem; max-width: var(--s-measure); }
.s-prose li + li { margin-top: 0.4rem; }
.s-prose table { width: 100%; max-width: var(--s-measure); border-collapse: collapse; border-bottom: 1px solid var(--s-rule); }
.s-prose th, .s-prose td { padding: 0.7rem 1rem 0.7rem 0; border-top: 1px solid var(--s-rule); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.s-prose th { font-weight: 700; }
.s-prose a { color: var(--s-coral-ink); overflow-wrap: anywhere; }
body.site .s-hint { font-size: var(--s-step--1); font-weight: 400; line-height: 1.5; color: var(--s-muted); }
.s-narrow { max-width: 34rem; margin-left: auto; margin-right: auto; }
body.site .s-narrow h1 { max-width: 11em; }   /* breaks at the same word in the web font and the fallback */

/* ---- The comparison table (/vs/…): the same type and colour for both products ---- */
.s-vs { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--s-rule); margin-bottom: var(--s-space-3); }
.s-vs th, .s-vs td { padding: var(--s-space-2) var(--s-space-4) var(--s-space-2) 0; border-top: 1px solid var(--s-rule); text-align: left; vertical-align: top; font-weight: 400; }
.s-vs thead th { border-top: 0; font-weight: 700; }
.s-vs tbody th { width: 18%; font-weight: 700; }
.s-vs td { width: 41%; }
.s-vs__who { display: none; }
@media (max-width: 720px) {
  .s-vs, .s-vs tbody, .s-vs tr, .s-vs th, .s-vs td { display: block; width: auto; }
  .s-vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .s-vs tbody tr { padding: var(--s-space-3) 0; border-top: 1px solid var(--s-rule); }
  .s-vs tbody th, .s-vs td { padding: 0; border: 0; }
  .s-vs tbody th { width: auto; font-size: var(--s-step-1); }
  .s-vs td { margin-top: var(--s-space-2); }
  .s-vs__who { display: block; font-weight: 700; font-size: var(--s-step--1); }
}

/* ---- The signup form: fields, rows you tick, and the running price ---- */
.s-plan { display: grid; gap: var(--s-space-3); }
.s-plan__fields { display: grid; gap: var(--s-space-5); margin-bottom: var(--s-space-3); }
.s-field--short .s-input { max-width: 8rem; }
.s-affix { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.s-affix .s-input { flex: 1; min-width: 0; }
.s-input.s-code { text-transform: uppercase; letter-spacing: 0.03em; }
.s-input.s-code::placeholder { text-transform: none; letter-spacing: 0; }
.s-picks { max-width: 40rem; border-bottom: 1px solid var(--s-rule); }
.s-pick { display: flex; align-items: flex-start; gap: 0.9rem; min-height: 48px; padding: var(--s-space-2) 0; border-top: 1px solid var(--s-rule); cursor: pointer; }
.s-pick input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--s-coral-ink); }
.s-pick__words { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.s-pick__name { font-weight: 700; }
.s-pick__desc { color: var(--s-muted); }
.s-pick .s-rows__price { white-space: nowrap; }
.s-choice { display: flex; flex-wrap: wrap; gap: 0 var(--s-space-4); }
.s-choice .s-pick { border-top: 0; padding: 0.7rem 0; }
.s-plan__sum, .s-plan__lines { display: grid; gap: var(--s-space-2); align-content: start; }
.s-plan__lines h2 { margin-bottom: var(--s-space-1); }
.s-plan__line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-variant-numeric: tabular-nums; }
body.site .s-plan__line .s-price { margin: 0; }
.s-plan__total { position: sticky; bottom: 0; padding: 0.75rem 0; background: var(--s-bg); border-top: 2px solid var(--s-ink); }
@media (max-width: 859px) {
  .s-plan__sum { display: contents; }   /* its parts join the form's one column, so the total can stay at the foot of the screen */
}

@media (min-width: 860px) {
  .s-hero { padding-top: var(--s-space-5); }
  .s-section { padding: var(--s-space-6) 0 var(--s-space-5); }
  .s-job__words { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-space-4); align-items: start; }
  .s-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-space-5); }
  .s-pair { padding-bottom: var(--s-space-5); }
  .s-end { padding: var(--s-space-5); }
  .s-plan { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-space-5); align-items: start; }
  .s-plan__sum { position: sticky; top: var(--s-space-3); gap: var(--s-space-3); padding: var(--s-space-3); background: var(--s-soft); border-radius: 28px; }
  .s-plan__total { position: static; background: transparent; }
}

/* ---- Footer: a soft band ---- */
.s-foot { background: var(--s-soft); color: var(--s-ink); font: 400 var(--s-step--1)/1.6 var(--s-font-body); }
.s-foot .pdx-brand { font-size: 1.3125rem; }
.s-foot__row { max-width: var(--s-page); margin: 0 auto; padding: var(--s-space-5) var(--s-gutter) var(--s-space-3); display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: var(--s-space-4) var(--s-space-3); }
body.site .s-foot__brand p, .s-foot__brand p { margin: 1rem 0 0; color: var(--s-muted); max-width: 30ch; }
.s-foot__col { display: flex; flex-direction: column; gap: 0.25rem; }
body.site .s-foot__col h2, .s-foot__col h2 { letter-spacing: 0; font: 700 var(--s-step--1)/1.2 var(--s-font-body); margin: 0 0 0.5rem; color: var(--s-ink); }
.s-foot__col a { color: var(--s-muted); text-decoration: none; padding: 0.3rem 0; }
.s-foot__col a:hover { color: var(--s-coral-ink); }
body.site .s-foot__copy, .s-foot__copy { max-width: var(--s-page); margin: 0 auto; padding: var(--s-space-2) var(--s-gutter) var(--s-space-4); color: var(--s-muted); }
@media (max-width: 720px) {
  .s-foot__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-foot__brand { grid-column: 1 / -1; }
}

.s-qa + .s-hint { margin-top: var(--s-space-4); }

/* ---- Home page (landing.ejs): hero, key services, blocks, the coral band ---- */
.s-home-hero { display: grid; gap: var(--s-space-5); align-items: center; }
body.site .s-home-hero .s-lede { max-width: 9em; margin-bottom: var(--s-space-3); }
body.site .s-home-hero__line { max-width: 30ch; text-wrap: pretty; font-size: var(--s-step-1); line-height: 1.5; color: var(--s-muted); }
.s-home-hero__tags { list-style: none; margin: var(--s-space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.site .s-home-hero__act { margin-top: var(--s-space-4); }
body.site .s-home-hero__free { display: flex; align-items: center; gap: 0.6rem; margin-top: var(--s-space-2); color: var(--s-muted); font-size: var(--s-step--1); font-weight: 500; }
.s-home-hero__art { position: relative; min-width: 0; }
body.site .s-home-svc { padding-top: var(--s-space-4); }
.s-switch { position: relative; flex: none; width: 1.625rem; height: 1rem; border: 2px solid var(--s-coral); border-radius: var(--s-radius-pill); }
.s-switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--s-coral); }

.s-home-svc__head { display: grid; gap: var(--s-space-2); margin-bottom: var(--s-space-4); }
.s-svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-space-2); grid-template-columns: minmax(0, 1fr); }
.s-svcs > li { display: flex; }
.s-svc { background: var(--s-soft); }
body.site .s-svc { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: var(--s-space-3); border-radius: 20px; color: var(--s-ink); text-decoration: none; }
.s-svc--coral { background: var(--s-coral-bg); }
.s-svc--lilac { background: var(--s-lilac-bg); }
.s-svc--mint { background: var(--s-mint-bg); }
.s-svc--butter { background: var(--s-butter-bg); }
.s-svc--sky { background: var(--s-sky-bg); }
.s-svc--rose { background: var(--s-rose-bg); }
.s-svc__top { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0.6rem; }
.s-svc__name { font: 800 var(--s-step-1)/1.2 var(--s-font-display); letter-spacing: -0.02em; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.s-svc:hover .s-svc__name { text-decoration-line: underline; }
.s-svc__addon { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0.15rem 0.7rem; border-radius: var(--s-radius-pill); background: var(--s-bg); font-size: 0.8125rem; font-weight: 700; line-height: 1.2; }
.s-svc--coral .s-svc__addon { color: var(--s-coral-tag-ink); }
.s-svc--lilac .s-svc__addon { color: var(--s-lilac-ink); }
.s-svc--mint .s-svc__addon { color: var(--s-mint-ink); }
.s-svc--butter .s-svc__addon { color: var(--s-butter-ink); }
.s-svc--sky .s-svc__addon { color: var(--s-sky-ink); }
.s-svc--rose .s-svc__addon { color: var(--s-rose-ink); }
.s-svc__line { line-height: 1.5; }

.s-block { display: grid; gap: var(--s-space-4); align-items: center; }
.s-block__words, .s-home-hero__words { position: relative; z-index: 1; }   /* stacked on a phone, a blob reaches up into the words */
.s-block__words { display: grid; gap: var(--s-space-2); align-content: start; }
body.site .s-block__tag { display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.site .s-block__words .s-more { margin-top: 0; }
.s-block__art { position: relative; min-width: 0; }
.s-block__art > :not(.s-blob) { position: relative; z-index: 1; }   /* the swipe hint and strip sit above the blob */

.s-end--coral { position: relative; overflow: hidden; isolation: isolate; background: var(--s-coral-bg); }
.s-end--coral .s-blob { width: 30%; bottom: -30%; right: -6%; }
@media (min-width: 860px) {
  .s-section.s-block { padding: var(--s-space-5) 0; }
}
.s-end__words { position: relative; z-index: 1; }

@media (min-width: 640px) {
  .s-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .s-home-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-space-5); }
  .s-home-svc__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-space-4); align-items: end; }
  .s-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-space-5); }
  .s-block--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .s-block--flip .s-block__words { order: 2; }
}

/* ---- Features (features.ejs): the jump list, one section per module ---- */
body.site .s-feat-top__intro { max-width: 40ch; font-size: var(--s-step-1); line-height: 1.5; color: var(--s-muted); text-wrap: pretty; }
.s-jump { list-style: none; margin: var(--s-space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.site .s-jump a { min-height: 44px; padding: 0 1rem; text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
body.site .s-jump a:hover { text-decoration-line: underline; }
body.site .s-jump .s-tag--coral { color: var(--s-coral-tag-ink); }   /* beats "body.site a", which would make the link ink */
body.site .s-jump .s-tag--lilac { color: var(--s-lilac-ink); }
body.site .s-jump .s-tag--mint { color: var(--s-mint-ink); }
body.site .s-jump .s-tag--butter { color: var(--s-butter-ink); }
body.site .s-jump .s-tag--sky { color: var(--s-sky-ink); }
body.site .s-jump .s-tag--rose { color: var(--s-rose-ink); }
.s-feat { scroll-margin-top: var(--s-space-3); }
.s-feat__head, .s-feat__body { display: grid; gap: var(--s-space-2); align-content: start; }
body.site .s-feat__terms { color: var(--s-muted); font-size: var(--s-step--1); font-weight: 500; }
.s-feat__more { grid-column: 1 / -1; list-style: none; margin: var(--s-space-3) 0 0; padding: 0; display: grid; gap: var(--s-space-4); }
.s-feat__more > div { min-width: 0; }
body.site .s-feat__cap { margin-bottom: var(--s-space-2); font-weight: 700; }
.s-block--words + .s-block--words { border-top: 1px solid var(--s-rule); }
@media (min-width: 860px) {
  .s-section.s-block--words { padding: var(--s-space-5) 0; }
  .s-feat__more { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-space-4); }
  .s-feat__more > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .s-block.s-block--words { grid-template-columns: minmax(0, 1fr); }
  .s-block--words .s-block__words { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-space-5); }
  .s-block--flip .s-feat__more { order: 3; }
}

/* ---- Module pages (module-page.ejs): breadcrumb, the facts, the cost line, the other pages ---- */
.s-crumbs ol { list-style: none; margin: 0 0 var(--s-space-3); padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: var(--s-step--1); color: var(--s-muted); }
.s-crumbs li + li::before { content: "\203A"; margin-right: 0.5rem; }
body.site .s-crumbs [aria-current] { display: inline-block; padding: 0.5rem 0; }   /* the same box as a link, so the last item shares their baseline */
body.site .s-crumbs a { color: var(--s-muted); text-decoration-line: underline; text-underline-offset: 0.2em; padding: 0.5rem 0; display: inline-block; }
body.site .s-crumbs a:hover { color: var(--s-ink); }
body.site .s-top .s-block__tag { margin-bottom: var(--s-space-2); }
body.site .s-top__intro { max-width: 40ch; margin-bottom: var(--s-space-3); font-size: var(--s-step-1); line-height: 1.5; color: var(--s-muted); text-wrap: pretty; }
.s-points { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--s-rule); max-width: var(--s-measure); }
.s-points__item { padding: 0.8rem 0; border-top: 1px solid var(--s-rule); }
body.site .s-cost { font-size: var(--s-step-1); font-weight: 700; text-wrap: pretty; }
.s-mod-related { padding-bottom: var(--s-space-5); }
body.site .s-mod-related h2 { font-size: var(--s-step-1); letter-spacing: -0.015em; }
.s-mod-related .s-jump { margin-top: var(--s-space-2); }
body.site .s-mod-related .s-jump a { color: var(--s-ink); }
.s-mod-related .s-jump .s-tag--coral { color: var(--s-coral-tag-ink); }

/* ---- Pricing (pricing.ejs): the base fee and the seat rule side by side, add-on cards ---- */
body.site .s-price-top__intro { max-width: 40ch; font-size: var(--s-step-1); line-height: 1.5; color: var(--s-muted); text-wrap: pretty; }
.s-plans { display: grid; gap: var(--s-space-2); }
.s-plan-card { display: grid; gap: var(--s-space-2); align-content: start; padding: var(--s-space-4) var(--s-space-3); border-radius: 28px; }
.s-plan-card--base { background: var(--s-coral-bg); }
.s-plan-card--seat { background: var(--s-mint-bg); }
body.site .s-plan-card h2 { font-size: var(--s-step-2); letter-spacing: -0.02em; }
body.site .s-plan-card .s-price { margin: var(--s-space-1) 0 0; }
body.site .s-plan-card__rule { font: 800 var(--s-step-2)/1.3 var(--s-font-display); letter-spacing: -0.02em; text-wrap: pretty; }
.s-plan-card__tags { list-style: none; margin: var(--s-space-1) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s-plan-card__tags .s-tag { background: var(--s-bg); }
body.site .s-addons-sec { padding-bottom: var(--s-space-4); }
.s-addons { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-space-2); grid-template-columns: minmax(0, 1fr); }
.s-addon { display: grid; gap: var(--s-space-1); align-content: start; padding: var(--s-space-3); border-radius: 20px; background: var(--s-soft); }
body.site .s-addon__price { margin-top: 0.25rem; font: 800 var(--s-step-1)/1.3 var(--s-font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.s-addon__price span { font: 400 var(--s-step--1)/1.3 var(--s-font-body); letter-spacing: 0; color: var(--s-muted); }
body.site .s-addon__desc { color: var(--s-muted); font-size: var(--s-step--1); line-height: 1.55; }
.s-addon .s-tag { white-space: normal; }
.s-example { margin-top: var(--s-space-4); padding-left: var(--s-space-3); border-left: 4px solid var(--s-coral); max-width: var(--s-measure); }
body.site .s-example__cap { margin-bottom: var(--s-space-1); font-weight: 700; }
@media (min-width: 640px) {
  .s-addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .s-plans { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .s-plan-card { padding: var(--s-space-4); }
  body.site .s-addons-sec .s-job__words { margin-bottom: var(--s-space-4); }
}
@media (min-width: 960px) {
  .s-addons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- About, Contact and the signup result pages: pastel fact cards, the form beside the details ---- */
.s-facts { display: grid; gap: var(--s-space-2); margin-bottom: var(--s-space-4); }
.s-fact { display: grid; gap: var(--s-space-2); align-content: start; padding: var(--s-space-4) var(--s-space-3); border-radius: 28px; background: var(--s-soft); }
.s-fact--mint { background: var(--s-mint-bg); }
.s-fact--sky { background: var(--s-sky-bg); }
.s-fact--rose { background: var(--s-rose-bg); }
body.site .s-fact h2 { font-size: var(--s-step-2); letter-spacing: -0.02em; }
body.site .s-fact .s-more { margin-top: 0; }
body.site .s-fact .s-more a { color: var(--s-ink); }   /* coral-ink is under 4.7:1 on a pastel */
.s-fact .s-rows, .s-fact .s-rows > li { border-color: var(--s-bg); }
.s-contact { display: grid; gap: var(--s-space-4); padding-bottom: var(--s-space-5); }
.s-contact__form { display: grid; gap: var(--s-space-3); align-content: start; min-width: 0; }
.s-contact__details { align-self: start; }
body.site .s-result h1 { margin-bottom: var(--s-space-3); }
@media (min-width: 860px) {
  .s-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-fact { padding: var(--s-space-4); }
  .s-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-space-5); }
}

/* ---- Sign-in, sign-up and My Workspaces (views/partials/auth-shell.ejs, spec §7.5) ----
   The form on white at the left; on a wide screen a pastel panel at the right with a real
   screenshot of the app (a CSS background, so a phone never downloads it). */
.s-btn--block { display: flex; width: 100%; }
body.site.a-body { min-height: 100vh; min-height: 100dvh; }
.a-shell { display: grid; min-height: 100vh; min-height: 100dvh; }
.a-panel { display: flex; flex-direction: column; gap: var(--s-space-4); min-width: 0; padding: var(--s-space-3) var(--s-gutter); }
.a-panel__top { min-height: 44px; display: flex; align-items: center; }
.a-panel__top .pdx-brand, .a-top__brand .pdx-brand { font-size: 1.5rem; }
.a-logo { height: 44px; width: auto; max-width: min(240px, 100%); object-fit: contain; }
.a-panel__body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 27rem; }
.a-foot { margin: 0; font-size: var(--s-step--1); color: var(--s-muted); }
body.site .a-title { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); margin-bottom: 0.5rem; }
body.site .a-sub { color: var(--s-muted); margin-bottom: var(--s-space-3); }
.a-form, .a-step-form { display: grid; gap: 1.25rem; }
.a-form .s-btn--primary { min-height: 52px; font-size: var(--s-step-0); margin-top: 0.25rem; }
.a-pass { position: relative; }
.a-pass .s-input { padding-right: 5rem; }
.a-pass__btn { position: absolute; top: 50%; right: 0.4rem; transform: translateY(-50%); min-height: 40px; padding: 0 0.8rem; border: 0; border-radius: 10px; background: transparent; color: var(--s-coral-ink); font: 700 var(--s-step--1)/1 var(--s-font-body); cursor: pointer; }
.a-pass__btn:hover { background: var(--s-soft); }
.a-pass__btn[hidden] { display: none; }
.a-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.a-check { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 500; cursor: pointer; }
.a-check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--s-coral-ink); flex: none; }
body.site .a-links { margin-top: var(--s-space-3); font-size: var(--s-step--1); color: var(--s-muted); }
body.site .a-links a, body.site .a-link, .a-more > summary { color: var(--s-coral-ink); font-weight: 700; }
body.site .a-links a, body.site .a-link { text-decoration: underline; text-decoration-thickness: 1px; }
body.site .a-links a:hover, body.site .a-link:hover { text-decoration-thickness: 2px; }
.a-links__sep { padding: 0 0.4em; }
.a-busy { pointer-events: none; opacity: 0.75; }

/* What came back from the last try: a box that opens with a bold word, so it does not rely
   on colour. a-alert--error and a-alert--ok set the edge. */
body.site .a-alert { margin: 0 0 var(--s-space-3); padding: 0.85rem 1rem; border: 1px solid var(--s-field); border-left: 6px solid var(--s-ink); border-radius: 12px; background: var(--s-soft); font-size: var(--s-step--1); line-height: 1.5; max-width: none; }
body.site .a-alert--error { border-left-color: var(--s-rose-ink); background: var(--s-rose-bg); }
body.site .a-alert--ok { border-left-color: var(--s-mint-ink); background: var(--s-mint-bg); }

/* The workspace login's "Forgot your password?": a disclosure with its own small form. */
.a-more { margin-top: var(--s-space-3); }
.a-more > summary { display: inline-flex; align-items: center; min-height: 44px; list-style: none; cursor: pointer; font-size: var(--s-step--1); text-decoration: underline; text-decoration-thickness: 1px; }
.a-more > summary::-webkit-details-marker { display: none; }
.a-more[open] > summary { text-decoration: none; }
.a-more__box { display: grid; gap: 1rem; margin-top: 0.75rem; padding: var(--s-space-3); border-radius: var(--s-radius); background: var(--s-soft); }
.a-more__box .s-hint { margin: 0; }
.a-alt { margin-top: var(--s-space-4); padding-top: var(--s-space-3); border-top: 1px solid var(--s-rule); display: grid; gap: 0.75rem; justify-items: start; }

/* A short code typed in big, spaced digits (two-step verification). */
.a-code.s-input { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.4em; text-align: center; }

/* The pastel panel: two blobs and the overview screen, cropped by the panel's edge. */
.a-side { display: none; }
@media (min-width: 900px) {
  .a-shell:not(.a-shell--wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .a-panel { padding: var(--s-space-4) clamp(2.5rem, 6vw, 5.5rem); }
  .a-side { display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--s-soft); }
  .a-side .s-blob--coral { width: 62%; top: -8%; right: -10%; }
  .a-side .s-blob--lilac { width: 48%; bottom: -10%; left: -12%; }
  .a-side__shot { position: absolute; z-index: 1; top: 16%; left: 12%; width: 118%; aspect-ratio: 1440 / 900; border-radius: var(--s-radius); box-shadow: var(--s-shot-shadow); background: var(--s-surface) url('/images/site/dashboard.webp') left top / cover no-repeat; background-image: image-set(url('/images/site/dashboard.webp') 1x, url('/images/site/dashboard@2x.webp') 2x); }
}

/* One column under a top bar: My Workspaces and the setup wizard. */
.a-top { background: var(--s-bg); border-bottom: 1px solid var(--s-rule); }
.a-top__row { max-width: 60rem; margin: 0 auto; padding: 0.75rem var(--s-gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.a-top__brand { display: inline-flex; align-items: center; min-height: 44px; }
.a-top__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; font-size: var(--s-step--1); }
.a-top__who { color: var(--s-muted); overflow-wrap: anywhere; }
@media (max-width: 639px) { .a-top__who { display: none; } }   /* a phone has no room for it beside the links */
body.site .a-top__bar a:not(.s-btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
body.site .a-top__bar a:not(.s-btn):hover { color: var(--s-coral-ink); text-decoration: underline; }
.a-wide { width: 100%; max-width: 60rem; margin: 0 auto; padding: var(--s-space-4) var(--s-gutter) var(--s-space-3); display: grid; gap: var(--s-space-3); align-content: start; }
.a-shell--wide { grid-template-rows: auto 1fr; }
.a-wide .a-foot { padding-top: var(--s-space-4); }
body.site .a-wide .a-sub { margin-bottom: 0; }

/* My Workspaces: a white, rounded card per workspace, with a pastel tile for its initial. */
.a-ws { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-space-2); align-items: start; }
.a-ws__item { display: grid; gap: 0.25rem; }
body.site .a-ws__card { display: flex; align-items: center; gap: 1rem; min-height: 84px; padding: 1rem 1.25rem; border: 1px solid var(--s-rule); border-radius: 20px; background: var(--s-surface); box-shadow: var(--s-lift); color: var(--s-ink); text-decoration: none; min-width: 0; }
body.site .a-ws__card:hover { border-color: var(--s-ink); }
.a-ws__mark { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font: 800 1.375rem/1 var(--s-font-display); letter-spacing: -0.02em; }
.a-ws__mark--coral { background: var(--s-coral-bg); color: var(--s-coral-tag-ink); }
.a-ws__mark--lilac { background: var(--s-lilac-bg); color: var(--s-lilac-ink); }
.a-ws__mark--mint { background: var(--s-mint-bg); color: var(--s-mint-ink); }
.a-ws__mark--sky { background: var(--s-sky-bg); color: var(--s-sky-ink); }
.a-ws__mark--rose { background: var(--s-rose-bg); color: var(--s-rose-ink); }
.a-ws__mark--butter { background: var(--s-butter-bg); color: var(--s-butter-ink); }
.a-ws__words { flex: 1; min-width: 0; display: grid; gap: 0.2rem; }
.a-ws__name { font-weight: 700; font-size: var(--s-step-1); letter-spacing: -0.015em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-ws__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--s-muted); font-size: var(--s-step--1); line-height: 1.3; overflow-wrap: anywhere; }
.a-ws__sub .s-tag { min-height: 1.6rem; padding: 0.15rem 0.65rem; }
.a-ws__go { flex: none; color: var(--s-ink); }
.a-ws__manage { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; font-size: var(--s-step--1); color: var(--s-muted); }
body.site .a-ws__manage { text-decoration: underline; text-decoration-thickness: 1px; color: var(--s-muted); }
body.site .a-ws__manage:hover { color: var(--s-coral-ink); }
body.site .a-ws__staff { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 20px; background: var(--s-ink); color: var(--s-bg); text-decoration: none; }
.a-ws__staff .a-ws__sub { color: var(--s-soft); }   /* 17:1 on ink */
.a-ws__staff .a-ws__go { color: var(--s-coral); }
body.site .a-ws__staff:focus-visible { outline-color: var(--s-focus); }
body.site .a-ws__empty { padding: var(--s-space-4) var(--s-space-3); border-radius: 20px; background: var(--s-soft); display: grid; gap: 0.5rem; }
body.site .a-ws__empty h2 { font-size: var(--s-step-2); letter-spacing: -0.02em; }
@media (min-width: 640px) {
  .a-ws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The setup wizard: four steps, then a card per step. */
.a-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.a-steps li { width: 2.5rem; height: 6px; border-radius: var(--s-radius-pill); background: var(--s-rule); }
.a-steps li.a-steps__on { background: var(--s-coral); }
body.site .a-card { padding: var(--s-space-3); border: 1px solid var(--s-rule); border-radius: 20px; background: var(--s-surface); box-shadow: var(--s-lift); display: grid; gap: var(--s-space-3); }
.a-grid { display: grid; gap: 1.25rem; }
.a-choices { display: grid; gap: var(--s-space-2); }
body.site .a-choice { display: grid; gap: 0.4rem; align-content: start; width: 100%; padding: var(--s-space-3); border: 1.5px solid var(--s-field); border-radius: 20px; background: var(--s-surface); color: var(--s-ink); text-align: left; font: 400 var(--s-step--1)/1.5 var(--s-font-body); cursor: pointer; }
body.site .a-choice:hover { border-color: var(--s-ink); background: var(--s-soft); }
.a-choice__name { font: 700 var(--s-step-1)/1.25 var(--s-font-display); letter-spacing: -0.015em; }
.a-choice__desc { color: var(--s-muted); }
.a-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; margin: 0; padding: 0; }
.a-pill { position: relative; display: inline-flex; }
.a-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--s-field); border-radius: var(--s-radius-pill); font-weight: 500; font-size: var(--s-step--1); }
.a-pill input:checked + span { background: var(--s-ink); border-color: var(--s-ink); color: var(--s-bg); font-weight: 700; }
.a-pill input:focus-visible + span { outline: 2px solid var(--s-focus); outline-offset: 2px; }
.a-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.a-actions--end { justify-content: flex-end; }
.a-next { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-space-2); }
body.site .a-next li { padding: var(--s-space-2) var(--s-space-3); border-radius: var(--s-radius); background: var(--s-soft); display: grid; gap: 0.25rem; }
.a-next__name { font-weight: 700; }
.a-next__desc { color: var(--s-muted); font-size: var(--s-step--1); }
@media (min-width: 720px) {
  .a-choices, .a-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-next { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.site .a-card { padding: var(--s-space-4); }
}

/* The freelancer registration: sections of fields, a photo, roles to tick. */
body.site .a-panel__body--long { justify-content: flex-start; max-width: 36rem; }
.a-section { display: grid; gap: 1.25rem; border: 0; margin: 0; padding: 0; min-width: 0; }
body.site .a-section > legend, body.site .a-section > h2 { padding: 0; margin-bottom: 1rem; font: 700 var(--s-step-2)/1.2 var(--s-font-display); letter-spacing: -0.02em; }
.a-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.a-photo .s-field { flex: 1 1 12rem; min-width: 0; }
.a-photo__img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--s-soft); flex: none; }
.a-photo__ph { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--s-coral-bg); color: var(--s-coral-tag-ink); font-weight: 800; flex: none; }
.a-photo__img:not([hidden]) + .a-photo__ph { display: none; }
.a-file { font: 400 var(--s-step--1)/1.4 var(--s-font-body); width: 100%; min-width: 0; }
.a-ticks { display: grid; gap: 0 1rem; max-height: 16rem; overflow-y: auto; padding: 0.25rem 0.75rem; border: 1px solid var(--s-field); border-radius: 12px; }
@media (min-width: 560px) { .a-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .a-grid--2s { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) {
  body.site .a-ws__card, body.site .a-choice, .a-pill span, .a-pass__btn { transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
  body.site .a-ws__card:hover { transform: translateY(-2px); }
}
.a-body [hidden] { display: none !important; }   /* a block shown or hidden by auth.js keeps its layout class */
.a-choice .s-tag { justify-self: start; }
/* A select drawn like the other fields: WebKit otherwise keeps its own short native control. */
.a-body select.s-input { -webkit-appearance: none; appearance: none; padding-right: 2.75rem; background: var(--s-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%23141821' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1rem center / 14px no-repeat; }
