:root {
  --rf-primary: #121212;
  --rf-navy: #0b1f3b;
  --rf-forest: #0f3d2e;
  --rf-rosewood: #b23a48;
  --rf-aubergine: #4B2945;
  --rf-teal: #0D5C63;
  --rf-cream: #f4f7f5;
  --rf-muted: #5c6b73;
  --rf-surface: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fraunces", "Georgia", serif;
  color: var(--rf-primary);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 92, 99, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(15, 61, 46, 0.22), transparent 55%),
    linear-gradient(180deg, #eef3f1 0%, var(--rf-cream) 45%, #e7ecea 100%);
  min-height: 100vh;
}

body.rf-page {
  display: flex;
  flex-direction: column;
}

.rf-sans {
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.rf-nav {
  background: rgba(11, 31, 59, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rf-nav .navbar-brand,
.rf-nav .nav-link {
  color: #f5f8f7 !important;
  font-family: "DM Sans", sans-serif;
}

.rf-nav .nav-link:hover,
.rf-nav .nav-link.active {
  color: #9fd3d7 !important;
}

.rf-nav .navbar-brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
}

.rf-brand-mark {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rf-teal), var(--rf-forest));
  margin-right: 0.55rem;
  color: white;
}

main.rf-main {
  flex: 1;
}

.rf-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-items: center;
  color: #f7faf9;
  background:
    linear-gradient(115deg, rgba(11, 31, 59, 0.94) 0%, rgba(15, 61, 46, 0.88) 48%, rgba(13, 92, 99, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rf-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 70%;
  background: radial-gradient(circle at center, rgba(178, 58, 72, 0.28), transparent 65%);
  pointer-events: none;
  animation: rf-glow 8s ease-in-out infinite alternate;
}

@keyframes rf-glow {
  from { transform: translateY(0) scale(1); opacity: 0.7; }
  to { transform: translateY(-18px) scale(1.08); opacity: 1; }
}

.rf-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
}

.rf-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .rf-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.rf-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
  margin-bottom: 1rem;
  animation: rf-rise 0.8s ease-out both;
}

.rf-hero .lead {
  font-family: "DM Sans", sans-serif;
  font-size: 1.15rem;
  max-width: 34rem;
  color: rgba(245, 248, 247, 0.86);
  animation: rf-rise 0.9s ease-out 0.1s both;
}

.rf-hero-process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  animation: rf-rise 1s ease-out 0.22s both;
}

@media (min-width: 992px) {
  .rf-hero-process {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
  }
}

.rf-hero-process-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  min-width: 0;
}

.rf-hero-process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.85rem;
  height: 3.85rem;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.35);
  border: 1px solid rgba(247, 250, 249, 0.28);
  color: #f7faf9;
  font-size: 1.75rem;
}

.rf-hero-process-text {
  font-family: "DM Sans", sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(245, 248, 247, 0.92);
  max-width: 16rem;
}

.rf-hero-process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 248, 247, 0.55);
  font-size: 1.65rem;
  flex: 0 0 auto;
  padding: 0.15rem 0;
}

@media (min-width: 992px) {
  .rf-hero-process-arrow {
    padding-top: 0.7rem;
  }
}

.rf-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rf-hero-testimonials {
  display: grid;
  gap: 1rem;
}

@media (min-width: 576px) {
  .rf-hero-testimonials {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

.rf-hero-quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "DM Sans", sans-serif;
}

.rf-hero-quote p {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(245, 248, 247, 0.9);
}

.rf-hero-quote footer {
  font-size: 0.95rem;
  font-style: normal;
  color: rgba(245, 248, 247, 0.65);
}

@keyframes rf-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.rf-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  animation: rf-rise 1s ease-out 0.18s both;
}

.btn-rf-primary {
  background: var(--rf-rosewood);
  border-color: var(--rf-rosewood);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 0.55rem;
}

.btn-rf-primary:hover {
  background: #9a3140;
  border-color: #9a3140;
  color: #fff;
}

.btn-rf-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 0.55rem;
}

.btn-rf-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.rf-section {
  padding: 4.5rem 0;
}

.rf-section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.rf-section-lead {
  font-family: "DM Sans", sans-serif;
  color: var(--rf-muted);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.rf-feature-row {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .rf-feature-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rf-feature {
  padding: 0.25rem 0.25rem 0.5rem;
}

.rf-feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 92, 99, 0.12);
  color: var(--rf-teal);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.rf-feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.rf-feature p {
  font-family: "DM Sans", sans-serif;
  color: var(--rf-muted);
  margin: 0;
  line-height: 1.55;
}

.rf-steps {
  background: linear-gradient(160deg, var(--rf-navy), #12324f 55%, var(--rf-teal));
  color: #f5f8f7;
}

.rf-steps .rf-section-lead {
  color: rgba(245, 248, 247, 0.78);
}

.rf-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  font-family: "DM Sans", sans-serif;
}

@media (min-width: 768px) {
  .rf-step-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rf-step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.rf-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.rf-panel {
  background: var(--rf-surface);
  border: 1px solid rgba(11, 31, 59, 0.08);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(11, 31, 59, 0.06);
}

.rf-stat {
  font-family: "DM Sans", sans-serif;
}

.rf-stat .value {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--rf-navy);
  line-height: 1;
}

.rf-stat .label {
  color: var(--rf-muted);
  font-size: 0.9rem;
}

.rf-footer {
  background: var(--rf-primary);
  color: rgba(255, 255, 255, 0.72);
  font-family: "DM Sans", sans-serif;
  padding: 2rem 0;
  margin-top: auto;
}

.rf-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rf-footer a:hover {
  color: #fff;
  opacity: 0.9;
}

.rf-footer-heart {
  color: #e63946;
  margin-left: 0.15rem;
  vertical-align: -0.05em;
}

.rf-faq {
  max-width: 42rem;
  display: grid;
  gap: 0.5rem;
}

.rf-faq-item {
  border-bottom: 1px solid rgba(11, 31, 59, 0.12);
  padding: 0.85rem 0;
  font-family: "DM Sans", sans-serif;
}

.rf-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--rf-navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rf-faq-item summary::-webkit-details-marker {
  display: none;
}

.rf-faq-item summary::after {
  content: "+";
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  color: var(--rf-teal);
  line-height: 1;
}

.rf-faq-item[open] summary::after {
  content: "−";
}

.rf-faq-item p {
  margin: 0.75rem 0 0.25rem;
  color: var(--rf-muted);
  line-height: 1.6;
}

.rf-faq-item a {
  color: var(--rf-teal);
}

.rf-form-label {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  color: var(--rf-navy);
}

.rf-panel .form-control,
.rf-panel .form-select,
.rf-panel textarea {
  font-family: "DM Sans", sans-serif;
}

.rf-dropzone {
  position: relative;
  border: 2px dashed rgba(11, 31, 59, 0.22);
  border-radius: 0.85rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rf-dropzone:hover,
.rf-dropzone:focus {
  border-color: var(--rf-teal);
  background: rgba(13, 92, 99, 0.06);
  outline: none;
}

.rf-dropzone-active {
  border-color: var(--rf-teal);
  background: rgba(13, 92, 99, 0.1);
}

.rf-dropzone-has-files {
  border-style: solid;
  border-color: rgba(15, 61, 46, 0.35);
}

.rf-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rf-dropzone-icon {
  font-size: 2rem;
  color: var(--rf-teal);
  margin-bottom: 0.35rem;
}

.rf-dropzone-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  color: var(--rf-navy);
}

.rf-dropzone-hint {
  font-family: "DM Sans", sans-serif;
  color: var(--rf-muted);
  font-size: 0.92rem;
}

.rf-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-family: "DM Sans", sans-serif;
}

.rf-share-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.rf-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rf-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f8f7;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rf-share-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.rf-section .rf-share .rf-share-label {
  color: var(--rf-muted);
}

.rf-section .rf-share-btn {
  background: rgba(11, 31, 59, 0.08);
  color: var(--rf-navy);
}

.rf-section .rf-share-btn:hover {
  background: rgba(13, 92, 99, 0.18);
  color: var(--rf-navy);
}

.rf-share-image-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.rf-share-image-buttons .rf-share-btn {
  border: none;
  cursor: pointer;
  padding: 0;
}

.rf-share-image-buttons .rf-share-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.rf-share-card-capture {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 640px;
  pointer-events: none;
  z-index: -1;
}

.rf-share-card {
  background: linear-gradient(180deg, #eef3f1 0%, #f4f7f5 100%);
  border: 1px solid rgba(11, 31, 59, 0.12);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  color: #121212;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.rf-share-card-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0b1f3b;
}

.rf-share-card-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D5C63, #0f3d2e);
  color: #fff;
  font-size: 1rem;
}

.rf-share-card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.15;
  color: #0b1f3b;
  margin: 0 0 0.35rem;
}

.rf-share-card-subtitle {
  color: #5c6b73;
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.rf-share-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.rf-share-card-stat {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(11, 31, 59, 0.1);
  border-radius: 0.75rem;
  padding: 0.85rem 0.9rem;
  text-align: center;
}

.rf-share-card-stat .value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.1;
  color: #0b1f3b;
}

.rf-share-card-stat .label {
  color: #5c6b73;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.rf-share-card-footer {
  text-align: center;
  color: #0D5C63;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-all;
}

.rf-help {
  font-family: "DM Sans", sans-serif;
  color: var(--rf-muted);
  font-size: 0.9rem;
}

.rf-radio-row {
  display: grid;
  gap: 0.75rem;
}

.rf-radio-row .form-check {
  padding: 0.9rem 1rem 0.9rem 2.2rem;
  border: 1px solid rgba(11, 31, 59, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  font-family: "DM Sans", sans-serif;
}

.alert {
  font-family: "DM Sans", sans-serif;
}

.table {
  font-family: "DM Sans", sans-serif;
}

.rf-chart-wrap {
  position: relative;
  height: 280px;
}

.rf-chart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rf-chart-download {
  flex-shrink: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--rf-teal);
  text-decoration: none;
  white-space: nowrap;
}

.rf-chart-download:hover {
  color: var(--rf-navy);
  text-decoration: underline;
}

.rf-prisma {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.rf-prisma-step {
  min-width: min(100%, 280px);
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(13, 92, 99, 0.1);
  border: 1px solid rgba(13, 92, 99, 0.25);
}

.rf-prisma-exclude {
  background: rgba(178, 58, 72, 0.08);
  border-color: rgba(178, 58, 72, 0.28);
}

.rf-prisma-warn {
  background: rgba(75, 41, 69, 0.08);
  border-color: rgba(75, 41, 69, 0.28);
}

.rf-prisma-n {
  font-family: "Fraunces", serif;
  font-size: 1.75rem;
  color: var(--rf-navy);
  line-height: 1.1;
}

.rf-prisma-label {
  color: var(--rf-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.rf-tip {
  cursor: help;
  font-size: 0.85rem;
  vertical-align: middle;
  opacity: 0.75;
}

.rf-tip:hover {
  opacity: 1;
}

.alert .rf-share .rf-share-label {
  display: none;
}

.rf-prisma-arrow {
  color: var(--rf-teal);
  font-size: 1.25rem;
}

.rf-prisma-branch {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 640px;
}

@media (min-width: 768px) {
  .rf-prisma-branch {
    grid-template-columns: 1fr 1fr;
  }
}
