/* ==========================================================================
   RESUME WRITING WORKING PROCESS: styles
   Unique prefix "rwwp": classes .rwwp / .rwwp__*, variables --rwwp-*, keyframes rwwp-*.
   No bare element selectors and nothing on :root or body, so it cannot clash with project css.
   Mobile first. Breakpoints: 640px and 1024px.

   NOTE FOR CODEX / CLAUDE CODE: to use project colours/fonts, change ONLY the values in section 1 (TOKENS),
   for example  --rwwp-brand: var(--your-primary);  Do not rename the --rwwp-* variables or the classes.
   ========================================================================== */

/* 1. TOKENS. Light values here; dark values below (twice on purpose: OS setting and data-theme="dark").
      Dark follows <html data-theme="dark|light"> first; with no data-theme it follows the OS. */
.rwwp {
  --rwwp-surface: #F3F5FB;          /* section background             | PROJECT: your soft page background */
  --rwwp-card: #FFFFFF;             /* card background                | PROJECT: your card/surface colour */
  --rwwp-border: #E3E7F5;           /* card and pill borders          | PROJECT: your border colour */
  --rwwp-border-hover: #B8C3F7;     /* hover border, badge border     */
  --rwwp-ink: #0B1240;              /* main text                      | PROJECT: your heading colour */
  --rwwp-muted: #5B6491;            /* small text                     | PROJECT: your muted text colour */
  --rwwp-brand: #2B4DFF;            /* numbers, icons, button         | PROJECT: your primary colour */
  --rwwp-on-brand: #FFFFFF;         /* text on a brand fill           */
  --rwwp-tint: rgba(43, 77, 255, .08);   /* soft brand tint (icon tile, badge) */
  --rwwp-fill: #0B1240;             /* dark highlighted (last) card   */
  --rwwp-accent: #007BFC;           /* icon colour on hover           */
  --rwwp-shadow: rgba(11, 18, 64, .25);  /* button hover shadow       */
  --rwwp-on-fill: #FFFFFF;          /* text on the dark card (same in both themes) */
  --rwwp-on-fill-muted: rgba(255, 255, 255, .82);
  --rwwp-on-fill-tint: rgba(255, 255, 255, .14);
  --rwwp-font: 'Sora', ui-sans-serif, system-ui, sans-serif;   /* PROJECT: your font; Sora 400-800 is loaded by the project (Google Fonts) */
  --rwwp-ease: cubic-bezier(.22, 1, .36, 1);
}
[data-theme="dark"] .rwwp {
  --rwwp-surface: #080E33;
  --rwwp-card: #0F1740;
  --rwwp-border: #1F2A5E;
  --rwwp-border-hover: #3B4C9E;
  --rwwp-ink: #E8ECFF;
  --rwwp-muted: #9AA6D6;
  --rwwp-brand: #7C93FF;
  --rwwp-on-brand: #0B1240;
  --rwwp-tint: rgba(124, 147, 255, .14);
  --rwwp-fill: #1B2A7A;
  --rwwp-accent: #A3B4FF;
  --rwwp-shadow: rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rwwp {
    --rwwp-surface: #080E33;
    --rwwp-card: #0F1740;
    --rwwp-border: #1F2A5E;
    --rwwp-border-hover: #3B4C9E;
    --rwwp-ink: #E8ECFF;
    --rwwp-muted: #9AA6D6;
    --rwwp-brand: #7C93FF;
    --rwwp-on-brand: #0B1240;
    --rwwp-tint: rgba(124, 147, 255, .14);
    --rwwp-fill: #1B2A7A;
    --rwwp-accent: #A3B4FF;
    --rwwp-shadow: rgba(0, 0, 0, .55);
  }
}

/* 2. SECTION SHELL */
.rwwp {
  position: relative;
  padding: clamp(36px, 7vw, 80px) 0;
  background: var(--rwwp-surface);
  color: var(--rwwp-ink);
  margin: 0;
  border: 0;
  font-family: var(--rwwp-font);
  line-height: normal;
  -webkit-text-size-adjust: 100%;
}
.rwwp *, .rwwp *::before, .rwwp *::after { box-sizing: border-box; }

/* 3. HARDENING: project-wide rules for h2, h3, p, ul, ol, li, a, span, svg, article, header must not leak in.
      Every element of this section is reset first; the rules below then set what it needs. */
.rwwp__wrap, .rwwp__header, .rwwp__eyebrow, .rwwp__eyebrow-icon, .rwwp__title, .rwwp__subtitle, .rwwp__steps, .rwwp__step,
.rwwp__card, .rwwp__top, .rwwp__icon, .rwwp__icon-svg, .rwwp__titles, .rwwp__phase, .rwwp__heading, .rwwp__number,
.rwwp__text, .rwwp__chips, .rwwp__chip, .rwwp__cta, .rwwp__cta-link {
  margin: 0; padding: 0; border: 0; background: none; font: inherit; letter-spacing: normal; text-transform: none;
  text-decoration: none; list-style: none; vertical-align: baseline; box-shadow: none; float: none; opacity: 1;
}

/* 4. WRAP */
.rwwp__wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* 5. HEADER: badge, title, intro */
.rwwp__header { max-width: 640px; margin: 0 auto clamp(22px, 4.5vw, 44px); text-align: center; }
.rwwp__eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--rwwp-tint); border: 1px solid var(--rwwp-border-hover); color: var(--rwwp-brand); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rwwp__eyebrow-icon { display: block; }
.rwwp__title { margin: 12px 0 8px; font-size: clamp(26px, 5.2vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--rwwp-ink); text-wrap: balance; }
.rwwp__subtitle { margin: 0 auto; max-width: 540px; font-size: 14.5px; line-height: 1.6; color: var(--rwwp-muted); }

/* 6. STEPS LIST: 1 column on phones */
.rwwp__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rwwp__step { display: flex; }

/* 7. CARD */
.rwwp__card { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--rwwp-card); border: 1px solid var(--rwwp-border); border-radius: 18px; padding: 14px 16px 16px; }
.rwwp__top { display: flex; align-items: center; gap: 12px; }
.rwwp__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--rwwp-tint); color: var(--rwwp-brand); }
.rwwp__icon-svg { display: block; }
.rwwp__titles { flex: 1; min-width: 0; }
.rwwp__phase { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--rwwp-brand); }
.rwwp__heading { margin: 1px 0 0; font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--rwwp-ink); text-wrap: balance; }
.rwwp__number { flex: none; font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--rwwp-brand); }
.rwwp__text { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--rwwp-muted); }
.rwwp__chips { list-style: none; margin: auto 0 0; padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rwwp__chip { padding: 5px 10px; border-radius: 999px; background: var(--rwwp-surface); border: 1px solid var(--rwwp-border); color: var(--rwwp-ink); font-size: 12px; font-weight: 600; line-height: 1.3; }

/* 8. LAST CARD: the dark highlighted card */
.rwwp__step--last .rwwp__card { background: var(--rwwp-fill); border-color: var(--rwwp-on-fill-tint); }
.rwwp__step--last .rwwp__icon { background: var(--rwwp-on-fill-tint); color: var(--rwwp-on-fill); }
.rwwp__step--last .rwwp__phase { color: var(--rwwp-on-fill-muted); }
.rwwp__step--last .rwwp__heading, .rwwp__step--last .rwwp__number { color: var(--rwwp-on-fill); }
.rwwp__step--last .rwwp__text { color: var(--rwwp-on-fill-muted); }
.rwwp__step--last .rwwp__chip { background: var(--rwwp-on-fill-tint); border-color: var(--rwwp-on-fill-tint); color: var(--rwwp-on-fill); }

/* 9. BUTTON (only rendered when the project passes a link) */
.rwwp__cta { display: flex; justify-content: center; margin-top: clamp(20px, 4vw, 36px); }
.rwwp__cta-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--rwwp-brand); color: var(--rwwp-on-brand); font-size: 15px; font-weight: 700; text-decoration: none; }
.rwwp__cta-link:active { transform: scale(.97); }
.rwwp__cta-link:focus-visible { outline: 3px solid var(--rwwp-brand); outline-offset: 3px; }

/* 10. HOVER AND PRESS (hover only for mouse pointers; colour change only, no movement) */
.rwwp__step:active .rwwp__card { border-color: var(--rwwp-border-hover); }
.rwwp__step--last:active .rwwp__card { border-color: var(--rwwp-on-fill-tint); }
@media (hover: hover) and (pointer: fine) {
  .rwwp__step:hover .rwwp__card { border-color: var(--rwwp-border-hover); }
  .rwwp__step:hover .rwwp__icon { color: var(--rwwp-accent); }
  .rwwp__step--last:hover .rwwp__card { border-color: var(--rwwp-on-fill-tint); }
  .rwwp__step--last:hover .rwwp__icon { color: var(--rwwp-on-fill); }
  .rwwp__cta-link:hover { box-shadow: 0 14px 28px -14px var(--rwwp-shadow); }
}

/* 11. TABLET (640px and up): 2 columns; the number moves into the label row */
@media (min-width: 640px) {
  .rwwp__subtitle { font-size: 16px; line-height: 1.65; }
  .rwwp__steps { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .rwwp__card { padding: 20px 20px 22px; }
  .rwwp__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; align-items: center; }
  .rwwp__icon { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .rwwp__titles { display: contents; }
  .rwwp__phase { grid-column: 2; grid-row: 1; align-self: end; }
  .rwwp__number { grid-column: 3; grid-row: 1; align-self: end; font-size: 20px; }
  .rwwp__heading { grid-column: 2 / span 2; grid-row: 2; margin: 0; font-size: 17.5px; }
  .rwwp__text { margin-top: 12px; font-size: 14.5px; }
  .rwwp__chips { padding-top: 12px; }
}

/* 12. DESKTOP (1024px and up): 3 columns */
@media (min-width: 1024px) {
  .rwwp__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .rwwp__card { border-radius: 24px; padding: 24px 24px 26px; }
  .rwwp__text { font-size: 15px; }
}

/* 13. MOTION. Cards fade up once on load (css only). The .js file only hides cards that start below the first
      screen (data-rwwp-reveal="pending") and shows them as they scroll into view (="show"). Without the .js
      everything is simply visible. Nothing animates for prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .rwwp__step { animation: rwwp-rise .6s var(--rwwp-ease) backwards; animation-delay: 100ms; }
  .rwwp__step[data-rwwp-i="1"] { animation-delay: 180ms; }
  .rwwp__step[data-rwwp-i="2"] { animation-delay: 260ms; }
  .rwwp__step[data-rwwp-i="3"] { animation-delay: 340ms; }
  .rwwp__step[data-rwwp-i="4"] { animation-delay: 420ms; }
  .rwwp__step[data-rwwp-i="5"] { animation-delay: 500ms; }
  .rwwp__step[data-rwwp-i="6"] { animation-delay: 580ms; }
  .rwwp__step[data-rwwp-i="7"] { animation-delay: 660ms; }
  .rwwp__step[data-rwwp-reveal="pending"] { opacity: 0; transform: translateY(12px); animation: none; }
  .rwwp__step[data-rwwp-reveal="show"] { animation: rwwp-reveal .6s var(--rwwp-ease) backwards; }
  .rwwp__step[data-rwwp-reveal="show"][data-rwwp-delay="1"] { animation-delay: 90ms; }
  .rwwp__step[data-rwwp-reveal="show"][data-rwwp-delay="2"] { animation-delay: 180ms; }
  .rwwp__step[data-rwwp-reveal="show"][data-rwwp-delay="3"] { animation-delay: 270ms; }
  .rwwp__step[data-rwwp-reveal="show"][data-rwwp-delay="4"] { animation-delay: 360ms; }
  .rwwp__step[data-rwwp-reveal="show"][data-rwwp-delay="5"] { animation-delay: 450ms; }
  .rwwp__step[data-rwwp-reveal="show"][data-rwwp-delay="6"] { animation-delay: 540ms; }
  .rwwp__step[data-rwwp-reveal="show"][data-rwwp-delay="7"] { animation-delay: 630ms; }
  .rwwp__cta-link { transition: transform .25s var(--rwwp-ease), box-shadow .25s var(--rwwp-ease); }
}
@keyframes rwwp-rise {
  from { opacity: 0; transform: translateY(12px); }
}
@keyframes rwwp-reveal {
  from { opacity: 0; transform: translateY(12px); }
}
