/* ═══════════════════════════════════════════════
   DUFI — Design System v3
   Fonts: Syne (headings) + DM Sans (body)
   ═══════════════════════════════════════════════ */

:root {
  --green:       #1d8a45;
  --green-dark:  #0f5e2e;
  --green-light: #e8f5ee;
  --orange:      #f97316;
  --orange-dark: #c2530a;
  --orange-bg:   #fff4ed;
  --cream:       #faf6f0;
  --cream-dark:  #f0e8d8;
  --ink:         #0d1a12;
  --ink-60:      rgba(13,26,18,.6);
  --ink-20:      rgba(13,26,18,.1);
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(13,26,18,.07);
  --shadow-md:   0 8px 30px rgba(13,26,18,.10);
  --shadow-lg:   0 24px 70px rgba(13,26,18,.14);
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--green);
  z-index: 200;
  transition: width .1s linear;
}

/* ── HEADER ── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 80px);
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}

.header.is-white,
.header.is-cream,
.header.is-final {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--ink-20);
  color: var(--ink);
}

.header.is-orange {
  background: rgba(249,115,22,.92);
  backdrop-filter: blur(20px);
  color: white;
}

.header.is-green {
  background: rgba(29,138,69,.92);
  backdrop-filter: blur(20px);
  color: white;
}

.logo-link img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: opacity .2s ease, transform .2s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.nav a {
  opacity: .75;
  transition: opacity .2s;
}
.nav a:hover { opacity: 1; }

.header-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 13.5px;
  font-weight: 700;
  transition: .2s ease;
  white-space: nowrap;
}
.header-btn:hover { opacity: .8; transform: translateY(-1px); }

/* ── SECTIONS ── */
.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px clamp(24px, 5vw, 80px) 80px;
  padding-right: calc(clamp(24px, 5vw, 80px) + 300px);
  overflow: hidden;
}

.section-white  { background: var(--white); color: var(--ink); }
.section-orange { background: var(--orange); color: white; }
.section-green  { background: var(--green); color: white; }
.section-cream  { background: var(--cream); color: var(--ink); }
.section-final  { background: var(--cream); color: var(--ink); }

.hero {
  padding-top: 130px;
  padding-right: clamp(24px, 5vw, 80px);
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 20px;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

h1, h2 {
  font-family: var(--font-head);
  line-height: 1.0;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(52px, 5.5vw, 82px);
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 700px;
}

h1 em {
  font-style: normal;
  color: var(--green);
}

h2 {
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 700px;
}

h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  opacity: .75;
  max-width: 560px;
  margin-bottom: 0;
}

p { line-height: 1.65; }

/* ── BUTTONS ── */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  transition: .2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-green {
  background: var(--green);
  color: white;
  box-shadow: 0 8px 24px rgba(29,138,69,.28);
}
.btn-green:hover { background: var(--green-dark); box-shadow: 0 12px 32px rgba(29,138,69,.36); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-20);
}
.btn-outline:hover { border-color: var(--ink); }

/* ── HERO METRICS ── */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 52px;
  max-width: 620px;
}

.metric-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  border: 1px solid rgba(29,138,69,.12);
}

.metric-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 3px;
}

.metric-card p {
  font-size: 12px;
  line-height: 1.4;
  opacity: .65;
  margin: 0;
}

/* ── DOWN ARROW ── */
.down {
  position: absolute;
  bottom: 36px;
  left: clamp(24px, 5vw, 80px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(29,138,69,.3);
  transition: .2s ease;
  z-index: 4;
}
.down:hover { transform: translateY(3px); }

/* ── SECTION COPY ── */
.section-copy {
  max-width: 640px;
  margin-bottom: 48px;
}

/* ── PROBLEM CARDS ── */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 860px;
}

.pc {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}

.pc:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.22);
}

.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pc-icon svg {
  width: 24px; height: 24px;
  color: white;
}

.pc-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  opacity: .45;
}

.pc h3 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
}

.pc p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin: 0;
}

/* ── SOLUTION FLOW ── */
.flow {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 800px;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  flex: 1;
  min-width: 100px;
  text-align: center;
  transition: .2s ease;
}

.flow-step:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }

.flow-step-last {
  background: rgba(255,255,255,.26);
  border-color: rgba(255,255,255,.45);
}

.flow-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
}

.flow-icon svg {
  width: 26px; height: 26px;
  color: white;
}

.flow-step span {
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: -.01em;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  opacity: .45;
  flex-shrink: 0;
}

.flow-arrow svg {
  width: 18px; height: 18px;
  color: white;
}

/* ── JOURNEY STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 860px;
}

.step {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 1px solid var(--ink-20);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: .2s ease;
}

.step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.step-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -.04em;
  opacity: .2;
  margin-bottom: 14px;
  line-height: 1;
}

.step h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.55;
  margin: 0;
}

/* ── MERCHANTS GRID ── */
.merchants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 800px;
}

.merchant-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: .2s ease;
  cursor: default;
}

.merchant-card:hover {
  background: rgba(255,255,255,.24);
  transform: translateY(-3px);
}

.mc-emoji {
  font-size: 32px;
  line-height: 1;
}

.mc-label {
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.mc-cta {
  background: rgba(255,255,255,.08);
  border-style: dashed;
}

.mc-cta .mc-emoji {
  font-size: 28px;
  opacity: .5;
}

.mc-cta .mc-label {
  opacity: .55;
}

/* ── PROOF GRID ── */
.proof-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 800px;
}

.proof-card {
  padding: 28px 26px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--ink-20);
  transition: .2s ease;
}

.proof-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.proof-card-big {
  background: var(--green-light);
  border-color: rgba(29,138,69,.18);
}

.proof-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: white;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.proof-icon svg {
  width: 28px; height: 28px;
  color: var(--green);
}

.proof-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -.04em;
  margin-bottom: 8px;
  line-height: 1;
}

.proof-card p {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.5;
  margin: 0;
}

.proof-bar {
  height: 4px;
  background: rgba(29,138,69,.15);
  border-radius: 99px;
  margin-top: 18px;
  overflow: hidden;
}

.proof-fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
}

/* ── FAQ ── */
.faq-list {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details {
  background: white;
  border: 1px solid var(--ink-20);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s ease;
}

details[open] {
  box-shadow: var(--shadow-md);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary span {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.faq-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.faq-chevron svg {
  width: 16px; height: 16px;
  color: var(--green);
}

details[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--green);
}

details[open] .faq-chevron svg { color: white; }

details p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.65;
  margin: 0;
}

/* ── DEMO / FINAL ── */
.final-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 52px 56px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--ink-20);
}

.final-card h2 {
  margin-bottom: 12px;
}

.final-card .lead {
  margin-bottom: 0;
}

.demo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .5;
}

.opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .7;
}

.form-group input {
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--ink-20);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.form-group input:focus {
  border-color: var(--green);
  background: white;
}

.demo-form button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(29,138,69,.3);
  transition: .2s ease;
  margin-top: 4px;
}

.demo-form button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(29,138,69,.38);
}

/* ── PHONE STICKY ── */
.phone-sticky {
  position: fixed;
  z-index: 8;
  right: clamp(40px, 5vw, 90px);
  top: 50%;
  transform: translateY(calc(-50% + var(--phone-y, 0px))) translateX(var(--phone-x, 0px)) rotate(var(--phone-rotate, -1deg)) scale(var(--phone-scale, 1));
  width: clamp(220px, 18vw, 270px);
  pointer-events: none;
  transition: transform .22s ease-out, opacity .25s ease;
  will-change: transform;
}

.phone {
  position: relative;
  background: #0a0f0c;
  border: 8px solid #0a0f0c;
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.08) inset;
  height: calc(100vh - 160px);
  max-height: 580px;
  min-height: 480px;
}

.phone-notch {
  position: absolute;
  z-index: 5;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 130px; height: 28px;
  background: #0a0f0c;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.phone-header {
  height: 68px;
  padding: 24px 14px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.back {
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  opacity: .6;
}

.phone-logo {
  height: 28px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.verified {
  color: var(--green);
  font-size: 9px;
}

.dots {
  margin-left: auto;
  font-size: 22px;
  color: #bbb;
}

.phone-chat {
  height: calc(100% - 118px);
  padding: 16px 13px;
  background: #f5f0e8;
  overflow-y: auto;
}

.bubble {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px;
  background: white;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  margin-bottom: 12px;
}

.bubble strong { font-size: 13.5px; line-height: 1.3; }
.bubble span   { font-size: 13.5px; }
.bubble em     { align-self: flex-end; font-style: normal; color: #aaa; font-size: 11px; }

.chat-choice {
  display: block;
  width: 100%;
  height: 44px;
  margin: 6px 0;
  border: 1.5px solid rgba(29,138,69,.5);
  background: white;
  color: var(--green-dark);
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: .15s ease;
}

.chat-choice:hover { background: var(--green-light); }

.mini-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--green);
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: .35s ease;
}

.mini-order.is-visible { opacity: 1; transform: none; }

.mini-order div { display: flex; flex-direction: column; }
.mini-order strong { font-size: 13px; }
.mini-order span { font-size: 11px; opacity: .75; }
.mini-order b { font-size: 15px; white-space: nowrap; }

.phone-input {
  height: 50px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: white;
  font-size: 22px;
  color: #bbb;
  border-top: 1px solid rgba(0,0,0,.06);
}

.phone-input div {
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #f7f7f7;
}

.phone-caption {
  display: none;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (1001–1300px)
   ══════════════════════════════════════════ */

@media (max-width: 1300px) and (min-width: 1001px) {
  .section {
    padding-inline: 44px;
    padding-right: calc(44px + 270px);
  }
  .hero { padding-right: 44px; }
  .phone-sticky { right: 40px; width: 240px; }

  .problem-cards { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .steps         { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .merchants-grid{ grid-template-columns: repeat(4, 1fr); max-width: 100%; }
  .proof-grid    { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .proof-card-big{ grid-column: 1 / -1; }
  .flow          { max-width: 100%; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤1000px)
   ══════════════════════════════════════════ */

@media (max-width: 1000px) {
  .header { height: 68px; padding-inline: 20px; }
  .nav    { display: none; }
  .header-btn { padding: 0 16px; height: 36px; font-size: 13px; }

  .section {
    min-height: auto;
    padding: 100px 20px 60px;
    padding-right: 20px;
  }

  .hero { padding-top: 100px; }

  h1 { font-size: 48px; }
  h2 { font-size: 38px; }

  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .problem-cards { grid-template-columns: 1fr 1fr; }
  .flow          { flex-direction: column; }
  .flow-arrow    { transform: rotate(90deg); justify-content: center; }
  .steps         { grid-template-columns: 1fr; }
  .merchants-grid{ grid-template-columns: 1fr 1fr; }
  .proof-grid    { grid-template-columns: 1fr; }
  .proof-card-big{ grid-column: auto; }

  .phone-sticky {
    position: relative;
    inset: auto;
    transform: none;
    width: min(320px, 100%);
    margin: 44px auto 0;
    pointer-events: auto;
  }

  .phone-caption { display: block; }
  .final-card { padding: 32px 24px; border-radius: var(--radius-lg); }
  .demo-form  { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .problem-cards  { grid-template-columns: 1fr; }
  .merchants-grid { grid-template-columns: 1fr 1fr; }
  .hero-metrics   { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-sticky { transition: none; transform: translateY(-50%) !important; }
  .reveal       { transition: none; }
}

/* ── SITE FOOTER ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 20px clamp(24px, 5vw, 80px);
  background: var(--ink);
  color: rgba(255,255,255,.45);
  font-size: 13px;
}

.site-footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .15s;
}

.site-footer a:hover { color: white; }

.footer-sep { opacity: .3; }

@media (max-width: 600px) {
  .site-footer { flex-direction: column; text-align: center; gap: 6px; }
  .footer-sep  { display: none; }
}
