/* ============================================================
   how-it-works.css - Oravio How It Works Page
   ============================================================ */

:root {
  --hiw-brand:       #5f43d0;
  --hiw-brand-dark:  #4830b8;
  --hiw-brand-light: #ede9ff;
  --hiw-text-dark:   #1a0e4a;
  --hiw-text-mid:    #4b4568;
  --hiw-text-soft:   #7b74a0;
  --hiw-bg-white:    #ffffff;
  --hiw-bg-light:    #faf9ff;
  --hiw-border:      #e8e4f8;
  --hiw-radius:      20px;
  --hiw-section-py:  96px;
  --hiw-inner-max:   1140px;
}

/* ── Inner container ───────────────────────────────────── */
.hiw-hero__inner,
.hiw-steps__inner,
.hiw-timeline__inner,
.hiw-who__inner,
.hiw-faq__inner {
  max-width: var(--hiw-inner-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── Pill ──────────────────────────────────────────────── */
.hiw-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hiw-brand);
  background: var(--hiw-brand-light);
  border: 1.5px solid #d4c9ff;
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.hiw-pill--center {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ───────────────────────────────────────────── */
.hiw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hiw-brand);
  color: #fff;
  font-family: 'PlusJakartaSans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  padding: 15px 36px;
  box-shadow: 0 4px 20px rgba(95,67,208,0.4);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  white-space: nowrap;
}
.hiw-btn-primary:hover {
  background: var(--hiw-brand-dark);
  box-shadow: 0 6px 28px rgba(95,67,208,0.52);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.hiw-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--hiw-brand);
  font-family: 'PlusJakartaSans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  padding: 14px 32px;
  border: 2px solid var(--hiw-brand);
  transition: background 0.18s;
  white-space: nowrap;
}
.hiw-btn-ghost:hover {
  background: var(--hiw-brand-light);
  text-decoration: none;
  color: var(--hiw-brand);
}

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.hiw-hero {
  background: linear-gradient(155deg, #fbfaff 0%, #fff 45%, #f0edff 100%);
  padding: 100px 24px 80px;
  text-align: center;
}

.hiw-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw-hero__h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--hiw-text-dark);
  line-height: 1.18;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hiw-hero__accent {
  background: linear-gradient(90deg, #5f43d0 0%, #9b77ff 60%, #5f43d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hiw-hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--hiw-text-mid);
  max-width: 600px;
  line-height: 1.7;
  margin: 0 0 36px;
}

.hiw-hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.hiw-hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.hiw-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hiw-text-mid);
}

/* ════════════════════════════════════════════════════════
   STEPS
════════════════════════════════════════════════════════ */
.hiw-steps {
  background: var(--hiw-bg-white);
  padding: var(--hiw-section-py) 0;
}

.hiw-steps__header {
  text-align: center;
  margin-bottom: 72px;
}

.hiw-steps__h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--hiw-text-dark);
  margin: 0 0 14px;
  line-height: 1.2;
}

.hiw-steps__sub {
  font-size: 1.0625rem;
  color: var(--hiw-text-mid);
  margin: 0;
  line-height: 1.65;
}

.hiw-steps__track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual step */
.hiw-step {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.hiw-step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
  padding-top: 4px;
}

.hiw-step__num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.hiw-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hiw-brand);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(95,67,208,0.35);
  position: relative;
  z-index: 1;
}

.hiw-step__line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(180deg, #d4c9ff 0%, #ede9ff 100%);
  margin: 8px 0;
}

.hiw-step__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 0 64px 32px;
  align-items: start;
}

.hiw-step__icon {
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
  align-self: start;
}

.hiw-step__content {
  grid-column: 1;
  grid-row: 2;
}

.hiw-step__visual {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

/* Actually let's use a simpler layout */
.hiw-step__body {
  display: flex;
  gap: 48px;
  padding: 0 0 72px 32px;
  align-items: center;
}

.hiw-step__icon {
  display: none; /* shown inline in content on mobile; hidden in body on desktop */
}

.hiw-step__content {
  flex: 1;
}

.hiw-step__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--hiw-text-dark);
  margin: 0 0 12px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hiw-step__title::before {
  content: attr(data-icon);
}

.hiw-step__desc {
  font-size: 1rem;
  color: var(--hiw-text-mid);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 460px;
}

.hiw-step__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hiw-step__points li {
  font-size: 0.9rem;
  color: var(--hiw-text-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.hiw-step__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hiw-brand);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Step icon colours */
.hiw-step__icon--purple { background: #ede9ff; color: #5f43d0; }
.hiw-step__icon--blue   { background: #eff6ff; color: #2563eb; }
.hiw-step__icon--green  { background: #f0fdf4; color: #16a34a; }
.hiw-step__icon--orange { background: #fff7ed; color: #ea580c; }

/* ── Visual mock cards ─────────────────────────────────── */
.hiw-step__visual {
  flex: 0 0 320px;
  max-width: 320px;
}

.hiw-step__visual--card {
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.hiw-step__visual--purple { background: linear-gradient(135deg, #f3f0ff, #ede9ff); }
.hiw-step__visual--blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.hiw-step__visual--orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); }

/* Connect mock */
.hiw-mock-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.hiw-mock-connect__icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(145deg, #075e54, #25D366);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.hiw-mock-connect__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hiw-text-dark);
  margin: 0;
}

.hiw-mock-connect__badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 100px;
  padding: 4px 14px;
}

/* Upload mock */
.hiw-mock-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiw-mock-upload__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hiw-mock-upload__file {
  font-size: 0.84rem;
  color: var(--hiw-text-mid);
  font-weight: 500;
}

.hiw-mock-upload__done {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.9rem;
}

.hiw-mock-upload__status {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  text-align: center;
  margin: 4px 0 0;
}

/* Chat mock */
.hiw-step__visual--chat {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  background: #ece5dd;
}

.hiw-mock-chat {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiw-mock-chat__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.hiw-mock-chat__bubble--in {
  background: #fff;
  color: #1a1a1a;
  align-self: flex-start;
  border-radius: 0 12px 12px 12px;
}

.hiw-mock-chat__bubble--out {
  background: #dcf8c6;
  color: #1a1a1a;
  align-self: flex-end;
  border-radius: 12px 0 12px 12px;
}

.hiw-mock-chat__tag {
  font-size: 0.72rem;
  color: #666;
  text-align: right;
  font-style: italic;
}

/* Stats mock */
.hiw-mock-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hiw-mock-stats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hiw-mock-stats__label {
  font-size: 0.82rem;
  color: var(--hiw-text-mid);
}

.hiw-mock-stats__val {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--hiw-text-dark);
}

.hiw-mock-stats__val--green {
  color: #16a34a;
}

/* ════════════════════════════════════════════════════════
   TIMELINE
════════════════════════════════════════════════════════ */
.hiw-timeline {
  background: var(--hiw-bg-light);
  padding: var(--hiw-section-py) 0;
  text-align: center;
}

.hiw-timeline__h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--hiw-text-dark);
  margin: 0 0 56px;
  line-height: 1.25;
}

.hiw-tl-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hiw-tl-item {
  flex: 1;
  padding: 28px 24px;
  background: var(--hiw-bg-white);
  border: 1.5px solid var(--hiw-border);
  border-radius: 16px;
  text-align: left;
}

.hiw-tl-item--highlight {
  background: var(--hiw-brand);
  border-color: var(--hiw-brand);
}

.hiw-tl-item--highlight .hiw-tl-time,
.hiw-tl-item--highlight .hiw-tl-title,
.hiw-tl-item--highlight .hiw-tl-desc {
  color: #fff;
}

.hiw-tl-item--highlight .hiw-tl-time {
  color: rgba(255,255,255,0.7);
}

.hiw-tl-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #c4b5f8;
  padding: 0 12px;
  padding-top: 28px;
  flex-shrink: 0;
}

.hiw-tl-time {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hiw-brand);
  margin-bottom: 8px;
}

.hiw-tl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hiw-text-dark);
  margin: 0 0 8px;
}

.hiw-tl-desc {
  font-size: 0.875rem;
  color: var(--hiw-text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════════════════
   WHO IS IT FOR
════════════════════════════════════════════════════════ */
.hiw-who {
  background: var(--hiw-bg-white);
  padding: var(--hiw-section-py) 0;
  text-align: center;
}

.hiw-who__h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--hiw-text-dark);
  margin: 0 0 52px;
  line-height: 1.2;
}

.hiw-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.hiw-who-card {
  background: var(--hiw-bg-light);
  border: 1.5px solid var(--hiw-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hiw-who-card:hover {
  border-color: #c4b5f8;
  box-shadow: 0 8px 24px rgba(95,67,208,0.1);
  transform: translateY(-3px);
}

.hiw-who-icon { font-size: 2rem; line-height: 1; }

.hiw-who-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hiw-text-dark);
  margin: 0;
}

.hiw-who-desc {
  font-size: 0.875rem;
  color: var(--hiw-text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════════════ */
.hiw-faq {
  background: var(--hiw-bg-light);
  padding: var(--hiw-section-py) 0;
  text-align: center;
}

.hiw-faq__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hiw-faq__h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--hiw-text-dark);
  margin: 0 0 48px;
}

.hiw-faq-list {
  width: 100%;
  max-width: 760px;
}

.hiw-faq-item {
  border-bottom: 1.5px solid var(--hiw-border);
}

.hiw-faq-item:first-child { border-top: 1.5px solid var(--hiw-border); }

.hiw-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hiw-text-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s;
  text-align: left;
}

.hiw-faq-q::-webkit-details-marker { display: none; }
.hiw-faq-q::marker { display: none; }

.hiw-faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--hiw-brand);
  flex-shrink: 0;
  line-height: 1;
}

.hiw-faq-item[open] > .hiw-faq-q { color: var(--hiw-brand); }
.hiw-faq-item[open] > .hiw-faq-q::after { content: '-'; }

.hiw-faq-a {
  font-size: 0.9375rem;
  color: var(--hiw-text-mid);
  line-height: 1.7;
  margin: 0 0 20px;
  padding: 0 4px;
  text-align: left;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE - tablet
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hiw-step__body { gap: 32px; }
  .hiw-step__visual { flex: 0 0 260px; max-width: 260px; }
  .hiw-tl-grid { gap: 0; }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE - mobile
════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root { --hiw-section-py: 60px; }

  /* Hero */
  .hiw-hero { padding: 72px 20px 52px; }

  .hiw-hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hiw-btn-primary,
  .hiw-btn-ghost { width: 100%; text-align: center; }

  .hiw-hero__trust { gap: 14px; }

  /* Steps */
  .hiw-steps__header { margin-bottom: 44px; }

  .hiw-step__left { width: 40px; }

  .hiw-step__num {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .hiw-step__body {
    flex-direction: column;
    padding: 0 0 48px 20px;
    gap: 20px;
  }

  .hiw-step__visual {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .hiw-step__title { font-size: 1.125rem; }
  .hiw-step__desc  { font-size: 0.9375rem; max-width: 100%; }

  /* Timeline - vertical stack */
  .hiw-tl-grid {
    flex-direction: column;
    gap: 12px;
  }

  .hiw-tl-arrow {
    transform: rotate(90deg);
    padding: 0;
    align-self: center;
  }

  /* Who grid */
  .hiw-who-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .hiw-faq__inner { align-items: flex-start; text-align: left; }
  .hiw-faq__h2 { text-align: left; }
  .hiw-faq-list { max-width: 100%; }
}
