/* Landing page: /custom-app-in-5-days
 * Built from "i-Boson Innovations Landing Page 7" design (1280px canvas).
 * Desktop values match the design; extra breakpoints below handle tablet/phone.
 */

:root {
  --ib-side: clamp(20px, 7vw, 150px);
  --ib-ink: #0f1b2d;
  --ib-text: #243049;
  --ib-muted: #4a5568;
  --ib-icon: #3b4557;
  --ib-green: #2f9e0c;
  --ib-green-bright: #3db512;
  --ib-green-dark: #2a7d0a;
  --ib-grad: linear-gradient(180deg, #4cc61a 0%, #2a980a 100%);
  --ib-pill: #e1f6d3;
  --ib-required: #e11d2a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: #ffffff;
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  color: var(--ib-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #2c9a0c; }
a:hover { color: #1f7a06; }

.ib-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ib-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.ib-skip:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid rgba(61, 181, 18, 0.55); outline-offset: 2px; }

.ib-page { position: relative; overflow: hidden; background: #ffffff; }

.ib-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Shared section heading ---------- */
.ib-pill {
  display: inline-block;
  background: var(--ib-pill);
  color: var(--ib-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  padding: 5px 24px;
  border-radius: 999px;
}
.ib-heading {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0 auto;
}
.ib-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.17;
  font-weight: 700;
  color: var(--ib-ink);
  letter-spacing: -0.4px;
}
.ib-heading .ib-spark {
  position: absolute;
  width: 42px;
  height: 38px;
  overflow: visible;
}
.ib-accent { color: var(--ib-green); }

/* ---------- HERO ---------- */
.ib-first {
  position: relative;
  min-height: min(100vh, 1080px);
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.6vh, 28px) 0 clamp(18px, 3.4vh, 40px) 0;
  width: 100%;
}
@media (min-width: 1200px) {
  .ib-first { --ib-side: clamp(150px, 13vw, 250px); }
}
.ib-waves {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.ib-topbar {
  position: relative;
  z-index: 1;
  padding: 0 var(--ib-side);
}
.ib-logo { display: inline-block; }
.ib-logo img {
  display: block;
  width: 142px;
  height: 49px;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 246 / 86;
}

.ib-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 540px);
  column-gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding: clamp(10px, 2.4vh, 32px) var(--ib-side) 0 var(--ib-side);
}
.ib-hero-copy { position: relative; min-width: 0; }
.ib-hero-spark {
  position: absolute;
  left: min(432px, 88%);
  top: -42px;
  width: 42px;
  height: 38px;
}
.ib-hero-copy h1 { margin: 0; font-size: inherit; font-weight: inherit; }
.ib-h1 {
  display: block;
  margin: 0;
  font-size: clamp(32px, min(3.5vw, 5.6vh), 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ib-ink);
  max-width: 9.6em;
}
.ib-big-wrap { position: relative; display: inline-block; }
.ib-big {
  display: block;
  font-size: clamp(44px, min(4.9vw, 7.8vh), 76px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--ib-green);
  letter-spacing: -0.6px;
}
.ib-underline {
  position: absolute;
  left: 18%;
  bottom: -0.12em;
  width: 80%;
  height: auto;
}
.ib-lead {
  margin: clamp(14px, 2.6vh, 32px) 0 0 0;
  font-size: clamp(16px, min(1.55vw, 2.5vh), 23px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ib-text);
  max-width: 30em;
}
.ib-lead strong { color: var(--ib-green); font-weight: 700; }
.ib-laptop {
  display: block;
  height: clamp(170px, 29vh, 330px);
  width: auto;
  max-width: 112%;
  object-fit: contain;
  object-position: left center;
  margin: clamp(10px, 2vh, 24px) 0 0 -12px;
  position: relative;
  z-index: 0;
}

/* ---------- Form card ---------- */
.ib-form {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #ffffff;
  border-radius: 26px;
  padding: clamp(20px, 3.2vh, 40px) clamp(22px, 2.4vw, 40px);
  box-shadow: 0 18px 50px rgba(47, 158, 12, 0.16), 0 2px 8px rgba(15, 27, 45, 0.06);
  border: 1px solid #e3f3d8;
  scroll-margin-top: 16px;
}
.ib-form h2 {
  margin: 0 0 clamp(12px, 2.2vh, 28px) 2px;
  font-size: clamp(24px, min(2.5vw, 3.9vh), 36px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ib-ink);
  letter-spacing: -0.4px;
}
.ib-fields { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 16px); }

/* Fields use floating labels: at rest the label sits inside the field (as in
 * the design); on focus or once filled it shrinks to the top so the input
 * gets the full width. */
.ib-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: clamp(54px, 6.2vh, 60px);
  padding: 0 18px;
  border: 1.5px solid #dfe5e1;
  border-radius: 10px;
  background: #ffffff;
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ib-field:hover { border-color: #c9d6cc; }
.ib-field:focus-within {
  border-color: var(--ib-green-bright);
  box-shadow: 0 0 0 3px rgba(61, 181, 18, 0.15);
}
.ib-field.is-invalid { border-color: var(--ib-required); background: #fff8f8; }
.ib-field.is-invalid:focus-within { box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.15); }
.ib-field-icon { width: 24px; height: 24px; flex: none; transition: stroke 0.15s; }
.ib-field:focus-within .ib-field-icon { stroke: var(--ib-green); }

.ib-field-body {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
}
.ib-field-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  color: var(--ib-ink);
  pointer-events: none;
  transform-origin: left top;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ib-req { color: var(--ib-required); }

.ib-field input,
.ib-field textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  line-height: 1.4;
  color: var(--ib-ink);
  outline: none;
  padding: 20px 0 6px 0;
}
.ib-field input:focus-visible,
.ib-field textarea:focus-visible { outline: none; }
/* Hint text only appears once the field is active */
.ib-field input::placeholder,
.ib-field textarea::placeholder { color: transparent; transition: color 0.15s; }
.ib-field input:focus::placeholder,
.ib-field textarea:focus::placeholder { color: #9aa3ae; }

/* Float the label: focused, filled, or autofilled */
.ib-field input:focus + .ib-field-label,
.ib-field input:not(:placeholder-shown) + .ib-field-label,
.ib-field input:autofill + .ib-field-label,
.ib-field input:-webkit-autofill + .ib-field-label {
  top: 7px;
  transform: none;
  font-size: 12px;
  font-weight: 600;
  color: #5b6577;
}
.ib-field input:focus + .ib-field-label { color: var(--ib-green-dark); }
.ib-field.is-invalid .ib-field-label { color: var(--ib-required); }

/* Keep autofilled fields white instead of Chrome's tinted background */
.ib-field input:-webkit-autofill,
.ib-field input:-webkit-autofill:hover,
.ib-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ib-ink);
  -webkit-box-shadow: 0 0 0 60px #ffffff inset;
  transition: background-color 9999s ease-out 0s;
}

/* Textarea: icon and label sit at the top, text area grows below */
.ib-field.ib-field-area {
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 8px;
}
.ib-field-area .ib-field-icon { margin-top: 1px; }
.ib-field textarea {
  resize: vertical;
  min-height: clamp(64px, 8vh, 96px);
  max-height: 260px;
  padding: 22px 0 2px 0;
  margin-top: -14px;
}
.ib-field-area .ib-field-label { top: 12px; transform: translateY(-50%); }
.ib-field textarea:focus + .ib-field-label,
.ib-field textarea:not(:placeholder-shown) + .ib-field-label {
  top: -7px;
  transform: none;
  font-size: 12px;
  font-weight: 600;
  color: #5b6577;
}
.ib-field textarea:focus + .ib-field-label { color: var(--ib-green-dark); }

.ib-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: clamp(48px, 6vh, 64px);
  padding: 6px 18px;
  border: 1.5px dashed #a9dc8c;
  border-radius: 10px;
  background: #f6fcf2;
  cursor: pointer;
  transition: background 0.15s;
}
.ib-upload:hover { background: #eef9e5; }
.ib-upload:focus-within {
  border-color: var(--ib-green-bright);
  box-shadow: 0 0 0 3px rgba(61, 181, 18, 0.15);
}
.ib-upload-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-upload-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ib-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ib-upload-hint { font-size: 14px; color: var(--ib-muted); }
.ib-upload-browse { font-size: 16px; font-weight: 600; color: var(--ib-green-dark); flex: none; }
.ib-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.ib-cta {
  margin-top: clamp(14px, 2.6vh, 32px);
  width: 100%;
  height: clamp(48px, 6.4vh, 64px);
  border: none;
  border-radius: 14px;
  background: var(--ib-grad);
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(20px, 2.7vh, 28px);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(42, 152, 10, 0.28);
  transition: filter 0.15s, transform 0.15s;
}
.ib-cta:hover { filter: brightness(1.05); }
.ib-cta:active { transform: translateY(1px); }
.ib-cta svg { width: 28px; height: 28px; }
.ib-cta[disabled] { cursor: progress; filter: saturate(0.6) brightness(1.02); }

.ib-form-status {
  margin: 12px 2px 0 2px;
  font-size: 15px;
  line-height: 1.45;
  min-height: 0;
}
.ib-form-status:empty { display: none; }
.ib-form-status.is-error { color: var(--ib-required); }
.ib-form-status.is-success {
  color: var(--ib-green-dark);
  background: #edf9e5;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 500;
}

/* ---------- Feature strip ---------- */
.ib-strip-wrap {
  position: relative;
  z-index: 3;
  margin: clamp(16px, 2.8vh, 36px) 0 0 0;
  padding: 0 var(--ib-side);
}
.ib-strip {
  display: grid;
  grid-template-columns: 2.05fr 1fr 1.05fr 1fr;
  align-items: center;
  row-gap: 16px;
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(14px, 2.4vh, 34px) clamp(16px, 2vw, 24px) clamp(14px, 2.4vh, 34px) clamp(20px, 3vw, 44px);
  box-shadow: 0px 10px 11px 0px #007f0538;
  border: 1px solid #eef3ea;
}
.ib-strip-title { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.ib-strip-bar {
  width: 8px;
  height: clamp(48px, 6.6vh, 72px);
  border-radius: 6px;
  background: var(--ib-grad);
  flex: none;
}
.ib-strip-title p {
  margin: 0;
  font-size: clamp(22px, min(2.4vw, 3.6vh), 34px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ib-ink);
  letter-spacing: -0.3px;
}
.ib-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.1vh, 12px);
  text-align: center;
  border-left: 2px solid #c5ebb0;
  padding: 4px 12px;
}
.ib-strip-item svg { width: clamp(30px, 4.2vh, 46px); height: clamp(30px, 4.2vh, 46px); }
.ib-strip-item svg.wide { width: clamp(40px, 5.5vh, 60px); }
.ib-strip-item p {
  margin: 0;
  font-size: clamp(14px, 1.9vh, 19px);
  line-height: 1.3;
  color: var(--ib-text);
}
.ib-strip-glow {
  position: absolute;
  left: -57px;
  bottom: clamp(40px, 6vh, 70px);
  width: 2000px;
  height: 94px;
  border-radius: 8px;
  background: linear-gradient(90deg, #D3F2BD 0%, #D3F2BD 15%, #CFF2B6 73%, #3AB511 100%);
  filter: blur(14px);
  pointer-events: none;
}

/* ---------- PROCESS ---------- */
.ib-process {
  padding: clamp(64px, 9vh, 104px) var(--ib-side) 0 var(--ib-side);
  text-align: center;
  width: 100%;
}
.ib-process .ib-spark { right: -58px; top: -26px; }

.ib-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr);
  align-items: center;
  margin: 52px 0 0 0;
}
.ib-step {
  min-height: 300px;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f1fbea 100%);
  border-radius: 20px;
  padding: 30px 16px 24px 16px;
  box-shadow: 0px 10px 10px 0px #07830930;
  border: 1px solid #eaf4e3;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ib-step:hover { transform: translateY(-4px); box-shadow: 0px 16px 20px 0px #07830930; }
.ib-step svg { width: 44px; height: 44px; }
.ib-day {
  margin-top: 18px;
  background: var(--ib-grad);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  padding: 4px 18px;
  border-radius: 999px;
}
.ib-step h3 {
  margin: 16px 0 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ib-ink);
  line-height: 24px;
}
.ib-step p {
  margin: 12px 0 0 0;
  font-size: 18px;
  line-height: 26px;
  color: var(--ib-text);
}
.ib-step.compact { padding-left: 14px; padding-right: 14px; }
.ib-step.compact h3 { line-height: 21px; }
.ib-step.compact p { font-size: 15px; line-height: 22px; }
.ib-conn { height: 4px; background: var(--ib-green-bright); }

/* ---------- FAQ ---------- */
.ib-faq {
  position: relative;
  padding: 104px 0 150px 0;
  width: 100%;
}
.ib-faq-waves {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 84px;
  z-index: 0;
  overflow: visible;
}
.ib-faq-inner { position: relative; z-index: 1; padding: 0 var(--ib-side); }
.ib-faq-head { text-align: center; }
.ib-faq .ib-spark { right: -40px; top: -30px; }

.ib-faq-list {
  margin: 44px 0 0 0;
  background: #ffffff;
  border: 1px solid #e8efe4;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 27, 45, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ib-faq-item {
  border-radius: 14px;
  border: 1.5px solid #e4ece0;
  background: #ffffff;
  padding: 0 32px 0 30px;
  transition: background 0.2s, border-color 0.2s, padding 0.2s;
}
.ib-faq-item.is-open {
  background: #edf9e5;
  border-color: #edf9e5;
  padding: 24px 32px 26px 28px;
}
.ib-faq-item h3 { margin: 0; font-size: inherit; }
.ib-faq-q {
  width: 100%;
  min-height: 71px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
  border-radius: 8px;
}
.ib-faq-item.is-open .ib-faq-q { min-height: 0; }
.ib-faq-q .ib-q-icon { width: 28px; height: 28px; flex: none; }
.ib-faq-q span {
  flex: 1;
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ib-ink);
}
.ib-faq-q .ib-chev {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: var(--ib-icon);
  transition: transform 0.2s, stroke 0.2s;
}
.ib-faq-item.is-open .ib-chev { transform: rotate(180deg); stroke: var(--ib-green); }
.ib-faq-q:hover span { color: #1b2c47; }
.ib-faq-a p {
  margin: 12px 0 0 50px;
  font-size: 16px;
  line-height: 26px;
  color: var(--ib-text);
  max-width: 970px;
}

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  /* 5 cards + connectors get too narrow; wrap into rows instead */
  .ib-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
  }
  .ib-step { flex: 0 1 calc((100% - 48px) / 3); min-height: 260px; height: auto; }
  .ib-conn { display: none; }
}

@media (max-width: 1024px) {
  .ib-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    column-gap: 32px;
  }
}

@media (max-width: 860px) {
  .ib-first { min-height: 0; }
  .ib-hero { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .ib-hero-copy { text-align: left; }
  .ib-laptop {
    height: auto;
    width: 100%;
    max-width: 560px;
    margin: 16px 0 0 0;
  }
  .ib-form { max-width: 560px; }
  .ib-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ib-strip-title { grid-column: 1 / -1; }
  .ib-strip-item:nth-child(2) { border-left: none; }
  .ib-strip-glow { display: none; }

  .ib-faq { padding: 80px 0 130px 0; }
  .ib-faq-item { padding: 0 20px; }
  .ib-faq-item.is-open { padding: 18px 20px 20px 20px; }
  .ib-faq-q { gap: 14px; min-height: 64px; }
  .ib-faq-q span { font-size: 17px; line-height: 23px; }
  .ib-faq-a p { margin-left: 42px; }
}

@media (max-width: 680px) {
  /* Steps: single column with vertical connectors */
  .ib-steps {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .ib-step { flex: none; min-height: 0; padding: 26px 18px 26px 18px; }
  .ib-step:hover { transform: none; }
  .ib-conn { display: block; width: 4px; height: 18px; align-self: center; }
  .ib-process .ib-spark { right: -30px; top: -28px; transform: scale(.8); }
  .ib-faq .ib-spark { right: -24px; top: -30px; transform: scale(.8); }
}

@media (max-width: 520px) {
  .ib-h1 { font-size: 34px; }
  .ib-big { font-size: 50px; }
  .ib-hero-spark { left: auto; right: 0; top: -36px; }
  .ib-form { border-radius: 20px; padding: 22px 16px; }

  .ib-field { gap: 12px; padding: 0 14px; min-height: 56px; }
  .ib-field.ib-field-area { padding-top: 14px; }
  .ib-field-icon { width: 22px; height: 22px; }
  .ib-upload { padding: 10px 14px; gap: 10px; }
  .ib-upload-title { font-size: 15px; }
  .ib-upload-hint { font-size: 13px; }

  .ib-strip { grid-template-columns: minmax(0, 1fr); padding: 18px 18px; }
  .ib-strip-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
    border-left: none;
    border-top: 2px solid #c5ebb0;
    padding: 12px 4px 0 4px;
  }
  .ib-strip-item p br { display: none; }
  .ib-strip-item svg, .ib-strip-item svg.wide { width: 34px; height: 30px; flex: none; }

  .ib-pill { font-size: 15px; padding: 4px 18px; }
  .ib-faq-list { padding: 10px; gap: 10px; border-radius: 16px; }
  .ib-faq-item { padding: 0 14px; }
  .ib-faq-item.is-open { padding: 14px 14px 16px 14px; }
  .ib-faq-q { gap: 12px; min-height: 60px; padding: 8px 0; }
  .ib-faq-item.is-open .ib-faq-q { padding: 0; }
  .ib-faq-q .ib-q-icon { width: 24px; height: 24px; }
  .ib-faq-q span { font-size: 16px; line-height: 22px; }
  .ib-faq-a p { margin: 10px 0 0 0; font-size: 15px; line-height: 24px; }
}
