/* relaunch.css: sitewide rules the relaunch owns (plan 2026-11-09-1652 KTD4). Linked LAST on every page
   (app/(site)/_components/SitePage.tsx and lib/site/SiteChrome.tsx, SITE_LAST_CSS), so these later rules win
   over the imported v12 sheets without editing them. Page `css` lists do not carry it. */

/* 1. Button arrows (Sarah's comment 5, Dan 2026-11-09; R21): every button-style call to action angles up
   and right, quiet buttons included. Text links (.go, .tcta, .text-link, .doors .after a and the rest of
   site.css's "→" list) keep their arrow. Sign In's no-arrow rule in site.css is more specific and still wins, except in
   the header, where rule 15b gives Sign In the same arrow as Get Started (go-live, Sarah 3gBjIxui6Vu-). */
a.btn--quiet::after { content: "\2197"; content: "\2197" / ""; margin-left: .4em; font-weight: 400; }
a.btn--quiet:hover::after { transform: translate(2px, -2px); }

/* 2. The tagline bubble (Sarah's comments 9, 34, 58, 59; Dan 2026-11-09). One modifier class,
   `tagline-bubble`, on the quote element (p.says, blockquote.says, blockquote.bubble): Pip's type scale
   (home.css .promise .bubble) inside the speech bubble of .host .says (clean.css): border, radius, tail.
   `[data-site]` (the body attribute compose.ts's bootstrap sets) lifts it over the page rules it meets
   (.promise .bubble, .host .says, .what-host .says), so it reads the same on every page.
   Surface (Sarah's comment 8b5kbeRs76Vc, build six G3-U1): #fffdf8, the Home "Why it exists" card's surface
   on paper (site.css [data-ground="paper"] --card), fixed rather than var(--card) so the bubble keeps it on
   every ground and pops off a paper band instead of matching it. Home's #assistants white bubble keeps its
   own #fff (home-page.css). */
[data-site] .tagline-bubble {
  position: relative; box-sizing: border-box; max-width: 20ch; margin: 0 0 18px; padding: 14px 22px;
  background: #fffdf8; border: 1px solid var(--rule); border-radius: 16px; text-align: center;
  font-family: var(--serif-accent); font-style: italic; font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.15; color: var(--ink); z-index: 4;
}
[data-site] .tagline-bubble p { margin: 0; font: inherit; color: inherit; }
[data-site] .tagline-bubble cite { display: block; margin-top: 8px; font-family: var(--ui); font-style: normal; font-weight: 600; font-size: .85rem; line-height: 1.3; color: var(--muted); }
[data-site] .tagline-bubble::after {
  content: ""; position: absolute; left: 44%; bottom: -9px; width: 16px; height: 16px; background: inherit;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transform: rotate(45deg);
}
@media (max-width: 860px) {
  [data-site] .tagline-bubble { max-width: 100%; padding: 12px 18px; font-size: 1.5rem; }
}

/* 3. The footer's "Privacy choices" control (board call footer-privacy; lib/site/shell.ts): a button that
   reads as the legal row's links (site.css .site-footer a:not(.btn)). */
.site-footer .legal .privacy-choices {
  padding: 2px 0; border: 0; background: none; font: inherit; color: var(--on-dark-2); cursor: pointer;
}
.site-footer .legal .privacy-choices:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 4. Ping's idle float on Home's recorded run (Sarah's comment 52, "K: float"; Dan 2026-11-09). On the pose
   images, not the figure: no v12 rule puts a transform, transition or animation on .to-ping .pose (pose
   changes are hard cuts in stage.js setPose; none of Ping's poses carries .flip), and the sibling .shadow
   stays still on the floor. */
@keyframes to-ping-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2.2%) rotate(-1deg); } }
.to-ping .pose { animation: to-ping-float 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: reduce) { .to-ping .pose { animation: none; } }

/* ---- Design audit pass (plan 2026-11-09-2150 U1). Every selector below names a class or attribute Home's markup
   never carries (.strip, .plans-band, data-ground="iris", .to-run-wrap--none), so none of it can
   reach Home; lib/site/__tests__/relaunch-sheet.test.ts pins that. ---- */

/* 5. No purple (audit r15; Dan 2026-11-09: purple is off brand). The iris ground reads as navy, and the iris accent
   (the AI Index labels and dots read var(--iris); the Visibility accent) becomes harbor, the brand's slate blue. */
:root { --iris: var(--harbor); --iris-deep: var(--cobalt); --iris-lite: var(--on-dark-3); }
[data-ground="iris"] { --bg: var(--navy); --fg: var(--on-dark); --muted: var(--on-dark-2); --rule: rgba(238,242,249,.18); --card: var(--navy-2); }

/* 6. (removed in round two: its painted and picture-over-band heroes, .phero and .chero.has-art, left every
   served page; briefs/suite-green.md item 4) */

/* 7. Picture strips keep their heads (audit r13 strips). The template strips are 3:2 paintings; site.css's 3.2:1
   window, centered, cut the crew's heads and antennae. A 2.4:1 window anchored near the top keeps them. The 16:5
   paintings made for the strip shape (height 522) and the vignette and whole-picture strips keep their rules. */
.strip.painted:not(.strip--vig):not(.strip--whole) .scene:has(> img:not([height="522"])) img { object-position: 50% 15%; }
@media (min-width: 861px) {
  .strip.painted:not(.strip--vig):not(.strip--whole) .scene:has(> img:not([height="522"])) { aspect-ratio: 12 / 5; }
}
@media (max-width: 860px) {
  .strip.painted:not(.strip--vig):not(.strip--whole) .scene:has(> img:not([height="522"])) img { object-position: 50% 25%; }
}

/* 8. No empty half-screen on the feature pages' plans band (audit r8). Its words sat in the left half with nothing
   on the right; from 861 px up the heading takes the left column and the rest of the band answers it on the right. */
@media (min-width: 861px) {
  body[data-product] #plans.plans-band > .wrap:has(> .section-head) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: start;
  }
  body[data-product] #plans.plans-band > .wrap:has(> .section-head) > .section-head { grid-column: 1; grid-row: 1 / span 6; margin-bottom: 0; }
  body[data-product] #plans.plans-band > .wrap:has(> .section-head) > :not(.section-head) { grid-column: 2; }
}

/* 9. A work scroll with nothing to show is hidden (audit r2, the reversible way). takeover.js marks the run when no
   example brand has a piece the page does not already show (COPY_EDITS takeover-run-none); the panel that only said
   "Already on this page" is never reached. Filling the scroll waits for Dan's answer on r2. */
.to-run-wrap--none { display: none; }

/* 10. The plans band and the get-in-touch block under it read as one band (judge pass, 2026-11-09). On the six
   feature pages with a service line the block follows #plans on the same ground; two full band paddings left an
   empty stretch between the last plans line and "Service: ..." with its Let's Talk. */
#plans.plans-band:has(+ [data-module="get-in-touch"]) { padding-bottom: 0; display: flow-root; } /* flow-root: the last line's margin stays inside, so no strip of page ground shows between the two */
#plans.plans-band + [data-module="get-in-touch"] { padding-top: clamp(20px, 2.4vw, 32px); }

/* 11. (removed in round two with rule 6: no served page carries .chero.has-art; briefs/suite-green.md item 4) */

/* ---- Header and footer (round two, docs/site-relaunch/round-two/first-screen.md "Header"; the shell markup is
   lib/site/shell.ts). These do reach Home: its header and footer are the same shell as every other page's. The menu
   fold below (1239px) should be the width js/shell.js wireNav() treats as phone; it reads JINN.phone (860) until a
   COPY_EDITS entry moves it (shell.js is an imported, hash-pinned v12 file). ---- */

/* 12. The tag under the logo ("AI for marketers") is at least 11px, header and footer. JINN.fitLogos sets an inline
   font-size that fits the tag to the word's width (8.57px in the header), so the floor needs !important; fitLogos then
   measures the tag at this size and closes the rest with letter-spacing, so it still spans the word exactly. */
.site-header .logo .cat { font-size: max(11px, .69rem) !important; letter-spacing: 0 !important; margin-right: 0 !important; } /* at the 11px floor the tag is wider than the word; it keeps its natural spacing and overhangs a little rather than being squeezed to the word's width */
.site-footer .logo .cat { font-size: max(11px, .69rem); } /* the footer's larger word fits its tag at 11.57px, so fitLogos may keep it; this floor holds before the script runs */

/* 13. The header folds below 1240 wide. The full bar (logo, five groups and Pricing, Sign In, Get Started, Let's Talk)
   needs about 1140px of row, so from 861 to 1239 the groups fold into the Menu button as on phones: Sign In moves into
   the menu, Get Started and Let's Talk stay. The opened menu is the phone menu (site.css, max-width 860), repeated
   here for this band. */
@media (min-width: 861px) and (max-width: 1239px) {
  .site-header .nav-top, .site-header .bar .doors .btn--quiet:not([href="/get-started"]) { display: none; }
  .site-header .menu-btn { display: inline-flex; min-height: 44px; font-size: .92rem; padding: 0 1em; }
  .site-header .bar .doors { margin-right: 4px; }
  .site-header.is-open .nav-top { display: block; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--paper); border-bottom: 1px solid rgba(21,23,28,.12); max-height: calc(100vh - 68px); overflow: auto; padding: 8px var(--gutter) 24px; }
  .site-header.is-open .nav-top > li { display: flex; flex-wrap: wrap; align-items: center; }
  .site-header.is-open .nav-item { flex: 1 1 auto; min-height: 48px; font-size: 1.05rem; }
  .site-header.is-open .nav-caret { min-width: 48px; min-height: 48px; margin: 0; }
  .site-header .panel, .site-header .panel.is-wide { position: static; width: 100%; flex: 1 1 100%; max-height: none; box-shadow: none; border: 0; border-radius: 0; grid-template-columns: 1fr; background: transparent; transition: none; }
  .site-header .panel .rows { border: 0; padding: 0 0 4px 4px; overflow: visible; }
  .site-header .panel .rows a { min-height: 48px; }
  .site-header .panel .preview { display: none; }
  .site-header .panel .foot { display: block; background: transparent; padding: 4px 14px 12px; border: 0; }
  .site-header.is-open .nav-top > li.m-doors { display: flex; flex-direction: column; gap: 10px; }
  .site-header .m-doors .btn { width: 100%; }
  /* On a laptop the phone menu hangs from the right edge under the Menu button as a sheet, so its rows keep a
     phone's measure instead of stretching across the screen. */
  .site-header.is-open .nav-top { left: auto; width: min(480px, 100vw); padding: 8px 28px 24px; border-left: 1px solid rgba(21,23,28,.12); border-bottom-left-radius: var(--radius); box-shadow: var(--shadow); }
}

/* 14. From the fold up to where the untightened bar fits (about 1320), the bar's gaps and paddings tighten so the
   full menu fits at 1240 with no sideways scroll. 1340 and up (1440 included) is untouched. */
@media (min-width: 1240px) and (max-width: 1339px) {
  .site-header .bar { gap: 6px; }
  .site-header .nav-item { padding: 0 6px; }
  .site-header .nav-caret { min-width: 24px; padding: 0 3px; }
  .site-header .bar .doors { gap: 6px; }
  .site-header .bar .doors .btn { padding: 0 .75em; }
}

/* 15. Sign In and Get Started, the open menu's first line: clear of the menu's top edge and of the group under it. */
@media (max-width: 1239px) {
  .site-header.is-open .nav-top > li.m-doors { padding: 12px 0 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(21,23,28,.1); }
}

/* 15b. Sign In in the header angles up and right like Get Started beside it (go-live, Sarah 3gBjIxui6Vu-, 2026-11-17:
   "The Sign In CTA needs an arrow pointing up and to the right just like the Get Started CTA beside it"). site.css's
   no-arrow rule for Sign In (line 383) is byte-pinned, so this more specific header rule wins over it; rule 1 gives the
   margin and the hover. The footer's Sign In keeps no arrow. */
.site-header a[href^="https://jinn.works/login"].btn--quiet::after { content: "\2197"; content: "\2197" / ""; }

/* 16. The footer's six columns (brand, Find Your Way, What Jinn Can Do, Compare, Stay Curious, Your Next Brief). Under
   1180 wide they step to four (brand and brief each take two, so the two rows fill), and under 861 to site.css's two
   (brand and brief full width, the four lists in pairs). */
.site-footer .cols { grid-template-columns: 1.3fr repeat(4, 1fr) 1.2fr; }
@media (min-width: 861px) and (max-width: 1179px) {
  .site-footer .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .site-footer .f-brand, .site-footer .f-brief { grid-column: span 2; }
}
@media (max-width: 860px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

/* ---- Status dots (round two, lib/site/status.ts; round four U15, W14, KD4). Coming is the one status chip left: it takes the
   hero's amber dot everywhere, the menu's previews included (:where keeps the hero part's own rule the more specific). ---- */

/* 17. Coming's dot. */
:where(:not(#how-side)) > .chip--status[data-status="Coming"] { --dot: var(--amber-ink); }

/* 17a. Live and Done for you print as a plain line (lib/site/status.ts statusHtml; js/shell.js JINN.status), one text style
   everywhere: no chip shape, no border, no fill, no dot. It takes its ground's color, so it reads on paper, navy and the
   picture alike. In a kicker it keeps sentence case; under a card's or row's heading it sits on its own line. */
.status-line { display: inline-block; margin: 0; padding: 0; border: 0; background: none; color: inherit; font-family: var(--ui); font-size: .86rem; font-weight: 600; font-style: normal; line-height: 1.35; letter-spacing: .01em; text-transform: none; white-space: normal; }
:is(h2, h3, h4) > .status-line { display: block; margin-top: .3em; }

/* ---- Build five sitewide rules (unit SW; Sarah's preview comments of 2026-11-13, "do this everywhere";
   .claude/overnight/2026-11-13-build-five/comments/unit-sitewide.md). Unlike the audit pass above, these do reach Home
   where Home prints the same component: Sarah asked for every page. `[data-site]` lifts each rule over the page sheets
   it meets, the way rule 2 lifts the tagline bubble. ---- */

/* 18. Uwee titles (SW1; wDZrq_WyYJaI, T4r9ZpoS6shC, LWPNHIcSQoRN, y3kUhbKxwmaW, Cb9ERidrC9Dr, riIV8HGbx-nT, SCC_WivXIbRV,
   XqlqasGQs3JF, U9CMANe2rdB5, 9qKyLPo58fUE, B_NHLi7G5M-_): every job title printed beside or under a Uwee takes one
   treatment: the ground's own text color (--fg: ink on light grounds, the on-dark text on navy and ink) straight on the
   surface, no pill, no border, one size, one weight (700, the weight the pills already rendered at and the room map's
   role lines use). The words, their order and the soft line breaks are the markup's and do not change. */
[data-site] :is(.sx-host__role, .fp-role, .ht-host__role, .host .role, .what-host .role, .sx-said p > span, .said-by p > span:not(.quote), .aud .role, .ag-role .role, .shelf-keeper__role > span, .room-map .role, .sx-job, .steplog .stage .owner > .small) {
  font-family: var(--ui); font-size: clamp(.9rem, .85rem + .2vw, 1rem); font-weight: 700; font-style: normal; line-height: 1.25; letter-spacing: 0;
  color: var(--fg); background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; opacity: 1;
}
[data-site] .sx-job :is(b, .sx-job__name) { font-weight: inherit; color: inherit; opacity: 1; }
[data-site] .sx-job .sx-job__name::before { color: inherit; }

/* 19. The feature name above the status sentence (SW3; MrC3LwSwEg2Z, 6_K9qCnJqTJA). sections.ts `featureKicker` prints the
   name first; here the kicker stacks the two, in every hero it sits in (open, front-door and painted). */
[data-site] .kicker.kicker--name-first { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
[data-site] .ah[data-align="center"] .kicker.kicker--name-first { align-items: center; }

/* 20. Step numbers (SW5; yhQCHgBrsYl7): the numbered steps take the section heading's font (Zodiak, site.css h2), a
   little larger and heavier than the .8rem UI numbers they were. Every list of numbered step circles (site.css .steps):
   How It Works' "Follow one draft through the loop.", the feature sub-pages' loop row and Home's loop. */
[data-site] .steps li .n { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1; letter-spacing: 0; }

/* 21. The fold chevron (SW13) over a page sheet's own copy of the old "+" and minus sign: How It Works' chapters
   (css/pages/how-it-works.css 2). The kit's own rule is kit.css 7; the page sheet's two lines can go with its next pass. */
[data-site] .chapter > .kit-fold > .kit-fold__summary::after { content: ""; flex: none; box-sizing: border-box; width: .5em; height: .5em; margin: -.25em .2em 0; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
[data-site] .chapter > .kit-fold[open] > .kit-fold__summary::after { content: ""; margin-top: .25em; transform: rotate(-135deg); }

/* 22. The plans band's crew figure on a phone (FIX-8, post-walk): under 861px sections.css stacks the figure under
   "A project includes", and its caption ("Bristle, Brand Visionary", "Biscuit, Chief Customer Companion") sat flush
   on the paragraph after it. The first paragraph after the stacked figure takes the band's paragraph room. Every
   product page's plans band (feature-page.ts prints `.fp-plans` with `.sx-beside`); Home prints neither. */
@media (max-width: 860px) { [data-site] .fp-plans .sx-beside + p { margin-top: clamp(24px, 6vw, 32px); } }

/* 23. Arrow fallbacks for Safari before 17.4 and Firefox before 128 (fix pass 2026-11-17, Dan: "Fix in the fix pass";
   build nine's D11 note). Those browsers drop `content: X / ""` whole, so the arrow never drew. site.css and uwees.css
   are byte-pinned v12 imports (public/site/MANIFEST.json), so their rules get the plain arrow here, only where the
   alt-text form is not understood. Same selectors, so every more specific no-arrow rule still wins. a.btn--quiet is
   left out: rule 1 above draws its arrow (up and right) with its own fallback. Every other sheet carries its fallback
   in place (`content: X; content: X / "";`); source-lint.test.ts pins both. */
@supports not (content: "" / "") {
  a.btn:not(.btn--quiet)::after { content: "\2197"; }
  .go::after, .tcta::after, .text-link::after, .dest a::after, .doors .after a::after, .panel .foot a::after, .panel .preview .pv-go::after, .vt-row a::after, main p a:not([class])::after { content: " \2192"; }
  .room .room-cap b::after { content: " \2192"; }
}
