/* VeloVision: the Roman shell. THE MANUAL for every agent who adds a page-specific picture.
   Loaded after style.css (after how.css on how-it-works) on every page except index.html and pricing.html.
   Everything is scoped under body.rm (<body class="rm">), so index.html and the old CSS are untouched. Nothing here may be
   renamed or removed: the shared pieces below (.rm-band, .rm-close, .rm-marble) are used on several pages.
   The pricing page no longer uses this shell: it is built like the homepage (home-v2.css, pricing-v2.css).

   THE LOOK (decisions, not options)
   - Ground: pure black #000 (--rm-ground) for the whole page, footer included. The generated pictures are on pure black and must melt into it.
   - Surfaces and bars: #25221E (--rm-bar), corners 4 px (--rm-radius; never more than 6 px), no border, no shadow, no gradient. Blocks nested in
     a surface have no fill and a 1 px hairline (white at 12 %: --rm-line). style.css/how.css read their corners from --bubble and --bubble-sm:
     body.rm sets both to 4 px / 2 px, so every old rounded rule is flat here.
   - Text on black or on #25221E: --ink #F3F3F2 (18.9:1 on black, 14.3:1 on the bar), --muted #B9B3A9 (10.1:1 / 7.6:1) for secondary lines.
   - Gold #F0B44C (--accent) only as small text (a label, a step number, a link) and as the fill of the ONE primary pill button of a block
     (.btn, .btn.on-gold). Secondary buttons and the footer button are outlined pills (.btn.small-btn, .hp-cta .btn). Text on marble stone: --rm-ink
     #141312, accent --rm-gold #875A00 (the shell's own tokens).
   - Flat: no glows, no blurred blobs, no gold-filled cards, no gold gradient panels, no bubbles, no doodles (every page is in NO_DOODLES in
     site/tools/doodles/place.py), no decorative icons. Motion: none added (the reveal-on-scroll from main.js stays as it was).
   - Pictures stand directly on the black ground, big and few (one per section at most), never inside a card, frame or rounded box, never
     tilted or cropped oddly, never repeated as decoration. No architecture as decoration (the arcade, the stone seating, the fallen column, the
     pillars and the ball on a pedestal were removed and stay out): a picture is an object that carries the block's own words (a scroll,
     a plaque) or the wreath. A picture's rectangular edge must be invisible: check the border pixels numerically
     (#000 within 3 levels) and fix the FILE (clamp near-black to black, or fade the outer few percent to #000), not the CSS.
   - Words on a picture are real HTML text on its blank face, positioned in percentages of the picture box and sized in container units
     Never bake text into an image.

   ------------------------------------------------------------------------------------------------------------------------------------------
   .rm-band : the carved divider (egg-and-dart moulding from carved-band.png)
     <div class="rm-band" aria-hidden="true"></div>                      page-wide: the one directly above <footer> on every page
     <div class="rm-band rm-band-col" aria-hidden="true"></div>          the 1240 px content column (pricing, coaches)
     <div class="rm-band rm-band-wide" aria-hidden="true"></div>         page width minus the side margins (how-it-works)
   Sizes: 34 px high on wide screens, 22 px up to 800 px. The picture is a repeating background: one tile = four periods of the pattern
   (assets/roman-band-133.webp for 1x, roman-band-267.webp for 2x, lossless, 133 x 34 px at 1x), laid with background-repeat: repeat-x and
   background-size 133px 34px (86px 22px on a phone: whole pixels, so the tiles meet without a hairline). Centred, so a partial tile is cut equally
   at both ends. Margin: half of --gap-section above, and the next element gets half of --gap-section as margin-top (body.rm .rm-band + *); a band right
   before the footer gives the footer margin-top 0. At most three per page, one of them above the footer. Pages without a footer (404, confirmed:
   <body class="rm rm-short">) end with the band as the floor of a one-screen page.

   .rm-close : the closing section, text only on black: the page's last word before the carved band and the footer. Use it on a page that
   already ends with a call to action; keep the page's own words and action.
     <section class="rm-close" aria-labelledby="...">                     keep the page's own id / class hooks (hw-close, ch-ask) and data-reveal
       <h2 class="head" id="...">...</h2>  <p>...</p>  <a class="btn on-gold" href="...">...</a>        the existing words and action, unchanged
     </section>
   Centred on every page (the columns above it differ from page to page: the marble block of pricing, the 1240 px column of coaches, the
   page-wide stage of how-it-works; the centre is the one axis they share, and it matches the band below). One column up to 1240 px wide,
   one grid row per element, 18 px apart. Heading up to 20 characters wide, sentence up to 44, the button as wide as its words (up to 800 px
   wide the button is full width, 440 px at most). Space: --gap-section above, half of it below, plus the band's own half above itself, so the block
   has the same air on both sides. Ground #000, no card, no picture, no rule, no decoration.

   .rm-marble : a dark stone surface (black marble, fine gold veins, from dark-marble.png). At most ONE panel per page, for a panel that deserves it.
     <section class="lg-card lg-key rm-marble" id="contact"> ... </section>        a card (Help contact, Privacy "short version", invite code)
     <section class="faq price-faq rm-marble" id="faq"> ... </section>             a page-wide block (pricing questions): body.rm .faq.rm-marble
                                                                                    gives it the column width and its padding; for another host, set
                                                                                    width, margin and padding on the host in your own stylesheet
   Fill: assets/roman-marble-1024.webp (1x) and roman-marble-1600.webp (2x) as a cover background on #0B0A09, corners 4 px. Items nested on it (.card drawers)
   have no fill, a 1 px hairline. TEXT CONTRAST: the picture was darkened IN THE FILE (highlights compressed above 3 % luminance, none above 5.6 % after
   encoding; no CSS gradient): the brightest vein anywhere has relative luminance 0.056, so --ink gives 8.9:1, --muted 4.8:1, --accent gold 5.4:1,
   links (--accent-hi) 6.8:1 at the very worst pixel. Use only those colours for text on it; --rm-ink and --rm-gold are for light stone.

   body.rm-short : 404 and confirmed (no footer): the body is a one-screen flex column and .rm-band is pushed to the bottom (margin-top: auto).

   Page tops: the headline, lead and action sit on black with nothing behind them (no picture, glow or rule). A picture of a page (the
   plaques on help and invite, the wreath on invite, the scrolls on pricing) is placed in the page body, never behind a headline.
   ------------------------------------------------------------------------------------------------------------------------------------------ */

:root {
  --rm-ink: #141312;
  --rm-gold: #875A00;
  --rm-bar: #25221E;
  --rm-ground: #000;
}

body.rm { background: var(--rm-ground); }

/* ======================================================================================================
   2. THE PAGE BASE
   ====================================================================================================== */
:root {
  --rm-line: rgba(255, 255, 255, 0.12);   /* the hairline: 1 px */
  --rm-radius: 4px;                       /* stone corners: square or barely softened, never more than 6 px */
}

/* style.css and how.css take every corner from --bubble and --bubble-sm: flatten both for the whole shell */
body.rm { --bubble: var(--rm-radius); --bubble-sm: 2px; }

/* no glow in the top corner (pricing, coaches), no glow on the 404 and confirmation ball */
body.rm .pz-hero::before { content: none; }
body.rm .nf-ball { filter: none; }
/* the doodle layer used to give the headline lines room for their descenders; it is no longer loaded */
body.rm .price-copy .line { padding-bottom: 0.25em; margin-bottom: -0.25em; }

/* footer: on the black ground, the large wordmark and the links on black, one hairline above the last row */
body.rm .footer { background: var(--rm-ground); }
body.rm .foot-last { padding-top: 24px; border-top: 1px solid var(--rm-line); }

/* buttons stay pills. Gold fill = the one primary action of a block. On the shell a button that sat on a gold panel
   (.on-gold) is that primary action; the footer button and the secondary buttons are outlined. */
body.rm .btn.on-gold { background: var(--accent); color: var(--on-accent); }
body.rm .btn.small-btn, body.rm .hp-cta .btn:not(.on-gold) { background: transparent; color: var(--ink); border: 1px solid rgba(243, 243, 242, 0.4); }
@media (hover: hover) and (pointer: fine) {
  body.rm .btn.on-gold:hover { background: var(--accent-hi); }
  body.rm .btn.small-btn:hover, body.rm .hp-cta .btn:not(.on-gold):hover { background: rgba(243, 243, 242, 0.1); }
}

/* ======================================================================================================
   3. CUT-STONE SURFACES: every card, list block, table, question card and form block
   Flat #25221E (--rm-bar), corners 4 px (--rm-radius), no border, no shadow, no gradient, no gold fill. Items nested inside a
   surface have no fill and a 1 px hairline. Gold only as small text (a label, a number, a link) and on the one primary pill.
   ====================================================================================================== */

/* the surfaces */
body.rm .lg-card, body.rm .lg-key, body.rm .tos-toc,
body.rm .pz-card, body.rm .pz-invite, body.rm .pz-cmp,
body.rm .ch-card, body.rm .ch-big,
body.rm .steps li, body.rm .pt-steps li, body.rm .ht-steps li,
body.rm .faq .card {
  background: var(--rm-bar); border: 0; border-radius: var(--rm-radius); color: var(--ink);
}
body.rm .pt-frame, body.rm .ht-frame { background: var(--rm-bar); border-radius: var(--rm-radius); }
/* the stadium picture runs into its card: no box, no ground of its own; its four edges fade out through a mask */
body.rm .ch-pic { background: none; border-radius: 0; }
body.rm .ch-pic img {
  --fl: 7%; --fr: 7%; --ft: 12%; --fb: 12%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / .16) calc(var(--fl) * .25), rgb(0 0 0 / .5) calc(var(--fl) * .5), rgb(0 0 0 / .84) calc(var(--fl) * .75), #000 var(--fl), #000 calc(100% - var(--fr)), rgb(0 0 0 / .84) calc(100% - var(--fr) * .75), rgb(0 0 0 / .5) calc(100% - var(--fr) * .5), rgb(0 0 0 / .16) calc(100% - var(--fr) * .25), transparent 100%), linear-gradient(to bottom, transparent 0, rgb(0 0 0 / .16) calc(var(--ft) * .25), rgb(0 0 0 / .5) calc(var(--ft) * .5), rgb(0 0 0 / .84) calc(var(--ft) * .75), #000 var(--ft), #000 calc(100% - var(--fb)), rgb(0 0 0 / .84) calc(100% - var(--fb) * .75), rgb(0 0 0 / .5) calc(100% - var(--fb) * .5), rgb(0 0 0 / .16) calc(100% - var(--fb) * .25), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / .16) calc(var(--fl) * .25), rgb(0 0 0 / .5) calc(var(--fl) * .5), rgb(0 0 0 / .84) calc(var(--fl) * .75), #000 var(--fl), #000 calc(100% - var(--fr)), rgb(0 0 0 / .84) calc(100% - var(--fr) * .75), rgb(0 0 0 / .5) calc(100% - var(--fr) * .5), rgb(0 0 0 / .16) calc(100% - var(--fr) * .25), transparent 100%), linear-gradient(to bottom, transparent 0, rgb(0 0 0 / .16) calc(var(--ft) * .25), rgb(0 0 0 / .5) calc(var(--ft) * .5), rgb(0 0 0 / .84) calc(var(--ft) * .75), #000 var(--ft), #000 calc(100% - var(--fb)), rgb(0 0 0 / .84) calc(100% - var(--fb) * .75), rgb(0 0 0 / .5) calc(100% - var(--fb) * .5), rgb(0 0 0 / .16) calc(100% - var(--fb) * .25), transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}

/* the key cards (Help "Write to us", Privacy "The short version", the invite code) are plain surfaces now */
body.rm .lg-key .dot::before { background: currentColor; }
body.rm .lg-key a.link { color: var(--accent-hi); }
body.rm .inv-status { color: var(--muted); }

/* labels: the small pills become small gold text */
body.rm .pz-card .pz-pill, body.rm .pz-invite .pz-pill, body.rm .ch-card .pz-pill,
body.rm .hp-tag, body.rm .faq .card .tab {
  background: none; color: var(--accent); padding: 0; border-radius: 0; border: 0;
}
body.rm .faq .card .tab { margin: 22px 0 0 24px; padding: 0; font-size: var(--step-small); }
@media (max-width: 800px) { body.rm .faq .card .tab { margin-left: 16px; } }

/* questions: every drawer is the same stone (style.css coloured every second one gold) */
body.rm .faq .card, body.rm .faq .card:nth-child(n) { --bgc: var(--rm-bar); --fg: var(--ink); }
body.rm .hp-q { background: none; border: 1px solid var(--rm-line); border-radius: 2px; }
body.rm .hp-q summary::after { background: none; color: var(--accent); width: auto; height: auto; font-size: 1.6rem; font-weight: 500; right: 20px; }
body.rm .hp-q summary { padding-right: 56px; }

/* pricing: the use cards, the invite block, the comparison table (the plans section is not touched) */
body.rm .pz-invite { background: var(--rm-bar); }
body.rm .pz-tags li, body.rm .pz-inv-list li { background: none; border-top: 1px solid var(--rm-line); border-radius: 0; padding-left: 0; padding-right: 0; }
body.rm .pz-tags .pz-tag { background: none; color: var(--ink); border: 1px solid var(--rm-line); border-radius: 2px; }
body.rm .pz-tags .pz-tag-pro { color: var(--accent); border-color: rgba(240, 180, 76, 0.5); }
body.rm .pz-inv-list b { background: none; color: var(--accent); padding: 0; }
body.rm .pz-inv-list li { grid-template-columns: 3.2em minmax(0, 1fr); }
body.rm .pz-cmp .pz-row-top > span:not(:first-child),
body.rm .pz-cmp .pz-row-top > span.pz-col-plus { background: none; padding: 0; border-radius: 0; }
body.rm .pz-cmp .pz-row-top > span.pz-col-pro, body.rm .pz-cmp .pz-row-top > span.pz-col-plus { color: var(--accent); }
body.rm .pz-cmp { --rm-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.4l2.6 2.6 5.4-5.6' fill='none' stroke='%23F0B44C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
body.rm .pz-cmp .pz-yes { background: var(--rm-check) center / 80% no-repeat; border-radius: 0; }
body.rm .pz-cmp .pz-no { background: none; border-radius: 0; }
body.rm .pz-cmp .pz-no::after { background: rgba(243, 243, 242, 0.4); }
@media (max-width: 760px) {
  body.rm .js .pz-cmp-tabs { background: none; border: 1px solid var(--rm-line); border-radius: 999px; }
  body.rm .pz-cmp-tabs button[aria-pressed="true"] { background: rgba(243, 243, 242, 0.12); color: var(--accent); }
}

/* coaches and how it works: the step numbers are gold figures, not gold discs */
body.rm .pt-steps .n, body.rm .ht-steps .n {
  background: none; color: var(--accent); width: auto; min-width: 1.1rem; height: auto; display: block; font-size: 1.5rem; border-radius: 0;
}
body.rm .steps li:first-child { background: var(--rm-bar); }

/* long words (an email address) wrap instead of pushing the page sideways at 320 px */
body.rm .legal a.link, body.rm .legal li { overflow-wrap: anywhere; }

/* terms: contents list and numbered sections */
body.rm .tos-toc a { border-radius: var(--rm-radius); }
body.rm .tos-toc a::before { background: none; color: var(--accent); width: auto; height: auto; justify-items: start; border-radius: 0; font-size: var(--step-body); }
body.rm .lg-doc .lg-card > h2::before { background: none; color: var(--accent); height: auto; padding: 0; border-radius: 0; justify-items: start; font-size: 1.1rem; }
body.rm .tos-eff { background: none; border: 1px solid var(--rm-line); border-radius: 2px; }

/* invite: three steps */
body.rm .lg-card .inv-steps li::before { background: none; color: var(--accent); width: auto; height: auto; border-radius: 0; display: block; font-size: 1.5rem; line-height: 1.1; }

/* ======================================================================================================
   5b. .rm-close: the closing section, text only on black (heading, sentence, action)
   ====================================================================================================== */
body.rm .rm-close {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px;
  max-width: 1240px; margin: var(--gap-section) auto 0; padding: 0 var(--margin) calc(var(--gap-section) / 2);
  background: var(--rm-ground); color: var(--ink); text-align: center;
}
body.rm .rm-close .head { max-width: 20ch; }
body.rm .rm-close p { max-width: 44ch; }
body.rm .rm-close .head, body.rm .rm-close p { text-wrap: balance; }   /* no single word alone on the last line */
body.rm .rm-close .btn { width: min(100%, 440px); max-width: none; margin: 6px 0 0; }
@media (min-width: 801px) { body.rm .rm-close .btn { width: auto; } }

/* ======================================================================================================
   5a. .rm-band: the carved egg-and-dart divider
   ====================================================================================================== */
body.rm .rm-band {
  display: block; width: 100%; height: 34px; margin: calc(var(--gap-section) / 2) 0 0;
  background-color: var(--rm-ground);
  background-image: url("../roman-band-133.webp");
  background-image: -webkit-image-set(url("../roman-band-133.webp") 1x, url("../roman-band-267.webp") 2x);
  background-image: image-set(url("../roman-band-133.webp") 1x, url("../roman-band-267.webp") 2x);
  background-repeat: repeat-x; background-position: center top; background-size: 133px 34px;   /* one tile = four egg-and-dart periods, whole pixels so the tiles join without a hairline */
  pointer-events: none; -webkit-user-select: none; user-select: none;
}
body.rm .rm-band-col { width: calc(100% - 2 * var(--margin)); max-width: calc(1240px - 2 * var(--margin)); margin-left: auto; margin-right: auto; }
body.rm .rm-band-wide { width: calc(100% - 2 * var(--margin)); margin-left: auto; margin-right: auto; }
body.rm .rm-band + * { margin-top: calc(var(--gap-section) / 2); }
body.rm .rm-band + .footer { margin-top: 0; }
@media (max-width: 800px) { body.rm .rm-band { height: 22px; background-size: 86px 22px; } }

/* a page without a footer (404, confirmed; body.rm-short): the page is one screen tall and the band is its floor */
body.rm.rm-short { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.rm.rm-short .rm-band { margin-top: auto; }

/* ======================================================================================================
   5c. .rm-marble: a dark stone surface (black marble, fine gold veins). One panel per page at most.
   ====================================================================================================== */
body.rm .rm-marble {
  background-color: #0B0A09;
  background-image: url("../roman-marble-1024.webp");
  background-image: -webkit-image-set(url("../roman-marble-1024.webp") 1x, url("../roman-marble-1600.webp") 2x);
  background-image: image-set(url("../roman-marble-1024.webp") 1x, url("../roman-marble-1600.webp") 2x);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 0; border-radius: var(--rm-radius); color: var(--ink);
}
/* a drawer of questions on the stone: no second fill, a hairline round every question */
body.rm .rm-marble .card, body.rm .rm-marble .card:nth-child(n) { --bgc: transparent; background: transparent; border: 1px solid var(--rm-line); }
/* pricing: the questions block is the panel (its width and padding follow the other blocks of the column) */
body.rm .faq.rm-marble {
  width: calc(100% - 2 * var(--margin)); max-width: calc(1240px - 2 * var(--margin)); margin-left: auto; margin-right: auto;
  padding: clamp(28px, 4.4vw, 64px) clamp(18px, 4.4vw, 64px);
}
