/* =====================================================================================================
   Ryze Academy — design tokens + core components
   Source of truth: the Ryze blog-v2 redesign (ryze-landing, branch blog/redesign-pilot):
     src/styles/blog-v2/source/template.source.css (prototype CSS, layered v1…v128),
     src/styles/blog-v2/{baseline,extensions,frozen.generated}.css, src/components/blog-v2/engine/legacy.js,
     src/components/home-components/{HomeNavbar,FinalCTALemon,StickyMcpBanner}.jsx
   Every value below was confirmed against computed styles on
   https://ryze-blog-redesign-preview.vercel.app/blog-v2/claude-skills-for-meta-ads (1440 and 390 px).

   Install: copy this file to site/assets/tokens.css (site/deck/deck.css already expects /assets/tokens.css).
   Font URLs are root-absolute (/assets/fonts/…), i.e. they assume site/ is served as the web root.
   Wordmark only: <link href="https://fonts.googleapis.com/css2?family=Inter:wght@800&display=swap" rel="stylesheet">
   ===================================================================================================== */

/* ---------- fonts ---------- */
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/satoshi/Satoshi-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/satoshi/Satoshi-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/satoshi/Satoshi-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/satoshi/Satoshi-Black.woff2') format('woff2'); }
@font-face { font-family: 'Press Start 2P'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/press-start-2p/PressStart2P.ttf') format('truetype'); }

/* ---------- tokens ---------- */
:root {
  /* neutrals (blog-v2 :root + v59 "ll" layer) */
  --page: #FFFFFF;            /* final page colour (v120: the drawn page is white; earlier drafts used #ECECEC / #FAF9F7) */
  --card: #FFFFFF;
  --inner: #F4F4F4;           /* secondary fills, hover of light buttons */
  --ink: #111111;             /* headings, primary text, dark cards */
  --ink-2: #555555;           /* body copy, lead, captions */
  --ink-3: #8E8E8E;           /* quiet meta: counters, table ranks, placeholders */
  --ink-quiet: #8A8D91;       /* labels under mini cards */
  --line: #E8E8E8;            /* progress tracks, popover rings */
  --ll-line: #E4E2DD;         /* the card hairline (warm) */
  --ll-line-2: #ECEAE6;
  --gray: #D6D6D6;            /* 1px border on black buttons */
  --black: #000000;           /* button fill */
  --black-hover: #262626;
  --band: #0E0E0F;            /* full-bleed black blocks */
  --dark-card: #111111;       /* hero chart card, sidebar dock, code blocks, related-guide cards */

  /* brand */
  --cta: #FF7F32;             /* Ryze orange: strips, "Ryze" cursor, active dots, labels above headings */
  --cta-hover: #EC681C;
  --nav-hover: #FF4801;       /* nav link hover, chevron of the sticky pill */

  /* accent palette (v60, Sasha): fill · ring (-d) · text (-t) */
  --c-orange: #F58E43;
  --c-rose: #E1B5A8;   --c-rose-d: #C79586;  --c-rose-t: #85503F;
  --c-lilac: #CDBDEB;
  --c-blue: #8DD8F3;   --c-blue-d: #5FBFE0;  --c-blue-t: #1D6A86;
  --c-aqua: #9CE7DD;   --c-aqua-d: #66CDBF;  --c-aqua-t: #1C6A60;
  --c-green: #A4F0B8;  --c-green-d: #6FD68C; --c-green-t: #22743F;

  /* card rings (v75/v76): one-colour 1px inset ring; blue by default, per-section variants */
  --ring-blue: rgb(141 216 243 / .75);
  --ring-aqua: rgb(102 205 191 / .55);
  --ring-green: rgb(111 214 140 / .55);
  --ring-rose: rgb(199 149 134 / .5);
  --pl: var(--ring-blue);
  --link-underline: rgb(102 205 191 / .9);

  /* the accent stroke: a gradient ring that starts orange in the top-left corner and melts (v56 → v76) */
  --s-w: 2px;
  --s-len: 50%;
  --accent-stroke: linear-gradient(in oklab 135deg, #F58E43 0%, #E1B5A8 12.5%, #CDBDEB 18.75%, #8DD8F3 25%, #9CE7DD 36.5%, rgb(141 216 243 / .18) 50%, rgb(255 255 255 / .06) 100%);
  --accent-stroke-row: linear-gradient(in oklab 90deg, #F58E43 0%, #E1B5A8 9%, #CDBDEB 14.5%, #8DD8F3 20%, #9CE7DD 34%, rgb(141 216 243 / .35) 60%, rgb(141 216 243 / .14) 100%);
  --accent-stroke-card: linear-gradient(in oklab 135deg, #F58E43 0%, #E1B5A8 8%, #CDBDEB 13%, #8DD8F3 18%, #9CE7DD 30%, rgb(141 216 243 / .3) 55%, rgb(141 216 243 / .12) 100%);
  --accent-stroke-top: linear-gradient(in oklab 90deg, #F58E43 0%, #E1B5A8 10%, #CDBDEB 18%, #8DD8F3 28%, #9CE7DD 40%, rgb(156 231 221 / 0) 64%); /* full-bleed blocks: 2px line along the top edge */

  /* offset glass (v77): a tinted pane 8px down-right behind a card */
  --g-size: 8px;
  --glass: linear-gradient(140deg, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / .353) 45%, rgb(255 255 255 / .663) 100%),
           linear-gradient(135deg, rgb(102 205 191 / .27) 0%, rgb(141 216 243 / .243) 55%, rgb(225 181 168 / .27) 100%);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 1px 0 0 rgb(255 255 255 / .64), 0 22px 44px -26px rgb(28 52 48 / .275);
  --glass-flat: color-mix(in srgb, color-mix(in srgb, #9CE7DD 28.8%, #fff) 78%, transparent); /* the dark card's offset: box-shadow 8px 8px 0 */

  /* shadows */
  --sh-1: 0 1px 2px rgba(17,17,17,.04), 0 8px 22px -14px rgba(17,17,17,.12);            /* every white card */
  --sh-card: inset 0 0 0 1px var(--ll-line), var(--sh-1);                                  /* hero card, logo strip */
  --sh-ring: inset 0 0 0 1px var(--pl);                                                    /* content cards */
  --sh-dark: 0 18px 40px -26px rgba(28,106,96,.4);                                         /* black cards on white */
  --sh-hover: 0 16px 30px -18px rgba(17,17,17,.22);                                        /* card lift on hover */
  --sh-pop: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(0,0,0,.3);                       /* popovers */
  --sh-pill: 0 2px 20px rgba(0,0,0,.08), -6px 0 15px rgba(0,0,0,.06);                       /* sticky pill */

  /* radii: "buttons and fields stay almost square, like the header button" */
  --r-btn: 4px;
  --r-inner: 4px;
  --r-card: 8px;
  --r-glass: 10px;
  --r-chip: 16px;
  --r-pill: 999px;

  /* type */
  --font-sans: 'Satoshi', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-wordmark: 'Inter', 'Satoshi', sans-serif;   /* weight 800, the "Ryze" wordmark only */
  --font-pixel: 'Press Start 2P', monospace;          /* footer stats only */

  /* KIT v102 type scale: size / line-height / tracking (desktop ≥ 760 px) */
  --t-display: 68px;  --lh-display: 72px;  --ls-display: -.03em;   /* hero h1 (clamp to 90px on very wide screens) */
  --t-h2: 44px;       --lh-h2: 48px;       --ls-h2: -.025em;
  --t-h3: 28px;       --lh-h3: 36px;       --ls-h3: -.012em;        /* strip / band headings use -.02em / -.025em */
  --t-h4: 24px;       --lh-h4: 32px;       --ls-h4: -.015em;        /* tool card names, dock title */
  --t-title: 20px;    --lh-title: 28px;                             /* card titles */
  --t-lead: 20px;     --lh-lead: 32px;                              /* body of the article (ink-2) */
  --t-ui: 16px;       --lh-ui: 24px;                                /* card text, buttons, FAQ */
  --t-meta: 13px;     --lh-meta: 18px;                              /* labels, counters, byline (13.5) */
  --t-small: 12px;    --lh-small: 16px;                             /* small print under buttons, table heads */

  /* spacing (KIT v102): 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --section-pad: 48px;          /* top and bottom of a section, so sections sit 96 apart */
  --gap-tiles: 10px;            /* gap between top-level cards (hero / logo strip / article) */

  /* layout */
  --pw: min(calc(100vw - 136px), 1568px);   /* page width: 68px margins, as on get-ryze.ai */
  --content-w: 940px;                        /* text, headings, cards and tables share one width */
  --side-w: 272px;                           /* sticky sidebar column */
  --header-h: 76px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);       /* the one easing of the system */
  --ease-io: cubic-bezier(.65, 0, .35, 1);   /* rolling words, folding logos, slider */
  --ease-fly: cubic-bezier(.3, .7, .2, 1);   /* fake cursor flights */
  --ease-pop: cubic-bezier(.2, 1.4, .4, 1);  /* chips popping in */
  --ease-nav: cubic-bezier(.4, 0, .2, 1);    /* header on scroll, .5s */
  --d-fast: .2s; --d-btn: .25s; --d-arrow: .35s; --d-reveal: .9s; --d-line: 1.1s; --d-roll: 1.6s;

  /* agent cursor colours (engine/legacy.js) */
  --cur-ryze: #FF7F32;
  --cur-objective: #E39A2D; --cur-structure: #22A06B; --cur-budget: #1E8FD6; --cur-strategist: #E0567A;
  --cur-geo: #3D6FE0;       --cur-audience: #7C6CF0;  --cur-creative: #3FAF5A; --cur-copy: #20A68C;
  --cur-cta: #C2499F;       --cur-pixel: #E46A5E;     --cur-testing: #B8862B;  --cur-qa: #2B2B2B;
  --cur-seo: #23A08E;       --cur-keywords: #2E97C9;  --cur-numbers: #33A85A;  --cur-copy-alt: #C47A66;

  /* aliases used by site/deck/deck.css */
  --brand: var(--cta);
  --brand-2: var(--c-lilac);
  --paper: #FFFFFF;
  --ink-60: var(--ink-2);
  --deck-bg: var(--band);
  --deck-fg: #FFFFFF;
}

@media (max-width: 759px) {
  :root {
    --t-display: 44px; --lh-display: 48px; --ls-display: -.01em;
    --t-h2: 28px; --lh-h2: 36px;
    --t-lead: 16px; --lh-lead: 24px;
    --section-pad: 32px;  /* phone rhythm: sections 64 apart, heading → text 16, paragraph → paragraph 12, text → card 24 */
    --pw: calc(100vw - 40px);
  }
}
@media (min-width: 1280px) { :root { --t-display: clamp(68px, calc(68px + (100vw - 1440px) * .02), 90px); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-sans); font-size: var(--t-ui); line-height: var(--lh-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgb(255 127 50 / .22); }

h1, .rz-h1 { margin: 0; font-size: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 500; text-wrap: balance; }
h2, .rz-h2 { margin: 0; font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 500; text-wrap: balance; }
h3, .rz-h3 { margin: 0; font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: 500; }
h4, .rz-h4 { margin: 0; font-size: var(--t-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: 500; }
.rz-title { font-size: var(--t-title); line-height: var(--lh-title); font-weight: 500; }
p { margin: 0; }
.rz-lead, .rz-prose p, .rz-prose li { font-size: var(--t-lead); line-height: var(--lh-lead); color: var(--ink-2); }
.rz-lead b, .rz-prose b { color: var(--ink); font-weight: 600; }
.rz-body { font-size: var(--t-ui); line-height: var(--lh-ui); color: var(--ink-2); }
.rz-small { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }
.rz-tabnum { font-variant-numeric: tabular-nums; }

/* running-text links: ink text, a 1.5px aqua underline */
.rz-prose a, a.rz-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color var(--d-fast); }
.rz-prose a:hover, a.rz-link:hover { text-decoration-color: var(--cta); }

/* prose rhythm (KIT v102) */
.rz-prose > * + * { margin-top: var(--sp-6); }
.rz-prose > h2 + * { margin-top: var(--sp-5); }
.rz-prose > p + p, .rz-prose > p + ul, .rz-prose > ul + p { margin-top: var(--sp-4); }
.rz-prose > h3:not(:first-child) { margin-top: var(--sp-7); }
.rz-prose > h3 + * { margin-top: var(--sp-4); }
@media (max-width: 759px) {
  .rz-prose > * + * { margin-top: var(--sp-5); }
  .rz-prose > h2 + * { margin-top: var(--sp-4); }
  .rz-prose > p + p, .rz-prose > p + ul, .rz-prose > ul + p { margin-top: var(--sp-3); }
  .rz-prose > h3:not(:first-child) { margin-top: var(--sp-6); }
  .rz-prose > h3 + * { margin-top: var(--sp-3); }
}

/* labels: sentence case, never uppercase, no square markers, no 01 / 02 / 03 (v74, v92) */
.rz-label { font-size: var(--t-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--ink-3); }
.rz-ql { font-size: var(--t-meta); line-height: var(--lh-meta); font-weight: 500; color: var(--cta); }   /* the small orange label above a card heading */

/* ---------- layout ---------- */
.rz-page { width: var(--pw); margin: 12px auto 120px; display: flex; flex-direction: column; gap: var(--gap-tiles); }
.rz-content { max-width: var(--content-w); }
.rz-section { padding: var(--section-pad) 0; }
.rz-article { display: grid; grid-template-columns: var(--side-w) minmax(0, var(--content-w)); gap: 10px 48px; }
.rz-side { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1279px) { .rz-article { grid-template-columns: minmax(0, 1fr); } .rz-side { display: none; } }

/* section header: one heading, one lead, no eyebrow line above (v92) */
.rz-section-head { max-width: var(--content-w); }
.rz-section-head > p { margin-top: var(--sp-5); font-size: var(--t-lead); line-height: var(--lh-lead); color: var(--ink-2); max-width: 760px; }
.rz-section-head--center { margin-inline: auto; text-align: center; }
.rz-section-head--center > p { margin-inline: auto; }

/* ---------- surfaces ---------- */
.rz-card { position: relative; background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.rz-tile { position: relative; background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-ring); padding: 24px 26px; }   /* .gf / .mt / .fit / .note */
.rz-tile--sm { padding: 20px 22px; }
.rz-tile--lg { padding: 30px 32px; }                    /* tool card */
.rz-tile .rz-title + p { margin-top: 6px; font-size: var(--t-ui); line-height: var(--lh-ui); color: var(--ink-2); }
.rz-fact { padding: 14px 16px; border-radius: var(--r-inner); background: #fff; box-shadow: var(--sh-ring); }   /* small box inside a card */
.rz-fact dt { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }
.rz-fact dd { margin: 4px 0 0; font-size: var(--t-ui); line-height: var(--lh-ui); }
@media (max-width: 759px) { .rz-tile, .rz-tile--sm, .rz-tile--lg { padding: 20px; } }

/* offset glass: add to a .rz-tile; the card steps in by the glass size so the glass stays inside the column */
/* the PARENT is the stacking context (source: `section.card.pad { isolation: isolate }`), so the pane sits behind the tile, not inside it */
.rz-glass-scope, :has(> .rz-glass) { isolation: isolate; }
.rz-glass { margin: 0 var(--g-size) var(--g-size) 0; }
.rz-glass::before { content: ""; position: absolute; z-index: -1; inset: var(--g-size) calc(-1 * var(--g-size)) calc(-1 * var(--g-size)) var(--g-size); border-radius: var(--r-glass); background: var(--glass); box-shadow: var(--glass-shadow); pointer-events: none; }

/* accent stroke: a gradient ring cut out with a mask; it changes no size */
.rz-stroke { position: relative; }
.rz-stroke::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: var(--s-w); pointer-events: none; background: var(--accent-stroke);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.rz-stroke--card::after { background: var(--accent-stroke-card); }
.rz-stroke--row::after { padding: 1.5px; background: var(--accent-stroke-row); }
.rz-stroke-top { position: relative; }
.rz-stroke-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent-stroke-top); pointer-events: none; z-index: 3; }

/* dark card: hero chart card, sidebar dock, code, related guides */
.rz-dark { position: relative; background: var(--dark-card); color: #fff; border-radius: var(--r-card); box-shadow: var(--sh-dark); }
.rz-dark--offset { box-shadow: var(--g-size) var(--g-size) 0 0 var(--glass-flat), 0 18px 40px -26px rgba(28,106,96,.4); }

/* full-bleed blocks (CTA strips / black bands) */
.rz-band { position: relative; background: var(--band); color: #fff; overflow: hidden; }
.rz-band--orange { background: var(--cta); color: #fff; }
.rz-band--white { background: #fff; color: var(--ink); box-shadow: inset 0 1px 0 var(--ll-line), inset 0 -1px 0 var(--ll-line); }
.rz-band--glow { background: radial-gradient(38% 70% at 78% 8%, rgb(255 127 50 / .62) 0%, rgb(255 127 50 / 0) 70%), radial-gradient(34% 60% at 100% 62%, rgb(205 189 235 / .42) 0%, rgb(205 189 235 / 0) 70%), radial-gradient(40% 70% at 58% 108%, rgb(141 216 243 / .42) 0%, rgb(141 216 243 / 0) 70%), #0E0E0F; }
.rz-band--blue { background: linear-gradient(135deg, #1B7FB0 0%, #34B0DE 55%, #74C5E5 100%); color: #fff; }   /* footer stats panel */
.rz-strip { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px 108px 38px max(68px, calc((100vw - var(--pw)) / 2 + var(--side-w) + 48px)); }
.rz-strip h3 { max-width: 560px; letter-spacing: -.02em; }
@media (max-width: 759px) { .rz-strip { flex-direction: column; align-items: stretch; padding: 30px 20px; gap: 24px; } }

/* halftone dot fill (chart columns, meters): round dots on a 4/5/6 px grid */
.rz-dots { background: radial-gradient(circle, #A9A6A0 1.25px, transparent 1.6px) 0 0 / 4px 4px; }
.rz-dots--orange { background: radial-gradient(circle, var(--cta) 1.35px, transparent 1.7px) 0 0 / 4px 4px; }
.rz-dots--white { background: radial-gradient(circle, rgb(255 255 255 / .55) 1.6px, transparent 2px) 0 0 / 7px 7px; }

/* ---------- buttons ---------- */
/* one button for the whole page: black, a thin light border, white medium text, the ↗ arrow (v31) */
.rz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 24px; border: 1px solid var(--gray); border-radius: var(--r-btn); background: var(--black); color: #fff; font-family: inherit; font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .4s, border-color .4s, color .3s, transform .15s; }
.rz-btn:hover { background: var(--black-hover); }
.rz-btn:active, .rz-btn.is-pressed { transform: scale(.96); transition: transform .12s; }
.rz-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rz-btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--d-arrow) var(--ease); }
.rz-btn:hover svg { transform: translate(2px, -2px); }
.rz-btn--light { background: #fff; border-color: #fff; color: #000; }            /* any button standing on a black surface */
.rz-btn--light:hover { background: #EDEDED; border-color: #EDEDED; }
.rz-btn--orange { background: var(--cta); border-color: var(--cta); color: #fff; }  /* on black only; on the orange strip the button stays black */
.rz-btn--orange:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.rz-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.rz-btn--wide { width: 100%; }
.rz-btn-2 { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-btn); background: #fff; box-shadow: inset 0 0 0 1px var(--ll-line), 0 1px 2px rgba(17,17,17,.06); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s; }
.rz-btn-2:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.rz-btn-copy { height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-btn); background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.rz-btn-copy:hover { background: var(--inner); }
.rz-btn-copy.is-copied { background: var(--cta); color: #fff; }
/* black "see also" pill-button with a white arrow chip; orange on hover */
.rz-see-also { display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px; border-radius: var(--r-btn); background: var(--ink); color: #fff; font-size: 16px; line-height: 24px; font-weight: 500; transition: background .25s, color .2s, transform .12s; }
.rz-see-also .a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-btn); background: #fff; color: var(--ink); }
.rz-see-also:hover { background: var(--cta); }
/* header button */
.rz-btn-nav { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: var(--r-btn); background: #000; color: #fff; font-size: 14px; font-weight: 500; transition: all .5s var(--ease-nav); }
.rz-btn-nav:hover { background: #27272A; }

/* the email field and the button are one piece (v31) */
.rz-joined { display: flex; align-items: stretch; height: 54px; border-radius: var(--r-btn); background: #fff; }
.rz-joined input { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.rz-joined input::placeholder { color: var(--ink-3); }
.rz-joined .rz-btn { height: 100%; }
.rz-joined--framed { padding: 5px; box-shadow: inset 0 0 0 1px var(--ll-line); }    /* white form on white: 5px inner gap all round */
.rz-field { display: block; width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .2s; }
.rz-field:focus { border-color: var(--ink); }

/* ---------- chips and tags ---------- */
.rz-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: var(--r-chip); background: #fff; box-shadow: inset 0 0 0 1px var(--ll-line); font-size: 14px; font-weight: 500; white-space: nowrap; }
.rz-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cta)); }
.rz-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-btn); background: var(--cta); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }   /* the "Ryze demo" label style */
.rz-tag--ink { background: var(--ink); }
.rz-tag--soft { background: #E7F0FF; color: #0B4FC2; border-radius: 12px; font-weight: 600; font-size: 11.5px; height: 24px; padding: 0 9px; }
.rz-ticker { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rz-ticker > div { display: flex; gap: 10px; width: max-content; animation: rz-ticker 70s linear infinite; }

/* ---------- navigation (HomeNavbar) ---------- */
.rz-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 7px 48px 2px; background: transparent; transition: all .5s var(--ease-nav); }
.rz-nav.is-scrolled { padding-top: 8px; padding-bottom: 8px; background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.rz-nav__in { max-width: 1800px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; position: relative; }
.rz-logo { display: flex; align-items: center; gap: 8px; color: #000; }
.rz-logo img { width: 38px; height: 38px; object-fit: contain; transition: all .5s ease-out; }
.rz-logo span { font-family: var(--font-wordmark); font-weight: 800; font-size: 33px; letter-spacing: -.01em; transform: translateY(-2px); transition: all .5s ease-out; }
.rz-nav.is-scrolled .rz-logo img { width: 32px; height: 32px; }
.rz-nav.is-scrolled .rz-logo span { font-size: 27px; }
.rz-nav__links { position: absolute; left: calc(50% + 20px); transform: translateX(-50%); display: flex; gap: 42px; white-space: nowrap; }
.rz-nav__links a { font-size: 15.3px; font-weight: 500; letter-spacing: .025em; color: #52525B; transition: all .5s ease-out; }
.rz-nav__links a:hover, .rz-nav__links a[aria-current="page"] { color: #000; }
.rz-nav.is-scrolled .rz-nav__links a { font-size: 13.1px; color: #000; }
.rz-nav.is-scrolled .rz-nav__links a:hover { color: var(--nav-hover); }
.rz-nav.is-scrolled .rz-btn-nav { padding: 6px 16px; font-size: 12px; }
@media (max-width: 1023px) { .rz-nav { padding-left: 24px; padding-right: 24px; } .rz-nav__links { display: none; } }

/* ---------- sidebar contents card (t2) ---------- */
.rz-toc { padding: 20px 22px 18px; }
.rz-toc__top { display: flex; justify-content: space-between; align-items: baseline; }
.rz-toc__n { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rz-toc__n b { color: var(--ink); font-weight: 700; }
.rz-toc__bar { display: flex; gap: 3px; margin-top: 12px; }
.rz-toc__bar a { flex: 1; padding: 6px 0; }
.rz-toc__bar i { display: block; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s, transform .2s; }
.rz-toc__bar a.done i { background: var(--ink); }
.rz-toc__bar a:hover i { transform: scaleY(1.8); background: var(--cta); }
.rz-toc__cur { display: block; margin-top: 10px; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -.005em; }
.rz-toc__next { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.rz-toc__next a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* ---------- FAQ (details) ---------- */
.rz-faq details { border-bottom: 1px solid var(--ll-line); }
.rz-faq details:first-child { border-top: 1px solid var(--pl); }
.rz-faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 26px; align-items: center; gap: 12px; padding: 20px 4px; list-style: none; cursor: pointer; font-size: 16px; line-height: 24px; font-weight: 500; }
.rz-faq summary::-webkit-details-marker { display: none; }
.rz-faq .fq-i { position: relative; width: 26px; height: 26px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--ll-line); transition: background .2s; }
.rz-faq .fq-i::before, .rz-faq .fq-i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 1.6px; background: var(--ink); transition: background .2s; }
.rz-faq .fq-i::after { transform: rotate(90deg); transition: transform .25s var(--ease), background .2s; }
.rz-faq details[open] .fq-i { background: var(--ink); box-shadow: none; }
.rz-faq details[open] .fq-i::before, .rz-faq details[open] .fq-i::after { background: #fff; }
.rz-faq details[open] .fq-i::after { transform: rotate(0deg); }
.rz-faq details p { margin: 0 0 22px 56px; max-width: 820px; font-size: 16px; line-height: 24px; color: var(--ink-2); }
@media (max-width: 759px) { .rz-faq details p { margin-left: 4px; } }

/* ---------- related-guide card (black, orange label, white arrow chip) ---------- */
.rz-rg { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-card); background: var(--ink); color: #fff; box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s; }
.rz-rg h3 { margin-top: 8px; font-size: 20px; line-height: 28px; }
.rz-rg p { margin-top: 8px; font-size: 16px; line-height: 24px; color: #fff; }
.rz-rg .rg-a { display: grid; place-items: center; width: 36px; height: 36px; margin-top: auto; align-self: flex-end; border-radius: var(--r-btn); background: #fff; color: var(--ink); transition: background .25s, color .2s; }
.rz-rg:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); }
.rz-rg:hover .rg-a { background: var(--cta); color: #fff; }

/* ---------- code / prompt block (E1) ---------- */
.rz-code { padding: 20px 22px; border-radius: var(--r-card); background: var(--ink); color: #fff; }
.rz-code__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 12px; line-height: 16px; font-weight: 500; }
.rz-code pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14px; line-height: 24px; }

/* ---------- note (icon + text on a ringed tile) ---------- */
.rz-note { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-ring); font-size: 16px; line-height: 24px; color: var(--ink-2); }
.rz-note b { color: var(--ink); }
.rz-note img { width: 22px; height: 22px; flex: none; }

/* ---------- logo strip (cells divided by hairlines; marquee on phones) ---------- */
.rz-logos { display: flex; align-items: stretch; padding-left: 56px; }
.rz-logos .rz-label { display: flex; align-items: center; padding: 30px 40px 30px 0; box-shadow: 1px 0 0 var(--ll-line); white-space: nowrap; }
.rz-logos__set { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.rz-logos__set > * { display: grid; place-items: center; box-shadow: 1px 0 0 var(--ll-line); }
.rz-logos__set img { height: 20px; width: auto; max-width: 72%; filter: grayscale(1) contrast(1.2); opacity: .75; }
.rz-marquee { overflow: hidden; }
.rz-marquee__track { display: flex; width: max-content; align-items: center; animation: rz-marquee 28s linear infinite; }
.rz-marquee__track > * { margin: 0 20px; }

/* ---------- sticky pill (StickyMcpBanner) ---------- */
.rz-pill { position: fixed; right: 16px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 12px; border: 1px solid #E5E5E5; border-radius: var(--r-pill); background: linear-gradient(135deg, #FFF6EE 0%, #FFEFE2 50%, #FFDDC4 100%); box-shadow: var(--sh-pill); font-size: 19px; font-weight: 500; line-height: 1.25; color: #171717; transform-origin: bottom right; animation: rz-pill-bounce 3s ease-in-out infinite, rz-pill-pulse 3s ease-in-out infinite; }
.rz-pill img { width: 38px; height: 38px; border-radius: 50%; animation: rz-spin 25s linear infinite; }
.rz-pill:hover { filter: brightness(.95); }

/* ---------- footer (FinalCTALemon) ---------- */
.rz-footer { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; min-height: 640px; }
.rz-footer__stats { padding: 91px 48px; background: linear-gradient(135deg, #1B7FB0 0%, #34B0DE 55%, #74C5E5 100%); color: #fff; }
.rz-footer__stats .n { font-family: var(--font-pixel); font-size: 15px; -webkit-font-smoothing: none; animation: rz-pixel-pulse 3s ease-in-out infinite; }
.rz-footer__art { position: relative; display: grid; place-items: center; background: url('/assets/illustrations/footer-pixel-village.webp') center / cover no-repeat; }
.rz-footer__card { width: min(520px, 90%); padding: 48px 40px; background: #fff; text-align: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.rz-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: rgb(255 255 255 / .7); }
.rz-footer__links a:hover { color: #fff; }
@media (max-width: 1023px) { .rz-footer { grid-template-columns: 1fr; } }

/* ---------- motion: reveal on scroll, title lines, rolling digits ---------- */
.rz-reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease); }
.rz-reveal.in { opacity: 1; transform: none; }
.rz-fade { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.go .rz-fade { opacity: 1; transform: none; }
.rz-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.rz-line > span { display: block; transform: translateY(104%); transition: transform var(--d-line) var(--ease); }   /* stagger: 120ms + i × 110ms */
.go .rz-line > span { transform: none; }
.rz-roll { --h: 1.2em; display: inline-flex; height: var(--h); line-height: var(--h); overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.rz-roll .col { display: inline-block; height: var(--h); overflow: hidden; }
.rz-roll .strip { display: flex; flex-direction: column; transition: transform var(--d-roll) var(--ease); }   /* stagger 120ms per digit */
.rz-roll .strip span { height: var(--h); line-height: var(--h); }
.rz-meter { position: relative; height: 14px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--ll-line); overflow: hidden; }
.rz-meter i { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) * var(--v, .5)); background: radial-gradient(circle, #A9A6A0 1.25px, transparent 1.6px) 0 0 / 4px 4px; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); }
.rz-meter.ours i { background-image: radial-gradient(circle, var(--cta) 1.35px, transparent 1.7px); }
.in .rz-meter i { clip-path: inset(0); }

/* the Ryze star: half a turn on load, then it turns with the mouse (JS); in strips it spins slowly */
.rz-star { width: 84px; height: 84px; will-change: transform; transition: transform 1.6s var(--ease); }
.rz-star--spin { animation: rz-spin 26s linear infinite; }

/* ---------- fake cursors ("agents") ---------- */
.rz-cur-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.rz-cur { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; will-change: transform; transition: opacity .3s; }
.rz-cur i { display: block; transform-origin: 2px 2px; transition: transform .1s; }
.rz-cur svg { display: block; width: 20px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.rz-cur span { position: absolute; left: 16px; top: 18px; padding: 3px 8px; border-radius: var(--r-btn); background: var(--c, var(--cur-ryze)); color: #fff; font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.rz-cur--sm svg { width: 17px; height: 19px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .22)); }
.rz-cur--sm span { left: 13px; top: 16px; padding: 2px 7px; font-size: 11px; }
.rz-cur.flip span { left: auto; right: 4px; }
.rz-cur.tap i { transform: scale(.78); }   /* press: 90–170 ms */
.rz-cur.out { opacity: 0; }
.rz-cur.ink svg path { fill: var(--ink); } .rz-cur.ink span { background: var(--ink); }   /* on orange the orange cursor turns black */
.rz-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--c, var(--cta)); animation: rz-blink 1s steps(1) infinite; }
/* the frame an agent drags open, with its size, as in Figma */
.rz-frame { position: absolute; z-index: 1; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); border-radius: 3px; pointer-events: none; transition: opacity .45s; }
.rz-frame b { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; background: var(--c); color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rz-frame.out { opacity: 0; }
/* a skeleton section waits, dashed, until its agent draws the frame */
.rz-skel { background: rgb(255 255 255 / .4); outline: 1.5px dashed #CDD1D7; outline-offset: -1.5px; border-radius: 6px; }
.rz-skel-bar { height: 10px; border-radius: 3px; background: linear-gradient(90deg, #ECEEF1 30%, #F6F7F9 50%, #ECEEF1 70%) 0 0 / 200% 100%; animation: rz-shimmer 1.6s linear infinite; }
/* a busy agent rings what it looks at */
.rz-hl { box-shadow: 0 0 0 2px var(--hc) !important; transition: box-shadow .12s; }
/* a button pressed by the demo cursor */
.demo-press { transform: scale(.96); transition: transform .12s; }

/* ---------- keyframes ---------- */
@keyframes rz-spin { to { transform: rotate(360deg); } }
@keyframes rz-marquee { to { transform: translateX(-50%); } }
@keyframes rz-ticker { to { transform: translateX(-50%); } }
@keyframes rz-sheen { 0%, 70% { transform: translateX(0); } 100% { transform: translateX(460%); } }   /* 6s ease-in-out 1.2s infinite, on a 45%-wide white streak */
@keyframes rz-chev { 0%, 60%, 100% { color: rgba(255,255,255,.3); } 30% { color: #fff; } }     /* "› › ›" on the slide-to-connect control, delays 0 / .15 / .3s */
@keyframes rz-pop { from { transform: scale(.4); opacity: 0; } }                                 /* .32s var(--ease-pop) */
@keyframes rz-log-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes rz-row-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes rz-blink { 50% { opacity: 0; } }
@keyframes rz-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes rz-pill-bounce { 0%, 100% { transform: translateY(0) scale(.814); } 50% { transform: translateY(-7px) scale(.814); } }
@keyframes rz-pill-pulse { 0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,.08); } 50% { box-shadow: 0 4px 25px rgba(0,0,0,.15); } }
@keyframes rz-pixel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .95; } }

/* ---------- reduced motion: show end states, no flights ---------- */
@media (prefers-reduced-motion: reduce) {
  .rz-reveal, .rz-fade, .rz-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rz-marquee__track, .rz-ticker > div, .rz-star--spin, .rz-pill, .rz-pill img, .rz-skel-bar { animation: none !important; }
  .rz-cur-layer { display: none; }
}
/* the demo cursors are a desktop thing: hidden below 1280 px and on touch */
@media (max-width: 1279px), (hover: none) { .rz-cur.is-demo { display: none; } }
