/* =============================================================================
   ONEfourMe homepage — "refresh" design (preview v1.2)
   -----------------------------------------------------------------------------
   Loaded only by lib/site/home_refresh.php. Self-contained: it does not load
   theme.css or site.css, and every rule is scoped to body.ofm-refresh, so it
   cannot change any other page. Plan:
   systems-doc/WEBSITE_DESIGN_PREVIEW_PLAN_V1_1_2026-10-01.md

   Identity: the compensation page's teal family (#2B4C55 deep, #5A98AA /
   #70B3C5 mid, #A8D3E5 pale), pushed darker in the hero and the AI section so
   the real Nebula orb and the 3D devices glow. Every product picture is a real
   screen in a CSS 3D frame (no image of a phone is used; the frame is CSS).

   Tablet note: no large filtered or fixed layers (the 2026-09-27 white flicker
   came from one). Glows are gradients; blur is only used on small chips.
   ========================================================================== */

body.ofm-refresh {
  --r-space: #050f13;
  --r-deep-900: #071a1f;
  --r-deep-800: #0e2a31;
  --r-deep-700: #2b4c55;
  --r-teal-600: #3f6f7b;
  --r-teal-500: #5a98aa;
  --r-teal-400: #70b3c5;
  --r-teal-200: #a8d3e5;
  --r-mist: #eef5f8;
  --r-white: #ffffff;
  --r-violet: #7d5cff;

  --r-ink: #0c2228;
  --r-ink-soft: #46606a;
  --r-line: #d3e3ea;
  --r-on-dark: #eef7fa;
  --r-on-dark-soft: #a9c6d0;
  --r-action: #2b4c55;
  --r-action-hover: #1c3a42;
  --r-accent: #a8d3e5;
  --r-accent-hover: #c8e6f1;
  --r-focus: #70b3c5;
  --r-good: #1f7a5a;

  --r-radius-lg: 28px;
  --r-radius: 20px;
  --r-shadow: 0 1px 2px rgba(12, 34, 40, .06), 0 12px 32px -12px rgba(12, 34, 40, .18);
  --r-shadow-lg: 0 2px 4px rgba(12, 34, 40, .08), 0 30px 60px -20px rgba(12, 34, 40, .35);
  --r-wrap: 1200px;
  --r-ease: cubic-bezier(.2, .7, .2, 1);

  margin: 0;
  background: var(--r-white);
  color: var(--r-ink);
  font: 400 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; background: #071a1f; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.ofm-refresh *, .ofm-refresh *::before, .ofm-refresh *::after { box-sizing: border-box; }
.ofm-refresh img { max-width: 100%; height: auto; display: block; }
.ofm-refresh h1, .ofm-refresh h2, .ofm-refresh h3, .ofm-refresh p { margin: 0; }
.ofm-refresh a { color: inherit; }
.ofm-refresh :focus-visible { outline: 3px solid var(--r-focus); outline-offset: 3px; border-radius: 6px; }
.ofm-refresh .r-icon { width: 1.15em; height: 1.15em; flex: none; }
.ofm-refresh .r-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ofm-refresh .r-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--r-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.ofm-refresh .r-skip:focus { top: 16px; }
.ofm-refresh .r-wrap { width: min(var(--r-wrap), 100% - 48px); margin-inline: auto; }
.ofm-refresh .r-narrow { width: min(820px, 100% - 48px); }

/* ── Review strip (preview only) ─────────────────────────────────────────── */
.ofm-refresh .r-review { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; padding: 8px 16px; background: #030b0e; color: #cfe3ea; font-size: 13px; line-height: 1.4; text-align: center; }
.ofm-refresh .r-review a { color: var(--r-accent); font-weight: 600; }

/* ── Type ────────────────────────────────────────────────────────────────── */
.ofm-refresh h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.ofm-refresh h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.ofm-refresh h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.ofm-refresh .r-body { color: var(--r-ink-soft); font-size: clamp(1.02rem, .98rem + .2vw, 1.12rem); max-width: 64ch; }
.ofm-refresh .r-body strong { color: var(--r-ink); font-weight: 700; }
.ofm-refresh .r-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--r-teal-600); font: 400 .9rem/1 "Share Tech Mono", ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.ofm-refresh .r-grad { background: linear-gradient(100deg, #ffffff 0%, var(--r-teal-200) 40%, var(--r-teal-400) 75%, #9f8cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ofm-refresh .r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .98rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--r-ease), transform .2s var(--r-ease), box-shadow .2s var(--r-ease); }
.ofm-refresh .r-btn:hover { transform: translateY(-1px); }
.ofm-refresh .r-btn--primary { background: var(--r-action); color: #fff; box-shadow: 0 8px 20px -10px rgba(28, 58, 66, .7); }
.ofm-refresh .r-btn--primary:hover { background: var(--r-action-hover); }
.ofm-refresh .r-btn--accent { background: var(--r-accent); color: var(--r-deep-900); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 30px -10px rgba(112, 179, 197, .9); }
.ofm-refresh .r-btn--accent:hover { background: var(--r-accent-hover); }
.ofm-refresh .r-btn--ghost { background: transparent; color: var(--r-deep-700); box-shadow: inset 0 0 0 1.5px var(--r-line); }
.ofm-refresh .r-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--r-teal-500); }
.ofm-refresh .r-btn--block { width: 100%; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.ofm-refresh .r-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; transition: background-color .25s var(--r-ease), box-shadow .25s var(--r-ease), padding .25s var(--r-ease); }
.ofm-refresh .r-header.is-scrolled { background: rgba(5, 15, 19, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(168, 211, 229, .12); padding: 8px 0; }
.ofm-refresh .r-header-inner { width: min(var(--r-wrap), 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.ofm-refresh .r-logo img { width: 150px; }
.ofm-refresh .r-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ofm-refresh .r-nav a:not(.r-btn) { color: var(--r-on-dark-soft); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.ofm-refresh .r-nav a:not(.r-btn):hover { color: #fff; background: rgba(168, 211, 229, .1); }
.ofm-refresh .r-nav-cta { display: none; }
.ofm-refresh .r-header-actions { display: flex; align-items: center; gap: 10px; }
.ofm-refresh .r-login { color: #fff; font-weight: 700; text-decoration: none; padding: 8px 12px; }
.ofm-refresh .r-menu { display: none; }

/* ── Dark surfaces (hero, AI section, close) ─────────────────────────────── */
.ofm-refresh .r-hero, .ofm-refresh .r-section--dark, .ofm-refresh .r-close {
  position: relative; overflow: hidden; color: var(--r-on-dark);
  background:
    radial-gradient(55% 60% at 80% 35%, rgba(112, 179, 197, .22) 0%, rgba(112, 179, 197, 0) 70%),
    radial-gradient(40% 45% at 70% 60%, rgba(125, 92, 255, .16) 0%, rgba(125, 92, 255, 0) 70%),
    radial-gradient(45% 50% at 5% 90%, rgba(168, 211, 229, .10) 0%, rgba(168, 211, 229, 0) 70%),
    linear-gradient(165deg, #050f13 0%, #071a1f 50%, #0e2a31 100%);
}
/* Fine dot field: a quiet "tech" texture, fades out at the edges. */
.ofm-refresh .r-hero::before, .ofm-refresh .r-section--dark::before, .ofm-refresh .r-close::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(168, 211, 229, .16) 1px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 60% 45%, #000 0%, transparent 100%);
}
.ofm-refresh .r-hero > *, .ofm-refresh .r-section--dark > *, .ofm-refresh .r-close > * { position: relative; }
.ofm-refresh .r-section--dark .r-body { color: var(--r-on-dark-soft); }
.ofm-refresh .r-section--dark .r-body strong { color: #fff; }
.ofm-refresh .r-section--dark h2 { color: #fff; }
.ofm-refresh .r-eyebrow--dark { color: var(--r-teal-200); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ofm-refresh .r-hero { margin-top: -76px; padding: 140px 0 90px; }
.ofm-refresh .r-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.ofm-refresh .r-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 16px; border-radius: 999px; background: rgba(168, 211, 229, .08); box-shadow: inset 0 0 0 1px rgba(168, 211, 229, .22); color: var(--r-teal-200); font: 400 .85rem/1 "Share Tech Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.ofm-refresh .r-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ff0c4; box-shadow: 0 0 0 4px rgba(95, 240, 196, .18), 0 0 12px #5ff0c4; }
.ofm-refresh .r-hero h1 { margin-bottom: 24px; color: #fff; }
.ofm-refresh .r-lede { color: var(--r-on-dark-soft); font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); max-width: 34em; margin-bottom: 34px; }
.ofm-refresh .r-hero-note { margin-top: 14px; color: var(--r-on-dark-soft); font-size: .92rem; }
.ofm-refresh .r-hero-art { position: relative; min-height: 640px; display: grid; place-items: center; }

/* ── 3D stage, phone and window ──────────────────────────────────────────── */
.ofm-refresh .r-stage {
  --ry: -16deg; --rx: 6deg; --rz: 0deg; --s: 1; /* thickness side: 1 = right edge shows */
  --px: 0; --py: 0;
  position: relative; display: grid; justify-items: center; perspective: 1900px;
}
.ofm-refresh .r-stage--left { --ry: 16deg; --s: -1; }
.ofm-refresh .r-stage--right { --ry: -16deg; --s: 1; }
.ofm-refresh .r-stage--hero { --ry: -20deg; --rx: 7deg; --rz: 1.5deg; --s: 1; animation: r-hover 7s ease-in-out infinite; }
@keyframes r-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.ofm-refresh .is-paused .r-stage--hero { animation-play-state: paused; }

.ofm-refresh .r-phone3d, .ofm-refresh .r-window3d {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(calc(var(--ry) + var(--px) * 7deg)) rotateX(calc(var(--rx) - var(--py) * 5deg)) rotateZ(var(--rz));
  transition: transform .5s var(--r-ease);
}
.ofm-refresh .r-phone3d {
  width: var(--pw, 280px); padding: 10px; border-radius: 52px;
  background: linear-gradient(140deg, #8a9ca3 0%, #3a474c 14%, #161d20 45%, #1d2629 70%, #6f8188 92%, #a9b8bd 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .22),
    inset 0 0 0 5px #0a0f11,
    calc(var(--s) * 1px) 1px 0 #3b474b, calc(var(--s) * 2px) 2px 0 #333e42, calc(var(--s) * 3px) 3px 0 #2c3639,
    calc(var(--s) * 4px) 4px 0 #262e31, calc(var(--s) * 5px) 5px 0 #20282a, calc(var(--s) * 6px) 6px 0 #1b2224,
    calc(var(--s) * 7px) 7px 0 #161c1e,
    calc(var(--s) * 30px) 50px 70px -20px rgba(0, 0, 0, .55),
    0 0 90px -25px rgba(112, 179, 197, .55);
}
.ofm-refresh .r-phone3d-btn { position: absolute; left: -3px; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #5c6b70, #2a3236); }
.ofm-refresh .r-phone3d-btn--a { top: 120px; height: 46px; }
.ofm-refresh .r-phone3d-btn--b { top: 178px; height: 46px; }
.ofm-refresh .r-phone3d-screen { position: relative; overflow: hidden; border-radius: 42px; background: #000; }
.ofm-refresh .r-phone3d-screen img { width: 100%; }
.ofm-refresh .r-phone3d-island { position: absolute; top: 11px; left: 50%; z-index: 3; width: 31%; height: 26px; margin-left: -15.5%; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ofm-refresh .r-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .06) 24%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .07) 100%); }
.ofm-refresh .r-floor { width: 70%; height: 46px; margin-top: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(5, 15, 19, .32), rgba(5, 15, 19, 0)); }
.ofm-refresh .r-section--dark .r-floor { background: radial-gradient(closest-side, rgba(112, 179, 197, .28), rgba(112, 179, 197, 0)); }

.ofm-refresh .r-window3d {
  width: 100%; border-radius: 16px; overflow: hidden; background: #0b1a1f;
  box-shadow:
    inset 0 0 0 1px rgba(168, 211, 229, .18),
    calc(var(--s) * 1px) 1px 0 #10262c, calc(var(--s) * 2px) 2px 0 #0d2127, calc(var(--s) * 3px) 3px 0 #0b1c21, calc(var(--s) * 4px) 4px 0 #09171b,
    calc(var(--s) * 34px) 46px 70px -24px rgba(5, 15, 19, .5),
    0 0 80px -30px rgba(112, 179, 197, .5);
}
.ofm-refresh .r-window3d-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: linear-gradient(180deg, #13303a, #0e252c); border-bottom: 1px solid rgba(168, 211, 229, .12); }
.ofm-refresh .r-window3d-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c4d57; }
.ofm-refresh .r-window3d-bar i:first-child { background: #ff6b5f; } .ofm-refresh .r-window3d-bar i:nth-child(2) { background: #ffc045; } .ofm-refresh .r-window3d-bar i:nth-child(3) { background: #36cf73; }
.ofm-refresh .r-window3d-bar span { margin-left: 12px; padding: 4px 14px; border-radius: 8px; background: rgba(5, 15, 19, .6); color: var(--r-teal-200); font: 400 .78rem/1.2 "Share Tech Mono", ui-monospace, monospace; letter-spacing: .02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ofm-refresh .r-window3d-body { position: relative; }

/* ── Hero agent screen (live Nebula orb) ─────────────────────────────────── */
.ofm-refresh .r-phone3d--hero { --pw: 310px; z-index: 2; }
.ofm-refresh .r-agent {
  display: flex; flex-direction: column; align-items: center; aspect-ratio: 9 / 19.2; padding: 46px 18px 22px;
  background:
    radial-gradient(70% 45% at 50% 30%, rgba(90, 60, 190, .38) 0%, rgba(90, 60, 190, 0) 70%),
    radial-gradient(60% 40% at 70% 45%, rgba(214, 60, 170, .14) 0%, rgba(214, 60, 170, 0) 70%),
    linear-gradient(180deg, #070616 0%, #04050d 100%);
  color: #dfe9ff; text-align: center;
}
.ofm-refresh .r-agent-top { display: flex; width: 100%; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(80, 190, 255, .18); font: 400 .66rem/1 "Share Tech Mono", ui-monospace, monospace; letter-spacing: .12em; color: #9aa7bf; }
.ofm-refresh .r-agent-top b { color: #2fb3d6; font-weight: 400; }
.ofm-refresh .r-agent-top em { font-style: normal; color: #2fb3d6; display: inline-flex; align-items: center; gap: 5px; }
.ofm-refresh .r-agent-top em i { width: 6px; height: 6px; border-radius: 50%; background: #2fb3d6; box-shadow: 0 0 8px #2fb3d6; }
.ofm-refresh .r-agent-orb { width: 100%; max-width: 260px; aspect-ratio: 1; margin: 6px 0 2px; }
.ofm-refresh .r-agent-name { margin-bottom: 10px; font: 400 .8rem/1 "Share Tech Mono", ui-monospace, monospace; letter-spacing: .3em; color: #2fb3d6; }
.ofm-refresh .r-agent-text { min-height: 4.6em; font: 400 1.02rem/1.5 "Share Tech Mono", ui-monospace, monospace; color: #f2f6ff; text-shadow: 0 0 18px rgba(80, 190, 255, .35); }
.ofm-refresh .r-agent-text.is-typing::after { content: "▍"; color: #2fb3d6; animation: r-caret 1s steps(1) infinite; }
@keyframes r-caret { 50% { opacity: 0; } }
.ofm-refresh .r-agent-input { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 10px 2px 10px 4px; border-bottom: 1px solid rgba(47, 179, 214, .5); color: #7f8aa3; font-size: .85rem; text-align: left; }
.ofm-refresh .r-agent-input b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #2fb3d6; box-shadow: inset 0 0 0 1.5px rgba(47, 179, 214, .6); }

/* Holographic stand */
.ofm-refresh .r-pedestal { position: relative; z-index: 1; width: 420px; height: 120px; margin-top: -34px; pointer-events: none; }
.ofm-refresh .r-pedestal i { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.ofm-refresh .r-pedestal i:nth-child(1) { width: 420px; height: 96px; border: 1.5px solid rgba(168, 211, 229, .35); box-shadow: 0 0 30px rgba(112, 179, 197, .35), inset 0 0 30px rgba(112, 179, 197, .2); animation: r-ring 4s ease-in-out infinite; }
.ofm-refresh .r-pedestal i:nth-child(2) { width: 320px; height: 70px; border: 2px solid rgba(112, 179, 197, .7); box-shadow: 0 0 22px rgba(112, 179, 197, .7), inset 0 0 18px rgba(125, 92, 255, .35); animation: r-ring 4s ease-in-out -1.3s infinite; }
.ofm-refresh .r-pedestal i:nth-child(3) { width: 230px; height: 48px; background: radial-gradient(closest-side, rgba(168, 211, 229, .55), rgba(112, 179, 197, .12) 70%, rgba(112, 179, 197, 0)); }
.ofm-refresh .r-pedestal::before { /* the light beam rising into the phone */
  content: ""; position: absolute; left: 50%; bottom: 50%; width: 260px; height: 220px; transform: translateX(-50%);
  background: linear-gradient(0deg, rgba(112, 179, 197, .28), rgba(112, 179, 197, 0));
  clip-path: polygon(8% 100%, 92% 100%, 70% 0, 30% 0);
}
@keyframes r-ring { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Glass chips around the hero phone (feature names, not fake data) */
.ofm-refresh .r-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(14, 42, 49, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(168, 211, 229, .22), 0 20px 40px -20px rgba(0, 0, 0, .6); color: #e8f4f8; font-size: .86rem; font-weight: 600; animation: r-hover 8s ease-in-out infinite; }
.ofm-refresh .r-chip .r-icon { color: #5ff0c4; }
.ofm-refresh .r-chip--a { top: 22%; left: -4%; animation-delay: -2s; }
.ofm-refresh .r-chip--b { bottom: 24%; right: -2%; animation-delay: -5s; }
.ofm-refresh .is-paused .r-chip { animation-play-state: paused; }

/* ── Name check ──────────────────────────────────────────────────────────── */
.ofm-refresh .r-claim { width: 100%; max-width: 560px; }
.ofm-refresh .r-claim-label { margin-bottom: 10px; font-size: .92rem; font-weight: 600; color: var(--r-on-dark-soft); }
.ofm-refresh .r-claim-row { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(168, 211, 229, .3), 0 0 40px -18px rgba(112, 179, 197, .8); transition: box-shadow .2s var(--r-ease), background-color .2s var(--r-ease); }
.ofm-refresh .r-claim-row:focus-within { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px var(--r-teal-400), 0 0 50px -14px rgba(112, 179, 197, .9); }
.ofm-refresh .r-claim-prefix { color: var(--r-teal-200); font-weight: 700; white-space: nowrap; }
.ofm-refresh .r-claim-row input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none; color: #fff; font: inherit; font-weight: 600; font-size: 1.02rem; }
.ofm-refresh .r-claim-row input::placeholder { color: rgba(185, 211, 220, .55); }
.ofm-refresh .r-claim-result { min-height: 1.6em; margin-top: 10px; font-size: .95rem; color: var(--r-on-dark-soft); }
.ofm-refresh .r-claim-result strong { color: #fff; }
.ofm-refresh .r-claim-result a { color: var(--r-accent); font-weight: 700; }
.ofm-refresh .r-claim-result[data-state="available"] { color: #9fe3c4; }
.ofm-refresh .r-claim-result[data-state="taken"], .ofm-refresh .r-claim-result[data-state="invalid"] { color: #ffb4a6; }

/* ── Light sections ──────────────────────────────────────────────────────── */
.ofm-refresh .r-section { padding: clamp(64px, 5vw + 32px, 120px) 0; }
.ofm-refresh .r-section--light { background: #fff; }
.ofm-refresh .r-section--mist { background: linear-gradient(180deg, var(--r-mist) 0%, #f6fafc 100%); }
.ofm-refresh .r-section h2 { margin-bottom: 18px; }
.ofm-refresh .r-head { max-width: 760px; margin-bottom: 56px; }
.ofm-refresh .r-head--center { margin-inline: auto; text-align: center; }
.ofm-refresh .r-head--center .r-body { margin-inline: auto; }
.ofm-refresh .r-card { background: #fff; border-radius: var(--r-radius); padding: 28px; box-shadow: var(--r-shadow); border: 1px solid rgba(211, 227, 234, .7); }
.ofm-refresh .r-num { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--r-deep-700); color: #fff; font-weight: 800; font-size: .95rem; }
.ofm-refresh .r-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ofm-refresh .r-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ofm-refresh .r-list .r-icon { margin-top: 3px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #052a22; background: #5ff0c4; box-shadow: 0 0 14px rgba(95, 240, 196, .5); }
.ofm-refresh .r-real-note { margin-top: 30px; text-align: center; color: var(--r-ink-soft); font: 400 .85rem/1.4 "Share Tech Mono", ui-monospace, monospace; letter-spacing: .06em; }

/* Two pages */
.ofm-refresh .r-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ofm-refresh .r-two-col { display: grid; gap: 26px; justify-items: center; }
.ofm-refresh .r-two-col--offset { padding-top: 90px; }
.ofm-refresh .r-two .r-phone3d { --pw: 270px; }
.ofm-refresh .r-stage--narrow { width: min(100%, 400px); }
.ofm-refresh .r-two-label { display: flex; gap: 14px; align-items: flex-start; max-width: 380px; }
.ofm-refresh .r-two-label p { color: var(--r-ink-soft); font-size: .97rem; margin-top: 4px; }
.ofm-refresh .r-addr { display: flex; gap: 8px; align-items: center; color: var(--r-teal-600) !important; font: 400 .88rem/1.3 "Share Tech Mono", ui-monospace, monospace !important; }

/* Split sections */
.ofm-refresh .r-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.ofm-refresh .r-split--flip { grid-template-columns: 1.1fr .9fr; }
.ofm-refresh .r-split--flip .r-split-copy { order: 2; }

/* Brand + prompts: two overlapping real screens */
.ofm-refresh .r-stack { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ofm-refresh .r-stack .r-stage--back { grid-column: 1 / 10; grid-row: 1; }
.ofm-refresh .r-stack .r-stage--front { grid-column: 5 / 13; grid-row: 1; align-self: end; margin-top: 36%; z-index: 2; }
.ofm-refresh .r-stack .r-stage--back .r-floor { display: none; }

/* Shop */
.ofm-refresh .r-stage--short .r-phone3d { --pw: 290px; }
.ofm-refresh .r-flow { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ofm-refresh .r-flow li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 16px; background: #fff; box-shadow: var(--r-shadow); text-align: center; font-size: .86rem; font-weight: 700; color: var(--r-deep-700); }
.ofm-refresh .r-flow .r-icon { width: 26px; height: 26px; color: var(--r-teal-600); }

/* Steps */
.ofm-refresh .r-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ofm-refresh .r-steps li { display: grid; gap: 12px; align-content: start; }
.ofm-refresh .r-steps p { color: var(--r-ink-soft); font-size: .97rem; }

/* Pricing */
.ofm-refresh .r-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 22px; }
.ofm-refresh .r-prices--three { grid-template-columns: repeat(3, minmax(0, 340px)); }
.ofm-refresh .r-price { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; background: #fff; border-radius: var(--r-radius-lg); box-shadow: var(--r-shadow); border: 1px solid var(--r-line); }
.ofm-refresh .r-price--feature { border: 2px solid var(--r-teal-500); box-shadow: var(--r-shadow-lg), 0 0 60px -30px rgba(112, 179, 197, .9); }
.ofm-refresh .r-price-flag { position: absolute; top: -14px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--r-deep-700); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ofm-refresh .r-price-name { color: var(--r-teal-600); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.ofm-refresh .r-price-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ofm-refresh .r-price-amount span { font-size: 1rem; font-weight: 600; color: var(--r-ink-soft); letter-spacing: 0; }
.ofm-refresh .r-price-amount s { font-size: 1.4rem; color: var(--r-ink-soft); font-weight: 600; }
.ofm-refresh .r-price-note { color: var(--r-ink-soft); font-size: .97rem; flex: 1; }

/* FAQ */
.ofm-refresh .r-faq { display: grid; gap: 12px; }
.ofm-refresh .r-faq details { background: #fff; border-radius: var(--r-radius); border: 1px solid var(--r-line); box-shadow: 0 1px 2px rgba(12, 34, 40, .04); }
.ofm-refresh .r-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; }
.ofm-refresh .r-faq summary::-webkit-details-marker { display: none; }
.ofm-refresh .r-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--r-mist); color: var(--r-deep-700); font-size: 1.2rem; transition: transform .2s var(--r-ease); }
.ofm-refresh .r-faq details[open] summary::after { transform: rotate(45deg); }
.ofm-refresh .r-faq details p { padding: 0 24px 22px; color: var(--r-ink-soft); }

/* Close */
.ofm-refresh .r-close { padding: clamp(80px, 6vw + 40px, 140px) 0; text-align: center; }
.ofm-refresh .r-close h2 { color: #fff; margin-bottom: 18px; }
.ofm-refresh .r-close .r-body { color: var(--r-on-dark-soft); margin: 0 auto 34px; }
.ofm-refresh .r-close .r-claim { margin-inline: auto; text-align: left; }

/* Footer */
.ofm-refresh .r-footer { padding: 40px 0; background: #030b0e; color: var(--r-on-dark-soft); font-size: .9rem; }
.ofm-refresh .r-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.ofm-refresh .r-footer img { width: 130px; opacity: .9; }
.ofm-refresh .r-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ofm-refresh .r-footer nav a { color: var(--r-on-dark-soft); text-decoration: none; font-weight: 600; }
.ofm-refresh .r-footer nav a:hover { color: #fff; }

/* ── Reveal (assets/site.js arms these; visible without JS) ─────────────── */
.ofm-refresh [data-reveal].is-armed { opacity: 0; transform: translateY(26px); }
.ofm-refresh [data-reveal] { transition: opacity .7s var(--r-ease), transform .7s var(--r-ease); }
.ofm-refresh [data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .ofm-refresh .r-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ofm-refresh .r-hero-copy { max-width: 680px; }
  .ofm-refresh .r-hero-art { width: 100%; max-width: 560px; margin-inline: auto; min-height: 0; padding-top: 10px; }
  .ofm-refresh .r-split, .ofm-refresh .r-split--flip { grid-template-columns: minmax(0, 1fr); }
  .ofm-refresh .r-split--flip .r-split-copy { order: 0; }
  .ofm-refresh .r-prices--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 860px) {
  .ofm-refresh .r-header-cta { display: none; }
  .ofm-refresh .r-menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer; background: rgba(168, 211, 229, .12); color: #fff; }
  .ofm-refresh .r-menu span { display: grid; gap: 4px; }
  .ofm-refresh .r-menu i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .ofm-refresh .r-nav { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border-radius: 20px; background: #071a1f; box-shadow: var(--r-shadow-lg), inset 0 0 0 1px rgba(168, 211, 229, .15); }
  .ofm-refresh .r-nav.is-open { display: flex; }
  .ofm-refresh .r-nav a:not(.r-btn) { padding: 12px 14px; font-size: 1rem; }
  .ofm-refresh .r-nav-cta { display: inline-flex; margin-top: 6px; }
  .ofm-refresh .r-header-actions { margin-left: auto; }
  .ofm-refresh .r-two { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .ofm-refresh .r-two-col--offset { padding-top: 0; }
  .ofm-refresh .r-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ofm-refresh .r-stack .r-stage--back, .ofm-refresh .r-stack .r-stage--front { grid-column: 1; grid-row: auto; margin-top: 0; }
  .ofm-refresh .r-steps { grid-template-columns: minmax(0, 1fr); }
  .ofm-refresh .r-prices { grid-template-columns: minmax(0, 420px); }
  .ofm-refresh .r-stage { --ry: -9deg; --rx: 4deg; }
  .ofm-refresh .r-stage--left { --ry: 9deg; }
  .ofm-refresh .r-stage--hero { --ry: -12deg; }
}

@media (max-width: 560px) {
  body.ofm-refresh { font-size: 16px; }
  .ofm-refresh .r-wrap, .ofm-refresh .r-narrow { width: calc(100% - 32px); }
  .ofm-refresh .r-logo img { width: 124px; }
  .ofm-refresh .r-hero { padding: 116px 0 64px; }
  .ofm-refresh .r-phone3d--hero { --pw: 260px; }
  .ofm-refresh .r-two .r-phone3d, .ofm-refresh .r-stage--short .r-phone3d { --pw: 240px; }
  .ofm-refresh .r-pedestal { transform: scale(.72); margin-top: -46px; }
  .ofm-refresh .r-chip { position: relative; inset: auto; margin: 8px auto 0; animation: none; }
  .ofm-refresh .r-hero-art { display: flex; flex-direction: column; align-items: center; }
  .ofm-refresh .r-claim-row { padding-left: 14px; }
  .ofm-refresh .r-claim-prefix { font-size: .9rem; }
  .ofm-refresh .r-claim-row .r-btn { padding: 0 16px; }
  .ofm-refresh .r-card { padding: 22px; }
  .ofm-refresh .r-flow { grid-template-columns: minmax(0, 1fr); }
  .ofm-refresh .r-flow li { flex-direction: row; justify-content: flex-start; padding: 12px 16px; }
  .ofm-refresh .r-footer-inner { flex-direction: column; text-align: center; }
  .ofm-refresh .r-footer nav { justify-content: center; }
}

/* Grid and flex children may shrink below their content width, so nothing
   gets clipped on small phones. */
.ofm-refresh .r-hero-grid > *, .ofm-refresh .r-two > *, .ofm-refresh .r-split > *,
.ofm-refresh .r-stack > *, .ofm-refresh .r-steps > *, .ofm-refresh .r-prices > * { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .ofm-refresh .r-stage--hero, .ofm-refresh .r-chip, .ofm-refresh .r-pedestal i { animation: none; }
  .ofm-refresh [data-reveal], .ofm-refresh .r-btn, .ofm-refresh .r-phone3d, .ofm-refresh .r-window3d { transition: none; }
  .ofm-refresh .r-agent-text.is-typing::after { animation: none; }
}

/* AI section: give the real setup screen more room */
.ofm-refresh .r-section--dark .r-split { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 1080px) { .ofm-refresh .r-section--dark .r-split { grid-template-columns: minmax(0, 1fr); } }
