/* ===== Frly marketing redesign (home + how-it-works) =====
   All selectors are rd- prefixed so they never collide with marketing.css
   or affect the freelancer / privacy / taxleopard pages. */

.rd {
  --rd-cream-card: #fbf8f2;
  --rd-border:     rgba(26, 58, 42, 0.10);
  --rd-shadow-sm:  0 1px 4px rgba(26, 58, 42, 0.07);
  --rd-shadow-md:  0 4px 18px rgba(26, 58, 42, 0.09);
  --rd-mono:       "DM Mono", monospace;
  --rd-serif:      "DM Serif Display", serif;
}

.rd-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.rd-center { text-align: center; }
.rd-measure { max-width: 780px; }
.rd-mt0 { margin-top: 0 !important; }
.rd-mt-sm { margin-top: 18px; }

/* ---------- Buttons ---------- */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: "DM Sans", sans-serif; font-weight: 500; font-size: 1rem;
  border-radius: 8px; padding: 11px 22px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .14s ease, transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.rd-btn-primary { background: var(--green-deep); color: var(--green-acid); }
.rd-btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: var(--rd-shadow-md); }
.rd-btn-acid { background: var(--green-acid); color: var(--green-deep); }
.rd-btn-acid:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -6px rgba(184, 240, 74, .5); }
.rd-btn-ghost { background: var(--white); color: var(--green-deep); border-color: rgba(26, 58, 42, .15); }
.rd-btn-ghost:hover { background: var(--cream); border-color: rgba(26, 58, 42, .30); box-shadow: var(--rd-shadow-sm); }
.rd-btn-lg { padding: 15px 28px; font-size: 1.06rem; border-radius: 10px; }
.rd-btn-block { width: 100%; }

/* ---------- Eyebrow ---------- */
.rd-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--rd-mono);
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.rd-eyebrow-center { justify-content: center; }
.rd-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-acid); box-shadow: 0 0 0 4px rgba(184, 240, 74, .25); }

/* ---------- Headings ---------- */
.rd-h1 {
  font-family: var(--rd-serif); font-weight: 400;
  font-size: clamp(3rem, 6vw, 5rem); line-height: .98; letter-spacing: -0.02em;
  color: var(--green-deep); margin: 22px 0 0;
}
.rd-h1 em { font-style: italic; color: var(--green-mid); }
.rd-h2 {
  font-family: var(--rd-serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.05; letter-spacing: -0.015em; color: var(--green-deep); margin-top: 16px;
}
.rd-h2-sm { font-size: 2.6rem; }
.rd-h2 em { font-style: italic; color: var(--green-mid); }

/* ---------- Hero ---------- */
.rd-hero { padding: 40px 0 90px; }
.rd-hero-narrow { padding: 40px 0 30px; }
.rd-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.rd-sub { font-size: 1.28rem; line-height: 1.5; color: var(--text-muted); max-width: 30ch; margin: 24px 0 0; font-weight: 300; }
.rd-sub-center { max-width: 54ch; margin: 24px auto 0; }
.rd-cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.rd-cta-center { justify-content: center; }
.rd-trust-row { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.rd-trust-item { display: flex; align-items: center; gap: 9px; font-size: .96rem; color: var(--text-muted); }
.rd-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green-acid); display: grid; place-items: center; color: var(--green-deep); font-size: 12px; font-weight: 700; flex: none; }

/* ---------- Phone frame ---------- */
.rd-phone-stage { position: relative; display: grid; place-items: center; }
.rd-blob { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(184, 240, 74, .55), rgba(184, 240, 74, 0) 62%); filter: blur(8px); z-index: 0; }
.rd-blob-sm { width: 360px; height: 360px; }
.rd-phone { position: relative; z-index: 1; width: 290px; border-radius: 44px; background: #0e1f16; padding: 11px; box-shadow: 0 40px 80px -30px rgba(26, 58, 42, .6), 0 0 0 1px rgba(0, 0, 0, .04); }
.rd-phone::after { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 104px; height: 22px; background: #0e1f16; border-radius: 0 0 14px 14px; z-index: 3; }
.rd-phone img { display: block; width: 100%; border-radius: 34px; }
.rd-phone-sm { width: 248px; }

.rd-float-card { position: absolute; z-index: 4; background: var(--white); border-radius: 18px; padding: 14px 18px; box-shadow: 0 22px 45px -18px rgba(26, 58, 42, .45); display: flex; align-items: center; gap: 12px; }
.rd-float-tl { top: 36px; left: -6px; }
.rd-float-br { bottom: 54px; right: -14px; }
.rd-fc-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--green-acid); display: grid; place-items: center; font-size: 18px; }
.rd-fc-big { font-family: var(--rd-serif); font-size: 1.25rem; line-height: 1; }
.rd-fc-small { font-family: var(--rd-mono); font-size: .68rem; color: var(--text-muted); letter-spacing: .02em; text-transform: uppercase; }

/* ---------- Stat band ---------- */
.rd-band { background: var(--green-deep); color: var(--cream); }
.rd-band-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 46px 0; }
.rd-stat { text-align: center; }
.rd-stat-n { font-family: var(--rd-serif); font-size: 2.7rem; line-height: 1; color: var(--green-acid); }
.rd-stat-l { margin-top: 8px; font-size: .95rem; color: rgba(245, 240, 232, .72); }

/* ---------- Sections ---------- */
.rd-section { padding: 96px 0; }
.rd-section-flush { padding-top: 0; }
.rd-section-tight { padding: 60px 0; }
.rd-head { max-width: 620px; }
.rd-head-center { margin: 0 auto; text-align: center; }
.rd-lead { font-size: 1.18rem; color: var(--text-muted); margin-top: 18px; line-height: 1.55; }

/* ---------- Showcase ---------- */
.rd-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 64px; }
.rd-show-card { text-align: center; }
.rd-show-card .rd-phone { margin: 0 auto; }
.rd-show-title { font-family: var(--rd-serif); font-weight: 400; font-size: 1.5rem; margin: 22px 0 8px; color: var(--green-deep); }
.rd-show-body { color: var(--text-muted); font-size: 1.02rem; line-height: 1.5; max-width: 32ch; margin: 0 auto; }

/* ---------- Feature split ---------- */
.rd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.rd-split-rev .rd-split-media { order: 2; }
.rd-feat-list { margin-top: 26px; display: grid; gap: 18px; }
.rd-feat { display: flex; gap: 14px; align-items: flex-start; }
.rd-feat .rd-tick { margin-top: 3px; }
.rd-feat b { font-weight: 600; display: block; font-size: 1.08rem; color: var(--green-deep); }
.rd-feat span { color: var(--text-muted); }

/* ---------- Value cards ---------- */
.rd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.rd-card { background: var(--white); border: 1px solid var(--rd-border); border-radius: 18px; box-shadow: var(--rd-shadow-sm); padding: 30px; transition: box-shadow .15s ease, transform .15s ease; }
.rd-card:hover { box-shadow: var(--rd-shadow-md); transform: translateY(-2px); }
.rd-ci { width: 52px; height: 52px; border-radius: 15px; background: var(--green-deep); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.rd-card-title { font-family: var(--rd-serif); font-weight: 400; font-size: 1.42rem; margin-bottom: 8px; color: var(--green-deep); }
.rd-card p { color: var(--text-muted); line-height: 1.55; }

/* ---------- Pricing ---------- */
.rd-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; justify-content: center; margin-top: 56px; }
.rd-price-tile { background: var(--white); border: 1px solid var(--rd-border); border-radius: 18px; box-shadow: var(--rd-shadow-sm); padding: 34px; position: relative; display: flex; flex-direction: column; }
.rd-price-tile .rd-btn { margin-top: auto; }
.rd-featured { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.rd-featured .rd-pt-name, .rd-featured .rd-pt-period { color: rgba(245, 240, 232, .8); }
.rd-pt-name { font-family: var(--rd-mono); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.rd-pt-amount { font-family: var(--rd-serif); font-size: 3.4rem; line-height: 1; margin: 14px 0 4px; color: var(--green-deep); }
.rd-featured .rd-pt-amount { color: var(--green-acid); }
.rd-pt-period { color: var(--text-muted); font-size: .98rem; }
.rd-featured .rd-pt-period { color: rgba(245, 240, 232, .7); }
.rd-pt-points { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; }
.rd-pt-points li { display: flex; gap: 10px; align-items: flex-start; }
.rd-pt-points li::before { content: "✓"; color: var(--green-mid); font-weight: 700; }
.rd-featured .rd-pt-points li::before { color: var(--green-acid); }
.rd-pt-badge { position: absolute; top: 22px; right: 22px; background: var(--green-acid); color: var(--green-deep); font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.rd-pt-save { margin-top: 8px; margin-bottom: 18px; font-size: .9rem; color: var(--green-acid); }
.rd-pricing-foot { text-align: center; color: var(--text-muted); font-size: 1rem; margin: 28px auto 0; max-width: 52ch; }

/* ---------- FAQ ---------- */
.rd-faq { max-width: 760px; margin: 56px auto 0; }
.rd-faq-item { border-top: 1px solid var(--cream-dark); padding: 24px 0; }
.rd-faq-item:last-child { border-bottom: 1px solid var(--cream-dark); }
.rd-faq-q { font-weight: 600; font-size: 1.12rem; color: var(--green-deep); }
.rd-faq-a { color: var(--text-muted); line-height: 1.6; margin-top: 12px; max-width: 64ch; }

/* ---------- Steps (how it works) ---------- */
.rd-steps { display: grid; margin-top: 60px; }
.rd-hstep { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 38px 0; border-top: 1px solid var(--cream-dark); align-items: start; }
.rd-hstep:last-child { border-bottom: 1px solid var(--cream-dark); }
.rd-hstep-num { width: 56px; height: 56px; border-radius: 50%; background: var(--green-deep); color: var(--green-acid); font-family: var(--rd-serif); font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.rd-hstep-title { font-family: var(--rd-serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 10px; color: var(--green-deep); }
.rd-hstep-body { color: var(--text-muted); line-height: 1.6; max-width: 60ch; font-size: 1.06rem; }
.rd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rd-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--cream-dark); border-radius: 999px; padding: 7px 14px; font-size: .88rem; }
.rd-pd { width: 6px; height: 6px; border-radius: 50%; background: var(--green-acid); }

/* ---------- Every-device band ---------- */
.rd-device-band { background: var(--rd-cream-card); border: 1px solid var(--rd-border); border-radius: 24px; padding: 64px 56px; overflow: hidden; }
.rd-device-stage { position: relative; display: grid; grid-template-columns: 1.5fr .75fr; align-items: end; margin-top: 44px; }
.rd-browser { border-radius: 16px; background: #fff; border: 1px solid var(--cream-dark); box-shadow: 0 36px 70px -28px rgba(26, 58, 42, .4); overflow: hidden; }
.rd-browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--cream-dark); }
.rd-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4cfc4; display: inline-block; }
.rd-url { font-family: var(--rd-mono); margin-left: 14px; flex: 1; background: #fff; border: 1px solid var(--cream-dark); border-radius: 999px; font-size: .78rem; color: var(--text-muted); padding: 6px 14px; }
.rd-browser img { display: block; width: 100%; }
.rd-device-stage .rd-phone { width: 230px; margin-left: -70px; margin-bottom: -10px; position: relative; z-index: 2; }

/* ---------- Final CTA ---------- */
.rd-cta-band { background: var(--green-deep); border-radius: 24px; padding: 80px 40px; text-align: center; color: var(--cream); position: relative; overflow: hidden; }
.rd-cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -180px; right: -120px; background: radial-gradient(circle, rgba(184, 240, 74, .22), transparent 60%); }
.rd-cta-title { font-family: var(--rd-serif); font-weight: 400; font-size: clamp(2.3rem, 4.5vw, 3.4rem); position: relative; color: var(--cream); }
.rd-cta-title em { font-style: italic; color: var(--green-acid); }
.rd-cta-sub { color: rgba(245, 240, 232, .78); font-size: 1.2rem; margin: 18px auto 0; max-width: 46ch; position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rd-hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .rd-sub { max-width: none; }
  .rd-split, .rd-split-rev .rd-split-media { grid-template-columns: 1fr; }
  .rd-split-rev .rd-split-media { order: 0; }
  .rd-split { gap: 40px; }
  .rd-showcase { grid-template-columns: 1fr; gap: 56px; max-width: 360px; margin-left: auto; margin-right: auto; }
  .rd-cards { grid-template-columns: 1fr 1fr; }
  .rd-band-inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .rd-device-stage { grid-template-columns: 1fr; justify-items: center; }
  .rd-device-stage .rd-phone { margin: -90px 0 0; }
}

@media (max-width: 640px) {
  .rd-container { padding: 0 20px; }
  .rd-hero { padding: 18px 0 56px; }
  .rd-h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .rd-sub { font-size: 1.12rem; }
  .rd-cta-row { flex-direction: column; gap: 10px; }
  .rd-cta-row .rd-btn { width: 100%; }
  .rd-btn-lg { padding: 13px 22px; font-size: 1rem; }
  .rd-trust-row { gap: 12px; margin-top: 22px; }
  .rd-trust-item { font-size: .9rem; }
  .rd-phone { width: 250px; }
  .rd-float-card { padding: 10px 13px; }
  .rd-fc-big { font-size: 1.05rem; }
  .rd-section { padding: 60px 0; }
  .rd-section-tight { padding: 40px 0; }
  .rd-h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .rd-h2-sm { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .rd-lead { font-size: 1.06rem; }
  .rd-band-inner { grid-template-columns: 1fr 1fr; gap: 30px 18px; padding: 36px 0; }
  .rd-stat-n { font-size: 2.1rem; }
  .rd-cards { grid-template-columns: 1fr; }
  .rd-pricing { grid-template-columns: 1fr; }
  .rd-hstep { grid-template-columns: 1fr; gap: 6px; }
  .rd-hstep-num { font-size: 2.6rem; width: 52px; height: 52px; }
  .rd-device-band { padding: 40px 22px; border-radius: 28px; }
  .rd-device-stage .rd-phone { width: 180px; margin-top: -70px; }
  .rd-cta-band { padding: 56px 24px; border-radius: 28px; }
}
