/* ═══════════════════════════════════════════════════════════════════════════
   rosflow.in — the homepage
   ───────────────────────────────────────────────────────────────────────────
   One sheet, loaded on `home` and no other route, through the existence gate
   in `app/Views/partials/head.php`. The homepage had no sheet of its own until
   now and carried its layout in bracket utilities instead, which is the thing
   that gate was built to stop: `tools/build-css.php` harvests utilities from
   `git ls-files`, production runs `ROS_CSS=compiled`, and a utility nobody has
   used before compiles to NOTHING — no error, clean `php -l`, correct-looking
   markup, wrong page. A measurement written here either exists or does not.

   Everything is prefixed `rf-`. The page keeps using the shared `.btn`,
   `.card`, `.eyebrow`, `.display` and `.sheet` classes where the product
   already owns that treatment, so a rebrand still happens in one place.

   ── skins ──────────────────────────────────────────────────────────────────

   The homepage carries a skin toggle and must keep working in both. Colour is
   taken from the shared `--ink-*` / `--warm-*` / `--gold-*` tokens, which flip
   with `:root[data-skin="light"]`, so the page follows the skin for free.
   Two things stay dark in both skins and are written that way on purpose: the
   photographic impact band and the final CTA panel. A photograph does not have
   a light mode. The device showcase USED to be pinned dark for the same
   reason, and no longer is: the console has a real light skin, so the hero
   carries a capture of each and swaps them with the page.
   ═══════════════════════════════════════════════════════════════════════════ */

.rf {
  --rf-max: 1440px;
  --rf-gut: clamp(1.15rem, 4vw, 4.25rem);
  --rf-section: clamp(4.5rem, 8vw, 6.875rem);

  /* The dark plates. Fixed, skin-independent — see the note above. */
  --rf-plate:  #090A0B;
  --rf-plate2: #111214;
  --rf-card:   #171719;
  --rf-raise:  #1C1C1E;
  --rf-onplate:      #F5F0E7;
  --rf-onplate-soft: #B9B5AE;
  --rf-onplate-mute: #898680;
  --rf-plate-line:   #303032;

  --rf-gold-grad: linear-gradient(180deg, #F2E1B6 0%, #C5A66D 100%);
}

/* ═══ the effect system ═════════════════════════════════════════
 *
 * One vocabulary for ambient light, borders, edges and shadows, so a card and
 * a button and a device are lit from the same set of values rather than from
 * twenty hand-written rgba()s that drift apart.
 *
 * Mapped ONTO the existing skin, not beside it: these live on `.rf` and flip
 * through `:root[data-skin="light"] .rf` exactly like `--warm-*` already does.
 * There is no second theme engine here and nothing in `ros.css` is touched, so
 * the console is unaffected.
 *
 * The intensity ladder is deliberate and is what stops everything glowing
 * equally: soft for ordinary surfaces, medium for hovered ones, strong for the
 * device showcase and the featured plan.
 * ═══════════════════════════════════════════════════════════════ */

.rf {
  --fx-gold-rgb: 215, 190, 136;

  --fx-ambient-soft:   rgba(215,190,136,.045);
  --fx-ambient-medium: rgba(215,190,136,.09);
  --fx-ambient-strong: rgba(215,190,136,.15);

  --fx-border-rest:     rgba(215,190,136,.10);
  --fx-border-hover:    rgba(215,190,136,.32);
  --fx-border-featured: rgba(215,190,136,.48);

  --fx-edge-highlight: rgba(255,241,211,.10);

  --fx-shadow-soft:     0 12px 35px rgba(0,0,0,.18);
  --fx-shadow-elevated: 0 20px 55px rgba(0,0,0,.28);
  --fx-shadow-contact:  0 5px 12px rgba(0,0,0,.30);

  /* One easing for every deliberate move on the page. */
  --fx-ease: cubic-bezier(.22, 1, .36, 1);

  /* The timing bands, named so a rule says what KIND of move it is. */
  --fx-t-button: 200ms;
  --fx-t-card:   250ms;
  --fx-t-image:  400ms;
  --fx-t-nav:    200ms;
  --fx-t-theme:  300ms;
  --fx-t-enter:  550ms;
}

:root[data-skin="light"] .rf {
  --fx-gold-rgb: 163, 131, 78;

  --fx-ambient-soft:   rgba(163,131,78,.025);
  --fx-ambient-medium: rgba(163,131,78,.05);
  --fx-ambient-strong: rgba(163,131,78,.075);

  --fx-border-rest:     rgba(116,94,61,.12);
  --fx-border-hover:    rgba(163,131,78,.30);
  --fx-border-featured: rgba(163,131,78,.45);

  --fx-edge-highlight: rgba(255,255,255,.85);

  --fx-shadow-soft:     0 10px 28px rgba(60,48,30,.055);
  --fx-shadow-elevated: 0 20px 50px rgba(60,48,30,.11);
  --fx-shadow-contact:  0 5px 12px rgba(60,48,30,.10);
}

/*
 * The light skin's muted text, darkened.
 *
 * `--warm-300/500/700` are the product's "secondary / tertiary / quiet"
 * ramp. Their light-skin values are tuned for the console, where text sits on
 * white cards; on this page it sits on the warmer #FAF7F2 ground and the same
 * values read washed out -- the supporting copy, the plan audience lines and
 * the step descriptions all drifted toward grey. These are the same ramp taken
 * several steps darker, so the hierarchy survives but every tier is firmly
 * readable.
 *
 * Scoped to `.rf`, NOT to `:root`: the console shares these tokens through
 * ros.css and has its own contrast on its own backgrounds, so changing them
 * globally would repaint every screen in the product to fix one page.
 *
 * Safe against `.rf-impact`, which is pinned dark in both skins and colours
 * its text from `--rf-onplate`, and against the industry cards, which use
 * literals because they sit on photographs. (`.rf-final` was in this list
 * until it gained a light treatment of its own; it now follows the skin.)
 */
:root[data-skin="light"] .rf {
  --warm-300: #2E281F;   /* was #423B30 */
  --warm-500: #433C30;   /* was #625A4C */
  --warm-700: #574F40;   /* was #756C5A */
}

.rf-wrap {
  max-width: var(--rf-max);
  margin-inline: auto;
  padding-inline: var(--rf-gut);
}

.rf-section { padding-block: var(--rf-section); }

/* A hairline that fades at both ends, rather than a rule drawn edge to edge.
   At 1920 a flat 1px border across the full width reads as a scratch. */
.rf-hr {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%,
                              var(--line-strong) 82%, transparent);
}

.rf-eyebrow {
  font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--warm-700); margin-bottom: 1rem;
}
.rf-eyebrow-gold { color: var(--gold-500); }

/* Section headings. `text-wrap:balance` so a two-line heading breaks evenly
   instead of leaving one orphaned word. */
.rf-h2 {
  font-size: clamp(2.125rem, 3.6vw, 3rem);
  line-height: 1.08; letter-spacing: -.015em;
  text-wrap: balance; margin-bottom: 1.125rem;
}
.rf-h2 em { font-style: italic; color: var(--accent); }

.rf-lede {
  font-size: clamp(.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.7; color: var(--warm-500); max-width: 34rem;
}

/* ═══ header ═════════════════════════════════════════════════════════════ */

.rf-head {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background .3s var(--fx-ease), border-color .3s,
              backdrop-filter .3s, box-shadow .3s var(--fx-ease);
  border-bottom: 1px solid transparent;
}
/* Only once the page has moved. A translucent bar over the top of the hero
   from the first frame is a bar for its own sake.
   The shadow is what stops the bar reading as part of the content behind it;
   without one the blur alone leaves the join ambiguous while a long section
   scrolls past. Kept soft enough that it is never a visible band. */
.rf-head[data-stuck="1"] {
  background: rgba(9, 10, 11, .82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
:root[data-skin="light"] .rf-head[data-stuck="1"] {
  background: rgba(250, 247, 242, .86);
  box-shadow: 0 8px 24px rgba(45, 35, 20, .045);
}

.rf-head-in {
  max-width: var(--rf-max); margin-inline: auto;
  padding-inline: var(--rf-gut);
  height: 72px; display: flex; align-items: center; gap: 1.75rem;
}

.rf-nav { display: none; }

@media (min-width: 1024px) {
  .rf-nav { display: flex; align-items: center; gap: .25rem; margin-left: 1.5rem; }
}

.rf-nav-item { position: relative; }

.rf-nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .7rem; border-radius: 10px;
  font-size: .8125rem; color: var(--warm-500);
  background: none; border: 0; cursor: pointer;
  transition: color .18s var(--fx-ease);
}
.rf-nav-link:hover,
.rf-nav-link[aria-expanded="true"] { color: var(--warm-100); }

/* The underline grows from the centre rather than wiping in from the left,
   so it reads as the item responding rather than as something travelling. */
.rf-nav-link::after {
  content: ''; position: absolute; left: .7rem; right: .7rem; bottom: .2rem;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--fx-t-button) var(--fx-ease);
}
.rf-nav-link:hover::after,
.rf-nav-link[aria-expanded="true"]::after { transform: scaleX(1); }

/*
 * The shared `chevron` points LEFT — `m14 6-6 6 6 6`, which is the back arrow
 * the console uses. Turned a quarter anticlockwise it points down, and the
 * other way when the menu is open. Rotated rather than a new icon added to
 * `icons.php`, because that file is on every page in the product and a menu
 * caret is not worth a new entry in it.
 */
.rf-caret {
  display: inline-flex;
  transform: rotate(-90deg);
  transition: transform var(--fx-t-button) var(--fx-ease);
}
.rf-nav-link[aria-expanded="true"] .rf-caret { transform: rotate(90deg); }

/* ── dropdowns ───────────────────────────────────────────────────────────
 * Driven by `aria-expanded` on the trigger and `hidden` on the panel, both
 * set in script, so the menu is a real disclosure: it opens on click as well
 * as hover, closes on Escape, and is reachable from the keyboard. A pure
 * `:hover` menu is unusable with a keyboard and invisible to a touch device,
 * which is most of this page's traffic.
 */
.rf-menu {
  position: absolute; top: calc(100% + .4rem); left: 0;
  min-width: 17rem; padding: .5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--ink-850);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.8), 0 2px 10px -6px rgba(0,0,0,.6);
  animation: rf-menu-in .18s var(--fx-ease);
}
.rf-menu[hidden] { display: none; }

@keyframes rf-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.rf-menu a {
  display: block; padding: .6rem .7rem; border-radius: 10px;
  color: var(--warm-300); transition: background .16s, color .16s;
}
.rf-menu a:hover, .rf-menu a:focus-visible {
  background: rgba(247,243,234,.05); color: var(--warm-100);
}
.rf-menu .rf-menu-t { font-size: .875rem; display: block; }
.rf-menu .rf-menu-d {
  font-size: .6875rem; color: var(--warm-700); display: block; margin-top: .1rem;
}

.rf-head-cta { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

/* ═══ hero ═══════════════════════════════════════════════════════════════ */

.rf-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(6.5rem, 12vh, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* A warm radial behind the hero, not a gradient across it. Two soft pools:
   one behind the headline, one behind the device, so the middle stays calm. */
/*
 * The hero wash. The right-hand glow is the larger of the two and sits behind
 * the device showcase, so the devices read as the thing being lit rather than
 * as objects on an evenly-lit page; the left one only keeps the headline from
 * sitting on flat black.
 */
.rf-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(52% 44% at 14% 26%, rgba(216,190,134,.085), transparent 70%),
    radial-gradient(60% 65% at 76% 45%,
      rgba(194,158,92,.075) 0%, rgba(194,158,92,.025) 42%, transparent 75%);
}
/*
 * Light skin gets a warm-WHITE wash, not the gold one dimmed. Gold at even a
 * few percent over ivory reads as a yellow stain rather than as light, which
 * is the one thing a daylight room must not look like.
 */
:root[data-skin="light"] .rf-hero::before {
  background:
    radial-gradient(52% 44% at 14% 26%, rgba(255,255,255,.75), transparent 72%),
    radial-gradient(60% 65% at 76% 45%,
      rgba(255,255,255,.90) 0%, rgba(245,237,220,.35) 55%, transparent 80%);
}

.rf-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

.rf-hero-h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 1.375rem;
}
/* The second line, italic and gold — the one typographic gesture the page
   repeats, and the reason the headline reads as a sentence rather than a slab. */
.rf-hero-h1 em {
  display: block; font-style: italic;
  background: linear-gradient(110deg, #B79B67 0%, #E8D5A7 42%, #D2B57E 72%, #B79B67 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/*
 * The same gesture on the day skin, in a gold that can actually be read.
 *
 * The tokens above are tuned for a near-black ground. Measured against the
 * light skin's ivory `--ink-950` (#FAF7F2) they are `#FBF6EC` at about 1.1:1,
 * `#F0DDB4` at 1.3:1 and `#B79356` at 2.9:1 — so on the day skin the second
 * line of the headline, which is half the sentence, was somewhere between
 * faint and invisible. Not a judgement call: 1.1:1 is two shades of cream.
 *
 * These are darkened until the LIGHTEST stop clears 4.5:1 on that ground,
 * which is the only stop worth testing — if the brightest pixel passes, the
 * rest of the ramp does.
 */
/*
 * Espresso, not bronze.
 *
 * The first light-skin pass kept the gold ramp and only darkened it, which met
 * AA on paper (6.5:1) and still read as a washed-out brown against ivory --
 * the accent line looked faded rather than emphasised. These are near-black
 * with just enough warmth left to stay in the same family as the gold, and
 * they measure about 15:1, so the second line of the headline is now the
 * most readable thing on the page rather than the least.
 */
/*
 * The spec asks for deeper bronze here rather than the espresso this held, and
 * is explicit that pale champagne on a pale ground is the thing to avoid. Its
 * middle stop is #B0935D, which measures 2.74:1 on #FAF7F2 -- under the 3:1
 * that even large text needs, and this is the brightest point of the ramp, so
 * it is the stop most of the glyph is painted with. Deepened to #9E8150
 * (3.44:1); the two outer stops are the spec's own and already clear it at
 * 4.95 and 3.93.
 */
:root[data-skin="light"] .rf-hero-h1 em {
  background: linear-gradient(110deg, #80683F 0%, #9E8150 48%, #947749 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* `.rf-h2 em` has the same problem wherever a section heading uses it. */
:root[data-skin="light"] .rf-h2 em { color: #2F2416; }
/* The eyebrow is small and uppercase, which is the hardest case for a tinted
   colour; it gets the darkest of the three. */
:root[data-skin="light"] .rf-eyebrow-gold { color: #33281A; }

/*
 * Gold ICONS on the light ground.
 *
 * `--gold-300/400/500` do not flip with the skin -- they are the same pale
 * metal in both -- which is right on a dark plate and wrong on ivory. Measured
 * before this: the hero verticals and trust strip ran 2.68:1, the capability
 * icons 1.69:1, and the step numerals worse still. Twenty-seven icons the eye
 * had to hunt for.
 *
 * Each of these is a selector that sits on the PAGE. The gold icons that sit on
 * a photograph or a pinned-dark panel -- `.rf-ind-ico`, `.rf-ind-go`,
 * `.rf-check-ico`, the final panel's corner curves -- are deliberately absent,
 * because darkening those would bury them in the dark they sit on. That is
 * also why this is a list of selectors rather than a redefinition of the gold
 * tokens on `.rf`: one token serves both grounds, so only the usage can be
 * split, not the token.
 */
:root[data-skin="light"] .rf-vertical svg,
:root[data-skin="light"] .rf-strip-item svg,
:root[data-skin="light"] .rf-cap-ico,
:root[data-skin="light"] .rf-plan-feats svg {
  color: #5F4A1F;
}
:root[data-skin="light"] .rf-step-n {
  color: #4A3817;
  border-color: rgba(95,74,31,.38);
  background: rgba(216,190,134,.26);
}
:root[data-skin="light"] .rf-step-link { color: #6B5324; }

/* `background-clip:text` leaves no text where the gradient fails to paint —
   a blank headline. Forced-colours mode is exactly where it fails. */
@media (forced-colors: active) {
  .rf-hero-h1 em { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}

.rf-hero-sub {
  font-size: clamp(.9375rem, 1.15vw, 1.0625rem);
  line-height: 1.72; color: var(--warm-500);
  max-width: 30rem; margin-bottom: 2rem;
}

.rf-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.rf-verticals {
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
  margin-top: 2.25rem; font-size: .75rem; color: var(--warm-700);
}
.rf-vertical { display: inline-flex; align-items: center; gap: .5rem; }
.rf-vertical svg { color: var(--gold-500); flex: none; }

/* ── the product showcase ───────────────────────────────────
 * A monitor and a tablet, each carrying a real screenshot of the console.
 * Both are photographs of the actual product — the brief asks for a device
 * composition and also forbids inventing an interface, and where those two
 * meet the second wins. That is also why there is no phone here: the
 * reference puts one beside these showing a four-tile launcher, and ROSFlow
 * has no such screen to photograph.
 *
 * ── why the devices are drawn at all ──────────────────────────────
 *
 * The first build was two identical bare plates, the second one simply scaled
 * to 42%. It read as one screenshot at two different zooms, because that is
 * exactly what it was, and the small one's type was an unreadable blur.
 *
 * A bezel fixes it twice over. It tells the eye these are two DEVICES, so a
 * size difference is expected rather than wrong; and the tablet now carries
 * its own 1024-wide capture, in which the console has reflowed to two columns
 * and sized its type for a tablet. The smaller device therefore holds LARGER
 * interface elements relative to its screen, which is what real hardware does
 * and what keeps it readable at a third the width.
 */
.rf-show {
  position: relative;
  /*
   * Shorter than the 1800px first used here. Perspective is a focal length:
   * the larger it is the flatter the turn reads, and at 1800 against a ~620px
   * plate the devices were almost orthographic. 1400 is close enough to the
   * reference's depth without the edge distortion that makes a mockup look
   * like a stock photo.
   */
  perspective: 1200px;
  padding-block: 1rem 3.5rem;
}

.rf-device { position: relative; margin: 0; }

/* The bezel. `.rf-glass` inside it is what clips the screenshot, so the frame
   can have a border radius larger than the screen's without the corners of the
   image poking through it. */
.rf-screen {
  position: relative;
  background: linear-gradient(176deg, #202024 0%, #141417 42%, #0b0b0e 100%);

  /*
   * Product-photography lighting, in four parts that each do one job:
   *   1  a specular rim      -- measured off the reference at rgb(200,188,179)
   *   2  a seat              -- a hair of black so the rim has an edge to be
   *   3  close warmth        -- the falloff immediately off the bezel
   *   4  a grounding shadow  -- wide and soft, what sits the device on a surface
   *
   * Order matters: box-shadows paint first on top, so the rim is listed first
   * and the grounding last. The wide ambient halo is NOT here -- it belongs
   * behind the devices, so it lives on `.rf-show::before`.
   */
  box-shadow:
    0 0 0 1px rgba(242,226,192,.52),
    0 0 0 2.5px rgba(0,0,0,.72),
    0 2px 30px -6px rgba(216,190,134,.30),
    0 0 120px -22px rgba(216,190,134,.40),
    0 50px 90px -40px rgba(0,0,0,.95);

  transition: box-shadow var(--fx-t-theme) var(--fx-ease);
}

/*
 * The highlight along the upper bezel.
 *
 * Height is the device's own bezel thickness, so the gradient stops before it
 * reaches the glass -- the screenshot is never tinted, dimmed or blurred, only
 * the frame around it is lit.
 */
.rf-screen::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--rf-bezel, 9px);
  z-index: 2; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(255,248,235,.22) 0%, rgba(255,248,235,.07) 40%, transparent 100%);
  transition: background var(--fx-t-theme) var(--fx-ease);
}
/*
 * The screen itself. The screenshot arrives as `--rf-shot` on the element
 * (stamped by `asset()`, so replacing one still busts its cache) and the light
 * skin swaps in `--rf-shot-lt`. Only the rule that matches resolves, so a
 * visitor downloads one screenshot per device, not two.
 *
 * Both URLs MUST stay absolute, which `asset()` guarantees. A `url()` inside a
 * custom property is not resolved where it is written: the property carries
 * raw tokens, and the URL is resolved against the stylesheet that uses the
 * `var()` -- this file -- not against the document. A relative path here would
 * therefore be looked up under `/assets/css/marketing/`, 404, and leave a
 * blank screen in the bezel with nothing in the console to say why. Measured:
 * a mirrored copy of this page with the paths rewritten relative did exactly
 * that.
 */
.rf-glass {
  display: block;
  overflow: hidden;
  background-color: #0a0a0c;
  background-image: var(--rf-shot);
  background-size: cover;
  background-position: top left;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,.85), 0 0 24px -8px rgba(0,0,0,.9) inset;
}
:root[data-skin="light"] .rf-glass {
  background-color: #FAF7F2;
  background-image: var(--rf-shot-lt);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 0 24px -10px rgba(0,0,0,.25) inset;
}

/* ── the monitor ──────────────────────────────────────── */

/* Turned very slightly off-axis. 3.2deg is enough to read as dimensional and
   small enough that the screenshot stays legible; past about 6deg the type in
   the console blurs and it stops looking like a product and starts looking
   like a stock mockup. */
/*
 * Measured off the reference rather than chosen.
 *
 * The reference device was traced column by column. Its right edge stands
 * 263px against the left edge's 225 -- the right side is 16.9% TALLER, so the
 * right is the near one, which is a NEGATIVE rotateY (a positive one brings
 * the left edge forward). Its top edge rises 3.2 degrees to the right.
 *
 * Those two numbers are not independent, and that is the whole answer: a Y
 * turn ALREADY tilts the top edge, because the far end is pulled toward the
 * vanishing point while the near end is pushed away from it. Solving the edge
 * ratio at perspective 1200 gives -17.5deg, and that angle predicts a top-edge
 * rise of 3.4 degrees against the 3.2 measured. One rotation accounts for both.
 *
 * Two earlier passes got this wrong in opposite directions: -3.2deg was a
 * tenth of the turn, and the -2.4deg roll and 3.5deg X that replaced it were
 * an invention -- the reference has no roll, only a turn seen correctly.
 */
.rf-desktop {
  transform: rotateY(-17.5deg);
  transform-style: preserve-3d;
}

/* A deeper chin than the other three sides, which is what a monitor has and
   what stops this reading as a picture frame. */
.rf-screen-main {
  border-radius: 14px;
  padding: 9px 9px 20px;
  --rf-bezel: 9px;
}
/* No <img> inside, so the ratio has to be declared or the box has no height
   before the background loads -- which is a layout shift. */
.rf-screen-main .rf-glass { border-radius: 6px; aspect-ratio: 1536 / 695; }

/* The maker's dot on the chin. Not a wordmark: a logo here would either be
   ours, which is a monitor we do not make, or somebody else's. */
.rf-screen-main::after {
  content: '';
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(216,190,134,.30);
}

.rf-stand { display: flex; flex-direction: column; align-items: center; }
.rf-neck {
  width: 14%; height: 2rem;
  background: linear-gradient(180deg, #1b1b1f, #101013);
  clip-path: polygon(19% 0, 81% 0, 100% 100%, 0 100%);
}
.rf-base {
  width: 32%; height: .5rem;
  border-radius: 0 0 .45rem .45rem;
  background: linear-gradient(180deg, #1e1e22, #0a0a0d);
  box-shadow: 0 14px 26px -14px rgba(0,0,0,.95);
}

/* ── the tablet ───────────────────────────────────────── */

/* Hidden below `lg`, where there is no room beside the monitor and it would
   only crop it. The monitor alone carries the section at those widths. */
.rf-tablet { display: none; }

@media (min-width: 1024px) {
  .rf-tablet {
    display: block;
    position: absolute; left: -4%; bottom: -.5rem;
    width: 41%;
    z-index: 3;
    /* The same angle as the monitor, so both sit on one imagined surface. A
       tablet at a different angle reads as a second photograph pasted on. */
    transform: rotateY(-17.5deg);
    transform-style: preserve-3d;
  }

  /* A uniform bezel, because that is what a tablet has — no chin, and a much
     larger corner radius relative to its size. */
  .rf-screen-tab {
    border-radius: 20px;
    padding: 10px;
    --rf-bezel: 10px;
    /*
     * The tablet stands in FRONT of the monitor, so it is lit as the nearer
     * object: a tighter, darker contact shadow where it meets the screen
     * behind it, and a fractionally brighter rim. Without the contact shadow
     * the two bezels meet and read as one object with a notch cut out of it.
     */
    box-shadow:
      0 0 0 1px rgba(246,232,200,.58),        /* rim, a touch brighter than the monitor's */
      0 0 0 2.5px rgba(0,0,0,.78),
      0 14px 26px -10px rgba(0,0,0,.92),      /* the contact shadow */
      0 2px 24px -6px rgba(216,190,134,.26),
      0 44px 74px -30px rgba(0,0,0,.98),
      0 0 80px -26px rgba(216,190,134,.26);
  }

  /*
   * Warm edge reflection. The hard stop at the bezel thickness is what keeps
   * it off the screenshot: past 10px the gradient is already transparent, so
   * the dashboard underneath is never tinted.
   */
  .rf-screen-tab::before {
    inset: 0; height: auto;
    background:
      linear-gradient(180deg, rgba(255,248,235,.24) 0, rgba(255,248,235,.07) 10px, transparent 10px),
      linear-gradient(90deg,  rgba(246,232,200,.18) 0, transparent 10px),
      linear-gradient(0deg,   rgba(216,190,134,.12) 0, transparent 10px);
  }
  .rf-screen-tab .rf-glass { border-radius: 11px; aspect-ratio: 1024 / 683; }

  /* The camera, on the long edge: this one is in landscape. */
  .rf-screen-tab::after {
    content: '';
    position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(247,243,234,.22);
  }
}

/*
 * Sized from the hardware, not by eye.
 *
 * The monitor's plate is 1536px of screenshot drawn across the full width of
 * the showcase, so its interface renders at about 45%. A ~600mm monitor and a
 * ~230mm tablet put the tablet at roughly 38% of the monitor's width, and
 * 1024px of screenshot across that comes out near 26% — so the tablet's
 * interface lands at about 58% the apparent size of the monitor's. That is
 * also the ratio the two devices have on a real desk, where the tablet packs
 * ~1.74x the pixel density. Drawn any smaller (the first pass used 32%) it
 * stops being a device and becomes a grey smudge.
 */
@media (min-width: 1280px) {
  .rf-tablet { width: 39%; left: -6%; bottom: -.75rem; }
}

/* ── the phone ────────────────────────────────────────── */

/* Hidden below `lg` for the same reason as the tablet: no room, and it would
   only crop the monitor. */
.rf-phone { display: none; }

@media (min-width: 1024px) {
  /*
   * Sized from the hardware, like the tablet. A ~75mm phone against a ~600mm
   * monitor is about 13% of its width, and 390px of screenshot across that
   * renders the interface at roughly 21% -- within a point of the tablet's
   * 22%, which is what makes the three read as one desk rather than three
   * unrelated pictures at three arbitrary sizes.
   */
  .rf-phone {
    display: block;
    position: absolute; right: 1%; bottom: -1.25rem;
    width: 14%;
    z-index: 4;
    transform: rotateY(-17.5deg);
    transform-style: preserve-3d;
  }

  .rf-screen-phone {
    border-radius: 15px;
    padding: 3px;
    --rf-bezel: 3px;
    box-shadow:
      0 0 0 1px rgba(0,0,0,.72),
      0 1px 0 rgba(247,243,234,.10) inset,
      0 30px 54px -22px rgba(0,0,0,.98),
      0 0 54px -20px rgba(216,190,134,.20);
  }
  .rf-screen-phone .rf-glass { border-radius: 12px; aspect-ratio: 390 / 844; }

  /* The island. Drawn rather than left to the screenshot, because the capture
     is of a browser viewport and has no system chrome in it. */
  .rf-notch {
    position: absolute; z-index: 1;
    top: 7px; left: 50%; transform: translateX(-50%);
    width: 30%; height: 5px; border-radius: 999px;
    background: #050506;
  }
}

/* The floor: a soft pool of light under the plates, not a mirrored copy.
   A real reflection needs the image twice and gets the perspective wrong at
   every width; this reads as the same thing and costs nothing. */
.rf-show::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  left: 4%; right: 4%; bottom: .9rem; height: 4.25rem;
  background:
    radial-gradient(62% 100% at 50% 0%, rgba(216,190,134,.26), transparent 72%),
    radial-gradient(52% 120% at 50% 10%, rgba(0,0,0,.55), transparent 76%);
  filter: blur(18px);
  pointer-events: none;
  transition: background var(--fx-t-theme) var(--fx-ease);
}

/*
 * The ambient halo -- the light the room throws BEHIND the devices.
 *
 * On `.rf-show` rather than on the monitor itself because `.rf-desktop`
 * carries a `transform`, which makes it a stacking context: a negative
 * z-index inside it could not get behind its own siblings. `.rf-show` already
 * establishes a context of its own (it has `perspective`), so `z-index: -1`
 * here lands behind every device and no further than that. `.rf-hero` clips
 * overflow, so an 80px blur cannot widen the page.
 */
.rf-show::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 4%; right: -6%; top: -8%; bottom: 8%;
  background: radial-gradient(56% 52% at 62% 42%, rgba(196,169,112,.12), transparent 72%);
  filter: blur(80px);
  transition: background var(--fx-t-theme) var(--fx-ease);
}

/* ── the light skin: studio, not cinema ────────────────────────────────────
 *
 * The dark skin lights these devices like a room at night -- a warm rim, a
 * gold spill, a pool on the floor. On ivory none of that is available: a gold
 * glow on a near-white ground reads as a smudge, and a bright specular rim has
 * nothing to be bright against.
 *
 * So the light skin is lit the way a product is lit in a studio instead: the
 * edge is DEFINED rather than illuminated (a thin neutral-warm line), the
 * highlight along the top bezel is cool and faint, and the shadow does the
 * work -- wide, soft and warm-grey, the shadow a softbox throws. The warmth
 * stays, at about a third of the strength, so the two skins still read as the
 * same brand photographed under different lights.
 * ─────────────────────────────────────────────────────────────────────────── */

:root[data-skin="light"] .rf-screen {
  box-shadow:
    0 0 0 1px rgba(58,48,34,.22),            /* defines the edge, does not light it */
    0 0 0 2.5px rgba(255,255,255,.55),       /* the ivory seat */
    0 2px 14px -6px rgba(78,64,44,.22),
    0 0 90px -30px rgba(180,155,110,.22),    /* restrained warmth */
    0 34px 64px -30px rgba(70,58,40,.38);    /* the softbox shadow */
}
:root[data-skin="light"] .rf-screen::before {
  background: linear-gradient(180deg,
    rgba(255,255,255,.30) 0%, rgba(255,255,255,.10) 40%, transparent 100%);
}
:root[data-skin="light"] .rf-show::before {
  background: radial-gradient(56% 52% at 62% 42%, rgba(180,155,110,.07), transparent 72%);
}
:root[data-skin="light"] .rf-show::after {
  background:
    radial-gradient(62% 100% at 50% 0%, rgba(180,155,110,.16), transparent 72%),
    radial-gradient(52% 120% at 50% 10%, rgba(70,58,40,.26), transparent 76%);
}

@media (min-width: 1024px) {
  :root[data-skin="light"] .rf-screen-tab {
    box-shadow:
      0 0 0 1px rgba(58,48,34,.26),
      0 0 0 2.5px rgba(255,255,255,.60),
      0 12px 22px -10px rgba(70,58,40,.34),  /* the contact shadow, kept */
      0 2px 16px -6px rgba(78,64,44,.20),
      0 30px 56px -26px rgba(70,58,40,.40),
      0 0 70px -28px rgba(180,155,110,.18);
  }
  :root[data-skin="light"] .rf-screen-tab::before {
    background:
      linear-gradient(180deg, rgba(255,255,255,.32) 0, rgba(255,255,255,.10) 10px, transparent 10px),
      linear-gradient(90deg,  rgba(255,255,255,.22) 0, transparent 10px),
      linear-gradient(0deg,   rgba(180,155,110,.10) 0, transparent 10px);
  }
}

/* The lighting cross-fades on a theme switch rather than snapping. Dropped
   entirely for anyone who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  .rf-screen, .rf-screen::before, .rf-show::before, .rf-show::after { transition: none; }
}

@media (min-width: 1024px) {
  .rf-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}

/* ═══ capability strip under the hero ════════════════════════════════════ */

.rf-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 1rem 2.5rem;
  padding-block: 1.75rem;
}
.rf-strip-label {
  font-size: .625rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm-700); width: 100%; text-align: center; margin-bottom: .25rem;
}
.rf-strip-item {
  font-size: .8125rem; color: var(--warm-500);
  display: inline-flex; align-items: center; gap: .5rem;
}
.rf-strip-item svg { color: var(--gold-500); flex: none; }

/* ═══ platform capabilities ══════════════════════════════════════════════ */

.rf-platform {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(216,190,134,.055), transparent 62%),
    var(--ink-900s);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.rf-platform-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 3vw, 2.75rem);
}

/* A real <ul>: eight named capabilities is a list, and a screen reader
   announcing "list, 8 items" is worth the two lines that suppresses the
   markers. */
.rf-caps {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}

/*
 * No hover lift, and that is the point rather than an omission.
 *
 * These were anchors into the console until it was checked what `url()`
 * emitted for them — tenant-scoped routes resolving to whichever venue is
 * first in the registry. They are inert now, and an inert card that lifts
 * under the pointer is a card promising a click it will not honour.
 */
.rf-cap {
  position: relative;
  display: block;
  padding: 1.05rem 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--fx-border-rest);
  background: #171719;
  box-shadow: 0 1px 0 var(--fx-edge-highlight) inset;   /* the top edge catch */
  transition: border-color var(--fx-t-card) var(--fx-ease),
              background var(--fx-t-theme) var(--fx-ease),
              box-shadow var(--fx-t-theme) var(--fx-ease);
}
:root[data-skin="light"] .rf-cap {
  background: #FFFFFF;
  border-color: var(--fx-border-rest);
  box-shadow: 0 1px 0 var(--fx-edge-highlight) inset,
              0 8px 24px rgba(60,48,30,.04);
}
/* All three are spans inside an <a> — the anchor may not contain block-level
   elements and still be valid, so they are made blocks here. Without this the
   title and its description run together on one line. */
.rf-cap-ico { color: var(--gold-400); margin-bottom: .7rem; display: block; }
.rf-cap-t { display: block; font-size: .875rem; color: var(--warm-100); margin-bottom: .2rem; }
.rf-cap-d { display: block; font-size: .6875rem; line-height: 1.5; color: var(--warm-700); }

@media (min-width: 680px)  { .rf-caps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) {
  .rf-platform-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 2fr); align-items: start; }
  .rf-caps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══ industries ═════════════════════════════════════════════════════════ */

.rf-ind-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }

/* Horizontally swipeable below `lg`, a grid above it. Scroll-snap rather
   than a carousel script: no JS, no state to get wrong, and the native
   momentum is better than anything that would be written here. */
.rf-inds {
  display: grid; gap: .75rem;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* The gutter is given back so the first and last card can sit flush. */
  margin-inline: calc(var(--rf-gut) * -1);
  padding-inline: var(--rf-gut);
  padding-bottom: .5rem;
  scrollbar-width: none;
}
.rf-inds::-webkit-scrollbar { display: none; }

.rf-ind {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  scroll-snap-align: start;
  min-height: 22.5rem;            /* 360px -- the brief's 340-390 band */
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(215,190,136,.12);
  overflow: hidden;
  isolation: isolate;             /* keeps the photo and scrim out of the page stack */
  transition: transform var(--t-med, .28s) var(--fx-ease),
              border-color var(--t-med, .28s) var(--fx-ease);
}
.rf-ind:hover, .rf-ind:focus-visible {
  border-color: rgba(215,190,136,.42);
  transform: translateY(-2px);
  box-shadow: var(--fx-shadow-elevated);
}

/*
 * The card ground, in two layers.
 *
 * `::before` carries the photograph and is the only thing that scales on
 * hover; `.rf-ind-shade` is a separate element that does NOT, because a scrim
 * that zooms with the image makes the caption appear to swim. A card with no
 * photograph on disk keeps the built gradient below and never requests a file.
 */
.rf-ind::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(76% 56% at 50% 18%, rgba(216,190,134,.16), transparent 68%),
    linear-gradient(176deg, #1B1A17 0%, #121214 54%, #0C0C0E 100%);
}
.rf-ind-shot::before {
  background-image: var(--rf-ind-img);
  background-size: cover;
  background-position: center;
  transition: transform var(--fx-t-image) var(--fx-ease);
}
.rf-ind-shot:hover::before,
.rf-ind-shot:focus-visible::before { transform: scale(1.035); }

/*
 * The scrim. Light at the top so the photograph is actually visible -- the
 * point of putting one there -- and heavy at the bottom so the caption has a
 * ground to sit on. It does not lighten with the skin: a photograph has no
 * light mode, and inverting it would leave white text on a bright image.
 */
.rf-ind-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 35%, rgba(0,0,0,.72) 100%);
  transition: background var(--fx-t-card) var(--fx-ease);
}
.rf-ind:hover .rf-ind-shade {
  background: linear-gradient(180deg,
    rgba(0,0,0,.04) 0%, rgba(0,0,0,.14) 35%, rgba(0,0,0,.68) 100%);
}

.rf-ind-ico {
  color: var(--gold-400);
  width: 2.75rem; height: 2.75rem; border-radius: 12px;
  display: grid; place-items: center; flex: none;
  border: 1px solid rgba(216,190,134,.30);
  background: rgba(10,10,12,.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rf-ind-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .35rem .75rem; }
/* Pinned, not tokenised: these sit on a photograph in BOTH skins. */
.rf-ind-t  { display: block; font-size: .9375rem; color: #F7F3EA; grid-column: 1; }
.rf-ind-d  { display: block; font-size: .6875rem; color: rgba(247,243,234,.72); grid-column: 1; margin-top: .15rem; }
.rf-ind-go {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  color: var(--gold-300); opacity: .75;
  transition: transform var(--t-med, .28s) var(--fx-ease), opacity var(--t-med, .28s);
}
.rf-ind:hover .rf-ind-go, .rf-ind:focus-visible .rf-ind-go { transform: translateX(3px); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rf-ind, .rf-ind-shot::before, .rf-ind-go, .rf-ind-shade { transition: none; }
  .rf-ind-shot:hover::before { transform: none; }
  .rf-ind:hover { transform: none; }
}

@media (min-width: 1024px) {
  .rf-ind-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); align-items: center; }
  .rf-inds {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
}

/* ═══ operational impact ═════════════════════════════════════════════════ */

/* Dark in both skins: it is a photograph. */
.rf-impact {
  position: relative; overflow: hidden;
  color: var(--rf-onplate);
  background: var(--rf-plate);
}
.rf-impact-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: 22% center; background-repeat: no-repeat;
}
/*
 * Read left-to-right, because the composition is: the copy sits over the dark
 * left-hand wall and the check rows sit over the lit pass on the right.
 *
 * The luminance was sampled off the file on a 16x8 grid rather than eyeballed.
 * The left third is an all-but-black wall (mean luminance 6-31), so the copy
 * needs very little scrim to read; the brass heat lamps, the chef and the
 * plated food are the bright part, bottom- and mid-right (95-123, peaking
 * around 78% x). An earlier pass had this backwards and took the right end to
 * .96, which blacked out the only part of the frame with anything in it — the
 * scrim was hiding the photograph and revealing a wall. The right end is now
 * held near .78: enough ground that the rows read, little enough that the
 * lamps and the pass survive. The rows carry their own background and shadow,
 * so the veil does not have to do that job twice.
 */
.rf-impact-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* The warm haze sits ON the lamps that are already in the frame, not
       anywhere a light would have to be invented to justify it. */
    radial-gradient(26% 44% at 78% 32%, rgba(233,196,124,.15), transparent 72%),
    linear-gradient(90deg, rgba(9,10,11,.30) 0%, rgba(9,10,11,.42) 30%,
                           rgba(9,10,11,.66) 58%, rgba(9,10,11,.74) 78%,
                           rgba(9,10,11,.78) 100%),
    linear-gradient(180deg, rgba(9,10,11,.55) 0%, transparent 34%, rgba(9,10,11,.55) 100%);
}
.rf-impact-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
}
.rf-impact h2 { color: var(--rf-onplate); }
.rf-impact .rf-lede { color: var(--rf-onplate-soft); }

.rf-checks { display: grid; gap: .55rem; }
/* The rows are a static list, not controls, so they get a ground and a shadow
   and no hover of any kind — the spec's own rule for a row you cannot click. */
.rf-check {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .95rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(18,18,20,.72);
  backdrop-filter: blur(6px);
  box-shadow: var(--fx-shadow-soft);
  font-size: .8125rem; color: var(--rf-onplate-soft);
}
.rf-check-ico {
  flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-400); border: 1px solid var(--line-gold);
  background: rgba(216,190,134,.1);
}

@media (min-width: 1024px) {
  .rf-impact-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; }
}

/* ═══ onboarding ═════════════════════════════════════════════════════════ */

.rf-steps-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 3vw, 2.5rem); }

.rf-steps { display: grid; gap: .75rem; grid-template-columns: 1fr; align-items: stretch; }

.rf-step {
  padding: 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(247,243,234,.04), rgba(247,243,234,.012));
  box-shadow: var(--fx-shadow-soft);
}
.rf-step-n {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: .85rem;
  font-size: .8125rem; color: var(--gold-300);
  border: 1px solid var(--line-gold);
  background: rgba(216,190,134,.09);
}
.rf-step-t { font-size: .9375rem; color: var(--warm-100); margin-bottom: .3rem; }
.rf-step-d { font-size: .75rem; line-height: 1.6; color: var(--warm-700); }

/* The connector. An element between the cards on desktop and nothing at all
   on a phone, where the cards simply stack. */
.rf-step-link { display: none; }

@media (min-width: 900px) {
  .rf-steps {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
  }
  /* A connector, not a signpost: held down to the .20-.35 band so it reads as
     a join between the cards rather than as a third thing competing with the
     badges. Light skin needs more, because dark ink at .3 over ivory is gone. */
  .rf-step-link {
    display: grid; place-items: center;
    color: var(--gold-700); padding-inline: .35rem;
    opacity: .32;
  }
  :root[data-skin="light"] .rf-step-link { opacity: .5; }
}
@media (min-width: 1024px) {
  .rf-steps-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.72fr); align-items: center; }
}

/* ═══ pricing ════════════════════════════════════════════════════════════ */

/* `align-items:start` puts the switch level with the EYEBROW rather than with
   the bottom of the lede, which is where the brief wants it and where the eye
   looks for it: the first thing in the section's top-right corner. With `end`
   it sat 123px below the heading, reading as a stray control. */
.rf-price-head { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }

/* The billing switch. Rendered only because both periods are real columns in
   the `plans` table (`price_month`, `price_year`); if one of them ever stops
   being charged, the control goes with it rather than becoming decorative. */
.rf-billing {
  display: inline-flex; padding: .25rem; gap: .25rem;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--ink-850);
}
.rf-billing button {
  border: 0; cursor: pointer; background: none;
  padding: .45rem 1rem; border-radius: 999px;
  font-size: .75rem; color: var(--warm-500);
  transition: background var(--fx-t-nav), color var(--fx-t-nav);
}
/*
 * On a touch device the switch has to be thumb-sized. Keyed on `pointer:
 * coarse` rather than on width, because a 1024px tablet is still a thumb and a
 * narrow desktop window is still a mouse -- width is a poor proxy for how the
 * thing is actually being pressed. Measured 32px before this.
 */
@media (pointer: coarse) {
  .rf-billing button { min-height: 44px; padding-inline: 1.15rem; }
}
.rf-billing button[aria-pressed="true"] {
  background: rgba(216,190,134,.14); color: var(--gold-300);
}
/*
 * `--gold-300` is a PALE gold and it does not flip with the skin, so the
 * selected period rendered #F0DDB4 on a near-white chip -- measured 1.24:1,
 * which means the one control telling you which price you are looking at was
 * invisible in the light theme. The chip keeps its gold tint (that is what
 * marks it selected) and the label goes espresso, which measures about 13:1.
 */
:root[data-skin="light"] .rf-billing button[aria-pressed="true"] {
  background: rgba(216,190,134,.34);
  color: #33281A;
}

.rf-plans { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.25rem; }

.rf-plan {
  position: relative; display: flex; flex-direction: column;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--ink-900s);
  box-shadow: var(--fx-shadow-soft);
  transition: border-color var(--fx-t-card) var(--fx-ease),
              transform var(--fx-t-card) var(--fx-ease),
              box-shadow var(--fx-t-card) var(--fx-ease),
              background var(--fx-t-theme) var(--fx-ease);
}
.rf-plan:hover {
  border-color: var(--fx-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--fx-shadow-elevated);
}
:root[data-skin="light"] .rf-plan { background: #FFFFFF; }

/*
 * The emphasised plan.
 *
 * Visual hierarchy only. The design this was built from puts a "Most Popular"
 * badge here; `SHOW COLUMNS FROM plans` has no `is_featured`, nothing else in
 * the product records which plan is most chosen, and the brief allows that
 * badge only "if commercially approved". So the outline marks the middle
 * column and no popularity is claimed anywhere on the page. The tag above it
 * states a fact taken from the plan's own `description`, not a ranking.
 */
.rf-plan-best {
  border-color: var(--fx-border-featured);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(215,190,136,.10), transparent 60%),
    linear-gradient(180deg, #17171A 0%, #0E0E10 100%);
  box-shadow:
    0 20px 55px rgba(0,0,0,.25),
    0 0 35px rgba(215,190,136,.045);
}
:root[data-skin="light"] .rf-plan-best {
  border-color: var(--fx-border-featured);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214,196,158,.22), transparent 62%),
    #FFFDF9;
  box-shadow: 0 20px 50px rgba(80,60,30,.10);
}
.rf-plan-tag {
  position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
  padding: .22rem .7rem; border-radius: 999px; white-space: nowrap;
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  color: #1B1710; background: var(--rf-gold-grad);
}

.rf-plan-n { font-size: 1.0625rem; color: var(--warm-100); }
.rf-plan-for { font-size: .6875rem; line-height: 1.5; color: var(--warm-700); margin-top: .25rem; min-height: 2.1rem; }

.rf-plan-price { display: flex; align-items: baseline; gap: .35rem; margin-top: 1rem; }
/* The figure is what the section is for, so it is sized like a headline
   rather than like body copy. `tabular-nums` keeps the three columns'
   digits on the same vertical rhythm as the period toggle swaps them --
   without it the cards twitch sideways on every switch. */
.rf-plan-amt {
  font-size: clamp(2.125rem, 2.6vw, 2.75rem);
  line-height: 1; letter-spacing: -.015em;
  color: var(--warm-100); font-variant-numeric: tabular-nums;
}
.rf-plan-per { font-size: .8125rem; color: var(--warm-500); }
.rf-plan-alt { font-size: .625rem; color: var(--warm-700); margin-top: .35rem; min-height: 1rem; }

.rf-plan-feats { list-style: none; padding: 0; margin: 1.1rem 0 1.35rem; display: grid; gap: .45rem; }
.rf-plan-feats li {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .75rem; line-height: 1.5; color: var(--warm-500);
}
.rf-plan-feats svg { color: var(--gold-500); flex: none; margin-top: .15rem; }
.rf-plan .btn { margin-top: auto; }

@media (min-width: 680px)  { .rf-plans { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) {
  .rf-price-head { grid-template-columns: minmax(0,1fr) auto; }
  .rf-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═══ final CTA ══════════════════════════════════════════════════════════ */

/* ═══ final CTA ════════════════════════════════════════════════
 *
 * This panel USED to be pinned dark in both skins, alongside the impact band.
 * It is not any more: it now has a light treatment of its own -- an ivory
 * plate rather than a charcoal one -- so on a light page it reads as part of
 * the page instead of a slab dropped onto it. The impact band keeps its
 * pinning, because that one carries a photograph and this one does not.
 *
 * `isolation: isolate` matters here. The decorative layers are positioned and
 * the content sits above them on z-index; without a context of its own the
 * panel's own stacking could let a sibling section's layer interleave.
 */
.rf-final {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1280px; margin-inline: auto;
  min-height: 400px;
  border-radius: 24px;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  /* Content sits in the UPPER middle, not dead centre: the space it leaves
     below is where the drafting lines live, and a CTA that floats in the
     exact middle of its own panel has nowhere for them to go. */
  display: grid; align-content: start; justify-items: center;
  text-align: center;

  background: #0B0B0D;
  border: 1px solid rgba(210,185,135,.12);
  transition: background var(--fx-t-theme) var(--fx-ease),
              border-color var(--fx-t-theme) var(--fx-ease);
}

/* The lighting: one soft pool from the upper middle, gone well before the
   edges so the panel never looks like it has a vignette. */
.rf-final-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 62% at 50% 20%, rgba(170,140,90,.055), transparent 70%);
  transition: background var(--fx-t-theme) var(--fx-ease);
}

.rf-final-lines {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  width: 100%; height: 62%;
  color: #A38A58;
  pointer-events: none;
  transition: color var(--fx-t-theme) var(--fx-ease);
}

/* The only layer with content, and the only one above the decoration. */
.rf-final-in { position: relative; z-index: 2; width: 100%; }

.rf-final-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: .20em; text-transform: uppercase;
  color: #BDA77A; margin-bottom: 20px;
  transition: color var(--fx-t-theme) var(--fx-ease);
}

/* Weight 400 and no shadow, outline, gradient or underline -- the serif is
   doing the work and anything else on top of it reads as a lesser typeface
   trying harder. */
.rf-final-h {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);   /* 36 → 56 */
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
  max-width: 720px; margin-inline: auto;
  color: #F3EFE7;
  transition: color var(--fx-t-theme) var(--fx-ease);
}

.rf-final-sub {
  font-size: .9375rem; line-height: 1.65;
  max-width: 460px; margin: 20px auto 0;
  color: #A9A49A;
  transition: color var(--fx-t-theme) var(--fx-ease);
}

.rf-final-cta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 28px;
}

/* ── the two buttons ───────────────────────────────────────────
 * Scoped `rf-` classes rather than edits to `.btn-gold` / `.btn-ghost`: those
 * two are shared with the console, and this panel's spec is its own.
 */
.rf-btn-1, .rf-btn-2 {
  height: 48px; padding-inline: 24px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .875rem; font-weight: 600;
  transition: transform 220ms var(--fx-ease),
              filter 220ms var(--fx-ease),
              background 220ms var(--fx-ease),
              border-color 220ms var(--fx-ease);
}

.rf-btn-1 {
  background: linear-gradient(180deg, #F2E4BE 0%, #D7BE88 55%, #B99D6A 100%);
  color: #17140E;
  border: 1px solid rgba(255,245,220,.28);
  box-shadow: 0 6px 18px rgba(180,145,80,.14);
}
.rf-btn-1:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(180,145,80,.22);
  filter: brightness(1.04);
}
/* Pressed returns to the surface and loses the lift -- a button that stays
   raised while held does not feel pressed. */
.rf-btn-1:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(180,145,80,.16);
  filter: brightness(.97);
  transition-duration: 100ms;
}
.rf-btn-1 svg { transition: transform var(--fx-t-button) var(--fx-ease); }
.rf-btn-1:hover svg { transform: translateX(3px); }

.rf-btn-2 {
  background: rgba(247,243,234,.03);
  color: #F3EFE7;
  border: 1px solid rgba(243,239,231,.22);
}
.rf-btn-2:hover {
  transform: translateY(-1px);
  background: rgba(247,243,234,.07);
  border-color: var(--fx-border-hover);
}
.rf-btn-2:active { transform: translateY(0); transition-duration: 100ms; }

/* The focus ring is never traded away for the hover polish. */
.rf-btn-1:focus-visible, .rf-btn-2:focus-visible {
  outline: 2px solid var(--gold-300, #F0DDB4);
  outline-offset: 3px;
}

/* ── light skin: an ivory plate ────────────────────────────────── */

:root[data-skin="light"] .rf-final {
  background: #F4F0E8;
  border-color: rgba(138,117,81,.18);
}
:root[data-skin="light"] .rf-final-glow {
  background: radial-gradient(58% 62% at 50% 20%, rgba(255,252,246,.85), transparent 70%);
}
:root[data-skin="light"] .rf-final-lines  { color: #A48B65; }
/*
 * The brief specifies #8A7551 here. Measured on the #F4F0E8 panel that is
 * 3.89:1, and this is 10px uppercase at 0.20em tracking -- the hardest case
 * there is for a tinted colour, and under the 4.5:1 AA needs. Deepened by the
 * smallest amount that clears it (4.61:1), staying in the same taupe-gold so
 * the intent survives. The dark-mode value is untouched: #BDA77A on #0B0B0D
 * already measures 7.99:1.
 */
:root[data-skin="light"] .rf-final-eyebrow { color: #7A6744; }
:root[data-skin="light"] .rf-final-h       { color: #24201B; }
:root[data-skin="light"] .rf-final-sub     { color: #716B62; }
:root[data-skin="light"] .rf-btn-2 {
  background: #FFFFFF;
  color: #24201B;
  border-color: rgba(138,117,81,.26);
}
:root[data-skin="light"] .rf-btn-2:hover { border-color: rgba(138,117,81,.44); }

@media (prefers-reduced-motion: reduce) {
  .rf-final, .rf-final-glow, .rf-final-lines, .rf-final-eyebrow,
  .rf-final-h, .rf-final-sub, .rf-btn-1, .rf-btn-2 { transition: none; }
  .rf-btn-1:hover, .rf-btn-2:hover { transform: none; }
}

/* ═══ footer ═════════════════════════════════════════════════════════════ */

.rf-foot { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.rf-foot-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
.rf-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.75rem; }
.rf-foot h3 {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--warm-700); margin-bottom: .8rem;
}
.rf-foot a {
  display: block; font-size: .8125rem; color: var(--warm-500); padding-block: .3rem;
  transition: color var(--fx-t-nav) var(--fx-ease);
}
.rf-foot a:hover { color: var(--warm-100); }
.rf-foot-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .6875rem; color: var(--warm-700);
}

@media (min-width: 768px)  { .rf-foot-cols { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1024px) { .rf-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; } }

/* ═══ scroll reveal ══════════════════════════════════════════════════════ */

/*
 * Opt-in, and it fails open. An element marked `data-rf-rise` starts shifted
 * only once the script has confirmed it will be observing it (`data-rf-ready`
 * on the root). With JavaScript off, or if the observer never runs, nothing
 * is ever moved and the page is simply there — which is the only acceptable
 * failure mode for a reveal, since the alternative is a blank page.
 */
:root[data-rf-ready] .rf [data-rf-rise] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--fx-ease), transform .55s var(--fx-ease);
}
:root[data-rf-ready] .rf [data-rf-rise][data-rf-in] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  :root[data-rf-ready] .rf [data-rf-rise],
  :root[data-rf-ready] .rf [data-rf-rise][data-rf-in] {
    opacity: 1; transform: none; transition: none;
  }
  .rf-ind:hover, .rf-plan:hover { transform: none; }
  .rf-nav-link::after { transition: none; }
  .rf-menu { animation: none; }
  .rf-desktop, .rf-tablet { transform: none; }
}

/* A flat plate rather than a tilted one on a phone: the rotation costs
   legibility at that size and buys nothing. The tablet is already display:none
   at these widths, so only the monitor needs saying. */
@media (max-width: 1023px) {
  .rf-desktop { transform: none; }
}

/* ═══ phone ══════════════════════════════════════════════════════════════ */

@media (max-width: 520px) {
  /*
   * The headline, measured rather than guessed.
   *
   * `clamp(2.75rem, 7vw, 4.5rem)` bottoms out at 44px on a phone, and
   * "without touching it." set in italic Cormorant at 44px runs about 340px
   * against a 354px column at 390 — so it wrapped, and the orphan was the
   * word "it." on a line of its own under the gold. Two lines is the whole
   * shape of this headline; three is a different headline.
   */
  .rf-hero-h1 { font-size: clamp(2rem, 9.2vw, 2.5rem); }

  /*
   * The header had the wordmark, a skin toggle, a gold CTA and a hamburger on
   * a 390px rail, and "Book a Demo" wrapped to two lines inside its own
   * button. The CTA is the one that goes: it is the first item in the drawer
   * the hamburger opens, so nothing is lost and the bar stops being a scrum.
   */
  .rf-head-cta .btn-gold { display: none; }

  /* Full-width calls to action, rather than two half-width ones that each
     need an accurate thumb. */
  .rf-cta-row { flex-direction: column; align-items: stretch; }
  .rf-cta-row .btn { width: 100%; }

  .rf-verticals { gap: .6rem 1.1rem; }
}


/* ═══ §17 responsive lighting ═══════════════════════════════════════
 *
 * The same lighting at every size is wrong twice over: a glow sized for a
 * 1920px stage is a smear on a 390px one, and a large blur is the most
 * expensive thing on this page for exactly the devices least able to pay for
 * it. The ambient steps down about a quarter on tablet and about 40% on
 * phones, and the blur behind the devices is dropped entirely at phone size in
 * favour of a plain gradient, which costs nothing to composite.
 * ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  .rf {
    --fx-ambient-soft:   rgba(215,190,136,.034);
    --fx-ambient-medium: rgba(215,190,136,.068);
    --fx-ambient-strong: rgba(215,190,136,.113);
    --fx-shadow-soft:     0 9px 26px rgba(0,0,0,.14);
    --fx-shadow-elevated: 0 15px 40px rgba(0,0,0,.21);
  }
  :root[data-skin="light"] .rf {
    --fx-ambient-soft:   rgba(163,131,78,.019);
    --fx-ambient-medium: rgba(163,131,78,.038);
    --fx-ambient-strong: rgba(163,131,78,.056);
    --fx-shadow-soft:     0 8px 21px rgba(60,48,30,.04);
    --fx-shadow-elevated: 0 15px 37px rgba(60,48,30,.08);
  }
  .rf-show::before { filter: blur(56px); left: 6%; right: -2%; }
}

@media (max-width: 639px) {
  .rf {
    --fx-ambient-soft:   rgba(215,190,136,.027);
    --fx-ambient-medium: rgba(215,190,136,.054);
    --fx-ambient-strong: rgba(215,190,136,.09);
    --fx-shadow-soft:     0 6px 18px rgba(0,0,0,.12);
    --fx-shadow-elevated: 0 10px 26px rgba(0,0,0,.16);
  }
  :root[data-skin="light"] .rf {
    --fx-ambient-soft:   rgba(163,131,78,.015);
    --fx-ambient-medium: rgba(163,131,78,.03);
    --fx-ambient-strong: rgba(163,131,78,.045);
    --fx-shadow-soft:     0 5px 14px rgba(60,48,30,.035);
    --fx-shadow-elevated: 0 9px 22px rgba(60,48,30,.06);
  }
  /* No blur filter on a phone: the gradient alone reads the same at this size
     and costs nothing to composite. */
  .rf-show::before { filter: none; opacity: .6; }
  .rf-show::after  { filter: blur(10px); }
}

/*
 * Touch has no hover, so a device that fires :hover on tap leaves cards stuck
 * in a lifted state. The lifts go; the PRESS feedback stays, because that is
 * the only affordance a finger actually gets.
 */
@media (hover: none) {
  .rf-ind:hover, .rf-plan:hover, .rf-btn-1:hover, .rf-btn-2:hover { transform: none; }
  .rf-ind-shot:hover::before { transform: none; }
  .rf-btn-1:active, .rf-btn-2:active { transform: translateY(1px); }
}
