*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rf-orange: #e65208;
  --rf-orange-dark: #c94707;
  --rf-blue: #03afff;
  --rf-text: #131313;
  --rf-muted: #5f6368;
  --rf-border: #dadce0;
  --rf-surface: #ffffff;
  --rf-surface-muted: #f5f5f5;
  --rf-panel: rgba(0, 0, 0, 0.45);
  --rf-header-bg: rgba(255, 255, 255, 0.96);
  --rf-input-bg: #ffffff;
  --max-width: 1140px;
  --font: 'Roboto', system-ui, sans-serif;
  --header-height: 64px;
  color-scheme: light;
}

html.dark {
  --rf-blue: #8ab4f8;
  --rf-text: #e8eaed;
  --rf-muted: #9aa0a6;
  --rf-border: #3c4043;
  --rf-surface: #292a2d;
  --rf-surface-muted: #131314;
  --rf-panel: rgba(0, 0, 0, 0.55);
  --rf-header-bg: rgba(41, 42, 45, 0.96);
  --rf-input-bg: #303134;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--rf-text);
  background: var(--rf-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rf-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rf-header-bg);
  border-bottom: 1px solid var(--rf-border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--rf-text);
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; color: var(--rf-text); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:not(.site-nav__cta) {
  color: var(--rf-muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
}

.site-nav a:not(.site-nav__cta):hover,
.site-nav a:not(.site-nav__cta).active {
  color: var(--rf-text);
  background: var(--rf-surface-muted);
  text-decoration: none;
}

.site-nav__signin { margin-left: 0.25rem; }

.site-nav .site-nav__cta,
.site-nav a.site-nav__cta {
  color: #fff;
  background: var(--rf-orange);
  padding: 0.55rem 1.125rem;
  border-radius: 4px;
  line-height: 1.25;
  margin-left: 0.35rem;
  box-shadow: 0 2px 8px rgba(230, 82, 8, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
  text-decoration: none;
}

.site-nav .site-nav__cta:hover,
.site-nav a.site-nav__cta:hover,
.site-nav .site-nav__cta:focus-visible,
.site-nav a.site-nav__cta:focus-visible {
  background: var(--rf-orange-dark);
  color: #fff;
  text-decoration: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover { text-decoration: none; }

.btn-hero {
  background: var(--rf-orange);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(230, 82, 8, 0.35);
}

.btn-hero:hover {
  background: var(--rf-orange-dark);
  color: #fff !important;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn-plan {
  width: 100%;
  background: var(--rf-orange);
  color: #fff;
  margin-top: auto;
}

.btn-plan:hover { background: var(--rf-orange-dark); color: #fff; }

/* ── Hero banner (homepage) ── */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: #222;
}

.hero-banner__media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
}

.hero-banner__content h1 {
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  text-shadow: var(--rf-orange) 1px 0 10px;
  margin-bottom: 1rem;
}

.hero-banner__box {
  background: var(--rf-panel);
  padding: 1rem 1.25rem;
  margin: 0 auto 1rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
}

.hero-banner__box p { margin: 0.25rem 0; }

.hero-banner__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
  max-width: 32rem;
  margin-inline: auto;
}

/* ── Quick features (3 columns) ── */
.quick-features {
  padding: 3.5rem 0;
}

.quick-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.quick-features__col h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.quick-features__col ul {
  list-style: none;
  color: var(--rf-muted);
}

.quick-features__col li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rf-border);
  font-size: 0.9375rem;
}

/* ── Sections ── */
.section-block { padding: 3.5rem 0; }
.section-block--muted { background: var(--rf-surface-muted); }

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-head p { color: var(--rf-muted); }

.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--rf-surface-muted), var(--rf-surface));
  border-bottom: 1px solid var(--rf-border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero p { color: var(--rf-muted); max-width: 42rem; margin-inline: auto; }

.page-hero__sub { margin-top: 0.75rem; font-size: 0.9375rem; }

.feature-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-panel {
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--rf-surface);
}

.feature-panel h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.feature-panel p { color: var(--rf-muted); font-size: 0.9375rem; }

.platforms-band {
  padding: 3rem 0;
  background: var(--rf-surface-muted);
  border-block: 1px solid var(--rf-border);
  text-align: center;
}

.platforms-band h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }

.platforms-band p {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  color: var(--rf-muted);
}

.platforms-band__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.platforms-band__chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rf-border);
  border-radius: 999px;
  background: var(--rf-surface);
  color: var(--rf-text);
  font-weight: 500;
  text-decoration: none;
}

.platforms-band__chip:hover {
  border-color: var(--rf-orange);
  color: var(--rf-orange);
  text-decoration: none;
}

.stats-strip {
  padding: 2.5rem 0;
  border-block: 1px solid var(--rf-border);
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats-strip strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rf-orange);
}

.stats-strip span { font-size: 0.8125rem; color: var(--rf-muted); }

.signup-band {
  padding: 3.5rem 0;
  text-align: center;
  background: #222;
  color: #fff;
}

.signup-band h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }

.signup-band p { opacity: 0.9; max-width: 36rem; margin-inline: auto; }

.signup-band .btn { margin-top: 1.25rem; }

.signup-band__fine {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* ── Customer logos (legacy homepage carousel) ── */
.customer-logos {
  padding: 3.5rem 0;
  background: rgba(218, 218, 218, 0.18);
  border-block: 1px inset rgba(0, 0, 0, 0.1);
}

html.dark .customer-logos {
  background: rgba(255, 255, 255, 0.04);
  border-block-color: var(--rf-border);
}

.customer-logos__title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

.customer-logos__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.customer-logos__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0.5rem 0;
  animation: customer-logos-scroll 45s linear infinite;
}

.customer-logos__track:hover {
  animation-play-state: paused;
}

.customer-logos__card {
  flex: 0 0 300px;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.12);
}

html.dark .customer-logos__card {
  background: var(--rf-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.customer-logos__card img {
  width: min(250px, 80%);
  height: auto;
  max-height: 250px;
  object-fit: contain;
}

@keyframes customer-logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .customer-logos__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1rem;
  }

  .customer-logos__viewport {
    mask-image: none;
    overflow: visible;
  }
}

/* ── Pricing ── */
.pricing-section { padding: 2rem 0 3rem; }

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--rf-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 0.5rem;
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.billing-toggle__btn {
  border: none;
  background: var(--rf-surface);
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--rf-muted);
}

.billing-toggle__btn.is-active {
  background: var(--rf-orange);
  color: #fff;
}

.billing-toggle__hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--rf-muted);
  margin-bottom: 2rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.plan-card {
  border: 1px solid var(--rf-border);
  border-radius: 6px;
  padding: 1.5rem;
  background: var(--rf-surface);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.plan-card--featured {
  border-color: var(--rf-orange);
  box-shadow: 0 4px 16px rgba(230, 82, 8, 0.15);
  transform: scale(1.02);
}

.plan-card__badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rf-orange);
  margin-bottom: 0.5rem;
}

.plan-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.plan-card__price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.plan-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--rf-muted);
}

.plan-card__tagline {
  font-size: 0.875rem;
  color: var(--rf-muted);
  min-height: 3rem;
  margin-bottom: 1rem;
}

.plan-card__list {
  list-style: none;
  text-align: left;
  margin-bottom: 1.25rem;
  flex: 1;
}

.plan-card__list li {
  font-size: 0.875rem;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  color: var(--rf-muted);
}

.plan-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rf-orange);
  font-weight: 700;
}

.plan-card__details {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.pricing-notes {
  padding: 0 0 2rem;
  text-align: center;
  color: var(--rf-muted);
  font-size: 0.9375rem;
}

/* ── Compare table ── */
.compare-section {
  padding: 2rem 0 3.5rem;
  background: var(--rf-surface-muted);
}

.compare-section__title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  background: var(--rf-surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rf-border);
  font-size: 0.875rem;
  text-align: center;
}

.compare-table th[scope='row'] {
  text-align: left;
  font-weight: 500;
  color: var(--rf-text);
}

.compare-table thead th {
  background: var(--rf-surface-muted);
  font-weight: 700;
}

.compare-table td[data-kind='yes'] {
  color: #188038;
  font-weight: 700;
}

html.dark .compare-table td[data-kind='yes'] {
  color: #81c995;
}

.compare-table td[data-kind='no'] {
  color: var(--rf-muted);
  opacity: 0.65;
}

/* ── Features page ── */
.entry-groups {
  display: grid;
  gap: 1rem;
}

.entry-group {
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--rf-surface);
}

.entry-group h3 { margin-bottom: 0.35rem; }

.entry-group p { color: var(--rf-muted); font-size: 0.9375rem; }

.feature-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-split h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.feature-split ul {
  padding-left: 1.125rem;
  color: var(--rf-muted);
  font-size: 0.9375rem;
}

.feature-split li { margin-bottom: 0.35rem; }

/* ── Prose / forms ── */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.prose p, .prose li { color: var(--rf-muted); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }

.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.35rem; }
input, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rf-border);
  border-radius: 4px;
  font: inherit;
  background: var(--rf-input-bg);
  color: var(--rf-text);
}

input::placeholder,
textarea::placeholder {
  color: var(--rf-muted);
}

textarea { min-height: 120px; resize: vertical; }

.contact-form { max-width: 560px; margin-inline: auto; }

/* ── Footer ── */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.site-footer__tagline {
  font-size: 0.8125rem;
  max-width: 260px;
  line-height: 1.5;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
}

.site-footer__links a { color: #ccc; text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #888;
}

/* ── Theme toggle (footer) ── */
.theme-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.theme-footer__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.theme-toggle {
  display: inline-flex;
  border: 1px solid #444;
  border-radius: 999px;
  overflow: hidden;
}

.theme-btn {
  border: none;
  background: transparent;
  color: #ccc;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.theme-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.theme-btn.active {
  background: var(--rf-orange);
  color: #fff;
}

.theme-btn.active:hover {
  background: var(--rf-orange-dark);
  color: #fff;
}

/* ── Competitor compare ── */
.competitor-compare__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.competitor-compare__card,
.competitor-compare__aside {
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--rf-surface);
}

.competitor-compare__card h3,
.competitor-compare__aside h3 {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.competitor-compare__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
}

.competitor-compare__list li,
.competitor-compare__aside ul li {
  font-size: 0.9375rem;
  color: var(--rf-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.competitor-compare__check,
.essentials-grid__check {
  color: var(--rf-orange);
  font-weight: 700;
  flex-shrink: 0;
}

.competitor-compare__note {
  font-size: 0.75rem;
  color: var(--rf-muted);
  margin-left: 0.25rem;
}

.competitor-compare__aside ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.competitor-compare__footnote {
  font-size: 0.875rem;
  color: var(--rf-muted);
  line-height: 1.5;
}

.essentials-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.625rem 1.25rem;
}

.essentials-grid li {
  font-size: 0.9375rem;
  color: var(--rf-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .quick-features__grid,
  .plan-grid,
  .feature-split,
  .stats-strip__grid {
    grid-template-columns: 1fr;
  }

  .plan-card--featured { transform: none; }

  .competitor-compare__grid {
    grid-template-columns: 1fr;
  }

  .site-nav a.site-nav__cta {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 600px) {
  .hero-banner__media img { min-height: 320px; }
  .site-nav { font-size: 0.8125rem; }
  .site-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
