/* ============================================================
   j-* token bridge → CSS vars (Stage F, P1 — DESIGNER LOCK → R4 LIGHT)
   Single source of truth for web/ token layer. R4 (designer-spec-R4-light,
   design_version 2.0, 2026-08-26) reroutes the dark/#7c3aed layer to a LIGHT,
   calm-trust violet system: cool-neutral ambient shell, LIGHT surfaces, deepened
   violet (hover/press darken on the value ramp — the #7c3aed hue LOCK survives),
   light glass = white alpha + violet hairline, softer ambient shadows, dark
   'said' scrims, and DARK MEDIA POCKETS (glass-bg-dark + color-text-inverse)
   for chrome that floats on video/imagery. VALUES only — every var NAME is
   identical (components reference them); this is the single source (acceptance
   /11). Zero ad-hoc hex outside this file.
   ============================================================ */
:root {
  /* ---- color ---- */
  --color-primary: #7c3aed;             /* UNCHANGED (locked violet anchor, 5.70:1 on white = AA) */
  --color-primary-hover: #6d28d9;       /* DEEPEN on light — commit deepens (dark-theme #8b5cf6 = 4.24:1 fails AA on white) */
  --color-primary-contrast: #ffffff;    /* UNCHANGED — white on violet fills all pass AA (5.70→9:1) */
  --color-bg: #f7f8fa;                  /* cool-tinted near-white ambient canvas (was #0a0a0f) */
  --color-surface: #ffffff;             /* pure paper cards/sheets (was #14141c) */
  --color-surface-raised: #eef1f6;      /* distinct cool-grey WELL — never #fff (tone-on-tone fix) */
  --color-text: #161a22;                /* cool near-black ink (was #f5f4f8); ~15.9:1 on white */
  --color-text-muted: #565e6c;          /* cool grey (was #9a9aa8); 6.54:1 on white */
  --color-border: #e5e7ef;              /* cool-light decorative hairline (was #2a2a3a); affordance lives in shadow+focus-ring */
  --color-border-strong: #8a93a3;       /* R5 — interactive/control edge (stepper circle, chip boundary, field boundary, interactive glass-pill hairline, toast edge). ~3.0:1 on white (non-text UI floor). NOT ambient dividers (whitespace separates those). Value step between ink-150 border #e5e7ef and ink-500 #565e6c — zero new hue. */
  --color-success: #15803d;             /* green-700 accent/stroke on white (was #22c55e) */
  --color-success-ink: #14532d;   /* green-900 ink for text ON a soft-fill badge (on #e7f6ec >10:1) */
  --color-warning: #b45309;             /* amber-700 on white (was #f59e0b = 1.9:1 fail) */
  --color-danger: #b91c1c;              /* red-700 on white (was #ef4444 fail); 6.48:1 */
  --color-info: #1d4ed8;                /* blue-700 on white (was #2b7de9); 6.7:1 — R3 §2 insight */
  /* ---- semantic SOFT-FILL status badges (Stage F P6) — ADDITIVE. success-soft =
     #e7f6ec (the --color-success-ink "soft-success fill" citation); danger-soft =
     #fdf0ef (the R4-governing light-theme danger-soft plate — NOT the older tokens.json
     #fcecec). Text rides the semantic INK (success-ink / danger) so contrast holds AA
     on the soft plate. Zero new hue (both neutral-family lights); used ONLY for status
     badges, never hierarchy. */
  --color-success-soft: #e7f6ec;        /* R5-adjacent success soft plate (badge bg) */
  --color-danger-soft: #fdf0ef;         /* R5-adjacent danger soft plate (badge bg, R4-governing light-theme) */
  /* P9-security designer-ratified additive: amber-warning soft plate (warn/in-progress
     states, e.g. verification rows). Text rides --color-warning ink for AA. */
  --color-warning-soft: #FDF3E3;
  /* FB16 (ws-fb16-chat-visual designer spec, 2026-10-11 — user-ratified). The chat
     CHANNEL identity hue (deep teal) — a SIGNIFIER of the conversation channel, NOT a
     status/action semantic. Scope: (a) own-bubble wash = --color-chat-soft (replaces
     --color-surface-raised at that one seat); (b) the composer enabled-send glyph tint
     = --color-chat (replaces --color-info at that one seat, MessengerComposer);
     (c) the Inbox bottom-nav tab active glyph+label tint = --color-chat (a per-tab nav
     accent override — every OTHER tab keeps --color-accent). INVARIANTS UNSHAPED: the
     unread badge STAYS violet --color-accent (the ONE sanctioned violet exception);
     in-chat product price STAYS INK --color-text. base 5.91:1 on white / 4.79:1 on
     --pill-bg (AA); soft wash: --color-text on it ~14.9:1. */
  --color-chat: #0E6F76;
  --color-chat-soft: #DCEFEE;
  --color-accent: #6d28d9;              /* R4 accent-on-LIGHT — violet-branded, 7.1:1 text/icon (was #8b5cf6 accent-on-dark) */

  /* ---- spacing ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  /* ---- touch / shape (nav doctrine §4.1 — 44px targets) ---- */
  --touch-target: 44px;
  --radius: 16px;      /* surfaces, cards, CTA (DNA S3 — storefront.spec §2) */
  --radius-lg: 20px;   /* sheet top corners, reel strip thumbs (DNA S3) */

  /* ---- motion (doctrine §4.4 — 0.15–0.2s) ---- */
  --trans-fast: 0.15s;
  --trans-base: 0.2s;

  /* ---- font ---- */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* font-pairings-contract §12: the body/UI face — unset == today's Inter stack byte-for-byte */
  --font-display: var(--font-body); /* §12: the display-seat face — aliases the body face until a preset scope re-declares it */
  --weight-display: 700; /* §12: the ONE baked display weight — 700 is today's literal at the seven seats, so unset renders identically */
  --font-family: var(--font-body); /* §12: pure alias, so every existing consumer (body :472, skip-link :392, article.css:32) keeps resolving to Inter outside a preset subtree */

  /* ============================================================
     STOREFRONT-DNA token delta (Stage F design rework, Designer 2026-08-24)
     Extends the block — #7c3aed stays the SOLE primary anchor (R4 deepens by VALUE).
     Every value cites the storefront source (stage-f-design-spec §2).
     ============================================================ */

  /* ---- color: gradient + brand surfaces (S4) — R4 LIGHT: both anchors keep white-AA ---- */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); /* darkens across = commitment-deepening ramp (was ->#8b5cf6 which fails on white) */
  --gradient-cta: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);      /* deepest commit; white ~9:1 at the deep end — THE CTA */
  --gradient-story-ring: conic-gradient(from 0deg, #C1AFE4 0%, #AFC5E4 20%, #AEE0DD 40%, #EED8A5 60%, #E5AEC0 80%, #C1AFE4 100%); /* scene-nav-swipe v1.0 — story-ring seam: SOFT CONIC pastel loop (user-ratified), circle seam ONLY — width var(--story-ring-width) (StoryCircles.jsx:91). Stops violet->blue->teal->amber->rose at ~L78-79%, full-opacity (softness = lightness, not alpha), 100%==0% = seamless loop. Decorative — never hierarchy (R5); caption contrast (--color-text ~15.9:1) untouched because the ring sits on the circle's outer seam, never behind type. */
  --story-ring-width: 4px; /* designer-spec-story-ring v1.1 — seam WIDTH token (was the STORY_RING=2 module const). Thickened 2→4px so the pastel conic loop reads as a vibrant tap-invitation ring (user directive 2026-09-07). Outer diameter stays 64px; inner image well = 64 − 2×4 = 56px. Value == var(--space-1) (base-4). Decorative — never hierarchy (R5); no hue change to the gradient; violet stays on the monogram (--gradient-primary). */
  --color-scrim: linear-gradient(180deg, transparent 30%, rgba(18,14,28,0.62) 100%); /* dark but 'said' — dims bright media, violet-tinted black @0.62 */
  --color-scrim-top: linear-gradient(180deg, rgba(18,14,28,0.5) 0%, transparent 40%);
  /* F6 — bottom legibility fade for chrome over full-bleed media (Reels feed).
     INVERSE of --color-scrim-top (transparent-top -> dark-bottom), so the strip
     reaches ~90% alpha at the floating bar's seat and fades gently above it
     (no hard seam). 0.50 = the calm 'said' step. */
  --color-scrim-bottom: linear-gradient(180deg, rgba(18,14,28,0) 0%, rgba(18,14,28,0.50) 100%);
  /* pdp/card v2 — ONE additive token, quick-fix 2026-09-05: product-card overlay
     scrim. Sits FULL-FRAME under the tile/editorial title+price seat of EVERY
     StoryProductTile (the card is media + overlay). Quick-fix: REPLACED the
     dark violet-black band (F1 AA math — read "too dark", buried the product)
     with a PALE FROSTED band: top 55% pixel-clean (alpha 0), soft white 0.55
     frost to the floor. Product stays visible; the overlay copy is now INK
     (--color-text) on the pale frost, and the text seat adds blur(8px) in
     SceneShelf.jsx. Same pale-frost value for both layouts. */
  --scrim-product: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.55) 100%);
  --scrim-editorial: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.55) 100%);
  /* Quick-fix 2026-09-05 — DECORATIVE rating gold #F5B301 (filled review
     stars). NEVER a semantic hue; used ONLY at the decorative star seats
     (ProductDetailPage hero rating row + reviews summary + review list rows).
     Yellow alone is not AA — the numeric rating + sr-only label carry the
     meaningful value at every site. */
  --color-star: #F5B301;
  /* live-feedback-batch E (2026-10-20, user-ratified) — product PRICE accent
     (terracotta; 7.31:1 on paper / 6.88 canvas / 5.92 active chip — AA text).
     Amounts ONLY: card amount, PDP loud amount, ladder amount, variant amount.
     NEVER the KES label, compare-at, unpriced, chat price, checkout total, or a
     status/destructive surface. */
  --color-price: #9A3412;
  --color-whatsapp: #25d366;              /* src: base.css:348 (identifying brand green — theme-independent) */
  --color-whatsapp-hover: #128c7e;       /* src: base.css:353 */

  /* ---- glass / blur (S5) — R4 LIGHT glass = white alpha + blur, SUBTLE ---- */
  --glass-blur: 20px;                    /* src: landing.css:94; base.css:4213 */
  --glass-saturate: 140%;                /* reduced-harshness (was 180%) */
  --glass-bg: rgba(255,255,255,0.55);             /* LIGHT frosted chrome over light content (was rgba(28,24,40,0.66)) */
  --glass-bg-high: rgba(255,255,255,0.97);        /* near-opaque light frosted pills — blur(20px) only frosts FINE detail, so a LARGE dark region (product card) still ghosts through an 8% leak (0.92 -> RGB 236 vs 255). 0.97 knocks the leak to ~3% (RGB ~248): content genuinely disappears while blur+saturate+silver-lining keep the glassmorph. */
  --glass-bg-mid: rgba(255,255,255,0.90);         /* Stage H-II — 0.90 frosted pill (Designer-ratified): the StoreHeader sticky pill's occluding plate — frost carries depth while content reads through at a calmer 10% (between --glass-bg 0.55 and --glass-bg-high 0.97). NAV RECTIFICATION (designer-spec-nav-and-pdp-back v1.0) — the StoreHeader top bar is now SOLID var(--color-bg); this utility token LOST its only consumer and is RETAINED (ratified glass-middle utility, may serve future frosted chrome). No value change. */
  --glass-border: rgba(124,58,237,0.18);          /* faint VIOLET hairline — keeps brand on frosted chrome (was rgba(255,255,255,0.08)) */
  --glass-lining: inset 0 1px 0 rgba(255,255,255,0.5); /* G4 silver lining — 1px WHITE catch-light on the glass TOP edge; composed into elevation: (--glass-lining, --shadow-float|--shadow-float-up) */

  /* ---- radius (S3) — expand, keep pills ---- */
  --radius-sm: 12px;                     /* controls/chips (src: base.css:69-72) */
  --radius-pill: 9999px;                 /* pills, chips, active tab (src: base.css:214) */
  /* ws1-theme — INVARIANT circle tokens. The sharp override NEVER redeclares
     these: a circle is not a rounded corner. --radius-circle = true 1:1 discs
     (avatars/monograms, round icon buttons, the qty stepper, story ring/circles,
     play seats); --radius-dot = pager/position dots (gallery/scene dots) so OFF
     squares every --radius-pill UI while dot indicators survive. Values equal
     the literals they replace — zero visual change in the default path. */
  --radius-circle: 50%;
  --radius-dot: 9999px;
  /* ws1-theme v1.1 — MEDIA-frame radius tokens. Sharp mode zeroes ONLY these
     (see the [data-corners="sharp"] block); every chrome token above is a hard
     invariant in BOTH modes. Values are 1:1 with today's chrome values
     (--radius-lg 20 / --radius-sm 12), so rounded mode is byte-identical. */
  --radius-media: 20px;
  --radius-media-sm: 12px;

  /* ---- border widths ---- */
  /* ws22-gallery-seam — MECHANICAL COMPILE of the designer-registry-ratified
     `border_width` unit in agents/designer/knowledge/tokens.json ({ hairline: 1,
     sm: 2 }); the registry already carries hairline but the compiled CSS var was
     absent (orchestrator-sanctioned single-line compile). The gallery mosaic seam
     consumes --border-width-hairline (SceneShelf GALLERY_SEAM_GAP); zero new hue /
     value family. `sm: 2` stays uncompiled (no consumer yet). */
  --border-width-hairline: 1px;

  /* ---- type: tight display tracking (S1) ---- */
  --track-tight: -0.02em;                /* src: landing.css:31 */
  --track-display: -0.03em;              /* src: landing.css:38 */
  --ls-caps: 0.08em;                     /* src: order-tracking.css:240 */

  /* ---- motion (S10) ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); /* src: landing.css:1185 */
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);  /* WS35 — reconciled from tokens.json motion.easing_standard (designer-registered, zero new curve); the OUT half of tldSwipeUp. Registry bump (tokens.json 0.1.8) + changelog is the designer's change, applied in the same batch. */
  --rise: translateY(-2px) scale(1.0);             /* hover lift, src: base.css:1637 */

  /* ---- elevation (S9) + focus (S11) — R4 softer/ambient, visible-on-light ring ---- */
  --shadow-soft: 0 4px 20px rgba(18,20,28,0.05);      /* iridescent ambient (was 0.06) */
  --shadow-float: 0 12px 40px rgba(18,20,28,0.10);    /* floats off white (was 0.08) */
  --shadow-card: 0 2px 8px rgba(18,20,28,0.06), 0 10px 30px rgba(18,20,28,0.10);  /* layered SOLID light cards, calm opacity (was 0.20/0.32) */
  --focus-ring: 0 0 0 3px rgba(109,40,217,0.60);   /* F1 bump: alpha 0.40->0.50->0.60 to hold >=3:1 on white; still calm (was 0.22 far too faint). BOX-SHADOW grammar ONLY — focus OUTLINES use 3px solid var(--color-accent) + 3px offset. */
  --ring-card: 0 0 0 2px var(--color-accent);      /* WAVE1 console popups — card-marker ring on product gallery tiles (accent ring only, ZERO new hue / never a fill) */

  /* ==== SPEC-C template-DNA rebase additions (designer-locked, additive) ====
     Merged from designer-spec-C tokens_additions + SPEC-B tokens_additions.
     Every existing var above is UNCHANGED — these extend the block only.
     Type polarity primitives + pill radius already present above
     (--radius-pill, --ls-caps, --track-tight, --type fonts reuse --font-family). */
  --space-7: 40px;                     /* SPEC-B: sheet handle sweep / pillrail gap (base-4) */
  --space-8: 48px;                     /* SPEC-C: template --space-5xl storefront section gap (base.css:42; portfolioBooking.css:16) */
  --row-min: 56px;                     /* SPEC-B: swipe-capable list row min height */
  --tabbar-height: 64px;               /* SPEC-B: nominal tab bar (44 target + 2x space-2); + safe-area */
  --sheet-scrim: rgba(18,14,28,0.45);   /* SPEC-B: opaque dim behind bottom-sheet — dark but 'said' @0.45 + blur(12px) (popup law) */
  --handle-width: 40px;                /* SPEC-B: drag-handle width (mid-finger) */
  --handle-height: 4px;                /* SPEC-B: drag-handle thickness (base unit) */
  --radius-32: 32px;                   /* SPEC-C: 32px round modal close (template .modal-close/.bkm-close) */

  /* ---- elevation: bar separation (nav-audit P1-3 / E.4 — tokens_additions) ----
     --shadow-float-up: upward-edge variant of --shadow-float for the tab bar.
     elevates the bar FROM the content above it (elevation-not-border), replacing
     the old `borderTop: 1px solid var(--glass-border)`. Same rgba as --shadow-float
     (src: landing.css:438), Y negated so the shadow casts upward onto the feed. */
  --shadow-float-up: 0 -12px 40px rgba(18,20,28,0.08);

  /* ---- type polarity primitives (SPEC-C font_scale + SPEC-B) ---- */
  --type-title: 1.5rem;                /* surface titles (Manage/Store/sheet) */
  --type-h3: 1rem;                     /* sheet / section titles */
  --type-sm: 0.875rem;
  --type-caption: 0.8rem;              /* meta / muted lines */
  --type-micro: 0.78rem;               /* tab labels, badges, eyebrows (--ls-caps) */
  /* ---- shop-expansion v5.1 — ONE additive type token (designer-ratified) ----
     --type-display: 2rem (32px) — the DOUBLE of the 16px body (style-bible '"play
     small against ~double display"') and the octave of the --type-h3/--type-title
     1.25 ramp. Shop/PDP ramp = 32 : 16 : 12.8 = 2 : 1 : 0.8. THE loud voice — used
     once per surface (masthead / PDP product title), never in a list. (hero
     headline demoted to --type-title, Wave 4.) ZERO new hue/family — type only.
     Applied at 700 weight with --track-display on the Shop storefront + Product
     Detail Page. */
  --type-display: 2rem;

  /* ---- ws32-landing-masterwork (designer spec, 2026-10-11) — ONE additive type
     token (user-ratified). --type-hero: 2.5rem (40px) — the SINGLE h1 display
     moment on the platform landing (the BR-1 banner), the next octave on the ramp
     (40 = 32 x 1.25 = tokens.json typography.type 2xl 40/48). Replaces the ad-hoc
     2.25rem the departmental review flagged. Used ONCE per surface; Inter 700 +
     --track-display (this platform surface is cimo's own chrome: serif/display faces are preset-scoped to a merchant storefront, the default stays Inter-only). ZERO new hue/family.
     Registry bump (agents/designer/knowledge/tokens.json 0.1.9) applied in the
     SAME batch. Line 48 (1.2) per the type_role.hero registry entry. */
  --type-hero: 2.5rem;

  /* ---- landing-desktop (2026-10-31) — TWO additive compiled type tokens (registry typography.type.md 20/28 + typography.type.3xl 50/62); no existing value changes. */
  --type-md: 1.25rem;                  /* registry typography.type.md (20/28) */
  --type-3xl: 3.125rem;                /* registry typography.type.3xl (50/62) */

  /* ---- flow progress (SPEC-C flows — labelled fill-track, base.css:2360-94) ---- */
  --track-height: 3px;                 /* 3px progress track thickness (base.css:2360) */

  /* ---- motion (SPEC-C motion + SPEC-B trans-sheet) ---- */
  --trans-sheet: 0.3s;                 /* sheet/modal slide-in + tab swipe settle; --ease-out-expo */

  /* ============================================================
     R3 harm (designer-spec-R3, design_version 1.3) — token additions.
     ZERO new hex. Functional viewport geometry (72dvh / 9:16 / safe-area) is
     authored in the components, never here. These names map the R3 token
     proposals onto this file's conventions. (R4: reel_dim recased to the dark
     media-pocket family; pill_bg remapped R5 to a neutral value step #e5e7ef.)
     ============================================================ */
  --blur-backdrop: 12px;             /* R3 §5 modal backdrop blur(12px) on the dim (popup law). */
  --icon-canvas: 24px;               /* R3 §1 icon_canvas — Icon.jsx viewBox (24px)·44px affordance. */
  --reel-dim: rgba(18, 14, 28, 0.55);   /* R3 reel_backdrop_dim — letterbox DIM over media; recased R4 to the dark-pocket/scrim family (media is not theme). */
  /* ReelSurface overhaul (designer-spec 5.0, 2026-08-27) — ONE additive token. A LIGHT
     empty-reel progress track over media: the scrim family is dark and no light-alpha
     token existed. White-alpha only, ZERO new hue (SC-4). Used by the timeline EMPTY
     track in SceneShelf.jsx (replaces the ad-hoc rgba(255,255,255,0.2)). */
  --color-track-empty: rgba(255,255,255,0.24);
  --pill-bg: #e5e7ef;                   /* R5 pill_bg (ADJUSTED from R4 rgba(124,58,237,0.12) — neutral value step, R5 r4_values_adjusted). Active nav/home toggle reads by accent glyph + label weight, NOT a violet fill. Neutral raised well. */

  /* ============================================================
     R4 LIGHT-THEME ADDITIVE TOKENS (designer-spec-R4-light §1 colors_additive)
     Deliberate extension — the dark-media-pocket + accent-floor primitives.
     ZERO new hues: all resolve to the locked violet family or the neutral ramp.
     ============================================================ */
  --color-primary-pressed: #5b21b6;      /* violet-800 — deepest active-press (value-ramp floor; white ~9:1) */
  --glass-bg-dark: rgba(18, 14, 28, 0.70); /* DARK frosted pocket OVER media — reel/overlay chrome on video uses this + color-text-inverse */
  --color-text-inverse: #f5f4f8;          /* light ink for text/icons on glass-bg-dark over media (dark-media-pocket legibility) */

  /* ---- layout (designer-spec-scene-preview-width-fix v1.0, 2026-09-08) ----
     Content column caps — the semantic seat "content column" names the width
     instead of hardcoding (was: console 480 ×4 files, marketing 720, storefront
     1200 = the SAME seat authored three ways). Every surface consumes
     min(100%, var(--content-max…)) — the max is a cap, never a floor, so
     content is edge-safe at EVERY viewport. Additive, zero value changes. */
  --content-max: 1200px;                /* storefront content column cap (ShopPage seat) */
  --content-max-console: 480px;         /* console content column cap (Manage/SceneDetail/StoreBasics/CustomizeHub/Marketing) */

  /* ---- ws32-landing-masterwork (designer spec, 2026-10-11) — platform-landing
     grid SYSTEM semantic aliases. Additive; every value resolves to an EXISTING
     token (zero new values, zero new hues). --grid-gutter = the page's column+row
     gutter; --grid-margin = the page's outer margin (= 2x the gutter, printer's
     ratio) + section gap; --measure = the running-text measure cap (~66ch of 16px
     Inter; the 588px lane is the binding column, --measure is a safety cap). See
     knowledge/components/platform-landing.md + the WS32 designer spec.
     Registry: tokens.json grid block (0.1.9), applied in the same batch. */
  --grid-gutter: var(--space-5);
  --grid-margin: var(--space-8);
  --measure: 40rem;

  /* ---- article-surface (designer spec, 2026-10-25) — ONE additive layout token.
     --measure-prose: 35rem (560px) — the LONG-FORM reading column of the static
     article surface (/articles/ + /articles/<slug>/, f/public/articles/article.css).
     --measure (40rem) above is a SAFETY CAP inside the platform-landing's 588px
     lane and never binds there; used as a prose column it measures ~72-80ch of
     16px, over the 60-70ch rail (style bible: 66 ideal). 560px = 35em = 66-70ch on
     the same calibration that gives the landing lane 66-73ch. --measure is
     UNCHANGED; zero colour / type / radius / shadow change. Spec:
     projects/cimo/specs/article-surface-2026-10-25.md +
     knowledge/components/article-surface.md. Registry bump (tokens.json 0.3.0
     grid.measure_prose) applied in the SAME batch. */
  --measure-prose: 35rem;
}

/* ============================================================
   ws1-theme v1.1 (user ruling 2026-09-30) — the STOREFRONT finish override.
   `[data-corners="sharp"]` is set on <html> by useStoreAppearance while a
   storefront surface whose store config is corners:'sharp' is mounted.
   SHARP = MEDIA CONTAINERS ONLY: this block re-declares ONLY the two media
   radius tokens, so every frame that holds a photo/video gains straight edges
   while ALL UI chrome (buttons, CTA, nav, chips, segment control, inputs,
   modals/sheets, cards, fact block, text-only hero, focus silhouettes) stays
   cimo-rounded. Chrome tokens (--radius-sm/--radius/--radius-lg/--radius-pill)
   are HARD INVARIANTS — never re-declared here, identical in both modes. The
   invariant circles (--radius-circle/--radius-dot) are likewise never touched.
   Applied only when the attribute is present: the default path (rounded/ratio)
   emits NO attribute and is byte-identical. No color/type/shadow/motion/ratio
   or aspect-ratio is changed.
   ============================================================ */
[data-corners="sharp"] {
  --radius-media: 0;
  --radius-media-sm: 0;
  /* chrome + invariant tokens are intentionally NOT re-declared */
}

/* font-pairings-contract §5.1(3) — preset scoping: a preset storefront root carries data-type="<id>" on ITS OWN element (never <html>), so this rule re-types that subtree only. Unset = no attribute = no match. */
[data-type] { font-family: var(--font-body); }

/* ============================================================
   R3 single-source keyframes + component chrome — hoisted ONCE
   (single-source audit: these were inline <style> per instance; the
   reel keyframes alone repeated ~10× per feed). Defined here globally,
   per-instance <style> tags removed. All motion is killed by the global
   @media (prefers-reduced-motion) below → instant state, per R3 A2.
   ============================================================ */
@keyframes reelTimeline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes reelHeart { 0% { transform: scale(0.4); opacity: 0; } 35% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 0.9; } }
@keyframes checkoutCenter { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes p8spin { to { transform: rotate(360deg); } }

/* R3 §2 IG-grade double-tap choreography (SceneShelf) — one ≤320ms gesture.
   Particle dots drive direction via per-particle inline vars --px/--py. */
@keyframes reelHeartPop { 0% { transform: scale(0.6); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes reelRing { from { transform: scale(0); opacity: 0.6; } to { transform: scale(1); opacity: 0; } }
@keyframes reelParticle { 0% { transform: translate(0, 0) scale(1); opacity: 0.95; } 100% { transform: translate(var(--px, 0), var(--py, 0)) scale(0.3); opacity: 0; } }
@keyframes reelChipsIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes riseUp { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* checkout-coverage-tag (designer spec token_delta) — ONE additive CLASS reusing the
   EXISTING reelChipsIn keyframe + motion tokens (--trans-base 0.2s, --ease-out-expo).
   Entrance ONLY: applied when the coverage read materializes AFTER the modal's first
   paint (async data); present-at-first-paint renders with the modal (zero shift) and
   qty text swaps stay instant. Class-driven so the GLOBAL prefers-reduced-motion kill
   (*{animation:none!important}) applies — never inline style={{animation}}. Not a
   token, not a keyframe; the chip's base styles live inline in CheckoutModal (tokens). */
.ck-note--in { animation: reelChipsIn var(--trans-base) var(--ease-out-expo) both; }

/* WS35 — landing hero TLD switcher (designer spec ws35-tld-switcher-designer-spec v1.0,
   2026-10-11). ONE keyframe + ONE class + the slot chrome, hoisted once (single source).
   tldSwipeUp is a BOUNDED one-shot pass (both-fill, NO animation-iteration-count:infinite);
   the "loop" is the JS dwell timer in TldSwitcher.jsx. The GLOBAL prefers-reduced-motion
   kill below (*{animation:none!important}) cancels it — the static `.com` is the DEFAULT
   text, it is never revealed BY the animation. Out half eases with --ease-in-out, in half
   with --ease-out-expo; travel is -0.6em/+0.6em (motion geometry, like riseUp 16px). */
@keyframes tldSwipeUp {
  0%     { transform: translateY(0);      opacity: 1; animation-timing-function: var(--ease-in-out); }
  49.99% { transform: translateY(-0.6em); opacity: 0; }
  50%    { transform: translateY(0.6em);  opacity: 0; animation-timing-function: var(--ease-out-expo); }
  100%   { transform: translateY(0);      opacity: 1; }
}
.tld-slot__word--run { animation: tldSwipeUp var(--trans-sheet) both; }
/* Width stability: the in-flow ::before benchmark (content:attr(data-bench) = the WIDEST
   sequence item) reserves a CONSTANT slot width while staying visibility:hidden; the live
   word overlays it (position:absolute; inset:0), contributing ZERO width → the sentence
   never reflows/re-wraps as `.com` <-> `.business` swap. font-weight:500 lives on the SLOT
   so the benchmark matches the live word's width (the word inherits); colour is set on the
   slot too. NO overflow/clipping — the word is fully transparent across the travel window. */
.tld-slot { display: inline-block; position: relative; white-space: nowrap; color: var(--color-text); font-weight: 500; }
.tld-slot::before { content: attr(data-bench); visibility: hidden; }
.tld-slot__word { position: absolute; inset: 0; text-align: center; white-space: nowrap; }

/* WS36 — landing category lane (designer spec ws36-tld-switcher-v1-1-designer-spec
   v1.1, 2026-10-11). ADDITIVE: the TLD slot weight quiets 600 -> 500 (option A — ink
   alone stays the emphasis signifier), and the category lane reuses the SAME tldSwipeUp
   keyframe + .tld-slot__word--run class — ZERO new keyframes/classes. The lane word's
   constant width is reserved by its own ::before benchmark (attr data-bench = the WIDEST
   category = `professionals`), so the lane never re-wraps as categories swap. */
.cat-lane { display: block; white-space: nowrap; font-size: 1.05rem; line-height: 1.5; }
.cat-lane__lead { color: var(--color-text-muted); }
.cat-slot { display: inline-block; position: relative; white-space: nowrap; color: var(--color-text); font-weight: 500; }
.cat-slot::before { content: attr(data-bench); visibility: hidden; }
.cat-slot__word { position: absolute; inset: 0; text-align: center; white-space: nowrap; }

/* nav-audit A.1 / P1-1 — Skip link (hoisted from the inline <style> in SkipLink.jsx).
   Hidden off-viewport until keyboard focus shows it. Tokens only, no ad-hoc hex. */
.cimo-skip-link {
  position: fixed;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target);
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--focus-ring);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(-200%);
  transition: transform var(--trans-fast) var(--ease-out-expo);
}
.cimo-skip-link:focus-visible {
  transform: translateY(0);
}

/* ============================================================
   PDP (shop-expansion v5.1) — Product Detail surface chrome.
   F4: the PDP hero+copy container is the INTRINSIC 6/12 + 6/12 two-column
   (media | copy) at >=768px via a FIXED repeat(12,minmax(0,1fr)) grid with
   explicit span 6 / span 6. NO repeat(auto-fill|auto-fit, minmax(...)) — that
   self-tracks and breaks the intrinsic split. Below 768px: single 1fr stacked
   column (both cells collapse to 12/12, media above copy). Gutter = --space-4.
   Motion: .pdp--entered is the sheet-rise entrance — REUSES the comment sheet's
   riseUp keyframe (translateY(16px->0) + opacity(0->1), --trans-sheet 300ms,
   --ease-out-expo). Class-driven so the global prefers-reduced-motion kill
   (*{animation:none}) applies — never inline style={{animation}}.
   ============================================================ */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 768px) {
  .pdp-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-4);
  }
  .pdp-hero { grid-column: span 6; }
  .pdp-copy { grid-column: span 6; }
}
.pdp--entered {
  animation: riseUp var(--trans-sheet) var(--ease-out-expo);
}

/* ============================================================
   Stage H-II — inherited block-list entrance (EditableBlocks view mode).
   ONE shared first-load slide-up+fade for EVERY storefront block: the
   container carries `.blocks-rise`, each wrapper div sets `--i` (child
   index) inline → the 40ms-per-index stagger (capped at 8, <=320ms
   spread — the ContentPage cap). Reuses the EXISTING riseUp keyframe;
   the GLOBAL prefers-reduced-motion kill below cancels it (no per-
   component media query). Two separate rules so the `animation`
   shorthand never clobbers `animation-delay`.
   ============================================================ */
.blocks-rise > * { animation: riseUp var(--trans-base) var(--ease-out-expo) both; }
.blocks-rise > * { animation-delay: calc(min(var(--i, 0), 8) * 40ms); }

* { box-sizing: border-box; }

html, body, #root { height: 100%; margin: 0; }

/* mobile-tap-states-contract §tap-highlight — ONE global UA tap-flash kill (html).
   Removes ONLY the browser default grey/blue flash; designed rings/hover stay
   state-driven, so zero designed-visual change. .cimo-skip-link:focus-visible stays. */
html {
  -webkit-tap-highlight-color: transparent;
}

/* ws3-checkout-contract v1.2 §contact_action_classes — the global contact-action
   pair (portal-safe; StoreHeader's media-query label pattern is the precedent).
   Base = 44px icon-only circle; >=640px expands to a labeled pill. Anchors carry
   aria-labels at BOTH sizes (the word labels are aria-hidden). Geometry lives in
   the CLASS (not inline) so the >=640 override can actually win over the base —
   the anchors only inline flex-basis was the F2 bug; the CLASS owns the 44px basis and the >=640 auto. */
.contact-action { width: var(--touch-target); height: var(--touch-target); padding: 0; flex: 0 0 var(--touch-target); }
.contact-action-label { display: none; }
@media (min-width: 640px) {
  .contact-action { width: auto; height: auto; padding: 0 var(--space-3); flex-basis: auto; }
  .contact-action-label { display: inline; }
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}