:root {
  --r-bg: #f4fbf8;
  --r-bg-2: #e8f7ff;
  --r-ink: #0b1f1c;
  --r-muted: #4b635e;
  --r-teal: #0d9488;
  --r-teal-deep: #0f766e;
  --r-amber: #f59e0b;
  --r-sky: #0ea5e9;
  --r-rose: #fb7185;
  --r-lime: #84cc16;
  --r-card: rgba(255, 255, 255, 0.82);
  --r-stroke: rgba(15, 118, 110, 0.14);
  --r-shadow: 0 18px 50px rgba(15, 118, 110, 0.12);
  --r-radius: 24px;
  --r-font: "Manrope", sans-serif;
  --r-display: "Syne", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.reachly-body {
  margin: 0;
  font-family: var(--r-font);
  color: var(--r-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #99f6e4 0%, transparent 55%),
    radial-gradient(900px 500px at 95% 5%, #fde68a 0%, transparent 45%),
    radial-gradient(800px 500px at 80% 90%, #bae6fd 0%, transparent 50%),
    linear-gradient(180deg, var(--r-bg), var(--r-bg-2));
  min-height: 100vh;
  line-height: 1.55;
}
.r-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
.r-main, .r-header, .r-footer { position: relative; z-index: 1; }
.r-container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
h1, h2, h3, .r-brand-text, .r-brand-kicker {
  font-family: var(--r-display);
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 12px; }
p { margin: 0 0 16px; }
.r-lede { font-size: 1.125rem; color: var(--r-muted); max-width: 36rem; }
.r-brand-kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--r-teal-deep);
  background: linear-gradient(90deg, #99f6e4, #fde68a);
  padding: 6px 12px;
  border-radius: 999px;
}
.r-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.r-brand-text { font-weight: 800; font-size: 1.25rem; }
.r-header { padding: 18px 0; }
.r-header-inner { display: flex; align-items: center; gap: 20px; }
.r-nav { display: flex; gap: 18px; margin-left: auto; }
.r-nav a { color: var(--r-muted); text-decoration: none; font-weight: 600; }
.r-nav a:hover { color: var(--r-teal-deep); }
.r-header-actions { display: flex; gap: 10px; align-items: center; }
.r-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
}
.r-nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 6px auto;
  background: var(--r-ink); transition: 0.2s ease;
}

.r-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid transparent; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.r-btn:hover { transform: translateY(-1px); }
.r-btn:active { transform: translateY(0) scale(0.98); }
.r-btn:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }
.r-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.r-btn-primary {
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}
.r-btn-secondary {
  background: #fff;
  border-color: var(--r-stroke);
  color: var(--r-ink);
}
.r-btn-ghost { background: transparent; color: var(--r-ink); }
.r-btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.05rem; }
.r-btn-block { width: 100%; }
.r-btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.9rem; }
.r-icon { width: 18px; height: 18px; }

.r-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  padding: 32px 0 64px;
  overflow: hidden;
}
.r-hero-glow {
  position: absolute;
  inset: 10% 5% auto auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
  filter: blur(10px);
  animation: r-glow 8s ease-in-out infinite alternate;
}
.r-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.r-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.r-hero-art { justify-self: center; width: min(100%, 560px); }
.r-illu { width: 100%; height: auto; display: block; }

.r-section { padding: 72px 0; }
.r-section-head { max-width: 40rem; margin-bottom: 32px; }
.r-feature-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.r-feature-tile, .r-feature-detail, .r-price-card, .r-panel, .r-story-panel {
  background: var(--r-card);
  border: 1px solid var(--r-stroke);
  border-radius: var(--r-radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--r-shadow);
}
.r-feature-tile { padding: 20px; }
.r-feature-tile h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.r-feature-tile p { color: var(--r-muted); margin: 0; font-size: 0.95rem; }
.r-feature-orb { width: 56px; height: 56px; }

.r-story-grid, .r-contact-wrap, .r-feature-detail-grid, .r-pricing-grid, .r-404-grid {
  display: grid; gap: 28px;
}
.r-story-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.r-checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.r-checklist li {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-weight: 600;
}
.r-checklist .r-icon { color: var(--r-teal); }
.r-story-panel { padding: 28px; }
.r-mini-flow { display: grid; gap: 14px; }
.r-flow-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(90deg, #ccfbf1, #e0f2fe);
  font-weight: 700;
}
.r-flow-step span {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0d9488; color: #fff;
}

.r-cta-band { padding-top: 24px; }
.r-cta-inner {
  text-align: center;
  padding: 48px 24px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(13,148,136,0.12), rgba(245,158,11,0.18)),
    #fff;
  border: 1px solid var(--r-stroke);
  box-shadow: var(--r-shadow);
}
.r-cta-inner .r-lede, .r-cta-inner p { margin-left: auto; margin-right: auto; }

.r-page-hero { padding: 56px 0 12px; }
.r-feature-detail-grid { grid-template-columns: 1fr; }
.r-feature-detail {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  padding: 24px; align-items: start;
}
.r-pricing-grid { grid-template-columns: repeat(3, 1fr); }
.r-price-card { padding: 28px; }
.r-price-card.is-featured {
  background: linear-gradient(180deg, #ecfeff, #fff7ed);
  transform: translateY(-8px);
  border-color: rgba(13,148,136,0.35);
}
.r-price { font-size: 1rem; color: var(--r-muted); }
.r-price span {
  font-family: var(--r-display);
  font-size: 2.6rem; color: var(--r-ink); font-weight: 800;
}
.r-price-card ul { padding-left: 18px; color: var(--r-muted); }
.r-price-card li { margin-bottom: 8px; }
.r-prose { max-width: 720px; color: var(--r-muted); font-size: 1.05rem; }
.r-contact-wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.r-form { display: grid; gap: 14px; }
.r-form label { display: grid; gap: 8px; font-weight: 600; }
.r-form input, .r-form textarea, .r-form select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--r-stroke);
  background: #fff; font: inherit; color: inherit;
}
.r-form textarea { min-height: 120px; resize: vertical; }
.r-form input:focus, .r-form textarea:focus, .r-form select:focus {
  outline: 3px solid #99f6e4; border-color: #0d9488;
}
.r-panel { padding: 24px; }
.r-form-status { margin: 0; font-weight: 600; }
.r-footer { padding: 64px 0 28px; margin-top: 24px; }
.r-footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px;
  padding-bottom: 32px; border-bottom: 1px solid var(--r-stroke);
}
.r-footer h3 { font-size: 0.95rem; margin-bottom: 12px; }
.r-footer a { display: block; color: var(--r-muted); text-decoration: none; margin-bottom: 8px; }
.r-footer a:hover { color: var(--r-teal-deep); }
.r-footer-brand p { color: var(--r-muted); max-width: 28rem; }
.r-footer-bottom { padding-top: 18px; color: var(--r-muted); font-size: 0.92rem; }
.r-404 { padding: 64px 0 96px; }
.r-404-grid { grid-template-columns: 1fr 1fr; align-items: center; }

/* Motion */
.r-float-a { animation: r-float 5s ease-in-out infinite; transform-origin: center; }
.r-float-b { animation: r-float 6.5s ease-in-out infinite reverse; }
.r-float-c { animation: r-float 4.5s ease-in-out infinite 0.4s; }
.r-card-float { animation: r-bob 7s ease-in-out infinite; }
.r-pulse { animation: r-pulse 2.4s ease-in-out infinite; }
.r-orbit { animation: r-orbit 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.r-draw {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: r-draw 3.2s ease forwards infinite alternate;
}

@keyframes r-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes r-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
}
@keyframes r-pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes r-orbit {
  from { transform: rotate(0deg) translateX(2px); }
  to { transform: rotate(360deg) translateX(2px); }
}
@keyframes r-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes r-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to { transform: translate(-30px, 20px) scale(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .r-hero-grid, .r-story-grid, .r-contact-wrap, .r-404-grid, .r-pricing-grid, .r-footer-grid {
    grid-template-columns: 1fr;
  }
  .r-feature-rail { grid-template-columns: 1fr 1fr; }
  .r-price-card.is-featured { transform: none; }
  .r-nav-toggle { display: inline-block; margin-left: auto; }
  .r-nav, .r-header-actions {
    display: none;
    position: absolute; left: 16px; right: 16px; top: 72px;
    background: #fff; border: 1px solid var(--r-stroke); border-radius: 18px;
    padding: 16px; box-shadow: var(--r-shadow); flex-direction: column;
  }
  body.nav-open .r-nav, body.nav-open .r-header-actions { display: flex; }
  .r-header { position: relative; }
  .r-hero { min-height: auto; padding-top: 24px; }
}
@media (max-width: 640px) {
  .r-feature-rail { grid-template-columns: 1fr; }
}
