/* The Ryze style layer of the main site: brings the academy closer to the main get-ryze.ai site.
   Loaded after tokens.css, academy.css and home.css on the home page and every lesson page (scripts/build-ryze.mjs adds it).
   Same content, order and scripts; only the look changes. The findings behind it: design/RYZE-SITE-STYLE.md.
   - square corners everywhere
   - Satoshi Bold headings with tight tracking, Satoshi Bold for the growth numbers too (no pixel font anywhere)
   - very light grey boxes on a hairline, square bullets, black buttons, light grounds that alternate
   - the lesson covers and the five objects are the main site's own images, untouched
   - one section ported from get-ryze.ai (scripts/build-ryze.mjs inserts it): the deep scan plate above the lessons
     (section 13), its pixel art ("Pixel dissolve") drawn at build time */

:root {
  --ink: #09090B;
  --ink-2: #52525B;               /* zinc-600 body copy */
  --ink-3: #71717A;               /* zinc-500 quiet copy */
  --frame: #E4E4E7;               /* zinc-200: the line where two light grounds meet */
  --ll-line: #E4E4E7;
  --ll-line-2: #EDEDEF;
  --inner: #F4F4F5;
  --r-btn: 0; --r-inner: 0; --r-card: 0; --r-glass: 0; --r-chip: 0; --r-pill: 0;

  --rz-btn: #18181B;              /* zinc-900, Ryze's black button */
  --rz-btn-h: #3F3F46;
  --rz-hair: rgb(0 0 0 / .07);    /* box hairline */
  --rz-box: #FAFAFA;              /* the very light grey of a highlighted box */
  --rz-cream: #FEFEF5;
  --rz-accent: #FF4801;
  --rz-sky: linear-gradient(135deg, #1B7FB0 0%, #34B0DE 55%, #74C5E5 100%);
  /* the square bullets, one colour per item, as on get-ryze.ai */
  --sq-1: #FB923C; --sq-2: #38BDF8; --sq-3: #A78BFA; --sq-4: #34D399; --sq-5: #FB7185; --sq-6: #FBBF24;
}

/* ---------- 1. no rounded corners, anywhere ---------- */
*, *::before, *::after { border-radius: 0 !important; }

/* ---------- 2. type ---------- */
h1, h2, h3,
.opt-hero-a .hA-h, .opt-promise-b .pb-h, .opt-operators-a .ra-h, .opt-lessons-b .lb-h, .opt-closing-a .ca-h, .soon-text h1 {
  font-weight: 700; letter-spacing: -.03em;
}
.opt-promise-b .pb-name, .opt-lessons-b .lb-title, .opt-closing-a .ca-faq h3, .lk-t { font-weight: 700; letter-spacing: -.015em; }

/* ---------- 3. buttons: black rectangles ---------- */
.hd-cta, .opt-hero-a .hA-btn, .opt-closing-a .ca-btn { background: var(--rz-btn); color: #fff; font-weight: 500; }
.hd-cta:hover, .opt-hero-a .hA-btn:hover, .opt-closing-a .ca-btn:hover { background: var(--rz-btn-h); }
:focus-visible { outline-color: var(--rz-accent); }

/* ---------- 4. header ---------- */
.hd { background: rgb(255 255 255 / .82); box-shadow: inset 0 -1px 0 var(--frame); }
.brand-n b { font-weight: 700; color: #000; letter-spacing: -.02em; }
.brand-n span { font-weight: 700; color: var(--ink-3); letter-spacing: -.02em; }
.brand-by { font-weight: 500; }
.hd-nav a { padding: 8px 14px; color: #27272A; font-size: 14px; font-weight: 500; }
.hd-nav a:hover { background: transparent; color: var(--rz-accent); }
.hd-cta { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- 5. hero: a white ground, the wall of covers in square tiles on a hairline ---------- */
.opt-hero-a .hA-tile, .opt-hero-a .hA-dark { box-shadow: none; outline: 1px solid var(--rz-hair); outline-offset: -1px; }
.opt-hero-a .hA-tile:hover { box-shadow: none; outline-color: rgb(0 0 0 / .2); }
.opt-hero-a .hA-t { height: 28px; padding: 0 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--rz-hair); font-weight: 500; }
.opt-hero-a .hA-tile:hover .hA-t { background: var(--rz-btn); color: #fff; box-shadow: none; }

/* ---------- 6. the section frame: grounds alternate, a zinc-200 line where two light ones meet ---------- */
.pg-home main > .sec + .sec { border-top-color: var(--frame); }

/* ---------- 7. Learn every way to grow: a light grey ground, white square cards, the main site's objects ---------- */
.opt-promise-b { background: var(--rz-box); }
.opt-promise-b .pb-card { background: #fff; box-shadow: inset 0 0 0 1px var(--rz-hair); }
.opt-promise-b .pb-card { --pb-a: #FFF4E6; --pb-d: #FB923C; }
.opt-promise-b .pb-social   { --pb-a: #FFEDEF; --pb-d: #FB7185; }
.opt-promise-b .pb-creators { --pb-a: #F3EDFE; --pb-d: #A78BFA; }
.opt-promise-b .pb-search   { --pb-a: #E9F4FE; --pb-d: #38BDF8; }
.opt-promise-b .pb-ai       { --pb-a: #E6F8F1; --pb-d: #34D399; }
.opt-promise-b .pb-art { background: var(--pb-a); }
.opt-promise-b .pb-logos .pb-dark { width: 20px; height: 20px; }
/* the objects stay still (no floating), and each card is a link down to the lessons: a link stretched over the card */
.opt-promise-b .pb-art img { animation: none; }
.opt-promise-b .pb-card { position: relative; cursor: pointer; }
.rz-pb-go { position: absolute; inset: 0; z-index: 2; }
.rz-pb-go:focus-visible { outline: 2px solid var(--rz-accent); outline-offset: -2px; }
.opt-promise-b .pb-card:has(.rz-pb-go:focus-visible) { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14), 0 10px 25px -5px rgb(0 0 0 / .06); }
@media (hover: hover) {
  .opt-promise-b .pb-card:hover { transform: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14), 0 10px 25px -5px rgb(0 0 0 / .06); }
}

/* ---------- 8. growth stories: a white ground, the four numbers in one very light grey box with square cells ---------- */
.opt-operators-a { background: #fff; }
.opt-operators-a .ra-grid { background: var(--rz-box); border: 0; box-shadow: inset 0 0 0 1px var(--rz-hair); }
.opt-operators-a .ra-cell,
.opt-operators-a .ra-cell:first-child,
.opt-operators-a .ra-cell:last-child { padding: 40px 28px 34px; }
.opt-operators-a .ra-cell + .ra-cell { box-shadow: inset 1px 0 0 var(--rz-hair); }
.opt-operators-a .ra-plot { border-bottom-color: var(--frame); }
.opt-operators-a .ra-num { font-family: 'Satoshi', sans-serif; font-weight: 700; letter-spacing: -.035em; }   /* Satoshi Bold, like Ryze's headline numbers */
@media (min-width: 1240px) { .opt-operators-a .ra-num { font-size: clamp(28px, 2.3vw, 34px); } }   /* bold is wider: "$15M → $100M" stays on one line in the four-column row */
.opt-operators-a .ra-who { color: var(--ink); }
@media (max-width: 1239px) {
  .opt-operators-a .ra-cell, .opt-operators-a .ra-cell:first-child, .opt-operators-a .ra-cell:last-child,
  .opt-operators-a .ra-cell:nth-child(even) { padding: 36px 32px 32px; }
  .opt-operators-a .ra-cell:nth-child(3) { box-shadow: inset 0 1px 0 var(--rz-hair); }
  .opt-operators-a .ra-cell:nth-child(4) { box-shadow: inset 1px 0 0 var(--rz-hair), inset 0 1px 0 var(--rz-hair); }
}
@media (max-width: 759px) {
  .opt-operators-a .ra-cell, .opt-operators-a .ra-cell:first-child, .opt-operators-a .ra-cell:last-child,
  .opt-operators-a .ra-cell:nth-child(even) { padding: 28px 20px 26px; }
  .opt-operators-a .ra-cell + .ra-cell, .opt-operators-a .ra-cell:nth-child(3), .opt-operators-a .ra-cell:nth-child(4) { box-shadow: inset 0 1px 0 var(--rz-hair); }
}

/* ---------- 9. lessons: each tile is a very light grey box, a square bullet before the title ---------- */
.opt-lessons-b .lb-grid { gap: 20px; }
.opt-lessons-b .lb-t { height: 100%; padding: 8px 8px 18px; background: var(--rz-box); box-shadow: inset 0 0 0 1px var(--rz-hair); transition: box-shadow .3s var(--ease, ease), background-color .3s var(--ease, ease); }
.opt-lessons-b .lb-t:hover { background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14), 0 10px 25px -5px rgb(0 0 0 / .06); }
.opt-lessons-b .lb-img { background: #F4F4F5; }
.opt-lessons-b .lb-img::after { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.opt-lessons-b .lb-txt { padding: 0 8px; }
.opt-lessons-b .lb-title { position: relative; margin-top: 16px; padding-left: 16px; }
.opt-lessons-b .lb-title::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--sq-1); }
/* one colour per block, read from the tone the tile already carries */
.opt-lessons-b .lb-t:has(.lb-img[style*="--ca:#8DD8F3"]) .lb-title::before { background: var(--sq-2); }
.opt-lessons-b .lb-t:has(.lb-img[style*="--ca:#E1B5A8"]) .lb-title::before { background: var(--sq-5); }
.opt-lessons-b .lb-t:has(.lb-img[style*="--ca:#9CE7DD"]) .lb-title::before { background: var(--sq-4); }
.opt-lessons-b .lb-t:has(.lb-img[style*="--ca:#CDBDEB"]) .lb-title::before { background: var(--sq-3); }
.opt-lessons-b .lb-line { padding-left: 16px; }
.opt-lessons-b .lb-t:hover .lb-title { text-decoration-color: var(--rz-accent); }
@media (max-width: 759px) {
  .opt-lessons-b .lb-grid { gap: 10px; }
  .opt-lessons-b .lb-t { padding: 6px; }
  .opt-lessons-b .lb-txt { padding: 0 4px 0 0; }
  .opt-lessons-b .lb-title { margin-top: 0; padding-left: 14px; }
  .opt-lessons-b .lb-title::before { top: 8px; width: 6px; height: 6px; }
  .opt-lessons-b .lb-line { padding-left: 14px; }
}

/* ---------- 10. closing: a cream ground with the dot grid, the promise and the rings, four answers in light boxes ---------- */
.opt-closing-a {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='13' y='13' width='2' height='2' fill-opacity='.09'/%3E%3C/svg%3E") 0 0 / 28px 28px,
    var(--rz-cream);
}
.opt-closing-a .ca-dots { display: none; }                  /* the section's own dot grid replaces the halftone corners */
.opt-closing-a .ca-h { font-size: 64px; line-height: 66px; }
.opt-closing-a .ca-lab { background: #fff; box-shadow: inset 0 0 0 1px var(--rz-hair); padding: 3px 9px; }
.opt-closing-a .ca-you { background: var(--rz-btn); }
.opt-closing-a .ca-faq { gap: 8px; }
.opt-closing-a .ca-faq li { position: relative; padding: 24px 22px 26px; background: #fff; border-top: 0; box-shadow: inset 0 0 0 1px var(--rz-hair); }
.opt-closing-a .ca-faq h3 { padding-left: 16px; position: relative; }
.opt-closing-a .ca-faq h3::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--sq-1); }
.opt-closing-a .ca-faq li:nth-child(2) h3::before { background: var(--sq-2); }
.opt-closing-a .ca-faq li:nth-child(3) h3::before { background: var(--sq-3); }
.opt-closing-a .ca-faq li:nth-child(4) h3::before { background: var(--sq-4); }
.opt-closing-a .ca-faq p { padding-left: 16px; }
@media (max-width: 1023px) {
  .opt-closing-a .ca-h { font-size: 52px; line-height: 56px; }
}
@media (max-width: 759px) {
  .opt-closing-a .ca-h { font-size: 38px; line-height: 42px; }
  .opt-closing-a .ca-faq li, .opt-closing-a .ca-faq li:last-child { padding: 20px 18px 22px; }
}

/* ---------- 11. footer: the sky panel of get-ryze.ai (a flat gradient with a fine white grid, no picture) ---------- */
.ft {
  color: #fff;
  background:
    linear-gradient(rgb(255 255 255 / .12) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(255 255 255 / .12) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--rz-sky);
}
.ft-dots { display: none; }
.ft-in { box-shadow: none; padding-top: 32px; }
.ft .brand, .ft .brand-n b, .ft .brand-n span { color: #fff; }
.ft .brand-logo { filter: brightness(0) invert(1); }
.ft-nav { color: rgb(255 255 255 / .92); font-size: 14px; font-weight: 500; }
.ft-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft-credit { color: rgb(255 255 255 / .8); }
.ft-credit:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- 12. lesson pages ---------- */
/* the live lesson keeps the academy's dark stage, flat (no glow), the player on a hairline */
.la { background: #0B0B0C; }
.la .player { box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 30px 80px -40px rgb(0 0 0 / .9); }
.la .lk:hover { background: rgb(255 255 255 / .08); }
.lp-meta span + span::before { width: 4px; height: 4px; opacity: .8; }

/* a coming-soon page: a very light grey ground, the cover on a hairline, the words in a white box */
.soon { background: var(--rz-box); box-shadow: inset 0 1px 0 var(--frame); }
.soon-cover .cover { box-shadow: none; outline: 1px solid var(--rz-hair); outline-offset: -1px; }   /* an outline sits above the picture */
.soon-text { padding: 40px 40px 32px; background: #fff; box-shadow: inset 0 0 0 1px var(--rz-hair); }
.soon-tag { top: 22px; left: 22px; padding: 6px 12px 6px 10px; box-shadow: inset 0 0 0 1px var(--rz-hair); font-weight: 700; letter-spacing: .02em; }
.soon-tag::before { width: 7px; height: 7px; box-shadow: none; background: var(--sq-6); }
.soon-ready { border-top-color: var(--frame); }
.lk:hover { background: var(--rz-box); }
.lk .cover { box-shadow: none; outline: 1px solid rgb(0 0 0 / .08); outline-offset: -1px; }
@media (max-width: 759px) {
  .soon-text { padding: 26px 20px 20px; }
  .soon-tag { top: 14px; left: 14px; }
}

/* ---------- 13. a section ported from get-ryze.ai, home page only (markup: scripts/build-ryze.mjs) ----------
   Ported from ryze-landing src/app/(site)/page.js and AgencyDashboard.js: the Tailwind classes turned into plain CSS,
   the zinc scale of Tailwind, Satoshi like the rest of the page, the lucide icons inlined. */
.rzp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rzp-ico { display: block; flex: none; width: 14px; height: 14px; }
.rzp-ico-16 { width: 16px; height: 16px; }

/* 13a. "Start with a deep scan of your website": a compact cream plate in one row (art, words, form); the pixel art
   (scripts/build-ryze.mjs draws it) sits on the left from 768 px, a strip on top below that */
.pg-home main > .rzp-scan { --art: 300px; position: relative; overflow: hidden; padding: 44px 0; background: #FEFEF5; }
.rzp-scan-art { position: absolute; top: 0; bottom: 0; left: 0; width: calc(max(var(--gut), 50% - 620px) + var(--art)); overflow: hidden; pointer-events: none; }
.rzp-px { position: absolute; display: none; max-width: none; image-rendering: pixelated; }
.rzp-px-side { top: 50%; margin-top: -120px; right: 0; }             /* always next to the words; the far side may bleed off */
.rzp-scan-in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: var(--art) minmax(0, 1fr) minmax(0, 440px); grid-template-areas: ". h f" ". s f"; column-gap: 48px; align-items: center; }
.rzp-scan-h { grid-area: h; align-self: end; margin: 0; max-width: 520px; font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.03em; color: #000; text-wrap: balance; }
.rzp-steps { grid-area: s; align-self: start; list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rzp-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; color: #71717A; }
.rzp-step-n { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #D4D4D8; background: #fff; font-size: 12px; line-height: 1; font-weight: 700; color: #71717A; }
.rzp-scan-form { grid-area: f; display: flex; align-items: center; height: 52px; overflow: hidden; background: #fff; border: 1px solid #E4E4E7; box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); transition: border-color .2s, box-shadow .2s; }
.rzp-scan-form:focus-within { border-color: rgb(255 72 1 / .4); box-shadow: 0 0 0 2px rgb(255 72 1 / .2); }
.rzp-scan-form input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 20px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: #18181B; }
.rzp-scan-form input::placeholder { color: #A1A1AA; }
.rzp-scan-form button { flex: none; height: 100%; margin: 0; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: #18181B; color: #fff; font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .2s; }
.rzp-scan-form button:hover { background: #3F3F46; }
.rzp-scan-form button:focus-visible { outline: 2px solid var(--rz-accent); outline-offset: -4px; }
@media (max-width: 1279px) {
  .pg-home main > .rzp-scan { --art: 240px; padding: 40px 0; }
  .rzp-scan-in { grid-template-columns: var(--art) minmax(0, 1fr); grid-template-areas: ". h" ". s" ". f"; column-gap: 40px; }
  .rzp-scan-h { font-size: 30px; line-height: 36px; }
  .rzp-steps { margin: 12px 0 20px; }
  .rzp-scan-form { max-width: 480px; }
}
@media (min-width: 768px) { .rzp-scan .rzp-px-side { display: block; } }
@media (max-width: 767px) {
  .pg-home main > .rzp-scan { padding: 0 0 32px; }
  .rzp-scan-art { position: relative; width: auto; height: 112px; margin-bottom: 20px; }
  .rzp-px-strip { top: 0; left: 50%; margin-left: -512px; }
  .rzp-scan .rzp-px-strip { display: block; }
  .rzp-scan-in { display: block; padding: 0 24px; }
  .rzp-scan-h { font-size: 26px; line-height: 32px; }
  .rzp-steps { display: grid; gap: 8px; margin: 14px 0 20px; }
  .rzp-steps li { font-size: 14px; line-height: 20px; }
}
@media (max-width: 639px) {
  .rzp-scan-form { height: 48px; }
  .rzp-scan-form input { padding: 0 16px; font-size: 15px; }
  .rzp-scan-form button { padding: 0 16px; font-size: 14px; }
}
