/* Direction A - "Calm". Rounded boxes, pills, generous air.
   Reference point: jcom.co.jp/en/service/mobile. */

body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, .display { font-family: Outfit, Inter, system-ui, sans-serif; letter-spacing: -.025em; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
section { padding: 50px 0; }
@media (max-width: 700px) { section { padding: 34px 0; } }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--rwm-red);
  display: block; margin-bottom: 10px;
}
.h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; line-height: 1.1; }
.lede { color: var(--rwm-muted); font-size: 16px; margin: 0; max-width: 58ch; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }

/* ---------- top chrome ---------- */
.util {
  background: var(--rwm-black); color: #fff;
  font-size: 12.5px; padding: 9px 0;
}
.util .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.util a { text-decoration: none; opacity: .85; }
.util a:hover { opacity: 1; }
.util .spacer { margin-left: auto; }
.util .wa { color: #7ee7a8; font-weight: 600; opacity: 1; }

header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rwm-line); }
.bar { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.logo { display: flex; align-items: baseline; gap: 2px; font-family: Outfit, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.logo .r { color: var(--rwm-red); }
.logo .w { color: var(--rwm-black); }
.logo .m { color: var(--rwm-muted); font-weight: 600; }
.logo img { display: block; height: 34px; width: auto; }

.searchbox { position: relative; flex: 1; max-width: 520px; }
.searchbox input {
  width: 100%; border: 1.5px solid var(--rwm-line); background: var(--rwm-paper);
  border-radius: var(--pill); padding: 12px 20px; font-size: 14.5px;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.searchbox input:focus { background: #fff; border-color: var(--rwm-black); outline: none; }
.searchbox input::placeholder { color: #9aa0a8; }

.bar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pill-btn { text-decoration: none;
  border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 10px 18px; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.pill-btn:hover { border-color: var(--rwm-black); }
.pill-btn.solid { background: var(--rwm-red); border-color: var(--rwm-red); color: #fff; box-shadow: var(--sh-red); }
.pill-btn.solid:hover { background: var(--rwm-red-deep); border-color: var(--rwm-red-deep); }
.pill-btn .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 7px; border-radius: var(--pill); background: var(--rwm-red); color: #fff; font-size: 11.5px; }
@media (max-width: 860px) { .bar-actions .hide-sm { display: none; } }

nav.cats { border-bottom: 1px solid var(--rwm-line); background: #fff; }
nav.cats .wrap { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
nav.cats .wrap::-webkit-scrollbar { display: none; }
nav.cats a {
  border-radius: var(--pill); padding: 8px 17px; font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap; background: var(--rwm-paper);
  transition: background .16s var(--ease), color .16s var(--ease);
}
nav.cats a:hover { background: var(--rwm-black); color: #fff; }
nav.cats a.on { background: var(--rwm-red); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 0; }
.hero-card {
  background: var(--rwm-paper);
  border-radius: 40px;
  padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,46,.13), transparent 62%);
}
@media (max-width: 860px) { .hero-card { grid-template-columns: 1fr; text-align: left; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: var(--pill); padding: 7px 15px;
  font-size: 12.5px; font-weight: 600; box-shadow: var(--sh-1); margin-bottom: 20px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rwm-good); }
.hero :is(h1, h2.hero-h) { font-size: clamp(32px, 5vw, 52px); line-height: 1.03; margin: 0 0 16px; }
.hero :is(h1, h2.hero-h) em { font-style: normal; color: var(--rwm-red); }
.hero p.sub { color: var(--rwm-muted); font-size: 16.5px; line-height: 1.55; margin: 0 0 26px; max-width: 44ch; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; z-index: 1; }
.hero-visual img { width: min(280px, 78%); filter: drop-shadow(0 26px 40px rgba(22,23,26,.22)); }

/* Signature: the nested price pill. Outer capsule is what you pay,
   the inner capsule shows the trade-in that got you there. */
.price-pill {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: var(--pill);
  box-shadow: var(--sh-2); padding: 10px 12px 10px 22px;
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
}
.price-pill .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-muted); display: block; }
.price-pill .val { font-family: Outfit, sans-serif; font-size: 25px; font-weight: 800; color: var(--rwm-red); line-height: 1; letter-spacing: -.03em; }
.price-pill .inner {
  background: var(--rwm-paper); border-radius: var(--pill);
  padding: 9px 15px; font-size: 12px; line-height: 1.25; color: var(--rwm-muted);
}
.price-pill .inner b { color: var(--rwm-black); display: block; font-size: 13.5px; }

/* ---------- why band ---------- */
.why {
  background:
    radial-gradient(130% 100% at 10% -10%, #e11d2e 0%, #a1121c 44%, #4a070c 78%, #17090b 100%);
  color: #fff; margin-top: 40px; position: relative;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #8a6410, #f7d774 45%, #f7d774 55%, #8a6410) 1;
}
.why-head { text-align: center; max-width: 62ch; margin: 0 auto 34px; }
.why-eyebrow {
  display: inline-block; background: rgba(0,0,0,.28);
  border: 1px solid rgba(247,215,116,.55); color: #f7d774;
  border-radius: var(--pill); padding: 7px 18px; margin-bottom: 16px;
  font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.why-head h2 {
  font-family: Outfit, sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 12px;
}
.why-head p { color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.55; margin: 0; }

/* The stat band: the shop's real scale in big type, frosted tiles on the red. */
.why-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 18px; }
@media (max-width: 700px) { .why-stats { grid-template-columns: repeat(2, 1fr); } }
.why-stat {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px; padding: 20px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.why-stat b {
  display: block; font-family: Outfit, sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1; letter-spacing: -.02em; color: #fff;
}
.why-stat span { display: block; margin-top: 9px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.82); }
.why-stat--accent {
  background: linear-gradient(140deg, #fbe9a6 0%, #f7d774 40%, #d8a72c 100%);
  border-color: #f7d774; box-shadow: 0 10px 26px rgba(184,134,11,.28);
}
.why-stat--accent b { color: #1a1206; }
.why-stat--accent span { color: #5a4506; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: #fff; border-radius: var(--r-xl); padding: 26px 22px;
  color: var(--rwm-ink); display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 12px 30px rgba(10,11,13,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(10,11,13,.24); }
.why-card .ico {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--rwm-red-wash); color: var(--rwm-red);
  display: grid; place-items: center;
}
.why-card h3 { font-size: 17px; margin: 6px 0 0; line-height: 1.25; letter-spacing: -.01em; }
.why-card p { font-size: 13.5px; color: var(--rwm-muted); margin: 0; line-height: 1.55; flex: 1; }
.why-chip {
  align-self: flex-start; margin-top: 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rwm-red); background: var(--rwm-red-wash);
  border-radius: var(--pill); padding: 5px 12px;
}
.why-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 28px;
  color: rgba(255,255,255,.92); font-weight: 600; font-size: 14px;
}
.why-foot > span { display: inline-flex; align-items: center; gap: 8px; }
.why-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.why .pill-btn.ghost { border-color: rgba(255,255,255,.42); color: #fff; background: transparent; }
.why .pill-btn.ghost:hover { border-color: #fff; }
.why .pill-btn.solid { background: #fff; color: var(--rwm-red); border-color: #fff; }
.why .pill-btn.solid:hover { background: rgba(255,255,255,.9); }

/* ---- Why: motion & depth -------------------------------------------------
   A slow aurora of light drifts behind the band, the tiles and cards rise in
   on scroll, the numbers count up, and a shine sweeps the accent tile. All of
   it is progressive: nothing is hidden or still unless the script has said it
   can animate (.js-anim), and everything stops under reduced-motion. */
.why { overflow: hidden; }
.why > .wrap { position: relative; z-index: 1; }
.why::before {
  content: ""; position: absolute; inset: -30% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(36% 42% at 16% 20%, rgba(247,215,116,.20), transparent 60%),  /* gold */
    radial-gradient(34% 40% at 84% 10%, rgba(255,120,130,.26), transparent 60%),  /* red light */
    radial-gradient(50% 58% at 74% 92%, rgba(0,0,0,.60), transparent 64%);        /* black depth */
  animation: why-aurora 16s ease-in-out infinite alternate;
}
@keyframes why-aurora {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1.05); opacity: .9; }
  50%  { transform: translate3d(3%, 2%, 0) rotate(4deg) scale(1.12); opacity: 1; }
  100% { transform: translate3d(-2%, 3%, 0) rotate(-3deg) scale(1.06); opacity: .85; }
}

/* Scroll reveal — only armed once JS adds .js-anim, so no-JS keeps it all visible. */
.why.js-anim .why-head,
.why.js-anim .why-stat,
.why.js-anim .why-card,
.why.js-anim .why-foot {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.why.js-anim.is-in .why-head,
.why.js-anim.is-in .why-stat,
.why.js-anim.is-in .why-card,
.why.js-anim.is-in .why-foot { opacity: 1; transform: none; }
.why.js-anim.is-in .why-stat:nth-child(2) { transition-delay: .07s; }
.why.js-anim.is-in .why-stat:nth-child(3) { transition-delay: .14s; }
.why.js-anim.is-in .why-stat:nth-child(4) { transition-delay: .21s; }
.why.js-anim.is-in .why-card:nth-child(1) { transition-delay: .10s; }
.why.js-anim.is-in .why-card:nth-child(2) { transition-delay: .18s; }
.why.js-anim.is-in .why-card:nth-child(3) { transition-delay: .26s; }
.why.js-anim.is-in .why-card:nth-child(4) { transition-delay: .34s; }
.why-stat b { font-variant-numeric: tabular-nums; }

/* A light sweep across the white accent tile once it has arrived. */
.why-stat--accent { position: relative; overflow: hidden; }
.why-stat--accent::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg);
}
.why.is-in .why-stat--accent::after { animation: why-shine 1.1s ease .5s 1 both; }
@keyframes why-shine { from { left: -60%; } to { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .why::before { animation: none; }
  .why.js-anim .why-head, .why.js-anim .why-stat,
  .why.js-anim .why-card, .why.js-anim .why-foot { opacity: 1; transform: none; transition: none; }
  .why.is-in .why-stat--accent::after { animation: none; }
}

/* ---- generic scroll reveal ----------------------------------------------
   Reusable rise-in for section blocks across the site. Armed only when the
   script adds .js-reveal (so no-JS shows everything), and fully off under
   reduced-motion. The script sets per-item stagger via transition-delay. */
.js-reveal .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- product grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-xl);
  padding: 20px; background: #fff; text-align: left; text-decoration: none;
  display: flex; flex-direction: column; gap: 12px; width: 100%;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-3px); }
.card .shot { background: var(--rwm-paper); border-radius: var(--r-lg); padding: 20px; display: grid; place-items: center; position: relative; }
/* Renders differ in shape (some are a front+back pair, some a single phone),
   so the box is fixed and the image fits inside it. Keeps the grid aligned. */
.card .shot { min-height: 158px; }
.card .shot img { width: auto; max-width: 82%; max-height: 132px; transition: transform .25s var(--ease); }
.card:hover .shot img { transform: scale(1.05); }
.card .flag {
  position: absolute; top: 11px; left: 11px;
  border-radius: var(--pill); padding: 4px 11px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--rwm-black); color: #fff;
}
.card .flag.used { background: var(--rwm-warn); }
.card .stock {
  /* Above the product shot: the image is a later sibling, so at an equal stacking
     level it paints over the pill and hides it. Same z as the rosette. */
  position: absolute; bottom: 11px; right: 11px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--rwm-muted);
  background: #fff; border-radius: var(--pill); padding: 4px 10px;
}
/* A live green dot on the in-stock pill — the same signal the hero tag uses. */
.card .stock::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rwm-good); flex: none;
}
.card .stock.low { color: var(--rwm-red); }
.card .stock.low::before { background: var(--rwm-red); }
.card h3 { font-size: 15.5px; margin: 0; line-height: 1.3; }
.card .meta { font-size: 12.5px; color: var(--rwm-muted); margin: -6px 0 0; }
.card .price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }
.card .now { font-family: Outfit, sans-serif; font-size: 21px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.03em; }
.card .was { font-size: 12.5px; color: var(--rwm-muted); text-decoration: line-through; }
.card .trade { font-size: 12px; color: var(--rwm-good); font-weight: 600; }

/* ---------- shop by need ---------- */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .needs { grid-template-columns: repeat(2, 1fr); } }
.need {
  border-radius: var(--r-xl); padding: 28px 24px; text-decoration: none;
  background: var(--rwm-paper); display: flex; flex-direction: column; gap: 8px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.need:hover { background: var(--rwm-black); color: #fff; }
.need:hover .n-sub { color: rgba(255,255,255,.7); }
.need .n-num { font-family: Outfit, sans-serif; font-size: 30px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.04em; }
.need h3 { font-size: 16px; margin: 0; }
.need .n-sub { font-size: 13px; color: var(--rwm-muted); margin: 0; }

/* ---------- trade-in ---------- */
.trade-card {
  background: var(--rwm-black); color: #fff; border-radius: 40px;
  padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: center;
}
@media (max-width: 880px) { .trade-card { grid-template-columns: 1fr; } }
.trade-card h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.trade-card .lede { color: rgba(255,255,255,.68); }
.trade-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trade-steps span { background: rgba(255,255,255,.1); border-radius: var(--pill); padding: 8px 16px; font-size: 13px; }
.calc { background: #fff; border-radius: var(--r-xl); padding: 26px; color: var(--rwm-ink); }
.calc label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-muted); display: block; margin-bottom: 8px; }
.calc select { width: 100%; border: 1.5px solid var(--rwm-line); border-radius: var(--pill); padding: 12px 16px; font-size: 14.5px; background: #fff; }
.calc .out { margin: 22px 0 18px; }
.calc .out .cap { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-muted); }
.calc .out .amt { font-family: Outfit, sans-serif; font-size: 46px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.04em; line-height: 1; }
.calc .fine { font-size: 12px; color: var(--rwm-muted); margin: 0; line-height: 1.5; }

/* ---------- repairs ---------- */
.repair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .repair-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .repair-grid { grid-template-columns: 1fr; } }
.repair {
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-xl); padding: 22px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.repair:hover { border-color: var(--rwm-black); background: var(--rwm-paper); }
.repair .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--rwm-red-wash); color: var(--rwm-red); display: grid; place-items: center; flex: none; }
.repair h3 { font-size: 15px; margin: 0 0 3px; }
.repair .t { font-size: 12.5px; color: var(--rwm-muted); }
.repair .pr { margin-left: auto; text-align: right; }
.repair .pr .f { font-size: 10.5px; color: var(--rwm-muted); display: block; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.repair .pr .v { font-family: Outfit, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- articles ---------- */
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .art-grid { grid-template-columns: 1fr; } }
.art { border-radius: var(--r-xl); background: var(--rwm-paper); padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: background .18s var(--ease); }
.art:hover { background: #ecedf0; }
.art .tag { align-self: flex-start; background: #fff; border-radius: var(--pill); padding: 5px 13px; font-size: 11px; font-weight: 700; color: var(--rwm-red); }
.art h3 { font-size: 16px; margin: 0; line-height: 1.3; }
.art p { font-size: 13.5px; color: var(--rwm-muted); margin: 0; line-height: 1.5; }
.art .foot { margin-top: auto; font-size: 12px; color: var(--rwm-muted); }

/* Homepage guides scroller: image-topped cards riding the shared .rail track. */
.art-rail { grid-auto-columns: minmax(240px, 1fr); }
@media (min-width: 1000px) { .art-rail { grid-auto-columns: minmax(268px, 1fr); } }
@media (max-width: 520px) { .art-rail { grid-auto-columns: minmax(74vw, 1fr); } }
.art-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--rwm-ink); }
.art-card .art-shot {
  display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  background: var(--rwm-paper); position: relative;
}
.art-card .art-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s var(--ease);
}
.art-card:hover .art-shot img { transform: scale(1.04); }
.art-shot.noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--rwm-red-wash), #fff); }
.art-shot.noimg img { display: none; }
.art-shot.noimg::after {
  content: "RWM"; font-family: Outfit, sans-serif; font-weight: 800;
  color: var(--rwm-red); opacity: .5; font-size: 22px; letter-spacing: .04em;
}
.art-card .art-cat { font-size: 12px; font-weight: 700; color: var(--rwm-muted); }
.art-card h3 {
  font-size: 15.5px; line-height: 1.35; margin: 0; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-card:hover h3 { color: var(--rwm-red); }
.art-card .art-date { font-size: 12px; color: var(--rwm-muted); margin-top: auto; }

/* Blog / archive index cards, image-topped (same photo treatment as the scroller). */
.art--img { padding: 0; overflow: hidden; }
.art--img .art-shot { display: block; aspect-ratio: 16 / 10; background: var(--rwm-paper); position: relative; }
.art--img .art-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.art--img:hover .art-shot img { transform: scale(1.04); }
.art--img .art-shot.noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--rwm-red-wash), #fff); }
.art--img .art-shot.noimg img { display: none; }
.art--img .art-shot.noimg::after { content: "RWM"; font-family: Outfit, sans-serif; font-weight: 800; color: var(--rwm-red); opacity: .5; font-size: 22px; letter-spacing: .04em; }
.art--img .art-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; }
.art--img .art-body .foot { margin-top: auto; }
.art--img .tag { align-self: flex-start; }

/* ---------- store ---------- */
.store-card { background: var(--rwm-paper); border-radius: 40px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .store-card { grid-template-columns: 1fr; } }
.store-rows { display: grid; gap: 18px; margin-top: 22px; }
.store-row { display: flex; gap: 14px; align-items: flex-start; }
.store-row .ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--rwm-red); display: grid; place-items: center; flex: none; }
.store-row .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwm-muted); }
.store-row .v { font-size: 15px; line-height: 1.45; }
.map-stub { background: #fff; border-radius: var(--r-xl); display: grid; place-items: center; min-height: 240px; color: var(--rwm-muted); font-size: 13.5px; text-align: center; padding: 24px; border: 1.5px dashed var(--rwm-line); }
.store-map { border-radius: var(--r-xl); overflow: hidden; min-height: 260px; background: var(--rwm-paper); }
.store-map iframe { display: block; width: 100%; height: 100%; min-height: 260px; }

/* ---------- footer ---------- */
footer { background: var(--rwm-black); color: rgba(255,255,255,.7); padding: 54px 0 30px; font-size: 14px; }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .f-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a { text-decoration: none; }
.f-social { display: inline-flex; align-items: center; gap: 7px; }
.f-social svg { flex: none; }
footer a:hover { color: #fff; }
.f-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.variant-flag {
  position: fixed; left: 16px; bottom: 16px; z-index: 130;
  background: var(--rwm-black); color: #fff; text-decoration: none;
  border-radius: var(--pill); padding: 9px 16px; font-size: 12.5px; font-weight: 600;
  box-shadow: var(--sh-2);
}
.variant-flag b { color: #ff8a94; }

/* Small screens: the search needs a full row of its own, it is the main way
   people find a model on a phone. */
@media (max-width: 660px) {
  .bar { flex-wrap: wrap; row-gap: 12px; }
  .logo { order: 1; }
  .bar-actions { order: 2; }
  .searchbox { order: 3; flex-basis: 100%; max-width: none; }
}

/* ============================================================
   Horizontal rails — Spotify-style, per the client's own brief.
   New / Used / Accessories, each filterable by brand.
   ============================================================ */

.rail-block { margin-bottom: 26px; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.rail-head h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 4px; line-height: 1.1; }
.rail-head .count { font-size: 13.5px; color: var(--rwm-muted); }

/* brand filters: oval, matching the button language Jon asked to keep */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button {
  border: 1.5px solid var(--rwm-line); border-radius: var(--pill);
  padding: 8px 17px; font-size: 13.5px; font-weight: 600; background: #fff;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.filters button:hover { border-color: var(--rwm-black); }
.filters button[aria-pressed="true"] { background: var(--rwm-red); border-color: var(--rwm-red); color: #fff; }
.filters button .n { opacity: .6; margin-left: 6px; font-weight: 500; }
.filters button[aria-pressed="true"] .n { opacity: .8; }

/* the scroller itself */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(228px, 1fr);
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-left: 2px;
  padding: 4px 2px 14px;
  scrollbar-width: thin; scrollbar-color: var(--rwm-line) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--rwm-line); border-radius: 99px; }
.rail::-webkit-scrollbar-thumb:hover { background: #cfd3d9; }
@media (min-width: 1000px) { .rail { grid-auto-columns: minmax(250px, 1fr); } }

/* arrows appear on pointer devices only; touch just swipes */
.rail-nav {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-2); display: none; place-items: center;
  transition: transform .16s var(--ease);
}
.rail-nav:hover { transform: translateY(-50%) scale(1.06); }
.rail-nav[disabled] { opacity: 0; pointer-events: none; }
.rail-nav.prev { left: -14px; }
.rail-nav.next { right: -14px; }
@media (hover: hover) and (min-width: 900px) { .rail-nav { display: grid; } }

.rail-empty { color: var(--rwm-muted); font-size: 14px; padding: 30px 4px; }

/* accessory card: icon, not a fake product photo */
.acc-card {
  border: 1.5px solid var(--rwm-line); border-radius: var(--r-xl);
  padding: 20px; background: #fff; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.acc-card:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-3px); }
.acc-card .ico {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--rwm-red-wash); color: var(--rwm-red);
  display: grid; place-items: center;
}
.acc-card h3 { font-size: 15px; margin: 4px 0 0; line-height: 1.3; }
.acc-card .brand { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rwm-muted); }
.acc-card .blurb { font-size: 13px; color: var(--rwm-muted); margin: 0; line-height: 1.5; }
.acc-card .price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 6px; }
.acc-card .now { font-family: Outfit, sans-serif; font-size: 20px; font-weight: 800; color: var(--rwm-red); letter-spacing: -.03em; }
.acc-card .was { font-size: 12.5px; color: var(--rwm-muted); text-decoration: line-through; }
.acc-card .add { border: 1.5px solid var(--rwm-black); border-radius: var(--pill); padding: 9px; font-size: 13px; font-weight: 700; text-align: center; }
.acc-card:hover .add { background: var(--rwm-black); color: #fff; }

/* ---------- Google reviews ---------- */
/* No margin of its own: the section's 50px padding sits the box the same distance
   from the band above as from the section below. The old 8px nudge, paired with an
   inline padding-top:0, left it almost touching the red band. */
.reviews { background: var(--rwm-paper); border-radius: 40px; padding: clamp(28px, 4vw, 48px); }
.rev-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.rev-score { display: flex; align-items: center; gap: 10px; }
.rev-label { display: block; font-family: Outfit, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rwm-muted); margin-bottom: 7px; }
.rev-stars { display: flex; gap: 3px; color: #f5a623; }
.rev-meta { font-size: 13.5px; color: var(--rwm-muted); line-height: 1.5; }
.rev-meta .g { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rwm-ink); }
/* The reviews ride the same rail as the product rows — scroll, snapping and
   arrows all come from .rail. Only the track width changes: a paragraph needs
   more room than a product card, and .rail sizes its columns, not its children. */
.rev-rail { grid-auto-columns: minmax(330px, 1fr); }
@media (min-width: 1000px) { .rev-rail { grid-auto-columns: minmax(360px, 1fr); } }
@media (max-width: 520px) { .rev-rail { grid-auto-columns: minmax(82vw, 1fr); } }
.rev-card { background: #fff; border-radius: var(--r-xl); padding: 22px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--rwm-line); }
/* Long reviews are trimmed to a readable card rather than stretching the rail. */
.rev-card p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rev-card .who { display: flex; align-items: center; gap: 11px; }
.rev-card .av { width: 38px; height: 38px; border-radius: 50%; background: var(--rwm-red-wash); color: var(--rwm-red); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.rev-card .nm { font-size: 14px; font-weight: 700; }
.rev-card .when { font-size: 12px; color: var(--rwm-muted); }
.rev-card p { font-size: 14px; line-height: 1.6; color: var(--rwm-ink); margin: 0; }
.rev-pending {
  background: #fff; border: 1.5px dashed var(--rwm-line); border-radius: var(--r-xl);
  padding: 30px; text-align: center; color: var(--rwm-muted); font-size: 14px; line-height: 1.6;
}
.rev-pending b { display: block; color: var(--rwm-ink); font-size: 15px; margin-bottom: 6px; }

/* Rosette stamp on the product shot, in the spirit of 1p.sg's BRAND NEW ribbon. */
.card .shot { position: relative; }
/* The shop's own badge artwork. No rotation: these are finished circular badges
   with their own lighting, and tilting them reads as a mistake. */
.rosette {
  position: absolute; top: -4px; left: -4px; z-index: 3;
  width: 56px; height: 56px;
  filter: drop-shadow(0 3px 6px rgba(22,23,26,.2));
  pointer-events: none;
  object-fit: contain;
}
@media (max-width: 520px) { .rosette { width: 46px; height: 46px; } }

/* the configurator gets the same stamp, so the trust mark carries through */
.cfg-media .rosette { top: 14px; left: 14px; width: 58px; height: 58px; }
.cfg-media .cfg-flag { display: none; }
