/* =================================================================
   Reblend · home-page sections (patterns/*.php)
   Every section is a full-width Group block with the classes "rb rb-section rb-<name>".
   One block of rules per section, in the same order as the page.
   ================================================================= */

/* ---------- front page: the sections are the page, so no title bar above them ---------- */
.home .hero-section { display: none; }
.home .site-main > .ct-container-full, .home .site-main article > .entry-content { padding-top: 0 !important; margin-top: 0 !important; }

/* ---------- shared section parts ---------- */
.rb-section {
  position: relative;
  padding: 100px 0;
  margin-block: 0 !important;
  font-family: var(--rb-sans);
  overflow: hidden;
}
.rb-section + .rb-section { margin-top: 0 !important; }
.rb-wrap {
  max-width: 1160px;
  margin-inline: auto !important;
  padding-inline: 20px;
  box-sizing: border-box;
  width: 100%;
}
.rb-center { text-align: center; }
.rb .rb-eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--rb-mut); text-transform: uppercase; font-weight: 600; margin: 0; }
.rb hr.rb-rule {
  width: 64px;
  height: 1px;
  border: 0;
  background: var(--rb-gold);
  opacity: 1;
  margin: 18px 0;
}
.rb-center hr.rb-rule { margin: 18px auto; }
.rb h1, .rb h2 { font-weight: 800; margin: 6px 0; letter-spacing: -.015em; }
.rb h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.rb .rb-sub { color: var(--rb-mut); max-width: 620px; font-size: 18px; }
.rb-center .rb-sub { margin-inline: auto; }

/* columns used as card grids */
.rb .rb-cards, .rb .rb-plans, .rb .rb-steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.rb .rb-cards > .wp-block-column, .rb .rb-plans > .wp-block-column, .rb .rb-steps > .wp-block-column { margin: 0 !important; }

/* ---------- 1. hero: the box itself, taupe with white silk lines ---------- */
.rb-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--rb-graphite);
  background: linear-gradient(160deg, var(--rb-taupe-l) 0%, var(--rb-taupe) 45%, var(--rb-taupe-d) 100%);
}
.rb-hero canvas.rb-silk { position: absolute; inset: 0; width: 100%; height: 100%; }
.rb-hero .rb-hero-grid { position: relative; z-index: 2; align-items: center; gap: 40px; margin: 0 auto !important; }
.rb-hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.05; color: var(--rb-graphite); }
.rb-hero h1 em { font-style: normal; font-weight: 400; color: var(--rb-stone-d); }  /* white on taupe fails contrast (1.8:1) */
.rb-hero .rb-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 480px; margin-bottom: 28px; }
.rb-hero .rb-cta { gap: 14px; }
.rb-hero .rb-note { font-size: 14px; color: var(--rb-stone-d); margin-top: 16px; font-weight: 500; }
.rb-stage { display: flex; justify-content: center; align-items: flex-end; height: min(70vh, 600px); }
.rb-stage .rb-product-img { height: 88%; margin: 0; }
.rb-stage .rb-product-img img { height: 100%; width: auto; filter: drop-shadow(0 34px 30px rgba(40,34,28,.38)); }

/* ---------- 2. problem / 6. who: cards ---------- */
.rb-card { background: var(--rb-white); border-top: 3px solid var(--rb-taupe); padding: 32px 28px; text-align: right; }
.rb-card .rb-num { font-size: 40px; font-weight: 800; color: var(--rb-mut); line-height: 1; margin: 0; }
.rb-card h3 { font-weight: 700; font-size: 20px; margin: 14px 0 6px; }
.rb-card p { color: var(--rb-mut); font-size: 16px; margin: 0; }
.rb-who { background: var(--rb-taupe-l); }
.rb-who .rb-eyebrow { color: var(--rb-stone); }
.rb-who .rb-card { text-align: center; }
.rb-who .rb-card h3 { margin-top: 0; }

/* ---------- 3. reveal: before / after ---------- */
.rb-reveal { background: var(--rb-taupe); color: var(--rb-graphite); }
.rb-reveal .rb-reveal-grid { align-items: center; gap: 70px; }
.rb-reveal .rb-art { position: relative; flex: 0 1 380px !important; max-width: 380px; margin-inline: auto; }
.rb-reveal .rb-art-img { margin: 0 auto; width: min(300px, 80%); }
.rb-reveal .rb-before, .rb-reveal .rb-after { position: absolute; bottom: 22%; margin: 0; padding: 3px 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--rb-graphite); background: var(--rb-white); }
.rb-reveal .rb-before { left: 2%; }  /* the shiny half of the head is on the left */
.rb-reveal .rb-after { right: 2%; }
.rb-reveal .rb-eyebrow { color: var(--rb-stone-d); }
.rb-reveal p { font-size: 18px; max-width: 520px; }
.rb-ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.rb-ticks li { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 500; }
.rb-ticks li::before { content: ""; width: 22px; height: 1px; background: var(--rb-gold); flex: none; }

/* ---------- 4. how it works, deep stone ---------- */
.rb-how { background: var(--rb-stone); color: var(--rb-white); }
.rb-how .rb-eyebrow { color: var(--rb-taupe); }
.rb-how h2 { color: var(--rb-white); }
.rb-how .rb-sub { color: var(--rb-taupe-l); }
.rb .rb-steps { gap: 0; border-top: 1px solid rgba(214,189,134,.45); margin-top: 56px; }
.rb-step { padding: 38px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.rb-step:last-child { border-left: 0; }
.rb-step .rb-n { font-size: 56px; font-weight: 800; color: var(--rb-taupe); line-height: 1; margin: 0; }
.rb-step h3 { font-weight: 700; font-size: 21px; margin: 16px 0 6px; color: var(--rb-white); }
.rb-step p { color: var(--rb-taupe-l); margin: 0; }

/* ---------- 5. formula ---------- */
.rb-formula .rb-formula-grid { align-items: center; gap: 70px; }
.rb-ing { display: grid; gap: 20px; margin-top: 28px; }
.rb-ing-item { border-right: 2px solid var(--rb-gold); padding-right: 18px; }
.rb-ing-item h4 { font-weight: 700; font-size: 19px; margin: 0; }
.rb-ing-item p { color: var(--rb-mut); font-size: 16px; margin: 4px 0 0; }
.rb-visual { background: var(--rb-taupe); aspect-ratio: 1 / 1.1; display: flex; align-items: center; justify-content: center; }
.rb-visual .rb-product-img { height: 86%; margin: 0; }
.rb-visual .rb-product-img img { height: 100%; width: auto; filter: drop-shadow(0 30px 28px rgba(40,34,28,.3)); }

/* ---------- 7. plans ---------- */
.rb-order { background: var(--rb-stone-d); color: var(--rb-white); }
.rb-order .rb-eyebrow { color: var(--rb-taupe); }
.rb-order h2 { color: var(--rb-white); }
.rb-order .rb-sub { color: var(--rb-taupe-l); }
.rb .rb-plans { margin-top: 56px; }
.rb-plan { position: relative; border: 1px solid rgba(202,193,182,.35); padding: 40px 28px; text-align: center; }
.rb-plan.rb-best { background: var(--rb-taupe); color: var(--rb-graphite); border-color: var(--rb-taupe); }
.rb-plan .rb-tag { position: absolute; top: -13px; right: 50%; transform: translateX(50%); margin: 0; background: var(--rb-gold); color: var(--rb-graphite); font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 4px 14px; white-space: nowrap; }
.rb-plan h3 { font-weight: 600; font-size: 19px; color: inherit; margin: 0; }
.rb-plan .rb-p { font-size: 52px; font-weight: 800; margin: 12px 0 2px; line-height: 1.1; }
.rb-plan .rb-p small { font-size: 20px; font-weight: 600; }
.rb-plan .rb-per { opacity: .75; font-size: 14px; margin: 0 0 24px; }
.rb-plan .wp-block-buttons { justify-content: center; }
.rb-plan .wp-block-button, .rb-plan .wp-block-button__link { width: 100%; }
.rb-plan .rb-btn-ghost .wp-block-button__link { color: var(--rb-white); }
.rb-plan.rb-best .rb-btn-ghost .wp-block-button__link { color: var(--rb-graphite); }
.rb-order .rb-note { color: var(--rb-taupe); font-size: 14px; margin-top: 24px; }

/* ---------- 8. FAQ (Details blocks) ---------- */
.rb-faq .rb-list { max-width: 780px; margin: 46px auto 0; text-align: right; }
.rb-faq .wp-block-details { border-bottom: 1px solid var(--rb-line); padding: 22px 4px; margin: 0; }
.rb-faq .wp-block-details summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rb-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.rb-faq .wp-block-details summary::after { content: "+"; color: var(--rb-gold); font-size: 26px; font-weight: 300; transition: transform .3s; }
.rb-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.rb-faq .wp-block-details p { color: var(--rb-mut); margin: 12px 0 0; font-size: 17px; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .rb-section { padding: 76px 0; }
  .rb-hero { min-height: auto; padding: 30px 0 60px; }
  .rb-hero .rb-hero-grid, .rb-reveal .rb-reveal-grid, .rb-formula .rb-formula-grid { flex-direction: column; gap: 30px; }
  .rb-hero .rb-hero-text { text-align: center; }
  .rb-hero .rb-lead { margin-inline: auto; }
  .rb-hero .rb-cta { justify-content: center; }
  .rb-hero hr.rb-rule { margin: 18px auto; }
  .rb-stage { height: 38vh; flex: 0 0 auto !important; order: -1; }
  .rb-stage .rb-product-img { height: 100%; }
  .rb-stage .rb-product-img img { max-height: 100%; margin: 0 auto; }
  .rb .rb-cards, .rb .rb-plans, .rb .rb-steps { grid-template-columns: 1fr; }
  .rb-step { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}