@font-face {
  font-family: Plex;
  src: url("/assets/fonts/IBMPlexSansArabic-Regular-v51.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("/assets/fonts/IBMPlexSansArabic-SemiBold-v51.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/InterDisplay-400-v51.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/InterDisplay-600-v51.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Plex, system-ui, sans-serif;
  color: #111d3c;
  background: #f4f6ff;
  --blue: #214acd;
  --deep-blue: #193da9;
  --muted: #4a5a7a;
  --line: #dde3f0;
}
html[lang="en"] { font-family: Inter, system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 8% 3%, #e5ebff, transparent 40%), #f4f6ff;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #3763e9;
  outline-offset: 3px;
}
p, h1, h2 { margin: 0; }
svg { width: 20px; height: 20px; flex: none; }
.topbar {
  max-width: 1216px;
  padding: 25px clamp(17px, 4vw, 42px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { object-fit: contain; width: 132px; height: 30px; }
.environment, .estimate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}
.environment { border: 1px solid #cfd9f4; border-radius: 30px; padding: 5px 11px; background: #ffffff99; }
a.environment { text-decoration: none; }
a.environment:hover { border-color: #879de3; }
.application {
  display: grid;
  grid-template-columns: minmax(235px, .72fr) minmax(0, 1.48fr);
  align-items: stretch;
  max-width: 1216px;
  padding: 0 clamp(17px, 4vw, 42px) 42px;
  gap: 16px;
  margin-inline: auto;
}
.workspace {
  min-width: 0;
  background: #fff;
  border: 1px solid #dfe5f4;
  border-radius: 26px;
  padding: clamp(21px, 3.2vw, 40px);
  box-shadow: 0 24px 70px #1a317311;
}
.work-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 18px; }
.estimate svg { width: 16px; height: 16px; }
h2 { font-size: clamp(29px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.035em; margin-block: 6px 8px; }
.work-header h2 { margin: 0; }
h2:focus { outline: none; }
.intro { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.identity-grid, .choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.stage-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.field :is(input, textarea) {
  min-width: 0;
  width: 100%;
  border: 1px solid #cdd7eb;
  border-radius: 12px;
  min-height: 49px;
  padding: 9px 12px;
  background: #fafbff;
  color: #111d3c;
  font-size: 16px;
  font-weight: 400;
}
.field input::placeholder { color: #687594; font-size: 14px; }
.field :is(input, textarea)[aria-invalid="true"] { border-color: #be274d; }
.idea-field { margin-block-start: 15px; }
.idea-field p { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.idea-field textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
.choice-group { min-inline-size: 0; margin: 15px 0 0; padding: 0; border: 0; }
.choice-group legend { font-size: 15px; font-weight: 600; padding: 0; margin-block-end: 8px; }
.choice { position: relative; display: flex; align-items: center; min-width: 0; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.choice > span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 9px 6px;
  min-height: 44px;
  border: 1px solid #d6dff0;
  border-radius: 12px;
  color: #273857;
  text-align: center;
  background: #f8faff;
  font-size: 14px;
  line-height: 1.35;
  transition: background .15s ease, border-color .15s ease;
}
.choice > span::before { content: ""; width: 12px; height: 12px; flex: none; border: 1px solid #8596bb; border-radius: 50%; }
.choice input:checked + span { color: #173cae; background: #edf2ff; border-color: #5778e4; }
.choice input:checked + span::before { border: 4px solid #2b52ce; }
.choice input:focus-visible + span { outline: 2px solid #3763e9; outline-offset: 2px; }
@media (hover:hover) { .choice:hover > span { border-color: #6c87dd; } }
.micro { margin-top: 7px; color: var(--muted); font-size: 12px; }
.sample { padding: 5px 0;  color: var(--deep-blue); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; min-height: 36px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-block: 20px 13px; }
.primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid #244ad0;
  border-radius: 12px;
  box-shadow: 0 6px 15px #2047c633;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 19px;
  font-size: 15px;
  font-weight: 600;
}
.primary:hover { background: var(--deep-blue); }
.registration-privacy { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.registration-privacy svg { width: 15px; height: 15px; }
.form-error { display: block; border-inline-start: 3px solid #bc2d51; padding: 6px 9px; margin-top: 7px; color: #8d2140; font-weight: 400; background: #fff0f4; font-size: 14px; }
.receipt { animation: arrive .3s ease-out both; }
.receipt-mark { display: grid; place-items: center; width: 48px; height: 48px; background: #e9efff; color: var(--blue); border-radius: 16px; margin-bottom: 14px; }
.receipt .primary { margin-bottom: 17px; }
.journey-notice { padding: 13px; border: 1px solid #d5dff5; border-radius: 14px; background: #f4f7ff; margin-block: 0 12px; }
.journey-notice p { font-size: 14px; color: var(--muted); margin-block: 3px 0; }
.journey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; }
.journey-actions .primary { margin-bottom: 0; }
.journey-actions { margin-block: 11px 8px; }
.secondary-action { background: #fff; color: var(--deep-blue); border: 1px solid #c8d5f4; border-radius: 10px; min-height: 42px; padding: 7px 11px; font-weight: 600; font-size: 13px; }
#journey-join { margin-block-start: 9px; }
.journey-team-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 224px);
  margin-block: 12px 6px;
}
.journey-team-progress span {
  height: 7px;
  border-radius: 99px;
  background: #dce5f9;
}
.journey-team-progress span::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(270deg, #5887ff, var(--blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.journey-team-progress span[data-filled]::after { transform: scaleX(1); }
.journey-members { list-style: none; margin: 9px 0; padding: 0; font-size: 14px; }
.journey-members li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.member-role { color: var(--muted); font-size: 12px; }
.journey-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.journey-notice h3 { margin: 0; font-size: 16px; }
.registration-privacy { align-items: flex-start; line-height: 1.55; }
.registration-privacy svg { margin-top: 2px; }
.topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; justify-content: flex-end; }
.topbar .wordmark { display: block; }
@keyframes arrive { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
  .application { grid-template-columns: minmax(0, 1fr); max-width: 660px; }
  .topbar { max-width: 660px; }
  .workspace { border-radius: 20px; }
}
@media (max-width: 480px) {
  .topbar { padding-block: 17px; }
  .workspace { padding: 17px; }
  .work-header { gap: 8px; padding-bottom: 12px; margin-bottom: 17px; }
  .identity-grid .field:nth-child(-n+2) { grid-column: 1 / -1; }
  .choice > span { font-size: 13px; }
  .actions { margin-block: 18px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .receipt { animation: none; }
  .choice > span, .journey-team-progress span::after { transition: none; }
}

.flight-deck {
  --deck-padding: clamp(25px, 4vw, 49px);
  position: relative;
  min-width: 0;
  min-height: 530px;
  overflow: hidden;
  isolation: isolate;
  padding: var(--deck-padding);
  color: #f3f6ff;
  border: 1px solid #344b80;
  border-radius: 26px;
  background: radial-gradient(ellipse at 74% 20%, #1a2c60 0%, transparent 58%),
    linear-gradient(156deg, #0c1635, #08112b 53%, #0b1b43);
  box-shadow: inset 0 1px 0 #b2c9ff42;
}
.flight-deck::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(0deg, #a2c0ff14 0 1px, transparent 1px 27px),
    repeating-linear-gradient(90deg, #a2c0ff14 0 1px, transparent 1px 27px);
  mask-image: radial-gradient(ellipse at 50% 71%, #000 3%, transparent 67%);
}
.deck-copy {
  position: relative;
  z-index: 1;
}
.event-label {
  color: #bdd2ff;
  font-size: clamp(12px, 1.25vw, 15px);
  font-weight: 600;
}
.deck-copy h1 {
  margin-block: 13px 14px;
  color: #f3f6ff;
  font-size: clamp(53px, 6.8vw, 91px);
  line-height: 1.02;
}
html[lang="en"] .deck-copy h1 { font-size: clamp(47px, 6vw, 77px); letter-spacing: -.055em; }
.deck-copy h1 span {
  color: #fff;
}
.event-date {
  color: #cbd6f2;
  font-size: 14px;
}
.deck-scene {
  position: absolute;
  z-index: 0;
  inset: 29% 0 0;
  pointer-events: none;
  direction: ltr;
}
.deck-scene::before {
  position: absolute;
  z-index: -1;
  inset: 3% -12% 4%;
  content: "";
  background: radial-gradient(ellipse at 48% 49%, #365fdc90, #233dad49 39%, transparent 68%);
  animation: deck-illumination 10s ease-in-out infinite;
}
.deck-scene::after {
  position: absolute;
  z-index: -1;
  width: 112%;
  aspect-ratio: 2.9;
  left: -6%;
  top: 54%;
  content: "";
  border-radius: 50%;
  border: 1px solid #80aaff38;
  box-shadow: 0 0 0 12px #80aaff0d, 0 0 0 25px #80aaff0a, 0 0 0 42px #80aaff08;
  transform: translateY(-50%) rotate(-22deg);
}
.deck-object {
  position: absolute;
  inset: 49% auto auto 47.5%;
  width: 133%;
  max-width: 590px;
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  transform-origin: 52% 49%;
  animation: deck-float 9.2s ease-in-out infinite;
}
.deck-art, .deck-sheen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.deck-sheen {
  overflow: hidden;
  mask: url("/assets/finflex-hero-mobile-v68.webp") center / 100% 100% no-repeat;
}
.deck-sheen::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(114deg, transparent 36%, #719cff0f 44%, #d2efff55 49%, #6a99ff26 53%, transparent 61%);
  opacity: 0;
  transform: translateX(-53%);
  animation: deck-light-sweep 8s ease-in-out infinite;
}
@keyframes deck-float {
  0%, 100% { transform: translate(-50%, -49%) rotate(-1.6deg); }
  50% { transform: translate(-50%, -54%) rotate(1.7deg); }
}
@keyframes deck-illumination {
  0%, 100% { opacity: .63; transform: translateX(-3%) scale(.94); }
  50% { opacity: 1; transform: translateX(3%) scale(1.06); }
}
@keyframes deck-light-sweep {
  0%, 17% { opacity: 0; transform: translateX(-53%); }
  31% { opacity: 1; }
  56%, 100% { opacity: 0; transform: translateX(53%); }
}

@media (min-width: 801px) {
  .flight-deck { display: flex; flex-direction: column; }
  .deck-scene {
    position: relative;
    inset: auto;
    flex: 1;
    min-height: 240px;
    margin: 16px calc(-1 * var(--deck-padding)) 0;
  }
}

@media (max-width: 800px) {
  .flight-deck {
    min-height: 151px;
    padding: 22px;
    border-radius: 20px;
  }
  .deck-copy h1 {
    margin-block: 4px 7px;
    font-size: clamp(31px, 7vw, 45px);
  }
  html[lang="en"] .deck-copy h1 { font-size: clamp(28px, 7vw, 41px); }
  html[lang="en"] .deck-scene { left: auto; right: -8%; }
  .deck-copy h1 br { display: none; }
  .deck-scene { inset: -26% auto -26% -8%; width: 64%; }
  .deck-object { inset: 50% auto auto 47%; width: 104%; max-width: 284px; }
  .deck-scene::after { width: 91%; left: 5%; top: 55%; }
}

@media (max-width: 360px) {
  .flight-deck { min-height: 140px; padding: 17px; }
  .event-date { font-size: 12px; }
  .deck-scene { left: -10%; width: 67%; }
}

@media (prefers-reduced-motion: reduce) {
  .deck-object, .deck-scene::before, .deck-sheen::before { animation: none; }
}
