@font-face {
  font-family: Cairo;
  src: url(assets/cairo.ttf) format("truetype");
  font-display: swap;
  font-weight: 200 1000;
}

:root {
  --ink: #112341;
  --muted: #53647d;
  --blue: #174fce;
  --surface: #eef3fb;
  --line: #dde6f2;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  background: #f9fbff;
  color: var(--ink);
  font-family: system-ui, sans-serif;
}
html[lang="ar"] body { font-family: Cairo, system-ui, sans-serif; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, .intent-choice:has(input:focus-visible) {
  outline: 3px solid #426ed8;
  outline-offset: 3px;
}
header, main, footer { width: min(1120px, 100%); padding-inline: 32px; margin-inline: auto; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.brand, .brand img { display: block; }
#language {
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 700;
}
#language:hover { border-color: #9db3de; }
main { margin-block-end: 20px; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  padding: 14px;
  margin-block: 6px 16px;
  border: 1px solid #e0e9f5;
  border-radius: 25px;
  background: radial-gradient(ellipse at 100% 5%, #edf3ff, transparent 66%), white;
}
.intro-copy { align-self: center; padding: 19px clamp(10px, 2.6vw, 34px); }
h1, h2, p { margin: 0; }
h1 {
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  font-weight: 850;
  line-height: 1.19;
  letter-spacing: -.04em;
}
html[lang="ar"] h1 { line-height: 1.35; letter-spacing: normal; }
h1 em { color: var(--blue); font-style: normal; }
#page-description {
  max-width: 39ch;
  margin-block-start: 14px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}
.trial-note {
  display: inline-block;
  margin-block-start: 15px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #e8effd;
  color: #1745a5;
  font-size: .78rem;
  font-weight: 800;
}
.intro-visual {
  position: relative;
  display: grid;
  min-height: 304px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: #243753;
}
.hero-photo {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}
.intro-visual::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(6deg, #101a2da0, transparent 72%);
  content: "";
}
.hero-pass {
  align-self: end;
  justify-self: end;
  width: clamp(154px, 48%, 209px);
  margin: 0 16px 16px;
  padding: 10px 12px;
  border: 1px solid #8a9fb47f;
  border-radius: 15px;
  background: #142440;
  box-shadow: 0 12px 35px #10182b75;
  color: #fff;
  line-height: 1.35;
  transform: rotate(-4deg);
}
html[dir="ltr"] .hero-pass { transform: rotate(4deg); }
.hero-pass-top { display: flex; align-items: center; gap: 7px; font-size: .82rem; }
.hero-pass-top img { padding: 4px; border-radius: 7px; background: #fff; }
.hero-pass-stamps { display: block; width: 100%; height: auto; margin-block: 6px; border-radius: 6px; }
#pass-status { display: block; color: #dce7fe; font-size: .68rem; }

.panel {
  width: min(720px, 100%);
  margin-inline: auto;
  padding: clamp(15px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
}
body[data-step="1"] .panel { width: 100%; }
.progress { margin-bottom: 15px; }
#step-label { display: flex; gap: clamp(8px, 2.1vw, 20px); flex-wrap: wrap; }
.step-stop { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .73rem; white-space: nowrap; }
.step-stop b {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: 700 .68rem system-ui, sans-serif;
}
.step-stop.current { color: var(--blue); font-weight: 800; }
.step-stop.current b { color: white; background: var(--blue); }
.step-stop.done b { background: #e6efff; color: var(--blue); }
h2 { margin-block-end: 12px; font-size: clamp(1.35rem, 3.3vw, 2rem); line-height: 1.38; font-weight: 850; }
h2:focus { outline: none; }
.sub { margin-block-end: 18px; color: var(--muted); font-size: .94rem; line-height: 1.75; }
.selected-benefit { color: #234f9e; }

.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.industry, .industry-other, .country-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 59px;
  padding: 6px 9px;
  border: 1px solid #dfe7f2;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  text-align: start;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.industry img, .industry-other i {
  display: block;
  width: 46px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
}
.industry-other i {
  display: grid;
  place-items: center;
  background: #eaf0fb;
  color: #45659a;
  font: 800 .9rem system-ui, sans-serif;
}
.industry > span, .industry-other > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex: 1;
  min-width: 0;
  font-size: .93rem;
  font-weight: 800;
}
.industry span span, .industry-other span span, .country-choice > span { color: #496ca6; }
.industry:hover, .industry-other:hover, .country-choice:hover { border-color: #a6bbe7; background: #f2f6fe; }
.industry:active, .industry-other:active, .country-choice:active, .primary:active { transform: translateY(1px); }

.country-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.country-choice { padding-inline: 12px; }
.country-choice i { flex: 0 0 28px; color: #496ca6; font-style: normal; }
.country-choice i img { display: block; width: 28px; height: 20px; object-fit: contain; }
.country-choice strong { flex: 1; font-size: .9rem; }
.country-choice:last-child { grid-column: 1 / -1; }
.actions { margin-block-start: 12px; }
.back { min-height: 44px; padding: 4px 2px; border: 0; background: transparent; color: var(--blue); font-size: .9rem; font-weight: 750; }
.back:hover { text-decoration: underline; }

.intent-group { min-width: 0; margin: 0 0 17px; padding: 0; border: 0; }
.intent-group legend { margin-block-end: 8px; font-weight: 800; }
.intent-options { display: grid; gap: 6px; }
.intent-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: .91rem;
}
.intent-choice:has(input:checked) { border-color: #5076cb; background: #edf3ff; }
.intent-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.price-note { margin-block-end: 16px; color: var(--muted); font-size: .83rem; line-height: 1.75; }
.price-note strong { color: var(--ink); }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}
.primary:hover { background: #1543ad; }

.contact-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  height: clamp(125px, 26vw, 210px);
  overflow: hidden;
  margin-block-end: 17px;
  border-radius: 12px;
}
.contact-scene > img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact-scene::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #111f3bcf, transparent 70%); content: ""; }
.scene-selection { align-self: end; margin: 10px 14px; color: #fff; font-size: .9rem; font-weight: 800; }
.contact-panel .selected-benefit { margin-block-end: 6px; }
.whatsapp { background: #116b46; }
.whatsapp:hover { background: #0b5637; }
footer { padding-block-end: 18px; text-align: center; }
#privacy-settings, .measurement-choice { color: var(--muted); font: inherit; font-size: .71rem; }
#privacy-settings { min-height: 30px; padding: 3px 7px; border: 0; background: none; text-decoration: underline; }
.measurement-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.measurement-choice button { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--blue); border-radius: 6px; padding: 4px 8px; }

@media (max-width: 700px) {
  header, main, footer { padding-inline: 14px; }
  header { min-height: 59px; }
  .brand img { width: 103px; }
  .intro { grid-template-columns: 1fr; gap: 8px; padding: 8px; margin-block: 2px 12px; border-radius: 17px; }
  .intro-copy { padding: 5px 6px 0; }
  h1 { font-size: clamp(1.62rem, 7.6vw, 2.3rem); }
  #page-description { margin-block-start: 5px; font-size: .83rem; line-height: 1.62; }
  .trial-note { margin-block-start: 7px; font-size: .69rem; }
  .intro-visual { min-height: 152px; border-radius: 11px; }
  .hero-photo { object-position: 50% 39%; }
  .hero-pass { width: 137px; margin: 0 9px 8px; padding: 6px 7px; border-radius: 9px; }
  .hero-pass-top { gap: 4px; font-size: .68rem; }
  .hero-pass-top img { width: 20px; height: 20px; border-radius: 4px; padding: 2px; }
  .hero-pass-stamps { margin-block: 3px; }
  #pass-status { font-size: .56rem; }
  .panel { border-radius: 16px; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .industry, .industry-other { gap: 5px; min-height: 49px; padding-inline: 5px; }
  .industry img, .industry-other i { width: 31px; height: 31px; }
  .industry > span, .industry-other > span { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
