/* Phoenix AI Solutions · site.css
   The one shared stylesheet for every page. Plain scoped classes, no framework, no !important.
   Loads after /assets/brand/tokens.css (colours, fonts, category tones). Spec: docs/SYSTEM.md.

    1  Tokens, themes, kinds        10  Apps menu (always dark)
    2  Reset and base               11  Phone sheet and burger
    3  Type scale                   12  Logo rows, icon tiles, tabs, ticks
    4  Containers and section rhythm 13  Tables
    5  Buttons and links            14  FAQ and testimonial
    6  Icons                        15  Footer
    7  Pills and chips              16  Reveal
    8  Cards, bento, frames         17  Helpers
    9  Nav and its panels           18  Reduced motion
                                    19  Touch and phone defaults
                                    20  Shared section patterns: .tile-full, .split, the left edge
*/

/* ============================================================ 1. Tokens, themes, kinds */
:root {
  /* spacing scale: tight 4-8 (inside a control), component 12-32, layout 48-128 */
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px; --s-128: 128px;

  /* page rhythm: one gap between sections, tighter inside a band */
  --nav-h: 56px;
  --gutter: 24px;
  --gx: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));   /* the gutter, widened where a phone notch needs it */
  --sec-y: var(--s-96);        /* section padding, top and bottom */
  --sec-in: var(--s-64);       /* gap between sections that share a band */
  --head-gap: var(--s-48);     /* a section heading block to its content */

  /* surfaces (the dark block below swaps them) */
  --panel: #1c1c1e;                         /* dark panels and cards on dark */
  --on-dark-line: rgba(255, 255, 255, .10);
  --line-strong: #c7c7cc;                   /* outline of a control (button, chip): a firmer hairline */
  --line-field: #8e8e93;                    /* the border of a form field (3.3:1 on white, the 3:1 a control boundary needs) */
  --card: var(--paper);
  --hover: rgba(29, 29, 31, .06);           /* a quiet tint: a row, the current section's mark in the bar */
  --hover-strong: rgba(29, 29, 31, .11);    /* the bar's buttons: hovered, or their menu open (always one step above the current-section mark) */
  --press: rgba(29, 29, 31, .17);           /* pressed, or a menu pinned open by a click */
  --link: var(--blue);
  --ring: var(--blue);
  --nav-bg: rgba(255, 255, 255, .82);
  --shadow-float: 0 30px 60px -24px rgba(0, 0, 0, .25);   /* the one soft shadow: floating mockups on light */
  --wa-text: #052e16;                       /* dark green text on the WhatsApp button (4.5:1 or better) */
  --r-14: 14px; --r-20: 20px; --r-24: 24px; --r-pill: 980px;   /* the four corner radii of the system: frames and rows, cards, tiles, pills */
  --arrow-go: 4px;                          /* how far a link arrow travels on hover or press */

  /* the app words: deeper tone on white, brighter tone on black */
  --app-reach: var(--mk-mkt-light); --app-post: var(--mk-mkt-2-light); --app-score: var(--mk-int-light);
  --app-name-green: #2c7a14;

  /* motion: nothing uses linear or ease-in-out */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --d-hover: 200ms; --d-menu: 160ms; --d-faq: 200ms; --d-tab: 300ms; --d-sheet: 320ms; --d-reveal: 560ms; --stagger: 60ms;
  --reveal-y: 8px;             /* where a reveal starts: 8 below its place, so it never moves more than a hover is allowed to (SYSTEM section 7) */
}

/* Dark scope: the whole page (html[data-theme=dark]), a demo panel (data-theme=dark or .on-dark), or a surface that
   is always dark (footer, Apps menu, phone sheet, black bands). Paper becomes black, ink becomes on-dark, grey becomes #111114. */
:is([data-theme="dark"], .on-dark, .is-black, .footer, .apps-menu, .sheet, .nav.menu-open, .nav.is-over-dark) {
  color-scheme: dark;
  --paper: var(--black); --ink: var(--on-dark); --ink-2: var(--on-dark-2);
  --line: var(--on-dark-line); --line-strong: rgba(255, 255, 255, .28); --line-field: rgba(255, 255, 255, .45);
  --grey: var(--tile); --card: var(--panel); --hover: rgba(255, 255, 255, .08); --hover-strong: rgba(255, 255, 255, .15); --press: rgba(255, 255, 255, .22);
  --link: var(--blue-dark); --ring: var(--blue-dark); --nav-bg: rgba(0, 0, 0, .72);
  --app-reach: var(--mk-mkt-dark); --app-post: var(--mk-mkt-2-dark); --app-score: var(--mk-int-dark);
  --app-name-green: #6fbf4a;
  color: var(--ink);
}
html { color-scheme: light; }

/* Category kinds (rule 4): body[data-kind] on a product page, or data-kind on any element.
   --kind = the tone for graphics and fills, --kind-text = the tone for text and thin lines (readable on the surface). */
[data-kind="mkt"]  { --k-tile: var(--mk-mkt);   --k-light: var(--mk-mkt-light);   --k-dark: var(--mk-mkt-dark); }
[data-kind="mkt2"] { --k-tile: var(--mk-mkt-2); --k-light: var(--mk-mkt-2-light); --k-dark: var(--mk-mkt-2-dark); }
[data-kind="ops"]  { --k-tile: var(--mk-ops);   --k-light: var(--mk-ops-light);   --k-dark: var(--mk-ops-dark); }
[data-kind="int"]  { --k-tile: var(--mk-int);   --k-light: var(--mk-int-light);   --k-dark: var(--mk-int-dark); }
[data-kind] {
  --kind: var(--k-tile); --kind-text: var(--k-light);
  --kind-soft: color-mix(in srgb, var(--kind-text) 6%, transparent);          /* 6% on light, 8% on dark: the category text on its own tint stays at 4.5:1 or more (Operations on a grey band is 4.26, the token itself) */
  --kind-line: color-mix(in srgb, var(--kind-text) 42%, transparent);
}
:is([data-theme="dark"], .on-dark, .is-black, .footer, .apps-menu, .sheet) [data-kind],
[data-kind]:is(.on-dark, .is-black, .apps-menu) {
  --kind: var(--k-dark); --kind-text: var(--k-dark);
  --kind-soft: color-mix(in srgb, var(--kind-text) 8%, transparent);
  --kind-line: color-mix(in srgb, var(--kind-text) 46%, transparent);
}

/* ============================================================ 2. Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--s-8)); }   /* a #target lands 8 under the bar; site.js section 6 applies the same line (and focus) to every jump, and ignores a page's own scroll-margin */
html.is-locked { overflow: hidden; }          /* on html only: overflow on body too would make body the scroller and the sticky bar would scroll away with the page */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/24px var(--font-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--h-weight); }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, summary, label, [role="button"], [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }   /* no double-tap zoom delay, our own pressed states instead of the grey flash */
:focus-visible { outline: 2px solid var(--kind-text, var(--ring)); outline-offset: 2px; }
/* a jump target that is not itself a control (main, a section, a heading) takes focus with tabindex="-1" (site.js section 6): no ring round a whole section */
[tabindex="-1"]:not(a, button, input, select, textarea, summary, [role="button"], [role="tab"], [role="dialog"]):focus-visible { outline: 0; }
main { display: block; }
.skip {
  position: absolute; left: var(--s-16); top: -100px; z-index: 300; padding: var(--s-8) var(--s-16);
  background: var(--ink); color: var(--paper); border-radius: 980px; font-weight: 500;
}
.skip:focus { top: var(--s-8); }

/* ============================================================ 3. Type scale (desktop; phone sizes under 768) */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display); font-weight: var(--h-weight);
  text-box: trim-both cap alphabetic; text-wrap: balance;
}
.display { font-size: 72px; line-height: 76px; letter-spacing: -.01em; }
.h1 { font-size: 56px; line-height: 60px; letter-spacing: -.01em; }
.h2 { font-size: 44px; line-height: 48px; letter-spacing: 0; }
.h3 { font-size: 28px; line-height: 32px; letter-spacing: 0; }
.h4 { font-size: 21px; line-height: 28px; letter-spacing: 0; }
.lead { font: 400 21px/32px var(--font-text); color: var(--ink-2); }
.body { font: 400 17px/24px var(--font-text); }
.small { font: 400 15px/20px var(--font-text); }
.eyebrow { font: 500 13px/16px var(--font-text); color: var(--ink-2); letter-spacing: 0; }
.num { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* Mono is one step below the line it sits in, on the type scale (SYSTEM.md section 3), never under 13. :where() keeps each rule at the weight of a bare
   .num, so a page class on a big figure (a stat, a price tile) still wins, and the later rule wins between two contexts: 15 line = 13, 21 line = 17 ... */
:where(p, li, td, .body, .btn) .num { font-size: 15px; }                            /* in 17 body text, table cells, buttons */
:where(.small, .caption, .eyebrow, .chip, .pill, .sample-cap, .footer-copy, .des-more, th:not([scope="row"])) .num,
.num:where(.small, .caption, .eyebrow, .chip, .pill, th:not([scope="row"])) { font-size: 13px; }   /* in 15 and 13 lines, column headings (a row label, th scope="row", is read like a td), chips, the footer copyright; .des-more is a page caption that is a 13px line and should carry .caption, then leave this list (the build captions did, 13 Oct) */
:where(.lead, h4) .num { font-size: 17px; }                                         /* in 21 lead text (19 on a phone) and h4 */
:where(h3) .num { font-size: 21px; }                                                /* in a 28 heading (24 on a phone) */
:where(h2) .num { font-size: 28px; }                                                /* in a 44 heading (30 on a phone) */
:where(h1) .num { font-size: 1em; }                                                 /* a figure inside a headline is the headline size; big prices are Display, not .num (DEC-010) */
:where(.h4) .num { font-size: 17px; }                                               /* the class comes after the tag, so the look wins over the markup: <h2 class="h3"> is an h3 */
:where(.h3) .num { font-size: 21px; }
:where(.h2) .num { font-size: 28px; }
:where(.h1, .display) .num { font-size: 1em; }
.muted { color: var(--ink-2); }
p, li, dd, figcaption, blockquote, .lead, .small, .caption { text-wrap: pretty; }   /* no one-word last lines */
h1, h2, h3, h4 { text-wrap: balance; }                                             /* headings break evenly (the .display/.h* classes already did) */
.section-head .lead { text-wrap: balance; }
b, strong { font-weight: 600; }                                      /* Wix Madefor Text is loaded at 400, 500 and 600: no synthesised 700 */
@media (max-width: 767px) {
  .display { font-size: 44px; line-height: 48px; }
  .h1 { font-size: 36px; line-height: 40px; }
  .h2 { font-size: 30px; line-height: 36px; }
  .h3 { font-size: 24px; line-height: 28px; }
  .h4 { font-size: 19px; line-height: 24px; }
  .lead { font-size: 19px; line-height: 28px; }    /* h4 and lead share one size on phones too (19), so a page keeps seven sizes at every width */
}

/* ============================================================ 4. Containers and section rhythm */
.wrap, .wrap-md, .wrap-text { width: min(100% - 2 * var(--gx), 1180px); margin-inline: auto; }
.wrap-md { max-width: 1080px; }
.wrap-text { max-width: 680px; }
@media (max-width: 767px) { :root { --gutter: 16px; --sec-y: var(--s-64); --sec-in: var(--s-48); --head-gap: var(--s-32); } }

/* A section owns its top and bottom padding (96, 64 on phones) and nothing else: never a margin between sections. */
.section { padding-block: var(--sec-y); }
.is-grey { background: var(--grey); }
.is-black { background: var(--black); }

/* A band is one background holding several sections: the band pads its outside, the sections inside sit --sec-in apart,
   and the last section adds no bottom padding of its own. */
.band { padding-block: var(--sec-y); }
.band > .section { padding-block: 0; }
.band > .section + .section { padding-top: var(--sec-in); }

/* Neighbouring slabs on the same background share ONE gap: the next one drops its top padding. */
main > :is(.section, .band):not(.is-grey, .is-black) + :is(.section, .band):not(.is-grey, .is-black),
main > :is(.section, .band).is-grey + :is(.section, .band).is-grey,
main > :is(.section, .band).is-black + :is(.section, .band).is-black { padding-top: 0; }

/* Heading block: heading 16 above its lead, 48 (32 on phones) above the content it introduces. */
.section-head { max-width: 680px; margin-bottom: var(--head-gap); }
.section-head > * + * { margin-top: var(--s-16); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head > .eyebrow + * { margin-top: var(--s-12); }

/* Reading column */
.prose { max-width: 680px; }
.prose > * + * { margin-top: var(--s-16); }
.prose > h2, .prose > h3 { margin-top: var(--s-48); }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--s-12); }
.prose h2 { font-size: 28px; line-height: 32px; }
@media (max-width: 767px) { .prose h2 { font-size: 24px; line-height: 28px; } }
.prose h3 { font-size: 21px; line-height: 28px; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: var(--s-24); }
.prose li + li { margin-top: var(--s-8); }

/* ============================================================ 5. Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  height: 44px; padding: 0 var(--s-24);                       /* squish: vertical is about half the horizontal */
  border-radius: 980px; border: 0; cursor: pointer; white-space: nowrap;
  font: 500 17px/1 var(--font-text); letter-spacing: 0;
  transition: background-color var(--d-hover) var(--ease), color var(--d-hover) var(--ease),
              box-shadow var(--d-hover) var(--ease), transform var(--d-hover) var(--ease);
}
.btn-sm { height: 40px; padding: 0 var(--s-16); font-size: 15px; }
@media (max-width: 767px), (pointer: coarse) { .btn-sm { height: 44px; } }                 /* the inline button is a 44 target on a phone or a tablet in the hand */
.btn-lg { height: 48px; padding: 0 var(--s-32); font-size: 17px; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled { opacity: .4; pointer-events: none; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; margin-inline: -2px; }

.btn-primary { background: var(--blue); color: #fff; --app-name-green: #baf0a7; } /* a light green keeps tagged app words readable on indigo */
.btn-primary:focus-visible { outline-color: var(--ring); }
.btn-secondary { background: transparent; color: var(--kind-text, var(--ink)); box-shadow: inset 0 0 0 1px var(--kind-line, var(--line-strong)); }
.btn-wa { background: var(--wa); color: var(--wa-text); }                  /* the only green button */
@media (hover: hover) {
  .btn-primary:hover { background: var(--blue-hover); }
  .btn-secondary:hover { background: var(--kind-soft, var(--hover)); box-shadow: inset 0 0 0 1px var(--kind-text, var(--ink)); }
  .btn-wa:hover { background: #1fbd5b; }
}
/* the same states drawn on purpose (design-system page) */
.btn-primary.is-hover { background: var(--blue-hover); }
.btn-secondary.is-hover { background: var(--kind-soft, var(--hover)); box-shadow: inset 0 0 0 1px var(--kind-text, var(--ink)); }
.btn-wa.is-hover { background: #1fbd5b; }
.btn.is-active { transform: scale(.98); }
.btn.is-focus { outline: 2px solid var(--kind-text, var(--ring)); outline-offset: 2px; }
.btn-primary.is-focus { outline-color: var(--ring); }

/* text link with a thin arrow that moves 4px right on hover (--arrow-go) */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-4); color: var(--ink);
  font: 500 15px/20px var(--font-text);
}
.link-arrow::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--d-hover) var(--ease);
}
.link-arrow.is-hover::after, .link-arrow:active::after { transform: translateX(var(--arrow-go)); }
@media (hover: hover) { .link-arrow:hover::after { transform: translateX(var(--arrow-go)); } }
/* one colour rule: ink by default; indigo (.is-accent) only when the link is the section's action, never as decoration */
.link-arrow.is-accent { color: var(--link); }

/* ============================================================ 6. Icons (sprite.svg) */
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.ic-kind { color: var(--kind-text, currentColor); }
.crest { width: 22px; height: 22px; flex: none; display: block; }

/* ============================================================ 7. Pills and chips (height 28, 13px 500) */
.pill, .chip {
  display: inline-flex; align-items: center; gap: var(--s-8); height: 28px; padding: 0 12px;
  border-radius: 980px; white-space: nowrap; font: 500 13px/1 var(--font-text); letter-spacing: 0;
}
.pill { color: var(--kind-text, color-mix(in srgb, var(--ink-2) 75%, var(--ink))); background: var(--kind-soft, var(--hover)); }   /* neutral text a step firmer than ink-2: 5.6:1 on the tint */
.pill-neutral { --kind-text: color-mix(in srgb, var(--ink-2) 75%, var(--ink)); --kind-soft: var(--hover); }   /* a neutral pill on a product page, where a bare .pill would take the page's kind colour */
.chip { color: var(--kind-text, var(--ink)); background: transparent; box-shadow: inset 0 0 0 1px var(--kind-line, var(--line-strong)); }
.pill .ic, .chip .ic { width: 16px; height: 16px; margin-left: -2px; }
.pill-ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.pill.dot::before, .chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--kind, var(--ink-2)); flex: none; }
a.chip, button.chip { cursor: pointer; transition: background-color var(--d-hover) var(--ease), box-shadow var(--d-hover) var(--ease); }
a.chip:not([aria-pressed="true"], .is-on):active, button.chip:not([aria-pressed="true"], .is-on):active { background: var(--kind-soft, var(--hover)); }
@media (hover: hover) { a.chip:not([aria-pressed="true"], .is-on):hover, button.chip:not([aria-pressed="true"], .is-on):hover { background: var(--kind-soft, var(--hover)); } }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }                    /* selected = solid ink, one look site-wide ... */
[data-kind] .chip[aria-pressed="true"], .chip[data-kind][aria-pressed="true"], [data-kind] .chip.is-on, .chip[data-kind].is-on {   /* ... except on a product page, where it is the kind's tint and ring */
  background: var(--kind-soft); color: var(--kind-text); box-shadow: inset 0 0 0 1px var(--kind-text);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.sample-cap { position: absolute; left: var(--s-12); bottom: var(--s-12); z-index: 1; background: var(--paper); }   /* .sample.sample-cap: inside a figure with made-up data, bottom-left, always the same place */
.sample {                                   /* made-up numbers and quotes always carry this */
  display: inline-flex; align-items: center; align-self: flex-start; height: 24px; padding: 0 12px; border-radius: 980px;
  font: 500 13px/1 var(--font-text); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap;
}

/* the three app words (rule 5: Phoenix is black or white, the app word has the colour) */
.app-reach { color: var(--app-reach); }
.app-post { color: var(--app-post); }
.app-score { color: var(--app-score); }
.app-word.app-reach, .app-word.app-post { color: var(--app-name-green); }

/* ============================================================ 8. Cards, bento, mockup frames */
.card {
  display: block; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  padding: var(--s-24);                                       /* padding stays within the 24 gap + 8 */
  transition: transform var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease);
}
.card-lg { padding: var(--s-32); }
.card.is-soft { background: var(--grey); }
@media (hover: hover) { .card:not(.card-static):hover { transform: translateY(-2px); border-color: var(--line-strong); } }
.card.is-hover { transform: translateY(-2px); border-color: var(--line-strong); }
/* a card that opens on a small line (eyebrow, caption) gets the same cap-height trim the headings carry, so 24 of padding reads as 24 (harmless where unsupported) */
.card > :is(.eyebrow, .small, .caption):first-child { text-box: trim-start cap alphabetic; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-16); }
.tile {
  grid-column: span 12; position: relative; display: flex; flex-direction: column;
  background: var(--grey); color: var(--ink); border-radius: 24px; overflow: hidden;
}
.tile.is-paper { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tile.is-black { background: var(--tile); }
.tile-text { display: flex; flex-direction: column; padding: var(--s-32); }
.tile-text > * + * { margin-top: var(--s-12); }
.tile-text > .eyebrow + * { margin-top: var(--s-8); }          /* a kicker hugs the heading under it */
.tile-media { margin-top: auto; padding-left: var(--s-32); }          /* the mockup bleeds off the right and bottom edges */
.tile-media > .frame-window { border-radius: 14px 0 0 0; border-right: 0; border-bottom: 0; }
.tile-media.is-center { padding: 0 var(--s-32); }
.tile-media.is-center > .frame-window { border-radius: 14px 14px 0 0; border-right: 1px solid var(--line); }
@media (min-width: 900px) {
  .tile { min-height: 240px; }
  .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
  .row-2 { grid-row: span 2; }
}

.frame-window { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.frame-bar { flex: none; display: flex; align-items: center; gap: var(--s-8); height: 36px; padding: 0 var(--s-16); background: var(--grey); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame-shadow { box-shadow: var(--shadow-float); }
:is([data-theme="dark"], .on-dark, .is-black) .frame-window { background: var(--tile); }       /* its own surface on dark: black on a black page read as a hole */
:is([data-theme="dark"], .on-dark, .is-black) .frame-bar { display: none; }               /* no title-bar dots on dark */
:is([data-theme="dark"], .on-dark, .is-black) .frame-shadow { box-shadow: none; }         /* the soft shadow is for light only */
@media (max-width: 479px) { .frame-bar { height: 12px; padding: 0; } .frame-bar i { display: none; } }   /* a phone shows the hairline, not the three dots */

/* ============================================================ 9. Nav and its panels */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); }
.nav::before {                                                  /* the blur sits on a pseudo-element so the phone sheet can stay fixed */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nav-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background-color var(--d-menu) var(--ease);
}
.nav.menu-open::before { background: var(--black); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav.menu-open { touch-action: none; }                       /* a swipe on the bar does not move the page behind the sheet */
.nav-in { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--s-24); height: 100%; width: min(100% - 2 * var(--gx), 1180px); margin-inline: auto; }
.footer-brand .phx-logo {
  display: inline-flex; align-items: center; gap: var(--s-8); flex: none; min-height: 44px; color: var(--ink);       /* 44 high to tap, no taller to look at */
  font: 500 17px/1 var(--font-display); letter-spacing: 0;
}
.phx-logo .word { display: block; }

/* ---- Nav logo: the brand main logo (SMALL drawing) and its "Letters rise" reveal -----------------------------------------
   Drawing, proportions and timings are copied from assets/brand/logo-main.html + logo.css and scoped to the bar, so the footer's
   static crest and word are untouched. --phx-h is the crest height = the height of the whole logo (the identity's smallest is 24px).
   It plays once per browser session: the script in <head> (layout.html) adds html.logo-reveal on the first page load only
   (sessionStorage "phx-logo-played"), and not under reduced motion. The phone sheet is outside .nav-in, so it never plays there.
   The link keeps its 44px tap height; the reveal only moves things inside the drawing, so the bar and the link box never change.
   Fill is "backwards", not the brand's "both": the end state of every keyframe is the drawing's own state, and holding it as a running
   animation leaves the logo on a compositor layer that renders it softer than the still one. This way the settled logo is the still logo. */
.nav-in .phx-logo {
  --phx-h: 24px;
  --phx-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --phx-ease-glide: cubic-bezier(0.65, 0, 0.25, 1);
  display: inline-flex; align-items: center; flex: none; min-height: 44px; line-height: 0; color: var(--ink);
}
.nav-in .phx-logo, .footer-brand .phx-logo { transition: color var(--d-hover) var(--ease); }       /* the logo's ink changes with the page (white on a dark page, ink on a light one): the same transition as the bar's links */
/* 4 Nov 2026 (owner mark T2): on a wide window the Phoenix word sits 48 px left of the page's content edge. The right margin takes the 48 back,
   so the links and the button stay where they were. Narrower than 1321 px nothing moves. */
@media (min-width: 1321px) { .nav-in .phx-logo { margin-left: -48px; margin-right: 48px; } }
.nav-in .phx-svg { display: block; overflow: visible; height: var(--phx-h); width: auto; }
.nav-in .phx-tb { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  /* 1. the crest fades up in the centre   2. the whole logo glides left   3. the letters rise one by one */
  .logo-reveal .nav-in .phx-crest { animation: phx-crest-in 750ms var(--phx-ease-soft) 100ms backwards; }
  .logo-reveal .nav-in .phx-all   { animation: phx-glide 1150ms var(--phx-ease-glide) 900ms backwards; }
  .logo-reveal .nav-in .phx-l     { animation: phx-rise 700ms var(--phx-ease-soft) calc(1160ms + var(--i, 0) * 55ms) backwards; }
}
@keyframes phx-crest-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes phx-glide { from { transform: translateX(var(--phx-shift, 0px)); } to { transform: translateX(0); } }
@keyframes phx-rise { from { opacity: 0; transform: translateY(550px); } to { opacity: 1; transform: translateY(0); } }
/* ---- end Nav logo ---- */
.nav-links { display: flex; align-items: center; gap: var(--s-4); margin-left: var(--s-8); }
.nav-item { position: relative; display: flex; align-items: center; height: var(--nav-h); }
.nav-item[data-nav-key="apps"] { position: static; }          /* the Apps menu hangs from the whole bar, not from its button */
.nav-link {
  display: inline-flex; align-items: center; gap: var(--s-4); height: 32px; padding: 0 12px; border-radius: 980px;
  font: 500 15px/1 var(--font-text); color: var(--ink); white-space: nowrap;
  transition: background-color var(--d-hover) var(--ease);
}
.nav-link[aria-expanded]::after {
  content: ""; width: 12px; height: 12px; background: currentColor; opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--d-menu) var(--ease);
}
.nav-link[aria-expanded="true"]::after { transform: rotate(180deg); }
/* Four looks on one pill, each a step stronger and all with the same 200ms background transition: the current section (a quiet tint, written with :where() so it
   never outranks the others), then hovered or menu open, then pressed or a menu pinned by a click (.is-pinned, set by site.js). The current section's own button
   therefore still answers a hover. */
:where(body[data-nav="apps"] .nav-item[data-nav-key="apps"]) > .nav-link,
:where(body[data-nav="build"] .nav-item[data-nav-key="build"]) > .nav-link,
:where(body[data-nav="how"] .nav-item[data-nav-key="how"]) > .nav-link,
:where(body[data-nav="customers"] .nav-item[data-nav-key="customers"]) > .nav-link,
:where(body[data-nav="pricing"]) .nav-link[data-nav-key="pricing"] { background: var(--hover); }
.nav-link[aria-expanded="true"] { background: var(--hover-strong); }
@media (hover: hover) { .nav-link:hover { background: var(--hover-strong); } }
.nav-link.is-pinned, .nav-link:active { background: var(--press); }
.nav-actions { display: flex; align-items: center; gap: var(--s-8); margin-left: auto; }
.nav-actions .btn.is-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (hover: hover) { .nav-actions .btn.is-quiet:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--ink); } }
.nav.menu-open .nav-actions .btn { visibility: hidden; }                  /* the open phone menu has its own WhatsApp button at the foot: one call to action */

/* hover and click panels: a card with a hairline and a soft shadow, 160ms fade and a 4px rise */
.nav-panel, .apps-menu {
  position: absolute; top: calc(100% + var(--s-8)); left: 0; z-index: 5;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity var(--d-menu) var(--ease), transform var(--d-menu) var(--ease);
}
.nav-panel[hidden], .apps-menu[hidden], .sheet[hidden] { display: none; }
.nav-panel.is-open, .apps-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nav-panel {
  display: flex; flex-direction: column; gap: 2px; width: max-content; min-width: 248px; max-width: 340px; padding: var(--s-8);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-20); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .18);
}
.nav-panel a {
  display: block; padding: var(--s-8) var(--s-12); border-radius: var(--r-14); color: var(--ink);
  font: 400 15px/20px var(--font-text); transition: background-color var(--d-hover) var(--ease);
}
@media (hover: hover) { .nav-panel a:hover { background: var(--hover); } }
.nav-panel-wide { display: grid; grid-template-columns: repeat(2, minmax(230px, 1fr)); gap: var(--s-8); width: auto; min-width: 520px; max-width: none; padding: var(--s-12); }
.nav-panel-wide[hidden] { display: none; }
.nav-col { display: flex; flex-direction: column; gap: 2px; }
.nav-col-title { padding: var(--s-8) var(--s-12) var(--s-4); color: var(--ink-2); font: 500 13px/16px var(--font-text); }

/* the burger, shown with the phone sheet (under 1024) */
.nav-burger { display: none; position: relative; flex: none; width: 44px; height: 44px; margin-right: -13px; border-radius: 50%; color: var(--ink); }   /* the bars, not the button, line up with the gutter */
.nav-burger span {
  position: absolute; left: 13px; right: 13px; top: 50%; height: 2px; margin-top: -1px; border-radius: var(--r-pill); background: currentColor;
  transition: transform var(--d-menu) var(--ease);
}
.nav-burger span:first-child { transform: translateY(-4px); }
.nav-burger span:last-child { transform: translateY(4px); }
.nav-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.nav-cta-long { display: inline; }
@media (max-width: 1023px) {
  .nav-links, .nav-panel, .apps-menu { display: none; }
  .nav-burger { display: block; }
  .nav-cta-long { display: none; }
}
@media (max-width: 1023px), (pointer: coarse) { .nav-actions .btn { height: 44px; } }      /* the Talk-to-us pill is a 44 target on a phone or a tablet in the hand */

/* ============================================================ 10. Apps menu (always dark, even over a white page) */
/* Rule B3: one row per app (mark 40, name with the coloured word, one line, category pill with its arc); hover = a thin
   outline in the app's colour and the arrow turns to it; the emblem (32) heads the three kinds. The markup comes from
   /assets/brand/apps-menu.html (site.js unwraps it into #apps-panel); this block is the only styling it gets. */
.apps-menu {
  width: min(920px, 100%); overflow: hidden; background: var(--tile); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); font: 400 15px/20px var(--font-text);
}
.apps-menu .mn-panel { display: grid; grid-template-columns: 1.55fr 1fr; }
.apps-menu .mn-left { padding: var(--s-24); }
.apps-menu .mn-right { display: flex; flex-direction: column; padding: var(--s-24); background: var(--dark-1); border-left: 1px solid var(--line); }
.apps-menu .mn-h { display: flex; justify-content: space-between; gap: var(--s-12); margin-bottom: var(--s-12); color: var(--on-dark-3); font: 500 13px/16px var(--font-text); }
.apps-menu .on-d { color: #fff; }

/* each kind's colour on black; Post is the darker green */
.apps-menu .c-mkt  { --c: var(--mk-mkt-dark); }
.apps-menu .c-mkt2 { --c: var(--mk-mkt-2-dark); }
.apps-menu .c-ops  { --c: var(--mk-ops-dark); }
.apps-menu .c-int  { --c: var(--mk-int-dark); }
.apps-menu :is(.c-mkt, .c-mkt2, .c-ops, .c-int) {
  --c-soft: color-mix(in srgb, var(--c) 15%, transparent);
  --c-line: color-mix(in srgb, var(--c) 46%, transparent);
}
.apps-menu .apptile { display: block; flex: none; width: 1em; height: 1em; --tile: #111114; --rim: .2; }
.apps-menu .apptile.t-mkt { --c: var(--mk-mkt); } .apps-menu .apptile.t-mkt2 { --c: var(--mk-mkt-2); }
.apps-menu .apptile.t-ops { --c: var(--mk-ops); } .apps-menu .apptile.t-int { --c: var(--mk-int); }

.apps-menu .mn-row {
  display: flex; align-items: center; gap: var(--s-16); padding: var(--s-12) var(--s-16); border-radius: var(--r-14); color: var(--ink);
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color var(--d-hover) var(--ease), box-shadow var(--d-hover) var(--ease);
}
.apps-menu .mn-row + .mn-row { margin-top: var(--s-4); }
.apps-menu .mn-row.is-hover, .apps-menu .mn-row:active { background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--c-line); }
@media (hover: hover) { .apps-menu .mn-row:hover { background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--c-line); } }
.apps-menu .mn-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; font-size: 40px; }
.apps-menu .mn-txt { flex: 1; min-width: 0; }
.apps-menu .mn-txt b { display: block; font: var(--logo-weight) 17px/24px var(--font-display); }
.apps-menu .mn-txt small { display: block; color: var(--ink-2); font-size: 15px; line-height: 20px; }
.apps-menu .mn-tags { display: flex; flex: none; align-items: center; gap: var(--s-8); }
.apps-menu .mn-go { width: 18px; height: 18px; flex: none; color: var(--on-dark-3); transition: transform var(--d-hover) var(--ease), color var(--d-hover) var(--ease); }
.apps-menu .mn-row.is-hover .mn-go, .apps-menu .mn-row:active .mn-go { color: var(--c); transform: translateX(var(--arrow-go)); }
@media (hover: hover) { .apps-menu .mn-row:hover .mn-go { color: var(--c); transform: translateX(var(--arrow-go)); } }

.apps-menu .pg-pill {
  display: inline-flex; align-items: center; gap: var(--s-8); height: 28px; padding: 0 12px; border-radius: 980px; white-space: nowrap;
  color: var(--c); background: var(--c-soft); font: 500 13px/1 var(--font-text);
}
.apps-menu .pg-pill .glyph { width: 16px; height: 16px; margin-left: -2px; flex: none; }
.apps-menu .pg-pill.ghost { color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

.apps-menu .mn-emb { display: flex; align-items: center; gap: var(--s-12); margin-bottom: var(--s-12); padding-bottom: var(--s-16); border-bottom: 1px solid var(--line); }
.apps-menu .mn-emb .emb { width: 32px; height: 32px; flex: none; color: #fff; }
.apps-menu .mn-emb b { display: block; color: #fff; font: 500 15px/20px var(--font-text); }
.apps-menu .mn-emb span { display: block; color: var(--on-dark-3); font-size: 13px; line-height: 16px; }
.apps-menu .mn-kind { display: flex; align-items: flex-start; gap: var(--s-12); padding: var(--s-12) 0; color: var(--ink); }
.apps-menu .mn-kind .glyph { width: 20px; height: 20px; }
.apps-menu .mn-kind .apptile { font-size: 32px; }
.apps-menu .mn-kind b { display: block; font: 500 15px/20px var(--font-text); transition: color var(--d-hover) var(--ease); }
.apps-menu .mn-kind:active b { color: var(--c); }
@media (hover: hover) { .apps-menu .mn-kind:hover b { color: var(--c); } }
.apps-menu .mn-kind small { display: block; color: var(--ink-2); font-size: 13px; line-height: 16px; }
.apps-menu .mn-own { margin-top: auto; padding-top: var(--s-16); border-top: 1px solid var(--line); }
.apps-menu .mn-own .mn-h { margin-bottom: var(--s-8); }
.apps-menu .mn-own .chips { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.apps-menu .mn-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-12) var(--s-16);
  padding: var(--s-16) var(--s-24); background: var(--dark-1); border-top: 1px solid var(--line); color: var(--ink-2);
}
.apps-menu .lnk { display: inline-flex; align-items: center; gap: var(--s-8); color: #fff; font: 500 15px/20px var(--font-text); }
.apps-menu .lnk .ic { width: 16px; height: 16px; transition: transform var(--d-hover) var(--ease); }
.apps-menu .lnk:active .ic { transform: translateX(var(--arrow-go)); }
@media (hover: hover) { .apps-menu .lnk:hover .ic { transform: translateX(var(--arrow-go)); } }

/* ============================================================ 11. Phone sheet */
/* Opens from the burger (under 1024). Dark whatever the page, scrolls on its own, the WhatsApp button stays pinned at the bottom
   above the home indicator. Rows are 44 high with 8 between them; the Apps rows carry their tiles. Built by site.js from the nav above. */
.sheet {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 1; display: flex; flex-direction: column;     /* the bar above stays the nav's own */
  background: var(--black); opacity: 0; transition: opacity var(--d-menu) var(--ease);
}
.sheet.is-open { opacity: 1; }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: var(--s-24) var(--gx); }
.sheet-in { display: flex; flex-direction: column; gap: var(--s-32); width: min(100%, 560px); margin-inline: auto; }
.sheet-group { display: flex; flex-direction: column; gap: var(--s-8); }
.sheet-title { color: var(--ink-2); font: 500 13px/16px var(--font-text); }
.sheet-group > :not(.sheet-title) + .sheet-title { margin-top: var(--s-16); }          /* a second label inside a group sits further from the rows above it than from its own */
.sheet-in a, .sheet-foot .btn {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--d-sheet) var(--ease), transform var(--d-sheet) var(--ease), background-color var(--d-hover) var(--ease);
}
.sheet.is-open :is(.sheet-in a, .sheet-foot .btn) { opacity: 1; transform: none; transition-delay: calc(60ms + min(var(--i, 0), 12) * 40ms); }
.sheet-link, .sheet-app, .sheet-kind { display: flex; align-items: center; min-height: 44px; margin-inline: calc(-1 * var(--s-8)); padding-inline: var(--s-8); border-radius: var(--r-14); color: var(--ink); }
.sheet-link { padding-block: var(--s-8); font: 500 19px/24px var(--font-display); }
.sheet-link.is-top { font-size: 24px; line-height: 28px; }
.sheet-link.is-sub { gap: var(--s-8); color: var(--ink); font: 500 17px/24px var(--font-text); }
.sheet-link.is-sub::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sheet-app, .sheet-kind { gap: var(--s-16); padding-block: var(--s-8); }
.sheet-kind { gap: var(--s-12); }
.sheet-tile { flex: none; width: 40px; height: 40px; border-radius: var(--r-14); }
.sheet-glyph { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-14); background: var(--tile); color: var(--c); }
.sheet-glyph .glyph { width: 20px; height: 20px; }
.sheet-txt { display: block; flex: 1; min-width: 0; }
.sheet-txt b { display: flex; align-items: center; gap: var(--s-8); font: var(--logo-weight) 19px/24px var(--font-display); }
.sheet-kind .sheet-txt b { font: 500 17px/24px var(--font-text); }
.sheet-txt small { display: block; color: var(--ink-2); font-size: 15px; line-height: 20px; }
.sheet-in .pill { height: 22px; padding: 0 var(--s-8); font-size: 13px; }
.sheet-in .c-mkt  { --c: var(--mk-mkt-dark); }
.sheet-in .c-mkt2 { --c: var(--mk-mkt-2-dark); }
.sheet-in .c-ops  { --c: var(--mk-ops-dark); }
.sheet-in .c-int  { --c: var(--mk-int-dark); }
.sheet-link:active, .sheet-app:active, .sheet-kind:active { background: var(--dark-3); }
.sheet-foot { flex: none; padding: var(--s-12) var(--gx) calc(var(--s-12) + env(safe-area-inset-bottom, 0px)); background: var(--black); border-top: 1px solid var(--line); }
.sheet-foot .btn { display: flex; width: min(100%, 560px); margin-inline: auto; }
@media (min-width: 700px) {                                      /* tablet: two columns, the Apps and Build groups left, the rest right */
  .sheet-in { display: block; width: min(100%, 760px); column-count: 2; column-gap: var(--s-64); }
  .sheet-group { margin-bottom: var(--s-32); break-inside: avoid; }
  .sheet-foot .btn { width: min(100%, 760px); }
}

/* ============================================================ 12. Logo rows, icon tiles, tabs, ticks */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-24) var(--s-48); opacity: .7; color: var(--ink); }
.logo-row > * { display: block; height: 28px; width: auto; }
.logo-row img, .logo-row svg { filter: grayscale(1); }
.icon-tile {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: var(--grey); border: 1px solid var(--line); color: var(--ink);
}
.icon-tile img, .icon-tile svg { width: 28px; height: 28px; }

.tabs { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.tab {
  height: 36px; padding: 0 var(--s-16); border-radius: 980px; color: var(--ink-2); font: 500 15px/1 var(--font-text);
  transition: background-color var(--d-tab) var(--ease), color var(--d-tab) var(--ease);
}
.tab:active { color: var(--ink); background: var(--hover); }
@media (hover: hover) { .tab:hover { color: var(--ink); background: var(--hover); } }
.tab[aria-selected="true"] { color: var(--kind-text, var(--ink)); background: var(--kind-soft, var(--hover)); }
@media (pointer: coarse) { .tab { height: 44px; } }

.ticks { display: grid; gap: var(--s-12); padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: var(--s-12); }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: var(--kind-text, var(--ink));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 5 5L19.5 7' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 5 5L19.5 7' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================================ 13. Tables (pricing, compare) */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font: 400 15px/20px var(--font-text); }
.table th { padding: var(--s-12) var(--s-16); border-bottom: 1px solid var(--line-strong); color: var(--ink-2); font: 500 13px/16px var(--font-text); }
.table td { padding: var(--s-16); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table :is(th, td):first-child { padding-left: 0; font-weight: 500; }
.table :is(th, td):last-child { padding-right: 0; }
.table .num { text-align: right; white-space: nowrap; }
@media (max-width: 767px) { .table-wrap > .table { min-width: 520px; } }          /* scroll sideways rather than squash four columns */
/* A table wider than its screen scrolls inside its own frame: site.js adds .is-scrollable only when it really overflows, so tables that fit
   are left alone. An edge shade shows where more is hidden (it fades as you reach the end) and a one-line hint sits under the last row. */
.table-wrap { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.table-wrap.is-scrollable {
  --shade: rgba(0, 0, 0, .10);
  border: 1px solid var(--line); border-radius: 14px; background-color: var(--card);
  background-image:
    linear-gradient(to right, var(--card) 30%, transparent), linear-gradient(to left, var(--card) 30%, transparent),
    linear-gradient(to right, var(--shade), transparent), linear-gradient(to left, var(--shade), transparent);
  background-position: left center, right center, left center, right center;
  background-size: 32px 100%, 32px 100%, 16px 100%, 16px 100%;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}
:is([data-theme="dark"], .on-dark, .is-black) .table-wrap.is-scrollable { --shade: rgba(255, 255, 255, .10); }
.table-wrap.is-scrollable > .table :is(th, td):first-child { padding-left: var(--s-16); }
.table-wrap.is-scrollable > .table :is(th, td):last-child { padding-right: var(--s-16); }
.table-wrap.is-scrollable::after {
  content: "Swipe sideways to see more"; display: block; padding: var(--s-12) var(--s-16) var(--s-16);
  color: var(--ink-2); font: 500 13px/16px var(--font-text);
}
.table-wrap.is-scrollable:focus-visible { outline-offset: 2px; }

/* ============================================================ 14. FAQ and testimonial */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); padding: var(--s-16) 0;
  font: 500 17px/24px var(--font-text); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { margin-inline: calc(-1 * var(--s-12)); padding-inline: var(--s-12); border-radius: var(--r-14); transition: background-color var(--d-menu) var(--ease), opacity var(--d-menu) var(--ease); }   /* the 12px bleed is the room the hover tint needs; the text stays where it was */
@media (hover: hover) { .faq-item summary:hover { background: var(--hover); } }
.faq-mark {                                                 /* a plus that turns 45 degrees into a cross when open */
  position: relative; flex: none; width: 20px; height: 20px; color: var(--kind-text, var(--ink));
  transition: transform var(--d-faq) var(--ease);
}
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9.25px; height: 1.5px; border-radius: var(--r-pill); background: currentColor; }
.faq-mark::after { transform: rotate(90deg); }
.faq-item.is-open .faq-mark { transform: rotate(45deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-faq) var(--ease); }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body-in { min-height: 0; overflow: hidden; color: var(--ink-2); max-width: 680px; }
.faq-body-in > :last-child { padding-bottom: var(--s-24); }
@media (scripting: none) {                                  /* without script the browser's own open/close still works */
  .faq-item[open] .faq-body { grid-template-rows: 1fr; }
  .faq-item[open] .faq-mark { transform: rotate(45deg); }
}

.testimonial { display: flex; flex-direction: column; gap: var(--s-16); }
.testimonial > .sample { margin-bottom: var(--s-8); }
.testimonial-quote { font: 500 21px/28px var(--font-display); text-wrap: pretty; }
.testimonial-who { display: flex; flex-direction: column; gap: var(--s-4); }
@media (max-width: 767px) { .testimonial-quote { font-size: 19px; line-height: 24px; } }   /* the phone h4/lead size */

/* ============================================================ 15. Footer (black band, 5 columns; accordions under 768) */
.footer { padding: var(--s-64) 0 calc(var(--s-32) + env(safe-area-inset-bottom, 0px) + var(--review-h, 0px)); background: var(--black); }   /* the review bar (design stage) never covers the last line */
html[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-direction: column; gap: var(--s-48); width: min(100% - 2 * var(--gx), 1180px); margin-inline: auto; }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-12); }
.footer-brand .phx-logo { margin-block: -11px; }          /* 44 to tap, but it takes no more room than the 22 you see */
.footer-line { max-width: 360px; text-wrap: pretty; color: var(--ink-2); font: 400 15px/20px var(--font-text); }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-32) var(--s-24); }
.footer-col { display: flex; flex-direction: column; gap: var(--s-8); align-items: flex-start; }
.footer-title { margin-bottom: var(--s-4); color: var(--ink-2); font: 500 13px/16px var(--font-text); }
.footer-col a { color: var(--ink); font: 400 15px/1.45 var(--font-text); transition: color var(--d-hover) var(--ease); }
.footer-col a:active { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-12) var(--s-24);
  padding-top: var(--s-24); border-top: 1px solid var(--line); color: var(--ink-2); font: 400 13px/16px var(--font-text);
}
.signature { display: inline-flex; align-items: center; gap: var(--s-8); color: var(--ink-2); font: 500 13px/16px var(--font-text); }
.signature .crest { width: 16px; height: 16px; color: var(--ink); }
.footer-quiet { color: #86868b; font: 400 13px/16px var(--font-text); transition: color var(--d-hover) var(--ease); }
.footer-quiet:active { color: var(--ink); }
@media (hover: hover) { .footer-quiet:hover { color: var(--ink); } }
/* the list wrappers (for the accordion) take no box of their own; the phone-only pieces (WhatsApp button, legal row) are off */
.footer-list, .footer-list-in { display: contents; }
.footer-wa, .footer-legal { display: none; }
@media (max-width: 1023px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .footer { padding-top: var(--s-48); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) { .footer-cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-48); } }          /* one stack only on the narrowest phones; 360+ keeps two columns so the footer is half as tall */
@media (max-width: 767px), (pointer: coarse) {                                                                      /* links are 44 rows with 8 between them */
  .footer-col { gap: var(--s-8); }
  .footer-title { margin-bottom: 0; }
  .footer-col a { display: block; align-self: stretch; min-height: 44px; padding-block: var(--s-12); }       /* block, not flex: the app word stays in the line */
  .footer-quiet { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Phone footer (under 768): logo and WhatsApp on one row, the five link columns folded into accordions (site.js adds .is-acc and
   turns each title into a 48 high button), the legal links in one row, then the signature, the Training line and the copyright.
   From 768 up none of this applies and the footer is exactly the wide one above. Without script the columns simply stay open. */
@media (max-width: 767px) {
  .footer { padding-top: var(--s-48); }                                            /* the colour edge above it pads 48 too (rhythm block): 48 + 48 */
  .footer-in { gap: var(--s-16); }
  .footer-brand { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-8) var(--s-16); }
  .footer-wa { display: inline-flex; padding: 0 var(--s-16); font-size: 15px; }
  .footer-line { order: 3; flex: 1 0 100%; max-width: none; font-size: 13px; line-height: 16px; }
  .footer-col a.is-legal { display: none; }                                       /* these six live in the legal row below */
  .footer-cols.is-acc { display: flex; flex-direction: column; gap: var(--s-8); }
  .is-acc .footer-col { gap: 0; align-items: stretch; }
  .is-acc .footer-title { display: block; margin: 0; color: var(--ink); }
  .footer-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); width: 100%; height: 48px; padding: 0 var(--s-16);
    border: 1px solid var(--line); border-radius: 14px; background: var(--grey); color: var(--ink);
    font: 500 15px/20px var(--font-text); text-align: left;
    transition: background-color var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease);
  }
  .footer-toggle::after {
    content: ""; flex: none; width: 12px; height: 12px; background: currentColor; opacity: .6;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--d-menu) var(--ease);
  }
  .footer-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  .footer-toggle:active { background: var(--hover); }
  /* closed: a zero-height grid row, hidden from sight and from Tab; open: the row grows to the list (the FAQ method, 200ms, instant under reduced motion) */
  .is-acc .footer-list {
    display: grid; grid-template-rows: 0fr; visibility: hidden;
    transition: grid-template-rows var(--d-faq) var(--ease), visibility 0s var(--d-faq);
  }
  .is-acc .footer-col.is-open .footer-list { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--d-faq) var(--ease), visibility 0s; }
  .is-acc .footer-list-in { display: flex; flex-direction: column; gap: var(--s-8); min-height: 0; overflow: hidden; }
  .is-acc .footer-list-in > :first-child { margin-top: var(--s-8); }
  .is-acc .footer-col a { padding-inline: var(--s-16); }
  .footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-4) 0; margin-inline: calc(-1 * var(--s-8)); }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-8); color: var(--ink-2); font: 400 13px/16px var(--font-text); }
  .footer-legal a:active { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 0 var(--s-16); padding-top: var(--s-4); }
  .signature { order: 1; }
  .footer-quiet { order: 2; }
  .footer-copy { order: 3; flex: 1 0 100%; }
}
@media (max-width: 640px) { .footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + max(var(--s-32), var(--review-h, 0px))); } }   /* the review chip's own 56 is the clearance; no 32 on top of it */
@media (hover: hover) and (max-width: 767px) {
  .footer-toggle:hover { border-color: var(--line-strong); }
  .footer-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}
/* reduced motion for the accordions (instant open and close): section 18 */

/* Approved three-colour glass footer: the creative logo stays decorative behind a heavy frost layer. */
.footer {
  position: relative; isolation: isolate; overflow: hidden; color: #f5f5f7;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff5a36 0 33.333%, #4f9d2d 33.333% 66.666%, #457bfa 66.666% 100%) 1;
}
.footer::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #0b0e12; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .footer::after { background: rgba(10, 13, 17, .78); -webkit-backdrop-filter: blur(22px) saturate(.8); backdrop-filter: blur(22px) saturate(.8); }
}
.footer-creative-logo {
  position: absolute; z-index: 0; left: 50%; top: 47%; width: min(1000px, 88vw); max-width: none;
  transform: translate(-50%, -50%); filter: invert(1) blur(8px); opacity: .16; pointer-events: none;
  animation: footer-creative-cycle 20s ease-in-out infinite;
}
.footer-in { position: relative; z-index: 2; }
.footer .phx-logo { color: #f5f5f7; }
.footer-line { color: #b9bec6; font-size: 15px; line-height: 1.65; }
.footer-title {
  color: #c2c7ce; font: 500 13px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.footer-col a { color: #b9bec6; font-size: 15px; line-height: 1.9; }
.footer .app-score { color: #ff7a5c; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .16); color: #b9bec6; }
.footer .signature, .footer .footer-quiet { color: #b9bec6; }
@keyframes footer-creative-cycle {
  0%, 5%, 100% { opacity: 0; filter: invert(1) blur(18px) drop-shadow(0 0 0 transparent); clip-path: inset(0 100% 0 0); }
  22% { opacity: .1; filter: invert(1) blur(12px) drop-shadow(0 0 14px rgba(255,255,255,.12)); clip-path: inset(0); }
  34%, 70% { opacity: .2; filter: invert(1) blur(8px) drop-shadow(0 0 28px rgba(255,255,255,.16)); clip-path: inset(0); }
  89% { opacity: 0; filter: invert(1) blur(18px) drop-shadow(0 0 0 transparent); clip-path: inset(0); }
}
@media (max-width: 767px) {
  .footer-cols, .footer-cols.is-acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-32) var(--s-20); }
  .footer-col, .is-acc .footer-col { min-width: 0; }
  .footer-toggle { min-height: 48px; height: auto; }
  .footer-legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--s-16) 0 0; padding-top: var(--s-20); border-top: 1px solid rgba(255,255,255,.16); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-12); padding-top: var(--s-20); }
  .signature, .footer-quiet, .footer-copy { order: initial; }
  .footer-creative-logo { width: 130%; top: 38%; }
}
@media (max-width: 359px) {
  .footer-cols, .footer-cols.is-acc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap-inline: var(--s-12); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-creative-logo { animation: none; opacity: .11; filter: invert(1) blur(10px); clip-path: none; }
}

/* ============================================================ 16. Reveal on scroll */
/* Hidden only while the page's own script is alive: the head adds .js, and removes it again if site.js has not started within 6 s,
   so a phone on a bad connection never keeps content invisible. */
.js .reveal, .js .reveal-group > * {
  opacity: 0; transform: translateY(var(--reveal-y));
  transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease);
}
.js .reveal-group > * { transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .reveal.is-in, .js .reveal-group.is-in > * { opacity: 1; transform: none; }
.is-in:not(.is-done), .is-in:not(.is-done) > * { will-change: opacity, transform; }     /* only while animating */
/* once a reveal has finished, a card inside it is an ordinary card again: its own hover lift and 200ms transition, no stagger delay */
.js .reveal-group.is-done > .card, .js .reveal.is-done.card { transition: transform var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease); transition-delay: 0ms; }
@media (hover: hover) {
  .js .reveal-group.is-in > .card:not(.card-static):hover, .js .reveal.is-in.card:not(.card-static):hover { transform: translateY(-2px); border-color: var(--line-strong); }
}

/* ============================================================ 17. Helpers */
.grid-2, .grid-3 { display: grid; gap: var(--s-24); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack-8 > * + * { margin-top: var(--s-8); }
.stack-12 > * + * { margin-top: var(--s-12); }
.stack-16 > * + * { margin-top: var(--s-16); }
.stack-24 > * + * { margin-top: var(--s-24); }
.stack-32 > * + * { margin-top: var(--s-32); }
.stack-48 > * + * { margin-top: var(--s-48); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12) var(--s-24); }
.center { text-align: center; }
.cluster.center, .chips.center { justify-content: center; }

/* ============================================================ 18. Reduced motion: no animation, no transition, no smooth scroll */
@media (prefers-reduced-motion: reduce) {
  :root { --d-hover: 0ms; --d-menu: 0ms; --d-faq: 0ms; --d-tab: 0ms; --d-sheet: 0ms; --d-reveal: 0ms; --stagger: 0ms; --reveal-y: 0px; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; }
  /* The safety net under every page stylesheet: nothing animates and nothing loops (a keyframe never starts, an infinite one included), and no property
     transitions, colour and opacity too, so every state change is instant. The FAQ, the menus, the footer accordions and the tabs still open and close:
     they are driven by a class or an attribute, never by the animation. This is the one !important in the shell, on purpose: the page stylesheets load
     after this file and would win otherwise. Page scripts gate their own loops and Web Animations (site.js and the page's js use PHX.prefersReducedMotion). */
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- shared additions (13 Oct, main chat): placeholders ---- (the shared .closing band was removed in the phone pass: every page lane has its own closing band) */
/* .todo = an [OWNER: ...] placeholder, drawn as a quiet chip. The colours are tokens, so it is right on light, grey and dark surfaces alike.
   The -2px block margin keeps it from making its line taller than the 24px of the text around it. */
.todo {
  display: inline-block; max-width: 100%; margin-block: -2px; padding: 2px 8px; vertical-align: baseline;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink-2); font: 500 13px/16px var(--font-text); letter-spacing: 0; text-align: left; text-decoration: none; overflow-wrap: anywhere;
}

/* ---- section rhythm, as built (DEC-015): where the background changes each side pads 64, so the gap is 128 (phone 48 + 48 = 96);
       same-background neighbours share ONE gap of 64 (phone 48): the first pads 64 below, the next pads 0 above. ---- */
main > :is(.section, .band) + :is(.section, .band) { padding-top: var(--s-64); }
main > :is(.section, .band):has(+ :is(.section, .band)) { padding-bottom: var(--s-64); }
main > :is(.section, .band):not(.is-grey, .is-black) + :is(.section, .band):not(.is-grey, .is-black),
main > :is(.section, .band).is-grey + :is(.section, .band).is-grey,
main > :is(.section, .band).is-black + :is(.section, .band).is-black { padding-top: 0; }
@media (max-width: 767px) {
  main > :is(.section, .band) + :is(.section, .band) { padding-top: var(--s-48); }
  main > :is(.section, .band):has(+ :is(.section, .band)) { padding-bottom: var(--s-48); }
  /* same background on a phone: one gap of 48, the same as each side of a colour edge (the neighbour's padding-top is 0 by the rule above) */
}
/* The last section to the black footer (the footer pads 64 on top, phone 48): a colour edge, so 64 + 64 (phone 48 + 48), which is --sec-in.
   A black last section shares the footer's background, so it pads 0 and the gap is the footer's one 64 (phone 48). The Reach closing
   keeps its own 0 because its picture meets the footer edge (reach.css). */
main > :is(.section, .band, .home-closing):not(:has(~ :is(.section, .band, .home-closing))):not(.reach-closing) { padding-bottom: var(--sec-in); }          /* the last one: a trailing dialog or script after it does not make it a middle one */
main > :is(.section, .band, .home-closing).is-black:not(:has(~ :is(.section, .band, .home-closing))):not(.reach-closing) { padding-bottom: 0; }

/* ---- touch and phone defaults (13 Oct, shell phone pass): a pressed state wherever hover exists, 44 targets, helpers ---- */
a.card:not(.card-static):active, button.card:not(.card-static):active { border-color: var(--line-strong); transform: scale(.99); }
.nav-panel a:active, .nav-burger:active { background: var(--hover); }       /* .nav-link:active is in section 9, one step stronger */
.faq-item summary:active { opacity: .6; }
@media (max-width: 767px), (pointer: coarse) { a.link-arrow, button.link-arrow { min-height: 44px; } }   /* a text link is a 44 target on a phone or a tablet in the hand; a span styled as one inside a card link keeps its line */
@media (pointer: coarse) {                                                           /* tablets in landscape get the desktop bar, still by finger */
  .nav-link { height: 44px; }
  .nav-panel a { min-height: 44px; display: flex; align-items: center; }
  .apps-menu .lnk { min-height: 44px; }
}
/* a sideways row of cards or screens: scrolls by finger, snaps loosely, never traps the page's own vertical scroll */
.scroll-x {
  display: flex; gap: var(--s-16); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex: none; scroll-snap-align: start; }

/* ---- phone-pass shell fixes (13 Oct, main chat) ---- */
a.chip, button.chip { position: relative; }
@media (pointer: coarse) {
  a.chip::after, button.chip::after { content: ""; position: absolute; inset: -8px 0; }   /* 44px tap area, 28px look */
  a.link-arrow, button.link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ============================================================ 20. Shared section patterns (14 Oct): .tile-full, .split, and the left edge */
/* The three section shapes a page can use instead of "eyebrow + 44px headline + grey lead" every time. Both take the same words stack
   (eyebrow, heading, lead, optional .cluster of buttons), work inside .reveal and .reveal-group (their two children are the group items),
   and read the page's own surface: --grey is the #111114 tile on dark pages and .is-black sections, so nothing here sets a colour of its own. */

/* .tile-full: one rounded block, full width of the .wrap it sits in. Words 5fr, media 7fr from 1024; stacked, media after the words, below.
   .is-flip puts the media first on desktop. .is-black is a black tile with white text on a light page. .tile-media.is-bleed runs the media
   off the tile's right and bottom edges (left and bottom when flipped on desktop). */
.tile-full {
  --pad: var(--s-48);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-48); align-items: center;
  padding: var(--pad); overflow: hidden; border-radius: var(--r-24); background: var(--grey); color: var(--ink);
}
.tile-full.is-black { background: var(--tile); }
@media (min-width: 768px) { .tile-full { --pad: var(--s-64); } }
@media (min-width: 1024px) {
  .tile-full { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-64); }
  .tile-full.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tile-full.is-flip > .tile-media { order: -1; }
}

/* the words stack, shared by .tile-full and .split: eyebrow, heading 12 under it, lead 16 under the heading, buttons 32 under the lead */
.tile-words, .split-words { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tile-words > * + *, .split-words > * + * { margin-top: var(--s-16); }
.tile-words > .eyebrow + *, .split-words > .eyebrow + * { margin-top: var(--s-12); }
.tile-words > :is(.cluster, .btn), .split-words > :is(.cluster, .btn) { margin-top: var(--s-32); }

/* the media: a window frame, a picture or a scene. (.tile-media in a bento .tile keeps its own rules; these are for the child of .tile-full only.) */
.tile-full > .tile-media, .split-media { min-width: 0; margin: 0; padding: 0; }
.tile-full > .tile-media > .frame-window { border: 1px solid var(--line); border-radius: var(--r-14); }
.tile-full > .tile-media :is(picture, img), .split-media :is(picture, img) { display: block; width: 100%; height: auto; }
.tile-full > .tile-media :is(img, picture > img), .split-media :is(img, picture > img) { border-radius: var(--r-14); }
.tile-full > .tile-media.is-bleed { align-self: end; margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0; }
.tile-full > .tile-media.is-bleed > .frame-window { border-right: 0; border-bottom: 0; border-radius: var(--r-14) 0 0 0; }
.tile-full > .tile-media.is-bleed :is(img, picture > img) { border-radius: var(--r-14) 0 0 0; }
@media (min-width: 1024px) {
  .tile-full.is-flip > .tile-media.is-bleed { margin: 0 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)); }
  .tile-full.is-flip > .tile-media.is-bleed > .frame-window { border-left: 0; border-right: 1px solid var(--line); border-radius: 0 var(--r-14) 0 0; }
  .tile-full.is-flip > .tile-media.is-bleed :is(img, picture > img) { border-radius: 0 var(--r-14) 0 0; }
}

/* .split: two plain columns, no tile. 1fr 1fr with a gap of 64 from 1024; stacked below with a gap of 32. .is-flip reverses the order on desktop only.
   .is-quiet sets the heading in the h3 size (28/32, phone 24/28) for a lighter beat between two big ones. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-32); align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-64); }
  .split.is-flip > .split-media { order: -1; }
}
.split.is-quiet > .split-words > :is(h2, .h2) { font-size: 28px; line-height: 32px; }
@media (max-width: 767px) { .split.is-quiet > .split-words > :is(h2, .h2) { font-size: 24px; line-height: 28px; } }

/* The one left edge: the left edge of .wrap (130 at 1440, the gutter below 1228). A left-aligned hero or reading column in the narrower
   boxes sits on it too: add .is-left to the .wrap-md (1080) or .wrap-text (680) instead of letting it centre. Centred compositions leave it off. */
.wrap-md.is-left, .wrap-text.is-left { margin-left: max(var(--gx), calc((100% - 1180px) / 2)); margin-right: auto; }

/* ============================================================ 21. Footer join on light pages
   The approved footer now meets the last section with one straight red / green / blue rule. */
html[data-theme="light"] { --footer-join: 32px; }
@media (max-width: 767px) { html[data-theme="light"] { --footer-join: 24px; } }
html[data-theme="light"] .footer { position: relative; overflow: hidden; margin-top: 0; border-radius: 0; }
html[data-theme="light"] .footer::before { display: none; }
html[data-theme="light"] main > :is(.section, .band, .home-closing):not(:has(~ :is(.section, .band, .home-closing))):not(.reach-closing):not(.is-black) { padding-bottom: calc(var(--sec-in) + var(--footer-join)); }
html[data-theme="light"] main:has(> :is(.section, .band, .home-closing).is-black:not(:has(~ :is(.section, .band, .home-closing)))) + .footer { margin-top: 0; }   /* a black last section meets the black sheet: nothing to overlap */
html[data-theme="light"] .signature { display: none; }                  /* "Phoenix" once: the crest and word at the top of the footer are enough */
@media (min-width: 768px) { html[data-theme="light"] .footer-legal { display: none; } }   /* each legal link once on desktop: it lives in the Trust column; the phone row stays */

/* 10 Nov 2026, owner: "slightly translucent as we are scrolling, a little bit more translucent as it is right now ...
   not the frosted glass look, but transfluent look". Lighter tint, light blur, so the page shows through. */
.nav { --nav-bg: rgba(255, 255, 255, .58); }
html[data-theme="dark"] .nav, html .nav.is-over-dark { --nav-bg: rgba(0, 0, 0, .5); }
.nav:not(.menu-open)::before { -webkit-backdrop-filter: saturate(160%) blur(6px); backdrop-filter: saturate(160%) blur(6px); }

/* 16 Nov 2026, owner (after picking the "fluid" bar on the home page): "follow this exact rule for the rest of the website, where when we're
   scrolling and we're over the darker section, the liquid bar thing effect happens. Just make it website wide."
   site.js section 11 reads what is under the bar and glides --nt from 0 (dark) to 1 (light); the bar stays see-through and its tint, line and
   every colour mix by --nt, so the change melts rather than switches. It also wins over the few pages that kept the bar solid white
   (page-design.css, page-custom-ui-ux.css, page-customer-facing.css): over their black bands the bar now turns dark too. The open phone menu keeps its black bar. */
.nav.nt[data-tone] { --fi: color-mix(in oklab, #1d1d1f calc(var(--nt, 1) * 100%), #f5f5f7); }
.nav.nt[data-tone]:not(.menu-open)::before {
  background: color-mix(in srgb, rgba(255, 255, 255, .58) calc(var(--nt, 1) * 100%), color-mix(in srgb, rgba(0, 0, 0, .5) calc((1 - var(--nts, 0)) * 100%), #000));   /* --nts: solid black over the empty strip at the very top (site.js section 11) */
  border-bottom-color: color-mix(in srgb, #e3e3e8 calc(var(--nt, 1) * 100%), rgba(255, 255, 255, .1)); transition: none;
}
.nav.nt[data-tone]:not(.menu-open) :is(.nav-in .phx-logo, .nav-link, .nav-burger, .nav-actions .btn.is-quiet) { color: var(--fi); }
