/* ==========================================================================
   Appslin — Portal Development page styles
   Loaded AFTER css/homepage-custom.css. Only adds page-specific layout.
   No existing production stylesheet is modified by this file.
   ========================================================================== */

/* ---------- Hero ---------- */
.portal-hero {
  position: relative;
  padding: clamp(38px, 5vw, 74px) 0 clamp(34px, 4.4vw, 64px);
  background:
    radial-gradient(1000px 460px at 12% -10%, rgba(37, 99, 235, .14), transparent 62%),
    radial-gradient(760px 420px at 96% 0%, rgba(16, 185, 129, .12), transparent 60%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
  overflow: hidden;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}
.crumbs a { color: #64748b; text-decoration: none; }
.crumbs a:hover { color: #2563eb; }
.crumbs strong { color: #0a1f44; font-weight: 600; }

.portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
}
.portal-hero h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  margin: 12px 0 16px;
}
.portal-hero p { margin: 0 0 12px; }
.portal-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.portal-hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 31, 68, .08);
  box-shadow: 0 26px 60px -30px rgba(10, 31, 68, .45);
}
.portal-hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section shells ---------- */
.section--tint { background: linear-gradient(180deg, #f6f8fd 0%, #ffffff 100%); }
.section--dark {
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(37, 99, 235, .28), transparent 60%),
    linear-gradient(180deg, #08172f 0%, #0a1f44 100%);
  color: #e6edf9;
}
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5 { color: #fff; }
.section--dark p, .section--dark li { color: rgba(230, 237, 249, .82); }
.section--dark .eyebrow { color: #cfe0ff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }

.p-note {
  max-width: 900px;
  margin: 26px auto 0;
  text-align: center;
  color: #475569;
}

/* ---------- Generic card grids ---------- */
.p-grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
}
.p-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.p-card {
  background: #fff;
  border: 1px solid rgba(10, 31, 68, .08);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 12px 30px -24px rgba(10, 31, 68, .5);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.p-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 26px 46px -28px rgba(10, 31, 68, .55);
}
.p-card-ico {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(16, 185, 129, .14));
}
.p-card-ico img { max-width: 34px; max-height: 34px; object-fit: contain; }
.p-card h4 { font-size: 19px; margin: 0 0 8px; }
.p-card p { margin: 0; color: #475569; font-size: 15.5px; }
.p-card--text { border-left: 4px solid #2563eb; }

/* ---------- Split layouts ---------- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 52px);
  align-items: center;
}
.split-grid--rev .split-visual { order: -1; }
.split-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(10, 31, 68, .1);
  background: #fff;
  box-shadow: 0 22px 48px -30px rgba(10, 31, 68, .5);
}
.split-visual img { display: block; width: 100%; height: auto; }
.section--dark .split-visual { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }

/* ---------- Numbered steps ---------- */
.step-list { display: grid; gap: 14px; }
.step-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #10b981);
}
.step-item p { margin: 0; }

/* ---------- Check list ---------- */
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  line-height: 1.65;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .92);
}

/* ---------- Portal type cards ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.type-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10, 31, 68, .08);
  border-radius: 18px;
  padding: 26px 22px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.type-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.type-card:hover { transform: translateY(-6px); border-color: rgba(37, 99, 235, .3); box-shadow: 0 26px 46px -28px rgba(10, 31, 68, .55); }
.type-card:hover::after { opacity: 1; }
.type-ico {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(16, 185, 129, .14));
}
.type-ico img { max-width: 36px; max-height: 36px; object-fit: contain; }
.type-card h5 { font-size: 18px; margin: 0 0 8px; }
.type-card p { margin: 0; color: #475569; font-size: 15.5px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; padding-left: 26px; display: grid; gap: 18px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #10b981);
  opacity: .35;
}
.tl-item { position: relative; }
.tl-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2563eb;
}
.tl-item p { margin: 0; }

/* ---------- Complimentary band ---------- */
.comp-band {
  border-radius: 22px;
  padding: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(16, 185, 129, .22), transparent 60%),
    linear-gradient(135deg, #0a1f44 0%, #123a7a 100%);
  color: #fff;
  display: grid;
  gap: 22px;
  justify-items: start;
}
.comp-head { display: flex; align-items: center; gap: 14px; }
.comp-head img { width: 46px; height: 46px; object-fit: contain; }
.comp-head h5 { margin: 0; color: #fff; font-size: clamp(20px, 2.4vw, 27px); }
.comp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
}
.comp-list li {
  padding: 13px 16px 13px 42px;
  border-radius: 12px;
  position: relative;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
}
.comp-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 8px;
  border-left: 2px solid #6ee7b7;
  border-bottom: 2px solid #6ee7b7;
  transform: translateY(-70%) rotate(-45deg);
}
.comp-band .btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }

/* ---------- FAQ accordion ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.faq-art { display: block; width: 100%; max-width: 320px; margin-top: 22px; }
.accordion { display: grid; gap: 12px; }
.acc-item {
  background: #fff;
  border: 1px solid rgba(10, 31, 68, .1);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.acc-item.is-open { border-color: rgba(37, 99, 235, .38); box-shadow: 0 18px 40px -30px rgba(10, 31, 68, .6); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.acc-head h6 { margin: 0; font-size: 16.5px; color: #0a1f44; line-height: 1.45; }
.acc-head svg { width: 20px; height: 20px; flex: 0 0 20px; color: #2563eb; transition: transform .25s ease; }
.acc-item.is-open .acc-head svg { transform: rotate(180deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > p {
  overflow: hidden;
  margin: 0;
  padding: 0 20px;
  color: #475569;
}
.acc-item.is-open .acc-body > p { padding-bottom: 20px; }

/* ---------- Request info ---------- */
.info-art { display: block; width: 100%; margin-top: 22px; border-radius: 16px; }

/* Hide any asset that fails to load so the layout never breaks */
img.img-missing, .p-card-ico:empty, .type-ico:empty { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .p-grid--3, .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .portal-hero-grid,
  .split-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .split-grid--rev .split-visual { order: 0; }
  .portal-hero-visual { order: -1; }
}
@media (max-width: 640px) {
  .p-grid--3, .type-grid { grid-template-columns: minmax(0, 1fr); }
  .portal-hero .hero-actions .btn { width: 100%; text-align: center; }
  .comp-band { justify-items: stretch; }
  .comp-band .btn-outline { text-align: center; }
}
