/* Fuji Studio Licenses: the studio's night palette for the shop, the Ridge look for Ridge's page.
   Prefixes: fj- (shop), rg- (Ridge). Loaded after pro.css and custom.css. */

body.fj {
  --fj-bg: #1b1428;
  --fj-bg-2: #221a36;
  --fj-surface: #261d3a;
  --fj-surface-2: #2f2546;
  --fj-ink: #f6eef4;
  --fj-ink-soft: #d0c3de;
  --fj-mute: #a99cbc;
  --fj-line: rgba(246, 238, 244, 0.1);
  --fj-line-strong: rgba(246, 238, 244, 0.2);
  --fj-shu: #e24a2f;
  --fj-shu-hi: #f0664c;
  --fj-coral: #f6937c;
  --fj-teal: #74b8c7;
  --fj-gold: #e4c477;
  --fj-display: "Bricolage Grotesque", system-ui, sans-serif;
  --fj-body: "Geist", system-ui, sans-serif;
  --fj-serif: "Instrument Serif", Georgia, serif;
  --fj-mono: "Geist Mono", ui-monospace, monospace;

  --rg-bg: #0a0a0a;
  --rg-text: #f3f0ea;
  --rg-muted: rgba(243, 240, 234, 0.64);
  --rg-faint: rgba(243, 240, 234, 0.44);
  --rg-line: rgba(255, 255, 255, 0.08);
  --rg-flame: #f7a23b;
  --rg-flame-deep: #ff6a1a;
  --rg-sky: #7fb2ff;
  --rg-go: #33d46a;

  background: var(--fj-bg);
  color: var(--fj-ink);
  font-family: var(--fj-body);
  -webkit-font-smoothing: antialiased;
}

body.fj ::selection { background: rgba(226, 74, 47, 0.35); }

/* ---------- shared bits ---------- */

.fj-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--fj-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fj-shu-hi);
}
.fj-eyebrow-line { width: 34px; height: 1.5px; background: currentColor; opacity: 0.7; }

.fj-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.fj-btn:hover { transform: translateY(-1px); }
.fj-btn-shu { background: var(--fj-shu); color: #fff8f2; box-shadow: 0 12px 32px -12px rgba(226, 74, 47, 0.8); }
.fj-btn-shu:hover { background: var(--fj-shu-hi); color: #fff; }
.fj-btn-ghost { border: 1px solid var(--fj-line-strong); background: rgba(246, 238, 244, 0.04); color: var(--fj-ink); }
.fj-btn-ghost:hover { border-color: rgba(246, 238, 244, 0.35); color: var(--fj-ink); }

/* the little hanko: the key seal of the logo */
.fj-hanko {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--fj-shu);
  color: #fbf4ea;
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px var(--fj-shu), inset 0 0 0 3.5px rgba(251, 244, 234, 0.85);
}

.fj-stars,
.rg-stars,
.rg-mini-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 24px 38px, #fff4dc 60%, transparent 62%),
    radial-gradient(1px 1px at 130px 92px, #e4c477 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 210px 22px, #ffffff 60%, transparent 62%),
    radial-gradient(1px 1px at 72px 168px, #e2b8d6 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 182px 196px, #fff4dc 60%, transparent 62%),
    radial-gradient(0.9px 0.9px at 260px 140px, #ffffff 60%, transparent 62%);
  background-size: 300px 240px;
  opacity: 0.55;
}
.fj-stars-2,
.rg-stars-2 {
  background-size: 420px 330px;
  background-position: 90px 60px;
  opacity: 0.35;
  animation: fj-twinkle 5s ease-in-out infinite alternate;
}

/* ---------- navbar ---------- */

body.fj .navbar {
  background: rgba(27, 20, 40, 0.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fj-line);
}
.fj-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.fj-brand img { width: 42px; height: 42px; object-fit: contain; }
.fj-brand-name { display: flex; flex-direction: column; line-height: 1; }
.fj-brand-studio { font-family: var(--fj-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--fj-ink); }
.fj-brand-tag { margin-top: 5px; font-family: var(--fj-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase; color: var(--fj-shu-hi); }
body.fj .navbar .nav-link { color: var(--fj-ink-soft); font-weight: 500; }
body.fj .navbar .nav-link:hover,
body.fj .navbar .nav-link.active { color: var(--fj-ink); }
body.fj .navbar .btn-outline-primary { border-radius: 999px; border-color: var(--fj-line-strong); color: var(--fj-ink); background: transparent; }
body.fj .navbar .btn-outline-primary:hover { background: rgba(246, 238, 244, 0.08); border-color: rgba(246, 238, 244, 0.35); }

/* ---------- hero ---------- */

.fj-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(130px, 15vw, 210px);
  background:
    radial-gradient(60% 80% at 80% 36%, rgba(226, 74, 47, 0.2), transparent 62%),
    radial-gradient(55% 70% at 8% 0%, rgba(116, 184, 199, 0.13), transparent 60%),
    linear-gradient(180deg, #2c2050 0%, var(--fj-bg) 78%);
}
.fj-hero-sky { position: absolute; inset: 0; }
.fj-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.fj-hero-title {
  margin: 0 0 24px;
  font-family: var(--fj-display);
  font-weight: 700;
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--fj-ink);
}
.fj-hero-title em {
  display: block;
  margin-top: 6px;
  font-family: var(--fj-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  background: linear-gradient(90deg, var(--fj-coral), var(--fj-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fj-hero-lead { max-width: 34em; margin: 0 0 34px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--fj-ink-soft); }
.fj-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fj-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--fj-mute); }
.fj-trust i { margin-right: 8px; color: var(--fj-teal); }

.fj-hero-art { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline: auto; }
.fj-sun {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 147, 124, 0.38), rgba(226, 74, 47, 0.12) 46%, transparent 70%);
  filter: blur(12px);
}
.fj-orbit { position: absolute; inset: -3%; border-radius: 50%; border: 1px dashed rgba(246, 238, 244, 0.14); animation: fj-spin 80s linear infinite; }
.fj-orbit span { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--fj-gold); box-shadow: 0 0 14px var(--fj-gold); }
.fj-seal-img {
  position: relative;
  display: block;
  width: 88%;
  height: auto;
  margin: 6%;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.55));
  animation: fj-float 9s ease-in-out infinite;
}
.fj-hero-ridges { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: clamp(90px, 12vw, 170px); }
.fj-hero-ridges .r1 { fill: #150f22; }
.fj-hero-ridges .r2 { fill: var(--fj-bg); }
.fj-hero-ridges .wave { fill: none; stroke: rgba(116, 184, 199, 0.32); stroke-width: 1.4; }

/* ---------- sections ---------- */

.fj-section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.fj-section-head { max-width: 860px; margin: 0 0 48px; }
.fj-section-head .fj-eyebrow { font-size: 12px; line-height: 1.4; color: var(--fj-shu-hi); }
.fj-section-head h2,
body.fj .section-title h2 {
  margin: 0 0 14px;
  font-family: var(--fj-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fj-ink);
}
.fj-section-head h2 em { font-family: var(--fj-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--fj-coral); }
.fj-section-head p,
body.fj .section-subtitle p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--fj-ink-soft); }

/* ---------- apps ---------- */

.fj-apps-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 20px; }
.fj-app {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--fj-line);
  background: var(--fj-surface);
  color: var(--fj-ink);
  text-decoration: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
a.fj-app:hover { transform: translateY(-4px); color: var(--fj-ink); box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.8); }
.fj-app-art { position: relative; display: grid; place-items: center; height: 230px; overflow: hidden; background: linear-gradient(160deg, var(--fj-surface-2), var(--fj-bg-2)); }
.fj-app-status {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--fj-line-strong);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--fj-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fj-ink-soft);
}
.fj-app-status.is-live { border-color: rgba(51, 212, 106, 0.4); color: #bff5cf; }
.fj-app-status.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rg-go); box-shadow: 0 0 10px var(--rg-go); }
.fj-app-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px 26px 28px; }
.fj-app-body h3 { margin: 0; font-family: var(--fj-display); font-weight: 700; font-size: 28px; letter-spacing: -0.025em; }
.fj-app-tagline { margin: 0; font-family: var(--fj-serif); font-style: italic; font-size: 21px; color: var(--fj-coral); }
.fj-app-desc { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--fj-ink-soft); }
.fj-app-cta { display: inline-flex; gap: 8px; margin-top: auto; padding-top: 18px; font-weight: 600; }

.fj-app.is-soon { border-style: dashed; border-color: var(--fj-line-strong); background: rgba(38, 29, 58, 0.4); }
.fj-app.is-soon .fj-app-art { background: repeating-linear-gradient(135deg, rgba(246, 238, 244, 0.035) 0 10px, transparent 10px 20px); }
.fj-app.is-soon h3 { color: var(--fj-ink-soft); }
.fj-app.is-soon .fj-app-tagline { color: var(--fj-mute); }
.fj-app-glyph { font-family: var(--fj-serif); font-style: italic; font-size: 110px; line-height: 1; color: rgba(246, 238, 244, 0.16); }

/* the Ridge card: a window into the app's own night */
.fj-app-ridge { border-color: rgba(247, 162, 59, 0.2); background: var(--rg-bg); }
a.fj-app-ridge:hover { border-color: rgba(247, 162, 59, 0.45); box-shadow: 0 34px 80px -34px rgba(247, 162, 59, 0.35); }
.fj-app-ridge .fj-app-art { height: 260px; background: var(--rg-bg); }
.rg-mini-glow { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 118%, rgba(247, 162, 59, 0.5), rgba(255, 106, 26, 0.12) 46%, transparent 72%); }
.fj-app-ridge .rg-mark { position: relative; width: 56%; max-width: 250px; overflow: visible; }
.rg-mark path {
  fill: none;
  stroke: var(--rg-text);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  filter: drop-shadow(0 0 8px rgba(243, 240, 234, 0.4));
  animation: rg-draw 1.8s 0.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.fj-app-ridge .fj-app-body h3 { font-family: var(--fj-serif); font-weight: 400; font-size: 44px; letter-spacing: -0.01em; line-height: 1; color: var(--rg-text); }
.fj-app-ridge .fj-app-tagline { color: var(--rg-flame); }
.fj-app-ridge .fj-app-desc { color: var(--rg-muted); }
.fj-app-ridge .fj-app-cta { color: var(--rg-text); }

/* ---------- steps ---------- */

.fj-steps { background: var(--fj-bg-2); }
.fj-steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.fj-step { position: relative; padding: 30px 28px 32px; border-radius: 22px; border: 1px solid var(--fj-line); background: var(--fj-surface); }
.fj-step-num { font-family: var(--fj-mono); font-size: 12px; letter-spacing: 0.24em; color: var(--fj-shu-hi); }
.fj-step-icon { position: absolute; top: 28px; right: 28px; font-size: 19px; color: var(--fj-teal); }
.fj-step h3 { margin: 20px 0 8px; font-family: var(--fj-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--fj-ink); }
.fj-step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fj-ink-soft); }
.fj-steps-note { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; font-size: 14.5px; color: var(--fj-mute); }

/* ---------- products ---------- */

body.fj .products .card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--fj-line);
  background: var(--fj-surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
body.fj .products .card:hover { transform: translateY(-3px); border-color: var(--fj-line-strong); }
body.fj .products .card-title { font-family: var(--fj-display); font-weight: 700; letter-spacing: -0.02em; color: var(--fj-ink); }
body.fj .products .card .price { color: var(--fj-ink); font-weight: 600; }
body.fj .products .card .text-primary { color: var(--fj-teal) !important; }
body.fj .product-img-placeholder { background: radial-gradient(70% 90% at 50% 100%, rgba(226, 74, 47, 0.18), transparent 70%), var(--fj-surface-2); }

/* ---------- faq ---------- */

body.fj .faq .accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: transparent; }
body.fj .faq .accordion-item { margin-bottom: 10px; overflow: hidden; border: 1px solid var(--fj-line); border-radius: 18px !important; background: var(--fj-surface); }
body.fj .faq .accordion-button { background: transparent; box-shadow: none; font-family: var(--fj-display); font-weight: 600; font-size: 17px; color: var(--fj-ink); }
body.fj .faq .accordion-button:not(.collapsed) { color: var(--fj-coral); }
body.fj .faq .accordion-body { padding-top: 0; color: var(--fj-ink-soft); line-height: 1.6; }

/* ---------- generic product page, cart and forms ---------- */

body.fj .product-wrapper h1 { font-family: var(--fj-display); letter-spacing: -0.03em; }
body.fj .fj-placeholder { display: grid; place-items: center; border-radius: 24px; }
body.fj .fj-placeholder img { width: 46%; height: auto; }
body.fj .btn-primary { border-radius: 999px; }
body.fj .btn-outline-primary { border-radius: 999px; }
body.fj .form-control { border-radius: 12px; }

/* ---------- currency picker ---------- */

body.fj .currency-selector .choices__inner,
body.fj .currency-selector select { border: 1px solid var(--fj-line-strong) !important; border-radius: 999px !important; background: transparent !important; color: var(--fj-ink) !important; }
body.fj .currency-selector .choices__item { color: var(--fj-ink); }

/* ---------- footer ---------- */

body.fj .footer { border-top: 1px solid var(--fj-line); background: #150f22; }
body.fj .footer h5 { font-family: var(--fj-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fj-mute); }
body.fj .footer .nav-link { color: var(--fj-ink-soft); }
body.fj .footer .nav-link:hover { color: var(--fj-ink); }
body.fj .fj-footer-brand { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; }
.fj-footer-brand img { width: 58px; height: 58px; margin-bottom: 14px; object-fit: contain; }
.fj-footer-name { margin: 0; font-family: var(--fj-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.fj-footer-name span { margin-left: 8px; font-family: var(--fj-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; vertical-align: middle; color: var(--fj-shu-hi); }
.fj-footer-tagline { max-width: 26em; margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--fj-mute); }
.fj-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--fj-line);
  font-size: 13px;
  color: var(--fj-mute);
}
.fj-footer-base > span { display: inline-flex; align-items: center; gap: 12px; }

/* =====================================================================
   Ridge: the product page of Ridge wears the app (and trailer) look:
   near-black night, cream type, Instrument Serif, a warm glow below.
   ===================================================================== */

body.fj:has(.rg-page) {
  --cl-accent: #f3f0ea;
  --cl-accent-rgb: 243, 240, 234;
  --cl-background-primary: #0a0a0a;
  --cl-background-primary-rgb: 10, 10, 10;
  --cl-background-secondary: #131313;
  --cl-background-secondary-rgb: 19, 19, 19;
  --cl-border: rgba(255, 255, 255, 0.08);
  background: var(--rg-bg);
}
body.fj:has(.rg-page) .navbar { background: rgba(10, 10, 10, 0.72); border-bottom-color: var(--rg-line); }
body.fj:has(.rg-page) .fj-brand-tag { color: var(--rg-flame); }
body.fj:has(.rg-page) .footer { background: #070707; border-top-color: var(--rg-line); }
body.fj:has(.rg-page) .fj-hanko { background: #1b1b1b; box-shadow: inset 0 0 0 2px #1b1b1b, inset 0 0 0 3.5px rgba(243, 240, 234, 0.6); }

.rg-page { position: relative; overflow: hidden; color: var(--rg-text); background: var(--rg-bg); }
.rg-page > .container { position: relative; z-index: 1; }
.rg-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 78% 100%, rgba(247, 162, 59, 0.2), rgba(255, 106, 26, 0.06) 50%, transparent 72%),
    radial-gradient(40% 40% at 100% 20%, rgba(127, 178, 255, 0.08), transparent 70%);
}
.rg-streak {
  position: absolute;
  top: 16%;
  left: -30%;
  width: 160%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(127, 178, 255, 0) 25%, rgba(190, 215, 255, 0.95) 50%, rgba(127, 178, 255, 0) 75%, transparent);
  box-shadow: 0 0 22px 5px rgba(127, 178, 255, 0.3);
  transform: rotate(-13deg);
  animation: rg-streak 11s 1.5s ease-in-out infinite;
}

/* the phone */
.rg-show { position: relative; width: min(350px, 76vw); aspect-ratio: 9 / 18.4; margin: 8px auto 48px; }
.rg-phone {
  position: absolute;
  inset: 0;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a3a3c, #151517 42%, #2a2a2c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -20px rgba(247, 162, 59, 0.28);
  transform: rotate(-4deg);
  animation: rg-bob 8s ease-in-out infinite;
}
.rg-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 12px 15px 0;
  border-radius: 43px;
  font-family: var(--fj-body);
  color: #fff;
  background: linear-gradient(180deg, #121114 0%, #1d181e 10%, #45303a 19%, #93593f 28%, #c98a52 34%, #6a4430 40%, #1a1513 46%, #0e0e0e 100%);
}
.rg-screen > * { flex-shrink: 0; }
.rg-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 8px; font-size: 12px; font-weight: 600; }
.rg-island { width: 82px; height: 23px; border-radius: 14px; background: #000; }
.rg-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.rg-sig i { display: block; width: 3px; border-radius: 1px; background: #fff; }
.rg-sig i:nth-child(1) { height: 5px; }
.rg-sig i:nth-child(2) { height: 7px; }
.rg-sig i:nth-child(3) { height: 9px; }
.rg-app-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.rg-word { display: inline-flex; align-items: flex-start; gap: 3px; font-family: var(--fj-serif); font-size: 25px; line-height: 1; color: var(--rg-text); }
.rg-word svg { width: 15px; height: 15px; overflow: visible; }
.rg-word path,
.rg-tabbar .star path { fill: none; stroke: var(--rg-text); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.rg-chip-streak { display: inline-flex; align-items: center; gap: 3px; font-family: var(--fj-serif); font-style: italic; font-size: 20px; color: var(--rg-flame); }
.rg-chip-streak svg { width: 14px; height: 14px; fill: var(--rg-flame); }

.rg-rings { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 4px; padding: 14px 2px 0; }
.rg-ring { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rg-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.rg-ring .t { fill: rgba(0, 0, 0, 0.16); stroke: rgba(255, 255, 255, 0.22); stroke-width: 2.4; }
.rg-ring .v { fill: none; stroke: var(--rg-text); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 200; animation: rg-fill 1.8s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.rg-ring b { position: absolute; top: 0; display: grid; place-items: center; width: 56px; height: 56px; font-family: var(--fj-serif); font-style: italic; font-weight: 400; font-size: 22px; }
.rg-ring span { font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }

.rg-scene { display: block; width: calc(100% + 30px); height: 64px; margin: -26px -15px 0; }
.rg-scene .m1 { fill: rgba(70, 44, 40, 0.6); }
.rg-scene .m2 { fill: #131111; }
.rg-greet-eyebrow { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; font-family: var(--fj-mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.68); }
.rg-greet-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--rg-go); }
.rg-greet { margin: 0 0 12px; font-family: var(--fj-serif); font-size: 20px; line-height: 1.08; color: var(--rg-text); }
.rg-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--fj-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.rg-progress span { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.rg-progress span::after { content: ""; position: absolute; inset: 0 56% 0 0; border-radius: 2px; background: var(--rg-text); }
.rg-progress em { font-style: normal; }
.rg-progress b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; font-weight: 400; font-size: 13px; color: #fff; }
.rg-card { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.rg-card > svg { flex: none; width: 17px; height: 17px; fill: none; stroke: rgba(255, 255, 255, 0.8); stroke-width: 1.6; }
.rg-card strong { display: block; font-family: var(--fj-serif); font-weight: 400; font-size: 15px; color: var(--rg-text); }
.rg-card small { font-size: 9px; color: rgba(255, 255, 255, 0.6); }
.rg-card > span { margin-left: auto; color: rgba(255, 255, 255, 0.6); }
.rg-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: auto 0 12px;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(28, 28, 28, 0.88);
}
.rg-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; color: rgba(255, 255, 255, 0.5); }
.rg-tabbar span > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.rg-tabbar .on { padding: 5px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.rg-tabbar .star { justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: #141414; }
.rg-tabbar .star svg { width: 20px; height: 20px; overflow: visible; }

.rg-list-title { margin: 14px 0 6px; font-family: var(--fj-mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.rg-goals { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rg-goals li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; font-size: 11px; color: var(--rg-text); }
.rg-goals li small { margin-left: auto; font-family: var(--fj-mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.rg-goals i { position: relative; flex: none; width: 14px; height: 14px; border: 1.4px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.rg-goals .done i { border-color: var(--rg-go); background: rgba(51, 212, 106, 0.18); }
.rg-goals .done i::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 4px; height: 7px; border: solid var(--rg-go); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.rg-goals .done { color: rgba(243, 240, 234, 0.6); text-decoration: line-through; text-decoration-color: rgba(243, 240, 234, 0.3); }

/* the pills that float out of the screen, like in the trailer */
.rg-pill {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 15px;
  white-space: nowrap;
  color: var(--rg-text);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.85);
  animation: rg-pill 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, rg-drift 7s ease-in-out infinite;
}
.rg-pill em { font-family: var(--fj-serif); font-size: 22px; line-height: 1; }
.rg-pill .ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.rg-pill .ic svg { width: 15px; height: 15px; }
.rg-pill .flame { background: rgba(247, 162, 59, 0.16); }
.rg-pill .flame svg { fill: var(--rg-flame); }
.rg-pill .go { background: rgba(51, 212, 106, 0.16); }
.rg-pill .go svg { fill: none; stroke: var(--rg-go); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-pill .sky { background: rgba(127, 178, 255, 0.16); }
.rg-pill .sky svg { fill: none; stroke: var(--rg-sky); stroke-width: 2; }
.rg-pill-1 { top: -3%; right: -26%; border-color: rgba(247, 162, 59, 0.35); animation-delay: 0.7s, 0s; }
.rg-pill-2 { top: 45%; right: -28%; border-color: rgba(51, 212, 106, 0.35); animation-delay: 1s, -2s; }
.rg-pill-3 { bottom: 3%; left: -26%; border-color: rgba(127, 178, 255, 0.35); animation-delay: 1.3s, -4s; }

/* the buy column */
.rg-eyebrow { margin: 0 0 14px; font-family: var(--fj-mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--rg-flame); }
body.fj .rg-page .rg-title { margin: 0; font-family: var(--fj-serif); font-weight: 400 !important; font-size: clamp(54px, 6.2vw, 84px); line-height: 0.95; letter-spacing: -0.01em; color: var(--rg-text); }
.rg-motto { margin: 8px 0 28px; font-family: var(--fj-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); color: var(--rg-muted); }
body.fj .rg-page .rg-price { font-family: var(--fj-serif); font-size: 44px !important; line-height: 1; color: var(--rg-text); }
.rg-page .form-label { font-family: var(--fj-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rg-faint); }
body.fj .rg-page .variants { gap: 10px; }
body.fj .rg-page .variants .variant {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--rg-text) !important;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
body.fj .rg-page .variants .variant:hover { border-color: rgba(255, 255, 255, 0.25) !important; }
body.fj .rg-page .variants .variant.active { border-color: rgba(247, 162, 59, 0.75) !important; background: rgba(247, 162, 59, 0.08) !important; box-shadow: 0 0 34px -12px rgba(247, 162, 59, 0.6); }
body.fj .rg-page .variant .name { font-family: var(--fj-serif); font-size: 21px; color: var(--rg-text); }
body.fj .rg-page .variant .description { color: var(--rg-muted) !important; }
body.fj .rg-page .variant .price { font-family: var(--fj-serif); font-style: italic; font-size: 21px; color: var(--rg-text); }
body.fj .rg-page .variant .active-indicator { background: var(--rg-flame) !important; color: #0a0a0a !important; }
body.fj .rg-page .buy-buttons .btn-primary { border-color: var(--rg-text) !important; background: var(--rg-text) !important; color: #0a0a0a !important; font-weight: 600; }
body.fj .rg-page .buy-buttons .btn-primary:hover { background: #fff !important; }
body.fj .rg-page .btn-outline-primary { border-color: rgba(243, 240, 234, 0.25) !important; background: transparent !important; color: var(--rg-text) !important; }
body.fj .rg-page .btn-outline-primary:hover { background: rgba(243, 240, 234, 0.08) !important; }
body.fj .rg-page .stock-indicator.btn-outline-primary { border-color: rgba(51, 212, 106, 0.4) !important; color: #bff5cf !important; }
body.fj .rg-page .form-control { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: var(--rg-text); }
.rg-perks { display: grid; gap: 12px; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid var(--rg-line); list-style: none; font-size: 15px; color: var(--rg-muted); }
.rg-perks li { display: flex; align-items: flex-start; gap: 12px; }
.rg-perks i { position: relative; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(51, 212, 106, 0.16); }
.rg-perks i::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 5px; height: 9px; border: solid var(--rg-go); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* the trailer, right under the phone */
.rg-trailer { margin-top: clamp(56px, 7vw, 104px); }
.rg-film {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rg-line);
  border-radius: clamp(18px, 2.4vw, 30px);
  background: #05070c;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 90px rgba(247, 162, 59, 0.08);
  opacity: 0;
  transform: perspective(1400px) translateY(60px) rotateX(10deg) scale(0.94);
  transition: opacity 0.9s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rg-trailer.in .rg-film { opacity: 1; transform: none; }
.rg-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rg-sound {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px 10px 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--rg-text); font-size: 14px; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.rg-sound:hover { background: rgba(10, 10, 10, 0.75); transform: translateY(-1px); }
.rg-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg-sound[hidden] { display: none; }

/* below the fold */
.rg-more { margin-top: clamp(64px, 8vw, 112px); }
.rg-head h2,
.rg-next h2 { margin: 0 0 36px; font-family: var(--fj-serif); font-weight: 400; font-size: clamp(42px, 5vw, 66px); line-height: 1; letter-spacing: -0.01em; color: var(--rg-text); }
.rg-head h2 em,
.rg-next h2 em { font-style: italic; }
.rg-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rg-feature { padding: 26px 24px 28px; border: 1px solid var(--rg-line); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
.rg-dot { display: block; width: 10px; height: 10px; margin-bottom: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.rg-feature h3 { margin: 0 0 10px; font-family: var(--fj-serif); font-weight: 400; font-size: 25px; line-height: 1.08; color: var(--rg-text); }
.rg-feature p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rg-muted); }
.rg-next {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--rg-line);
  border-radius: 30px;
  background: radial-gradient(70% 120% at 0% 100%, rgba(247, 162, 59, 0.15), transparent 60%), #101010;
}
.rg-next-copy p:not(.rg-eyebrow) { margin: 0; font-size: 16px; line-height: 1.6; color: var(--rg-muted); }
.rg-road { display: grid; margin: 0; padding: 0; list-style: none; }
.rg-road li { display: grid; grid-template-columns: 76px 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.rg-road li:last-child { border-bottom: 0; }
.rg-road-tag { grid-row: span 2; padding-top: 6px; font-family: var(--fj-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rg-faint); }
.rg-road li:first-child .rg-road-tag { color: var(--rg-flame); }
.rg-road strong { font-family: var(--fj-serif); font-weight: 400; font-size: 25px; line-height: 1.1; color: var(--rg-text); }
.rg-road small { font-size: 14px; line-height: 1.5; color: var(--rg-muted); }
.rg-about { max-width: 720px; margin-top: 56px; }
.rg-about .editor,
.rg-about .editor p { font-size: 16px; line-height: 1.65; color: var(--rg-muted); }

/* ---------- motion ---------- */

@keyframes fj-twinkle { from { opacity: 0.15; } to { opacity: 0.5; } }
@keyframes fj-spin { to { transform: rotate(360deg); } }
@keyframes fj-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes rg-draw { to { stroke-dashoffset: 0; } }
@keyframes rg-fill { to { stroke-dasharray: calc(var(--v) * 1.194) 200; } }
@keyframes rg-bob { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
@keyframes rg-pill { from { opacity: 0; transform: translateX(-30px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes rg-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes rg-streak {
  0% { opacity: 0; transform: translateX(-35%) rotate(-13deg); }
  6% { opacity: 1; }
  20% { opacity: 0; transform: translateX(35%) rotate(-13deg); }
  100% { opacity: 0; transform: translateX(35%) rotate(-13deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fj-orbit, .fj-seal-img, .fj-stars-2, .rg-stars-2, .rg-phone, .rg-pill, .rg-streak { animation: none !important; }
  .rg-film { opacity: 1; transform: none; transition: none; }
  .rg-mark path { animation: none; stroke-dashoffset: 0; }
  .rg-ring .v { animation: none; stroke-dasharray: calc(var(--v) * 1.194) 200; }
}

/* ---------- small screens ---------- */

@media (max-width: 991px) {
  .fj-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .fj-hero-art { order: -1; max-width: 300px; }
  .fj-apps-grid { grid-template-columns: 1fr; }
  .fj-steps-list { grid-template-columns: 1fr; }
  .rg-features { grid-template-columns: repeat(2, 1fr); }
  .rg-next { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 575px) {
  .fj-hero-title { font-size: 42px; }
  .fj-btn { width: 100%; justify-content: center; }
  .rg-features { grid-template-columns: 1fr; }
  .rg-pill { font-size: 13px; padding: 7px 14px 7px 7px; }
  .rg-pill em { font-size: 18px; }
  .rg-pill .ic { width: 24px; height: 24px; }
  .rg-pill-1 { right: -8%; }
  .rg-pill-2 { right: -12%; }
  .rg-pill-3 { left: -8%; }
  .rg-list-title, .rg-goals { display: none; }
}

/* the trailer's mute button: waves when the sound is on, a cross when muted */
.rg-sound .rg-off { display: none; }
.rg-sound.is-muted .rg-off { display: inline; }
.rg-sound.is-muted .rg-on { display: none; }

/* a quiet way back to the studio, in the footer */
.fj-studio-link { color: inherit; text-decoration: none; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.fj-studio-link:hover { opacity: 1; color: #f2876f; }

/* FAQ: smooth open and close (components/faq.njk) */
body.fj .faq .fj-qa-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
body.fj .faq .fj-qa-body > div { overflow: hidden; }
body.fj .faq .fj-qa-body .accordion-body { opacity: 0; transform: translateY(-6px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
body.fj .faq .accordion-item[data-open] .fj-qa-body { grid-template-rows: 1fr; }
body.fj .faq .accordion-item[data-open] .fj-qa-body .accordion-body { opacity: 1; transform: none; transition-delay: 0.05s; }
body.fj .faq .accordion-button { transition: color 0.25s ease; }
body.fj .faq .accordion-button::after { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
body.fj .faq .accordion-button:focus { box-shadow: none; }
body.fj .faq .accordion-button:focus-visible { outline: 2px solid var(--fj-coral); outline-offset: -2px; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { body.fj .faq .fj-qa-body, body.fj .faq .fj-qa-body .accordion-body, body.fj .faq .accordion-button::after { transition: none; } }