/*
 * Rinato Studio, v11.5: Rinato Wallet
 * Loaded on the homepage, /rinato-wallet/, the Custom Tools page and blog posts.
 * Gallery White rules apply everywhere except inside the pass mockup,
 * which shows the shop's world (client colour allowed, same rule as the
 * Crevo logo panel).
 */

/* ================================================================
   1. HERO PILL (homepage, on the dark ignition band)
   ================================================================ */
.r10-hero--ignite .rw-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 1.75rem;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(252, 252, 250, 0.22);
  border-radius: 999px;
  color: #E9E6E1;
  font-size: 13.5px; font-weight: 500; line-height: 1.3;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.r10-hero--ignite .rw-pill:hover { border-color: #FF1A0D; background: rgba(255, 26, 13, 0.08); color: #FFFFFF; }
.rw-pill__tag {
  padding: 3px 9px; border-radius: 999px;
  background: #FF1A0D; color: #FFFFFF;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.rw-pill__arrow { transition: transform .25s ease; }
.rw-pill:hover .rw-pill__arrow { transform: translateX(3px); }
@media (max-width: 480px) {
  .r10-hero--ignite .rw-pill { font-size: 12.5px; }
  .rw-pill__text { white-space: normal; }
}

/* ================================================================
   2. LAUNCH BAND (homepage) + compact variant (Custom Tools page)
   ================================================================ */
.rw-launch {
  padding: var(--sec) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.rw-launch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.rw-launch__title {
  font-size: clamp(2rem, 3.4vw + 0.4rem, 3.25rem);
  font-weight: 650; letter-spacing: -0.03em; line-height: 1.04;
  max-width: 16ch;
}
.rw-launch__tagline {
  margin: 0.75rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.4vw + 0.6rem, 1.6rem);
  font-weight: 500; font-style: italic; letter-spacing: -0.01em;
  color: var(--coral);
}
.rw-launch__lede { font-size: 1.0625rem; line-height: 1.7; color: var(--text-body); max-width: 38em; }
.rw-launch__points { list-style: none; margin: 1.75rem 0 2rem; border-top: 1px solid var(--line); max-width: 40em; }
.rw-launch__points li {
  padding: 0.875rem 0 0.875rem 1.25rem; position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.6; color: var(--text-body);
}
.rw-launch__points li::before {
  content: ''; position: absolute; left: 0; top: 1.4em;
  width: 6px; height: 6px; background: var(--coral);
}
.rw-launch__points strong { color: var(--text); font-weight: 600; }
.rw-launch__note { margin-top: 1.25rem; font-size: 13px; color: var(--text-muted); }
.rw-launch__visual { display: flex; justify-content: center; }
.rw-launch__grid--compact .rw-launch__lede { margin-bottom: 1.5rem; }
.rw-own { border-top: 1px solid var(--line); }

@media (max-width: 880px) {
  .rw-launch__grid { grid-template-columns: 1fr; }
  .rw-launch__visual { order: -1; }
  .rw-launch__grid--compact .rw-launch__visual { order: 0; }
}

/* ================================================================
   3. THE PASS (stack of three shop-branded cards)
   ================================================================ */
.rw-stack {
  --w: 340px;
  position: relative;
  width: var(--w); max-width: 100%;
  margin: 0;
  padding-top: 96px; /* room for the cards behind */
}
.rw-stack--sm { --w: 300px; }

.rw-back {
  position: absolute; left: 50%;
  width: 88%; height: 120px;
  border-radius: 18px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  transform-origin: 50% 100%;
}
.rw-back--bakery { top: 0; transform: translateX(-50%) rotate(-5deg); background: #5E6B4E; color: #F3EBD9; }
.rw-back--pizza  { top: 50px; transform: translateX(-46%) rotate(3.5deg); background: #B23A2B; color: #FFF3E6; }
.rw-back__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 10px; letter-spacing: .04em;
}
.rw-back__name { padding-top: 3px; }
.rw-back__count { margin-left: auto; padding-top: 3px; font-variant-numeric: tabular-nums; opacity: .85; }

.rw-pass {
  position: relative; z-index: 2;
  background: #2E2019;               /* the shop's espresso brown */
  color: #F4E9DA;                    /* the shop's cream */
  border-radius: 20px;
  padding: 18px 20px 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -28px rgba(17,17,16,.55), 0 8px 18px -10px rgba(17,17,16,.35);
  font-family: var(--font-body);
}
.rw-pass__head { display: flex; align-items: center; gap: 10px; }
.rw-pass__mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #F4E9DA; color: #2E2019;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .04em;
}
.rw-pass__brand { font-family: var(--font-display); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.rw-pass__type { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #CDB79C; }

.rw-pass__fields { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 14px; }
.rw-pass__k { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #CDB79C; margin-bottom: 2px; }
.rw-pass__v { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rw-pass__v--sm { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; padding-top: 7px; }
.rw-pass__right { text-align: right; }

.rw-pass__stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px 0 16px; border-top: 1px solid rgba(244,233,218,.16); }
.rw-pass__stamp {
  aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed rgba(244,233,218,.35);
  display: flex; align-items: center; justify-content: center;
  color: rgba(244,233,218,.0);
}
.rw-pass__stamp svg { width: 58%; height: 58%; }
.rw-pass__stamp.is-on { background: #F4E9DA; border: 1.5px solid #F4E9DA; color: #2E2019; }
.rw-pass__stamp.is-next { border-style: solid; border-color: #E9A15B; color: rgba(233,161,91,.9); animation: rw-next 2.4s ease-in-out infinite; }
@keyframes rw-next { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,161,91,0); } 50% { box-shadow: 0 0 0 5px rgba(233,161,91,.18); } }

.rw-pass__qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 10px; }
.rw-pass__qr-box { background: #FFFFFF; color: #111110; padding: 10px; border-radius: 10px; line-height: 0; }
.rw-pass__qr-svg { width: 104px; height: 104px; display: block; }
.rw-pass__qr-note { font-size: 11px; color: #CDB79C; }
.rw-pass__foot { text-align: center; font-family: var(--font-display); font-style: italic; font-size: 13px; color: #E9A15B; padding-top: 8px; border-top: 1px solid rgba(244,233,218,.16); }

.rw-stack--sm .rw-pass__qr-svg { width: 88px; height: 88px; }
.rw-stack--sm .rw-pass__v { font-size: 22px; }

@media (prefers-reduced-motion: reduce) { .rw-pass__stamp.is-next { animation: none; } }

/* ================================================================
   4. PRODUCT PAGE /rinato-wallet/
   ================================================================ */
.rw-hero { padding: clamp(8rem, 12vw, 10.5rem) 0 clamp(3rem, 6vw, 5rem); background: var(--bg); border-bottom: 1px solid var(--line); }
.rw-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.rw-hero__title {
  font-size: clamp(2.25rem, 4vw + 0.5rem, 3.9rem);
  font-weight: 650; letter-spacing: -0.035em; line-height: 1.02;
  margin-bottom: 1.25rem; max-width: 15ch;
  animation: g-rise 0.7s ease both;
}
.rw-hero__lede { font-size: 1.0938rem; line-height: 1.7; color: var(--text-body); max-width: 36em; animation: g-rise 0.7s ease 0.1s both; }
.rw-hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.rw-hero__chips li { font-size: 12.5px; font-weight: 500; color: var(--text); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-ivory); }
.rw-hero__visual { display: flex; justify-content: center; }
@media (max-width: 880px) {
  .rw-hero__grid { grid-template-columns: 1fr; }
}

.rw-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.rw-step { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1.125rem; border-top: 2px solid var(--line-strong); }
.rw-step__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--coral); font-variant-numeric: tabular-nums; }
.rw-step__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--text); }
.rw-step__desc { font-size: 14.5px; line-height: 1.6; color: var(--text-body); }
@media (max-width: 1080px) { .rw-steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; } }
@media (max-width: 640px)  { .rw-steps { grid-template-columns: 1fr; } }

.rw-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.rw-dash__item { padding: 1.5rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper-ivory); }
.rw-dash__k { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--text); margin-bottom: .5rem; }
.rw-dash__item p { font-size: 15px; line-height: 1.6; color: var(--text-body); }
@media (max-width: 880px) { .rw-dash { grid-template-columns: 1fr; } }

.rw-cta__login { margin-top: 2rem; font-size: 14px; color: var(--text-secondary); }
.rw-cta__login a { border-bottom: 1px solid var(--line-strong); }

/* ================================================================
   5. FOOTER BADGE
   ================================================================ */
.footer__links .rw-footer-new {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 999px; background: #FF1A0D; color: #FFFFFF;
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  vertical-align: 2px;
}

/* ================================================================
   6. BLOG: Wallet call-to-action box at the end of Wallet articles
   ================================================================ */
.rinato-blog-body .rw-post-cta {
  max-width: 760px; margin: 3rem auto 4.5rem; padding: 2rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg-warm);
}
.rw-post-cta__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: .5rem; }
.rw-post-cta__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); margin-bottom: .5rem; }
.rw-post-cta__text { font-size: 15px; line-height: 1.6; color: var(--text-body); }
@media (max-width: 640px) {
  .rinato-blog-body .rw-post-cta { grid-template-columns: 1fr; margin-left: var(--pad); margin-right: var(--pad); }
}

/* Tables in articles (blog.css has no table styles) */
.rinato-blog-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 14.5px; line-height: 1.5; }
.rinato-blog-prose th, .rinato-blog-prose td { text-align: left; vertical-align: top; padding: .75rem .875rem .75rem 0; border-bottom: 1px solid var(--line); }
.rinato-blog-prose thead th { font-family: var(--font-display); font-weight: 600; color: var(--text); border-bottom: 2px solid var(--line-strong); }
.rinato-blog-prose tbody td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
@media (max-width: 640px) {
  .rinato-blog-prose table { display: block; overflow-x: auto; }
}
