/* ===== billWright — Roadmap page. Builds on landing.css + site.css tokens ===== */

/* page-level */
.rm-main { overflow: clip; }

/* ---------- HERO ---------- */
.rm-hero {
  position: relative;
  padding: 132px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(31,122,61,.08), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.rm-hero .blueprint { opacity: .5; }
.rm-hero .wrap { position: relative; z-index: 1; }
/* the animated wordmark, centered for this hero */
.rm-hero .hero-brandsvg { margin: 0 auto 26px; width: clamp(208px, 30vw, 300px); }
.rm-hero .eyebrow { margin: 0 auto 20px; }
.rm-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 800;
  margin: 0 auto 20px; max-width: 16ch;
}
.rm-hero h1 .it { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green-deep); letter-spacing: -.01em; }
.rm-hero .sub {
  font-size: clamp(16px, 1.9vw, 20px); color: var(--ink-soft); line-height: 1.55;
  max-width: 60ch; margin: 0 auto; text-wrap: pretty;
}
.rm-hero .sub b { color: var(--ink); font-weight: 600; }

/* hero stat row — count-up */
.rm-stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px;
  margin-top: 44px;
}
.rm-stat {
  position: relative;
  min-width: 168px; padding: 22px 26px;
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.rm-stat.in { opacity: 1; transform: none; }
.rm-stat .n {
  font-family: var(--mono); font-weight: 500; font-size: 40px; line-height: 1;
  color: var(--green-deep); letter-spacing: -.02em;
}
.rm-stat .l { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.rm-stat .dotrow { position: absolute; top: 16px; right: 16px; display: flex; gap: 4px; }
.rm-stat .dotrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--hair-strong); }
.rm-stat.live .dotrow i:nth-child(-n+3) { background: var(--green); }
.rm-stat.test .dotrow i:nth-child(-n+2) { background: var(--amber); }
.rm-stat.soon .dotrow i:nth-child(1) { background: var(--muted); }

/* ---------- FILTER BAR ---------- */
.rm-filterwrap { position: sticky; top: 64px; z-index: 20; background: transparent; padding-top: 8px; }
.rm-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 12px; margin: 0 auto; max-width: 860px;
  background: rgba(252,251,247,.82); backdrop-filter: blur(10px);
  border: 1px solid var(--hair); border-radius: 999px;
}
.rm-chip {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; cursor: pointer; transition: all .16s ease; white-space: nowrap;
}
.rm-chip:hover { background: var(--cream-deep); }
.rm-chip.active { background: var(--green-deep); color: #fff; box-shadow: 0 2px 10px -2px rgba(21,83,42,.5); }
.rm-chip .c { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--dotc, var(--hair-strong)); }
.rm-chip.active .c { background: rgba(255,255,255,.85); }

/* ---------- TIMELINE ---------- */
.rm-timeline { position: relative; padding: 64px 0 30px; }
.rm-track { position: relative; max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* the spine */
.rm-spine {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: var(--hair); border-radius: 3px; overflow: hidden;
}
.rm-spine .fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: linear-gradient(var(--green), var(--amber) 62%, var(--hair-strong));
  transition: height .12s linear;
}

/* a phase station */
.rm-phase { position: relative; margin: 0 0 18px; }
.rm-phase-head {
  position: relative; z-index: 2; text-align: center; margin: 0 auto 30px; max-width: 640px;
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.rm-phase-head.in { opacity: 1; transform: none; }
.rm-node {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card);
  border: 3px solid var(--hair-strong); color: var(--muted);
  box-shadow: 0 0 0 8px var(--cream);
  transition: border-color .4s ease, color .4s ease, transform .4s ease;
}
.rm-node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rm-phase.live .rm-node { border-color: var(--green); color: var(--green-deep); }
.rm-phase.test .rm-node { border-color: var(--amber); color: #8A6914; }
.rm-phase.soon .rm-node { border-color: var(--hair-strong); color: var(--muted); }
.rm-phase-head.in .rm-node { animation: nodePop .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes nodePop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.rm-phase.live .rm-node::after {
  content: ""; position: absolute; width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--green); animation: nodePulse 2.4s ease-out infinite;
}
@keyframes nodePulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }

.rm-phase-head .st {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.rm-phase.live .st { background: var(--green-soft); color: var(--green-deep); }
.rm-phase.test .st { background: #FBF3DC; color: #6E5314; }
.rm-phase.soon .st { background: var(--surface-2); color: var(--muted); border: 1px solid var(--hair); }
.rm-phase-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; font-weight: 800; }
.rm-phase-head h2 .it { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green-deep); }
.rm-phase-head p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* milestone rows, alternating sides */
.rm-items { position: relative; display: flex; flex-direction: column; gap: 22px; }
.rm-item { position: relative; width: calc(50% - 38px); }
.rm-item.l { align-self: flex-start; text-align: right; }
.rm-item.r { align-self: flex-end; text-align: left; }

/* connector dot on the spine + line to card */
.rm-item::before { /* the spine dot */
  content: ""; position: absolute; top: 30px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--dotc, var(--green)); z-index: 3;
  transition: transform .3s ease, box-shadow .3s ease;
}
.rm-item.l::before { right: -45px; transform: translateX(50%); }
.rm-item.r::before { left: -45px; transform: translateX(-50%); }
.rm-item::after { /* connector line */
  content: ""; position: absolute; top: 36px; height: 2px; width: 32px;
  background: var(--dotc, var(--green)); opacity: .5;
}
.rm-item.l::after { right: -38px; }
.rm-item.r::after { left: -38px; }

/* the card */
.rm-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: var(--shadow-card);
  opacity: 0; transform: translateX(var(--enter, -28px));
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.rm-item.r .rm-card { --enter: 28px; }
.rm-item.in .rm-card { opacity: 1; transform: none; }
.rm-card:hover { box-shadow: var(--shadow-soft); border-color: var(--hair-strong); transform: translateY(-3px); }
.rm-item.in:hover::before { transform: translateX(var(--dotx, 50%)) scale(1.25); box-shadow: 0 0 0 5px var(--dotsoft, var(--green-soft)); }
.rm-item.l { --dotx: 50%; } .rm-item.r { --dotx: -50%; }

.rm-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.rm-item.l .rm-card .top { flex-direction: row-reverse; }
.rm-card .ic {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-deep);
}
.rm-card .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rm-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rm-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.rm-card .cat {
  display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: 3px 9px; border-radius: 5px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--hair);
}

/* progress bar (testing items) */
.rm-prog { margin-top: 14px; }
.rm-prog .bar { height: 6px; border-radius: 6px; background: var(--cream-deep); overflow: hidden; }
.rm-prog .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--amber), #D8A92E); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.rm-item.in .rm-prog .bar i { width: var(--p, 50%); }
.rm-prog .lbl { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.rm-item.l .rm-prog .lbl { flex-direction: row-reverse; }

/* dim when filtered out */
.rm-item.dim { opacity: .28; filter: saturate(.4); }
.rm-item.dim .rm-card { transform: none; }
.rm-item.dim::before { opacity: .3; }

/* phase flag footer */
.rm-phase-flag {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 26px; font-size: 12.5px; color: var(--muted);
}
.rm-phase-flag svg { width: 14px; height: 14px; }

/* ---------- TIP OF THE ICEBERG ---------- */
.rm-iceberg {
  position: relative; z-index: 2;
  max-width: 760px; margin: 64px auto 0; padding: 36px;
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center;
  background: linear-gradient(180deg, var(--card), var(--surface-2));
  border: 1px solid var(--hair); border-radius: 20px; box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.rm-iceberg.in { opacity: 1; transform: none; }
.berg-art { display: grid; place-items: center; }
.berg-art svg { width: 100%; max-width: 168px; height: auto; overflow: visible; }
.berg-water { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 7 7; opacity: .5; }
.berg-tip { fill: var(--green-soft); stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; }
.berg-mass { fill: rgba(42,111,219,.1); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; opacity: .55; }
.berg-mass2 { stroke: var(--blue); stroke-width: 1.4; opacity: .3; stroke-linejoin: round; }
.rm-iceberg.in .berg-tip { animation: bergBob 4.5s ease-in-out infinite; }
.rm-iceberg.in .berg-mass, .rm-iceberg.in .berg-mass2 { animation: bergBob 4.5s ease-in-out infinite; }
@keyframes bergBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.berg-text .kicker { color: var(--blue); }
.berg-text h3 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; font-weight: 800; margin-top: 6px; }
.berg-text h3 .it { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green-deep); }
.berg-text p { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.berg-text .berg-note { font-size: 13.5px; color: var(--muted); }
.berg-text .berg-note { border-top: 1px solid var(--hair); padding-top: 12px; }
@media (max-width: 620px) {
  .rm-iceberg { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; text-align: center; }
  .berg-art svg { max-width: 130px; }
}

/* ---------- CLOSING CTA ---------- */
.rm-cta { position: relative; padding: 30px 0 96px; text-align: center; }
.rm-cta .box {
  max-width: 720px; margin: 0 auto; padding: 48px 40px; border-radius: 20px;
  background: var(--ink); color: #EAE7DE; position: relative; overflow: hidden;
}
.rm-cta .blueprint { opacity: .12; }
.rm-cta .inner { position: relative; z-index: 1; }
.rm-cta .eyebrow { color: #8FD3A6; background: rgba(143,211,166,.12); border-color: rgba(143,211,166,.25); margin-bottom: 18px; }
.rm-cta h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; letter-spacing: -.025em; line-height: 1.08; }
.rm-cta h2 .it { font-family: var(--serif); font-style: italic; font-weight: 400; color: #A6E4BB; }
.rm-cta p { margin: 14px auto 28px; max-width: 50ch; color: rgba(234,231,222,.8); font-size: 16px; line-height: 1.55; }
.rm-cta .btn-primary { background: var(--green); }
.rm-cta .btn-ghost { color: #EAE7DE; border-color: rgba(255,255,255,.28); }
.rm-cta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.rm-cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- MOBILE: spine to the left ---------- */
@media (max-width: 720px) {
  .rm-filterwrap { top: 56px; }
  .rm-filters { border-radius: 16px; }
  .rm-spine { left: 22px; transform: none; }
  .rm-node { box-shadow: 0 0 0 6px var(--cream); }
  .rm-phase-head { text-align: left; margin-left: 0; padding-left: 4px; }
  .rm-node { margin-left: -6px; }
  .rm-item, .rm-item.l, .rm-item.r { width: auto; align-self: stretch; text-align: left; margin-left: 44px; }
  .rm-item.l .rm-card .top { flex-direction: row; }
  .rm-item.l .rm-prog .lbl { flex-direction: row; }
  .rm-card { --enter: 24px !important; }
  .rm-item.l::before, .rm-item.r::before { left: -38px; right: auto; transform: translateX(-50%); }
  .rm-item.l::after, .rm-item.r::after { left: -30px; right: auto; }
  .rm-item.l { --dotx: -50%; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-stat, .rm-phase-head, .rm-card, .rm-prog .bar i { transition: none; }
  .rm-stat, .rm-phase-head { opacity: 1; transform: none; }
  .rm-item .rm-card { opacity: 1; transform: none; }
  .rm-phase.live .rm-node::after { animation: none; }
}
