/* NOTE: the rw-* funnel layout below is SHARED by two landing pages —
   Respond (respond.abdulosama.com) and Flovo (abdulosama.com/flovoo).
   Partner-specific rules belong in flovo.css, not here; a change to an
   rw-* rule changes both funnels. */
/* =====================================================================
   Respond landing — section styles (rw-*). Builds on tokens.css vars and
   the souq hero (sq-hero); wizard styling comes from contact.css.
   ===================================================================== */

.rw-topbar {
  background: #171338;
  color: #cfd0ea;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  position: relative;
  z-index: 5;
}
.rw-topbar b { color: #fff; }

.rw-section { max-width: 1040px; margin: 0 auto; padding: 64px 20px 8px; }
.rw-section-tight { padding-top: 48px; }

.rw-h2 {
  font-family: var(--font-arabic-display);
  color: var(--fg-primary);
  font-size: clamp(24px, 3.6vw, 34px);
  text-align: center;
  margin: 0 0 12px;
}
.rw-lead {
  color: var(--fg-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 34px;
  line-height: 1.9;
  font-size: 16.5px;
}

/* Benefit cards */
.rw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.rw-card {
  background: #fff;
  border: 1px solid rgba(23, 19, 56, .08);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 1px 2px rgba(23, 19, 56, .04);
}
.rw-card-eyebrow {
  display: block;
  color: var(--abdul-salmon, #f5536a);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.rw-card h3 {
  font-family: var(--font-arabic-display);
  color: var(--fg-primary);
  font-size: 19.5px;
  margin: 0 0 8px;
}
.rw-card p { margin: 0; color: var(--fg-secondary); line-height: 1.85; }
.rw-card-ic { font-size: 26px; margin-bottom: 10px; }

/* Problem section — dark panel with icon cards instead of stacked prose */
.rw-problem {
  background: #171338;
  border-radius: 22px;
  padding: 42px 30px;
  color: #cfd0ea;
}
.rw-problem .rw-h2 { color: #fff; margin-bottom: 26px; }
.rw-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.rw-problem-item {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  padding: 20px 18px;
}
.rw-problem-ic { font-size: 24px; margin-bottom: 10px; }
.rw-problem-item p { margin: 0; line-height: 1.95; text-align: start; font-size: 15px; }
.rw-problem .rw-conclusion {
  color: #fff;
  font-weight: 700;
  font-size: 17.5px;
  margin: 26px auto 0;
  max-width: 760px;
  text-align: center;
  line-height: 1.9;
}

/* Onboarding checklist */
.rw-check { max-width: 640px; margin: 0 auto 22px; padding: 0; list-style: none; }
.rw-check li {
  position: relative;
  padding-inline-start: 34px;
  margin-bottom: 12px;
  color: var(--fg-primary);
  line-height: 1.8;
}
.rw-check li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--abdul-mint, #1fd896) 18%, #fff);
  color: #0b7a54;
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.rw-fine {
  color: var(--fg-tertiary);
  font-size: 14px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.9;
}
@media (min-width: 700px) {
  .rw-check {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
    max-width: 860px;
  }
  .rw-check li { margin-bottom: 8px; }
}

/* Laptop mockup carousel — first image sets the height, the rest overlay
   and crossfade in/out. */
.rw-laptop {
  position: relative;
  max-width: 920px;
  margin: 10px auto 26px;
}
.rw-laptop img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity .9s ease;
}
.rw-laptop img:first-child { position: relative; }
.rw-laptop img:not(:first-child) {
  position: absolute;
  inset: 0;
}
.rw-laptop img.is-on { opacity: 1; }

/* Channels -> Respond.io -> tools flow diagram (pure-CSS animation).
   Pulses are stroke-dash segments sliding along the curves; costs the
   GPU almost nothing and stops under prefers-reduced-motion. */
.rw-flow {
  /* Abdul's brand gradient: purple sweeping through deep navy into blue */
  background: linear-gradient(100deg, #45164f 0%, #2a0f3d 20%, #12102f 45%, #141b55 70%, #1d3fa8 100%);
  border-radius: 22px;
  padding: 10px;
  max-width: 920px;
  margin: 28px auto 0;
}
.rwf-label {
  fill: rgba(255, 255, 255, .88);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}
.rwf-label-lg { font-size: 19px; }

/* One diagram per form factor: wide flow on desktop, tall reel on mobile.
   Selectors carry .rw-flow so they outrank the `.rw-flow svg` base rule. */
.rw-flow .rwf-v { display: none; }
@media (max-width: 700px) {
  .rw-flow .rwf-h { display: none; }
  .rw-flow .rwf-v { display: block; }
  .rw-flow { padding: 6px; border-radius: 18px; }
}
.rw-flow svg { display: block; width: 100%; height: auto; }
.rwf-line {
  fill: none;
  stroke: rgba(255, 255, 255, .13);
  stroke-width: 2;
}
.rwf-pulse {
  fill: none;
  stroke: #448AFF;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 26 460;
  stroke-dashoffset: 486;
  animation: rwf-travel 3.2s linear infinite;
}
@keyframes rwf-travel {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rwf-pulse { animation: none; opacity: 0; }
}

/* Channel chips (omnichannel section) */
.rw-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
}
.rw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(23, 19, 56, .1);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--fg-primary);
}
.rw-chip-more { background: transparent; border-style: dashed; color: var(--fg-tertiary); }

/* Omnichannel tagline */
.rw-tagline {
  font-family: var(--font-arabic-display);
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--fg-primary);
  margin: 26px 0 0;
}
/* AI card: animated purple-blue gradient ring (the "this is AI" cue).
   A conic gradient in the border-box rotates via the registered --rwai
   angle; browsers without @property show a static gradient ring. */
@property --rwai {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.rw-ai {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--rwai, 0deg), #448AFF, #a78bfa, #e879f9, #7c5cff, #448AFF) border-box;
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 760px;
  margin: 34px auto 0;
  box-shadow: 0 4px 26px rgba(124, 92, 255, .13);
  animation: rwai-spin 5s linear infinite;
}
@keyframes rwai-spin {
  to { --rwai: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .rw-ai { animation: none; }
}
.rw-ai h3 {
  font-family: var(--font-arabic-display);
  color: var(--fg-primary);
  font-size: 20px;
  margin: 0 0 10px;
  text-align: center;
}
.rw-ai p { color: var(--fg-secondary); line-height: 1.9; margin: 0 0 10px; text-align: center; }
.rw-ai p:last-child { margin-bottom: 0; }

/* Section CTA buttons */
.rw-cta-row { text-align: center; margin: 26px 0 8px; }
.rw-note-sm { color: var(--fg-tertiary); font-size: 13.5px; text-align: center; margin-top: 10px; }

/* Wizard card: contact.css gives .cw a -28px top margin to overlap the
   /contact hero; here the card sits below section text and was covering
   it — give it a clear gap instead. */
.rw-section .cw { margin-top: 20px; }

/* Hero partner logos, a visual break in the hero text mass. direction:ltr
   pins the order (WhatsApp left, G2 middle, respond.io right) on this RTL
   page; on mobile the row becomes a top-to-bottom stack in the same order. */
.rw-hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  gap: 30px;
  margin: 24px auto;
}
.rw-logo-wa  { height: 26px; }
.rw-logo-g2  { height: 78px; }
.rw-logo-rio { height: 28px; }
@media (max-width: 480px) {
  .rw-hero-logos { flex-direction: column; gap: 16px; }
  .rw-logo-wa  { height: 24px; }
  .rw-logo-g2  { height: 74px; }
  .rw-logo-rio { height: 26px; }
}

/* Experimental framed first fold (Abdul, "canvas" look): page background
   shows around the hero on top/left/right, matching rounded corners.
   Desktop only; phones stay full-bleed. Revert = drop .rw-hero-inset
   from the header in respond/index.blade.php. */
@media (min-width: 900px) {
  .rw-hero-inset {
    margin: 12px 12px 0;
    border-radius: 14px;   /* subtle curve — Abdul wanted it edgier */
    overflow: hidden;
  }
}

/* Relax the hero grid: the shared souq hero caps the title at 16ch and
   the sub at 52ch, which stacked our longer copy into 3-4 short lines.
   Give this page wider measures; mobile keeps its natural wrapping. */
.sq-hero-title { max-width: 24ch; }
/* Thmanyah swash descenders (the ح in "الصحيح") dip below the line box,
   and background-clip:text paints nothing outside it — the tail was cut.
   Inline padding extends the painted area without moving the layout. */
.sq-hero-title .accent { padding-bottom: .25em; }
@media (min-width: 900px) {
  .sq-hero-sub { max-width: 68ch; }
  .rw-hero-wizard .cw { max-width: 640px; }
}

/* Co-branded nav: Abdul's brand right, respond.io wordmark left. Sits a
   little inside the framed sky panel; smart-navbar states unchanged. */
.ao-nav {
  top: 16px !important;
  padding-inline: 40px !important;
}
.rw-nav-rio { display: inline-flex; align-items: center; }
.rw-nav-rio img { height: 24px; display: block; }
@media (max-width: 899px) {
  .ao-nav { top: 4px !important; padding-inline: 16px !important; }
  .rw-nav-rio img { height: 19px; }
}
/* Brand-only nav: there are no links, so the mobile burger would open an
   empty panel — hide it and the panel on this page. */
.ao-nav .nav-burger, .nav-mobile-panel { display: none !important; }

/* Survey card in the first fold: sits above the skyline band, no -28px
   hero-overlap lift (that's contact.css's /contact look), and resets the
   hero's centered text so the form reads normally in RTL. */
.rw-hero-wizard {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  text-align: right;
}
.rw-hero-wizard .cw { margin-top: 0; }

/* International phone input: dial-code picker (left) + LTR number */
.rw-phone-field { position: relative; }
.rw-phone { display: flex; gap: 8px; direction: ltr; }
.rw-phone input { flex: 1; min-width: 0; direction: ltr; text-align: left; }
.rw-cc {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(23, 19, 56, .14);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--fg-primary);
  cursor: pointer;
}
.rw-cc-flag { font-size: 18px; line-height: 1; }
.rw-cc-caret { font-size: 10px; color: var(--fg-tertiary); }
.rw-cc-menu {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 40;
  margin-top: 6px;
  background: #fff;
  color: var(--fg-primary, #171338);   /* the card sits in the hero, which sets white text */
  border: 1px solid rgba(23, 19, 56, .12);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(23, 19, 56, .16);
  padding: 10px;
}
.rw-cc-search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}
.rw-cc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}
.rw-cc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.rw-cc-item:hover { background: rgba(23, 19, 56, .05); }
.rw-cc-item .rw-cc-name { flex: 1; }
.rw-cc-item .rw-cc-code { color: var(--fg-tertiary); font-size: 13.5px; }

/* Hero fine print */
.rw-hero-fine {
  color: rgba(255, 255, 255, .55);
  font-size: 12.5px;
  max-width: 560px;
  margin: 14px auto 0;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .rw-section { padding-top: 48px; }
  .rw-problem { padding: 32px 20px; border-radius: 18px; }
}
