/* ===================================================
   Soufien.Ads — Landing Page
   2026 design system
   =================================================== */

:root {
  --red:        #F1303C;
  --red-deep:   #D71826;
  --red-top:    #E11E2A;
  --ink:        #0B0C11;
  --ink-soft:   #14161F;
  --ink-card:   #181A24;
  --white:      #FFFFFF;
  --paper:      #F6F4F1;
  --muted:      #6B7280;
  --line:       #E6E3DE;
  --green:      #00B67A;

  --radius:     22px;
  --radius-sm:  14px;
  --shadow:     0 24px 60px -20px rgba(11,12,17,.45);
  --shadow-soft:0 12px 32px -12px rgba(11,12,17,.18);

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; letter-spacing: -0.02em; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============ Shared CTA ============ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  text-align: center;
  line-height: 1.15;
}
.cta svg { transition: transform .2s ease; }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: scale(.98); }

.cta--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.6);
}
.cta--dark:hover { transform: translateY(-2px); box-shadow: 0 22px 42px -14px rgba(0,0,0,.7); }

.cta--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(241,48,60,.7);
}
.cta--red:hover { transform: translateY(-2px); background: var(--red-deep); }

/* Loading state — spinner replaces label */
.cta.is-loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}
.cta.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================
   HERO
   =================================================== */
.hero {
  background: #fff;
  color: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 70% at 50% -5%, rgba(241,48,60,.08), transparent 55%);
  pointer-events: none;
}

.hero__announce {
  background: var(--red-top);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  position: relative;
  z-index: 2;
}
.hero__announce-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 0;
}

.brand { display: flex; justify-content: center; }
.brand__logo {
  height: auto;
  width: min(330px, 82%);
}

.trustpilot {
  display: inline-flex;
  align-items: center;
  margin: 1.4rem 0 .3rem;
}
.trustpilot img { height: 30px; width: auto; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  /* sized so the no-wrap accent line fits on one line from ~320px up to desktop */
  font-size: clamp(1.5rem, 6.2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 1.1rem 0 .9rem;
}
.hero__title-accent { color: var(--red); white-space: nowrap; }

.hero__sub {
  font-size: clamp(1rem, 4vw, 1.18rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: #4b4f5a;
  margin-bottom: 1.6rem;
}
.hero__sub strong { font-weight: 600; color: var(--ink); }

.hero__proof {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 300px;
}
.hero__proof img { position: relative; z-index: 2; margin: 0 auto; }
.hero__proof-glow {
  position: absolute;
  inset: -8% -14% 4%;
  background: radial-gradient(closest-side, rgba(241,48,60,.18), transparent 72%);
  z-index: 1;
  filter: blur(10px);
}

.hero__cta { width: min(420px, 100%); }

/* ===================================================
   TRUSTED BY — MARQUEE
   =================================================== */
.trust {
  background: var(--paper);
  padding: 4.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.trust__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--red);
  margin-bottom: .5rem;
}
.trust__eyebrow--dark { color: var(--red); }
.trust__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.8rem;
  padding: 0 1.2rem;
}

.marquee {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: scroll 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-card {
  flex: 0 0 auto;
  width: 158px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  box-shadow: var(--shadow-soft);
}
.brand-card__img {
  width: 64px; height: 64px;
  border-radius: 14px;
  overflow: hidden;
  display: grid; place-items: center;
  background: #fff;
}
.brand-card__img img { width: 100%; height: 100%; object-fit: contain; }
.brand-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}

/* ===================================================
   FORM
   =================================================== */
.form-section {
  background:
    radial-gradient(80% 45% at 50% 0%, rgba(241,48,60,.08), transparent 60%),
    var(--paper);
  padding: 4.5rem 1.2rem 5rem;
}
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.form-card__head { text-align: center; margin-bottom: 2rem; }
.badge {
  display: inline-block;
  background: rgba(241,48,60,.1);
  color: var(--red-deep);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .42rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.form-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: .7rem;
}
.form-card__lead { color: var(--muted); font-size: .98rem; max-width: 520px; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.field label span { color: var(--red); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa0ab; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(241,48,60,.12);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}

/* Affordability gate */
.afford {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.3rem;
  margin-top: 1.6rem;
  background: var(--paper);
}
.afford__q {
  font-family: var(--font-body);
  font-size: .96rem;
  line-height: 1.55;
  color: var(--ink);
}
.afford__q strong { font-weight: 700; color: var(--red-deep); }
.afford__q span { color: var(--red); }
.afford__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__box {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: all .15s ease;
  min-height: 100%;
}
.choice input:checked + .choice__box {
  border-color: var(--red);
  background: rgba(241,48,60,.06);
  color: var(--red-deep);
  box-shadow: 0 0 0 3px rgba(241,48,60,.12);
}
.choice input:focus-visible + .choice__box { box-shadow: 0 0 0 3px rgba(241,48,60,.3); }

/* Consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.4rem 0 .4rem;
  font-size: .92rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 20px; height: 20px; flex: 0 0 auto;
  accent-color: var(--red);
  margin-top: 2px; cursor: pointer;
}
.consent strong { color: var(--ink); }

.form-error {
  color: var(--red-deep);
  font-weight: 600;
  font-size: .9rem;
  margin-top: 1rem;
  text-align: center;
}
.form-submit { width: 100%; margin-top: 1.5rem; font-size: 1.08rem; padding: 1.15rem; }
.form-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1rem; }

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials {
  background: var(--paper);
  padding: 5rem 1.2rem 5.5rem;
  text-align: center;
}
.testimonials__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}
.testimonials__title span { color: var(--red); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  max-width: var(--maxw);
  margin: 0 auto 3rem;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-card img { border-radius: 10px; width: 100%; height: auto; }
.testimonials__cta { width: min(420px, 100%); }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  padding: 3rem 1.2rem 2.4rem;
}
.footer__logo { height: 46px; width: auto; margin: 0 auto 1rem; }
.footer__tag { color: #4b4f5a; font-size: .95rem; font-weight: 500; margin-bottom: 1.4rem; }
.footer__disclaimer {
  max-width: 640px;
  margin: 0 auto 1.4rem;
  font-size: .78rem;
  line-height: 1.6;
  font-weight: 300;
  color: #8a8f9a;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.footer small { color: #a2a7b1; font-size: .82rem; }

/* ===================================================
   RESPONSIVE — MOBILE FIRST (primary target: 1080x1920 phones)
   =================================================== */

/* Tablet down */
@media (max-width: 760px) {
  .testimonials__grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* Phones — the primary experience */
@media (max-width: 600px) {
  /* tighter rhythm on small screens */
  .hero__inner { padding: 1.8rem 1.2rem 0; }
  .hero__announce { font-size: .82rem; padding: .65rem .8rem; }
  .hero__sub { font-size: 1.02rem; }
  .hero__proof { max-width: 280px; margin-bottom: 1.6rem; }
  .hero__cta { width: 100%; padding: 1.1rem 1.2rem; }

  .trust { padding: 3.2rem 0 3rem; }
  .trust__title { font-size: 1.45rem; margin-bottom: 2rem; }
  .brand-card { width: 138px; }

  .form-section { padding: 3.2rem .9rem 3.6rem; }
  .form-card { padding: 1.5rem 1.2rem 2rem; border-radius: 18px; }
  .form-card__title { font-size: 1.6rem; }
  .form-card__lead { font-size: .94rem; }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .afford__opts { grid-template-columns: 1fr; }
  .afford { padding: 1.1rem; }

  /* comfortable tap targets (>=48px) */
  .field input,
  .field select,
  .field textarea { padding: .95rem 1rem; font-size: 16px; } /* 16px avoids iOS zoom */
  .choice__box { padding: 1rem; min-height: 52px; }
  .consent input { width: 24px; height: 24px; }
  .form-submit { padding: 1.2rem; font-size: 1.08rem; }

  .testimonials { padding: 3.6rem 1rem 4rem; }
  .testimonials__title { font-size: 1.65rem; margin-bottom: 2rem; }
  .testimonials__cta { width: 100%; }

  .footer { padding: 2.6rem 1.2rem 2.2rem; }
  .footer__disclaimer { font-size: .74rem; }
}

/* Very narrow (≈360px / 1080px @ DPR 3) */
@media (max-width: 380px) {
  .hero__sub { font-size: .98rem; }
  .brand-card { width: 128px; }
  .cta { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__announce-dot { animation: none; }
  html { scroll-behavior: auto; }
  .cta, .testimonial-card { transition: none; }
}
