/* RanOutOf website — design system (matches the app: deep navy, RanOutOf green, basket-total yellow) */
:root {
  --navy-950: #061424;
  --navy-900: #0b1d33;
  --navy-850: #0f2742;
  --navy-800: #143252;
  --navy-700: #1d4268;
  --header-h: 84px;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef4fb;
  --muted: #a9bdd2;
  --green: #33d474;
  --green-600: #1fae5a;
  --green-700: #16884a;
  --mint: #7ee2a8;
  --yellow: #f5b800;
  --red: #ef5350;
  --paper: #ffffff;
  --paper-text: #1c2b3a;
  --paper-muted: #55687b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(51, 212, 116, .35), 0 10px 40px rgba(51, 212, 116, .25);
  --wrap: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.ro-wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ro-muted { color: var(--muted); }
.ro-lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.ro-eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 1rem;
}
.ro-grad {
  background: linear-gradient(100deg, var(--green) 10%, var(--mint) 50%, var(--yellow) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ro-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: #000; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.ro-skip:focus { left: 8px; }
.ro-section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.ro-section--alt { background: var(--navy-850); }
.ro-section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.ro-section__head .ro-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.ro-btn {
  --bg: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg); color: #fff; font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.ro-btn:hover { color: #fff; transform: translateY(-2px); }
.ro-btn--primary { --bg: linear-gradient(135deg, var(--green), var(--green-600)); background: var(--bg); border-color: transparent; color: #04210f; box-shadow: var(--glow); }
.ro-btn--primary:hover { color: #04210f; box-shadow: 0 0 0 1px rgba(51,212,116,.5), 0 16px 50px rgba(51,212,116,.4); }
.ro-btn--ghost { background: transparent; }
.ro-btn--sm { padding: .55em 1.1em; font-size: .9rem; }

/* ---------- Header ---------- */
.ro-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.ro-header.is-scrolled { background: rgba(11, 29, 51, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.ro-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.ro-brand img { width: 240px; height: auto; }
@media (max-width: 760px) { :root { --header-h: 68px; } .ro-brand img { width: 190px; } } /* slimmer header leaves more screen on phones */
.ro-nav { display: flex; align-items: center; gap: 4px; }
.ro-nav__link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5em .85em; border-radius: 999px; transition: color .2s, background .2s; }
.ro-nav__link:hover, .ro-nav__link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.ro-nav__cta { margin-left: 10px; }
.ro-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; position: relative; }
.ro-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.ro-burger span:nth-child(1) { top: 15px; } .ro-burger span:nth-child(2) { top: 21px; } .ro-burger span:nth-child(3) { top: 27px; }
.ro-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ro-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ro-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  .ro-burger { display: block; }
  .ro-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px; background: rgba(11, 29, 51, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .ro-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .ro-nav__link { padding: .9em 1em; font-size: 1.05rem; }
  .ro-nav__cta { margin: 10px 0 0; }
  .ro-header { background: rgba(11, 29, 51, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

/* ---------- Hero ---------- */
.ro-hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.ro-hero::before, .ro-hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none;
}
.ro-hero::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(51,212,116,.55), transparent 70%); top: -120px; right: -80px; animation: ro-drift 14s ease-in-out infinite alternate; }
.ro-hero::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(245,184,0,.28), transparent 70%); bottom: -160px; left: -120px; animation: ro-drift 18s ease-in-out infinite alternate-reverse; }
.ro-grid-bg { position: absolute; inset: 0; z-index: -2; opacity: .35; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%); }
.ro-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ro-hero h1 .ro-swap { display: inline-block; min-width: 4.5ch; }
.ro-hero__sub { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-bottom: 1.6rem; }
.ro-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.ro-pills li { display: inline-flex; align-items: center; gap: .45em; font-size: .88rem; font-weight: 600; color: var(--text); padding: .4em .85em; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.ro-pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.ro-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ro-store { display: inline-block; transition: transform .25s var(--ease); border-radius: 10px; }
.ro-store:hover { transform: translateY(-3px); }
.ro-store img { height: 50px; width: auto; max-width: none; } /* the global img max-width would squash Google's padded PNG */
/* Google's badge PNG has built-in padding; scale it so the visible badge matches Apple's. */
/* Measured: the PNG is 646x250 with 45px of transparent padding on every side (art 556x160).
   Desktop: art 50px tall like Apple's, so image 78px tall with 14px trimmed each side. */
.ro-store[data-store="android"] img { height: 78px; margin: -14px; }
/* Phones: stack the badges in a centred column, both exactly 160px wide so their edges line up.
   Google art 160px wide -> image 186px wide with 13px trimmed each side. */
@media (max-width: 480px) {
  .ro-stores { flex-direction: column; align-items: center; gap: 10px; }
  .ro-store { line-height: 0; }
  .ro-store img { width: 160px; height: auto; }
  .ro-store[data-store="android"] img { width: 186px; height: auto; margin: -13px; }
}
.ro-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ro-guest { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.ro-guest strong { color: #fff; }

/* Phone mockup */
.ro-phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1200px; }
.ro-phone {
  position: relative; width: min(300px, 72vw); aspect-ratio: 600 / 1300; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #2a4a6e, #0a1628); box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.12);
  transform: rotateY(-12deg) rotateX(4deg); transition: transform .8s var(--ease);
  animation: ro-float 7s ease-in-out infinite;
}
.ro-phone:hover { transform: rotateY(0) rotateX(0); }
.ro-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.ro-phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 80px; height: 22px; transform: translateX(-50%); background: #050b14; border-radius: 20px; }
.ro-float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; font-weight: 700; font-size: .92rem;
  background: rgba(15, 39, 66, .88); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  max-width: 300px; /* longer messages wrap instead of running off the screen */
}
.ro-float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.ro-float-card--save { left: -4%; top: 16%; animation: ro-float 6s ease-in-out infinite .6s; }
.ro-float-card--save b { color: var(--green); }
.ro-float-card--low { right: -6%; bottom: 20%; animation: ro-float 6.5s ease-in-out infinite 1.4s; }
@media (min-width: 921px) and (max-width: 1180px) { .ro-float-card--low { right: 0; } }
.ro-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 1.05rem; }
.ro-dot--green { background: rgba(51,212,116,.18); color: var(--green); }
.ro-dot--yellow { background: rgba(245,184,0,.18); color: var(--yellow); }
.ro-dot--blue { background: rgba(126,182,255,.18); color: #8cc0ff; }
@media (max-width: 920px) {
  .ro-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .ro-hero__sub, .ro-lead { margin-inline: auto; }
  .ro-hero__actions, .ro-stores, .ro-pills { justify-content: center; }
  .ro-phone-stage { min-height: 480px; }
  .ro-float-card--save { left: 0; } .ro-float-card--low { right: 0; }
}

/* ---------- Ticker ---------- */
.ro-ticker { border-block: 1px solid var(--line); background: var(--navy-950); overflow: hidden; padding: 14px 0; }
.ro-ticker__track { display: flex; gap: 40px; width: max-content; animation: ro-marquee 38s linear infinite; }
.ro-ticker:hover .ro-ticker__track { animation-play-state: paused; }
.ro-tick { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; color: var(--muted); font-size: .95rem; }
.ro-tick b { color: #fff; }
.ro-tag { font-size: .72rem; font-weight: 800; padding: .15em .55em; border-radius: 6px; letter-spacing: .02em; }
.ro-tag--c { background: #e01a22; color: #fff; }
.ro-tag--w { background: #fff; color: #126c2f; }
.ro-tag.is-win { box-shadow: 0 0 0 2px var(--green); }

/* ---------- Cards / features ---------- */
.ro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ro-card {
  position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s;
}
.ro-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(51,212,116,.14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ro-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ro-card:hover::before { opacity: 1; }
.ro-card p { color: var(--muted); margin: 0; }
.ro-card .ro-dot { margin-bottom: 18px; width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; }
@media (max-width: 860px) { .ro-cards { grid-template-columns: 1fr; } }

/* Split feature rows */
.ro-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ro-split + .ro-split { margin-top: clamp(72px, 10vw, 120px); }
.ro-split--flip > :first-child { order: 2; }
.ro-checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 12px; }
.ro-checks li { display: flex; gap: 12px; color: var(--muted); }
.ro-checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #04210f; background: var(--green); margin-top: 2px; }
.ro-checks b { color: #fff; font-weight: 700; }
@media (max-width: 860px) { .ro-split { grid-template-columns: 1fr; } .ro-split--flip > :first-child { order: 0; } }

/* Panel used by demos */
.ro-panel { border-radius: 24px; padding: clamp(20px, 3vw, 32px); background: var(--navy-800); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.ro-panel__title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.ro-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Basket demo ---------- */
.ro-basket__items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ro-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.ro-item:hover { background: rgba(255,255,255,.07); }
.ro-item input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; cursor: pointer; }
.ro-item:has(input:not(:checked)) { opacity: .5; }
.ro-item__name { font-weight: 600; font-size: .95rem; }
.ro-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; padding: 3px 8px; border-radius: 8px; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.ro-price.is-win { border-color: var(--green); background: rgba(51,212,116,.12); color: var(--mint); }
.ro-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ro-total { text-align: center; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.ro-total.is-win { border-color: var(--green); box-shadow: var(--glow); }
.ro-total strong { display: block; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.ro-total small { color: var(--muted); }
.ro-verdict { margin-top: 12px; padding: 14px; text-align: center; border-radius: 16px; font-weight: 800; font-size: 1.1rem; background: #04110a; border: 1px solid var(--green); color: var(--green); transition: transform .3s var(--ease); }
.ro-verdict.is-bump { transform: scale(1.03); }
/* Phones: name on the first row, both prices side by side underneath (2 rows instead of 3). */
@media (max-width: 480px) {
  .ro-item { grid-template-columns: auto auto 1fr; row-gap: 6px; padding: 9px 12px; }
  .ro-item__name { grid-column: 2 / -1; }
  .ro-item .ro-price { grid-row: 2; justify-self: start; font-size: .85rem; }
  .ro-item .ro-price[data-p="c"] { grid-column: 2; }
  .ro-item .ro-price[data-p="w"] { grid-column: 3; }
}
.ro-panel__cta { display: flex; justify-content: center; width: 100%; margin-top: 16px; }

/* ---------- Consumption period demo ---------- */
.ro-cp__tile { display: flex; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ro-cp__rail { width: 10px; flex: none; background: var(--green); transition: background .3s; }
.ro-cp__body { flex: 1; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.ro-cp__emoji { font-size: 2rem; }
.ro-cp__name { font-weight: 700; }
.ro-cp__status { font-size: .9rem; color: var(--muted); }
.ro-cp__bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); margin: 18px 0 6px; overflow: hidden; }
.ro-cp__fill { height: 100%; width: 100%; background: var(--green); border-radius: inherit; transition: width .3s var(--ease), background .3s; }
.ro-cp[data-state="low"] .ro-cp__rail, .ro-cp[data-state="low"] .ro-cp__fill { background: var(--yellow); }
.ro-cp[data-state="out"] .ro-cp__rail, .ro-cp[data-state="out"] .ro-cp__fill { background: var(--red); }
.ro-cp label { display: block; font-size: .9rem; font-weight: 600; margin-top: 16px; }
.ro-cp input[type="range"] { width: 100%; accent-color: var(--green); }
.ro-cp__moved { margin-top: 14px; font-weight: 700; color: var(--yellow); min-height: 1.6em; }

/* ---------- Share demo ---------- */
.ro-share { position: relative; }
.ro-avatars { display: flex; margin-bottom: 14px; }
.ro-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #04210f; border: 3px solid var(--navy-800); margin-left: -8px; }
.ro-avatar:first-child { margin-left: 0; }
.ro-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ro-feed li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .95rem; animation: ro-pop .6s var(--ease) both; }
.ro-feed li > span:last-child { color: var(--muted); font-size: .85rem; margin-left: auto; }
.ro-feed .ro-avatar { width: 30px; height: 30px; margin: 0; border-width: 0; font-size: .8rem; flex: none; }

/* ---------- Steps ---------- */
.ro-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.ro-steps li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.ro-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px; font-weight: 800; color: #04210f; background: linear-gradient(135deg, var(--green), var(--yellow)); }
.ro-steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .ro-steps { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */
.ro-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.ro-chips li { padding: .6em 1.1em; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; transition: border-color .2s, transform .2s; }
.ro-chips li:hover { border-color: var(--green); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.ro-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.ro-faq details { border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .2s, background .2s; }
.ro-faq details[open] { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.ro-faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.ro-faq summary::-webkit-details-marker { display: none; }
.ro-faq summary::after { flex: none; content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); transition: transform .3s var(--ease); }
.ro-faq details[open] summary::after { transform: rotate(45deg); }
.ro-faq details > div { padding: 0 22px 18px; color: var(--muted); }
.ro-faq details > div p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.ro-cta { padding: clamp(60px, 8vw, 100px) 0; }
.ro-cta__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: 32px; position: relative; overflow: hidden;
  background: radial-gradient(600px circle at 0% 0%, rgba(51,212,116,.25), transparent 60%), radial-gradient(500px circle at 100% 100%, rgba(245,184,0,.18), transparent 60%), var(--navy-800);
  border: 1px solid var(--line-strong);
}
.ro-cta h2 { margin-bottom: .3em; }
.ro-qr { margin: 0; text-align: center; padding: 14px; border-radius: 20px; background: #fff; color: var(--paper-muted); font-size: .8rem; font-weight: 600; }
.ro-qr img { width: 150px; height: 150px; margin-bottom: 6px; }
@media (max-width: 760px) { .ro-cta__inner { grid-template-columns: 1fr; text-align: center; } .ro-qr { display: none; } }
@media (hover: none) and (pointer: coarse) { .ro-qr { display: none; } .ro-cta__inner { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.ro-pagehead { padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.ro-pagehead::before { content: ""; position: absolute; z-index: -1; inset: -40% 20% auto; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(51,212,116,.3), transparent 70%); filter: blur(60px); }
.ro-pagehead .ro-lead { margin-inline: auto; }

/* Long-form text on paper */
.ro-paper { background: var(--paper); color: var(--paper-text); border-radius: 28px; padding: clamp(24px, 5vw, 64px); max-width: 860px; margin: 0 auto; box-shadow: var(--shadow); color-scheme: light; }
.ro-paper h2 { font-size: 1.5rem; margin-top: 1.8em; }
.ro-paper h3 { font-size: 1.15rem; margin-top: 1.4em; }
.ro-paper h2:first-child, .ro-paper h3:first-child { margin-top: 0; }
.ro-paper p, .ro-paper li { color: var(--paper-muted); }
.ro-paper a { color: var(--green-700); }
.ro-paper strong { color: var(--paper-text); }

/* ---------- Guides and articles ---------- */
.ro-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ro-article { max-width: 760px; margin: 0 auto; font-size: 1.06rem; }
.ro-article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
.ro-article h3 { margin-top: 1.6em; }
.ro-article > :first-child { margin-top: 0; }
.ro-article p, .ro-article li { color: var(--muted); }
.ro-article strong { color: var(--text); }
.ro-article ol, .ro-article ul:not(.ro-checks) { padding-left: 1.3em; display: grid; gap: .5em; }
.ro-meta { font-size: .9rem; color: var(--muted); margin-top: .8rem; }
.ro-callout { border: 1px solid var(--line-strong); border-left: 4px solid var(--green); border-radius: 16px; padding: 18px 20px; background: var(--navy-850); margin: 1.8em 0; }
.ro-callout p { margin: 0; }
.ro-callout p + p { margin-top: .6em; }
.ro-table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line-strong); border-radius: 16px; }
.ro-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ro-table th, .ro-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ro-table thead th { background: var(--navy-850); font-weight: 700; color: var(--text); white-space: nowrap; }
.ro-table tbody tr:last-child td, .ro-table tfoot td { border-bottom: 0; }
.ro-table tfoot td { background: var(--navy-850); font-weight: 800; color: var(--text); }
.ro-table td { color: var(--muted); }
.ro-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ro-table .is-win { color: var(--green); font-weight: 800; }
.ro-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ro-guide-grid .ro-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ro-guide-grid .ro-card h3 { color: var(--text); }
.ro-guide-grid .ro-card span { margin-top: auto; padding-top: 14px; color: var(--green); font-weight: 700; }
.ro-hook { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 700; color: var(--text); line-height: 1.35; max-width: 34ch; margin: 0 auto 1rem; }
.ro-hero-img { max-width: 1040px; margin: clamp(24px, 4vw, 40px) auto 0; }
.ro-hero-img img, .ro-figure img { width: 100%; height: auto; border-radius: 22px; display: block; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.ro-hero-img figcaption, .ro-figure figcaption, .ro-chart figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: left; }
.ro-hero-img figcaption a, .ro-figure figcaption a { color: inherit; }
.ro-figure, .ro-chart { margin: 2em 0; }
.ro-chart { border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(14px, 3vw, 24px); background: var(--navy-850); }
.ro-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ro-chart h3 { margin: 0 0 .8em; font-size: 1.05rem; }
.ro-chart text { fill: var(--muted); font: 600 17px 'Plus Jakarta Sans', system-ui, sans-serif; }
.ro-chart .t-strong { fill: var(--text); font-weight: 800; }
.ro-chart .t-big { font-size: 20px; }
.ro-chart .f-green { fill: var(--green); } .ro-chart .f-yellow { fill: var(--yellow); } .ro-chart .f-red { fill: var(--red); }
.ro-chart .f-blue { fill: #8cc0ff; } .ro-chart .f-mint { fill: var(--mint); } .ro-chart .f-dim { fill: rgba(255,255,255,.14); }
.ro-chart .s-line { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.ro-chart .s-green { stroke: var(--green); stroke-width: 3; fill: none; } .ro-chart .s-yellow { stroke: var(--yellow); stroke-width: 3; fill: none; stroke-dasharray: 6 5; }
.ro-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1.8em 0; }
.ro-stat { border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px; background: var(--navy-850); }
.ro-stat strong { display: block; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; color: var(--green); line-height: 1.1; letter-spacing: -.02em; }
.ro-stat span { display: block; font-size: .88rem; color: var(--muted); margin-top: 6px; }
.ro-appbox { display: grid; grid-template-columns: 1fr 170px; gap: 22px; align-items: center; border: 1px solid var(--green); border-radius: 22px; padding: clamp(18px, 3vw, 28px); margin: 2.4em 0; background: linear-gradient(135deg, rgba(51,212,116,.12), rgba(51,212,116,.02)); }
.ro-appbox h2 { margin-top: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.ro-appbox img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.ro-appbox .ro-btn { margin-top: .6em; }
.ro-sources { font-size: .85rem; }
.ro-sources li { color: var(--muted); }
.ro-sources a { color: var(--muted); }
.ro-guide-grid .ro-card img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 16px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ro-hub-group { margin-top: clamp(40px, 6vw, 64px); }
.ro-hub-group:first-child { margin-top: 0; }
.ro-hub-group > h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1em; }
@media (max-width: 560px) {
  .ro-appbox { grid-template-columns: 1fr; }
  .ro-appbox img { max-width: 200px; margin: 0 auto; }
}
.ro-related { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.ro-related h2 { font-size: 1.3rem; margin-top: 0; }
@media (max-width: 480px) {
  .ro-article { font-size: 1rem; }
  .ro-table th, .ro-table td { padding: 10px; }
  .ro-table .opt { display: none; }
}

/* ---------- Forms ---------- */
.ro-form { display: grid; gap: 14px; }
.ro-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.ro-field input, .ro-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.25); color: #fff; font: 500 1rem var(--font); transition: border-color .2s, box-shadow .2s;
}
.ro-field input:focus, .ro-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(51,212,116,.18); }
.ro-field textarea { min-height: 150px; resize: vertical; }
.ro-field small { color: var(--muted); font-size: .8rem; }
.ro-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ro-recaptcha-note { font-size: .78rem; color: var(--muted); }
.grecaptcha-badge { visibility: hidden; }
.ro-contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .ro-contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.ro-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 64px 0 0; }
.ro-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.ro-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.ro-footer nav a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; font-size: .95rem; }
.ro-footer nav a:hover { color: var(--green); }
.ro-footer img { width: 260px; margin-bottom: 14px; }
.ro-social { display: flex; gap: 8px; margin-top: 14px; }
.ro-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); transition: border-color .2s, color .2s, transform .2s; }
.ro-social a:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.ro-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ro-footer__base { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 28px; font-size: .82rem; color: var(--muted); }
.ro-footer__base p { margin: 0; }
@media (max-width: 860px) { .ro-footer__grid { grid-template-columns: 1fr 1fr; } .ro-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Sticky get-app bar (phones) ---------- */
.ro-getbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 18px; background: rgba(15, 39, 66, .95); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); box-shadow: var(--shadow); transform: translateY(140%); transition: transform .45s var(--ease);
}
.ro-getbar.is-visible { transform: none; }
.ro-getbar img { border-radius: 10px; }
.ro-getbar p { margin: 0; flex: 1; line-height: 1.2; font-size: .9rem; }
.ro-getbar p span { display: block; color: var(--muted); font-size: .78rem; }
.ro-getbar__close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; width: 32px; height: 32px; }
@media (min-width: 761px) { .ro-getbar { display: none !important; } }

/* ---------- Back to top / go to bottom arrows (bottom right) ---------- */
.ro-jump { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; flex-direction: column; gap: 8px; transition: bottom .45s var(--ease); }
.ro-jump__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: #04210f; background: var(--green); border: 0; box-shadow: var(--glow), 0 8px 20px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateX(24px) scale(.8); pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, visibility 0s .3s;
}
.ro-jump__btn.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.ro-jump__btn:hover { background: var(--mint); transform: translateY(-2px); }
.ro-jump__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ro-jump__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
/* Tidio's round chat bubble sits in the bottom-right corner (.ro-chat-clash, set by site.js when it is there):
   the arrows stack straight above it. site.js also sets the exact position from the bubble's real size;
   these values are the fallback. When Tidio shows as a side tab instead, nothing moves. */
.ro-chat-clash .ro-jump { right: 27px; bottom: 100px; }
/* Phones: sit above the sticky "Get the app" bar while it is showing. */
@media (max-width: 760px) {
  .ro-jump { right: 12px; bottom: 12px; }
  .ro-jump__btn { width: 44px; height: 44px; }
  .ro-getbar-on .ro-jump { bottom: 92px; }
  /* Tidio bubble on phones (56px, 14px from the corner): arrows above it, and the get-app bar
     stops short of it instead of running underneath. */
  .ro-chat-clash .ro-jump { right: 20px; bottom: 82px; }
  .ro-chat-clash .ro-getbar { right: 80px; }
  .ro-chat-clash .ro-getbar img { display: none; }
}

/* ---------- Cookie consent ---------- */
.ro-consent {
  position: fixed; z-index: 90; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
  padding: 20px; border-radius: 20px; background: rgba(15, 39, 66, .97); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: ro-pop .45s var(--ease) both;
}
.ro-consent h2 { font-size: 1.05rem; margin-bottom: .4em; }
.ro-consent p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.ro-consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.ro-linkbtn { background: none; border: 0; padding: 4px 0; color: var(--text); font: inherit; font-size: .95rem; cursor: pointer; text-align: left; }
.ro-linkbtn:hover { color: var(--green); }
@media (max-width: 760px) { .ro-consent { bottom: 12px; left: 12px; right: 12px; width: auto; } }

/* ---------- Toasts ---------- */
.ro-toasts { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 80; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); }
.ro-toast { padding: 14px 44px 14px 16px; border-radius: 14px; background: var(--navy-800); border: 1px solid var(--green); box-shadow: var(--shadow); position: relative; animation: ro-pop .4s var(--ease) both; }
.ro-toast--error { border-color: var(--red); }
.ro-toast strong { display: block; }
.ro-toast button { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes ro-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes ro-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes ro-marquee { to { transform: translateX(-50%); } }
@keyframes ro-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ro-ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Article charts in HTML (readable at any width) ---------- */
.ro-bars { display: grid; gap: 12px; }
.ro-bar { display: grid; grid-template-columns: minmax(84px, 9.5em) 1fr auto; gap: 10px; align-items: center; font-size: .95rem; }
.ro-bar__label { color: var(--text); font-weight: 700; }
.ro-bar__track { height: 22px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.ro-bar__fill { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--green); }
.ro-bar__val { color: var(--text); font-weight: 800; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.bg-green { background: var(--green) !important; } .bg-red { background: var(--red) !important; } .bg-yellow { background: var(--yellow) !important; }
.bg-blue { background: #8cc0ff !important; } .bg-dim { background: rgba(255,255,255,.22) !important; }
.ro-flow { list-style: none; padding: 0 !important; margin: 0; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px !important; counter-reset: flow; }
.ro-flow li { position: relative; border-radius: 14px; padding: 14px 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); text-align: center; }
.ro-flow li strong { display: block; color: var(--text); }
.ro-flow li span { font-size: .85rem; color: var(--muted); }
.ro-flow li.is-end { background: var(--green); border-color: var(--green); }
.ro-flow li.is-end strong, .ro-flow li.is-end span { color: #04210f; }
.ro-flow li:not(.is-end)::after { content: "⛽"; position: absolute; right: -9px; top: 50%; transform: translate(50%, -50%); font-size: .85rem; z-index: 1; }
.ro-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ro-week span { text-align: center; padding: 12px 0; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--text); font-weight: 800; font-size: .95rem; }
.ro-week .is-start { background: var(--green); color: #04210f; }
.ro-week .is-end { background: var(--red); color: #fff; }
.ro-week-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: .88rem; font-weight: 700; }
.ro-week-legend span:first-child { color: var(--green); } .ro-week-legend span:last-child { color: var(--red); }
.ro-splitbar { display: flex; gap: 4px; border-radius: 10px; overflow: hidden; }
.ro-splitbar span { flex: var(--n) 1 0; padding: 14px 10px; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.ro-steps-time { display: grid; gap: 10px; list-style: none; padding: 0 !important; margin: 0; }
.ro-steps-time li { border-radius: 14px; padding: 14px 16px; color: #0b1d33; }
.ro-steps-time li strong { display: block; color: #0b1d33; }
.ro-chart-note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 480px) { .ro-bar { grid-template-columns: 78px 1fr auto; font-size: .88rem; } .ro-week span { font-size: .8rem; } }
@media (min-width: 981px) and (max-width: 1120px) { .ro-nav__link { padding: .5em .55em; font-size: .9rem; } }

/* Audit fixes: contrast of white text on red chips, readable red legend, room for chart labels, wordy stat cards */
.ro-splitbar .bg-red, .ro-week .is-end { background: #c62828 !important; }
.ro-week-legend span:last-child { color: #ff8a80; }
.ro-bar__label { overflow-wrap: anywhere; }
.ro-stats--wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 480px) { .ro-bar { grid-template-columns: 96px 1fr auto; } }

.ro-card__more { margin-top: 14px !important; }
.ro-card__more a { color: var(--green); font-weight: 700; text-decoration: none; }
.ro-card__more a:hover { color: var(--mint); }

/* ---------- "Ask our assistant" prompts (open the Tidio chat) ---------- */
.ro-askbox { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; max-width: 860px; margin: 2rem auto 0; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(51,212,116,.12), rgba(51,212,116,.03)); }
.ro-askbox h2, .ro-askbox h3 { font-size: 1.15rem; margin: 0 0 .3em; }
.ro-askbox p { margin: 0; color: var(--muted); }
.ro-askbox__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #04210f; }
.ro-askbox__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ro-askbox .ro-btn { white-space: nowrap; }
@media (max-width: 640px) { .ro-askbox { grid-template-columns: auto 1fr; align-items: start; } .ro-askbox .ro-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; } }
