:root{
  --gold:#DEA11D;
  --cyan:#01E6F8;
  --bg:#06070a;
  --panel:rgba(255,255,255,0.05);
  --panel-border:rgba(255,255,255,0.10);
}
*{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:#f2f3f5;
  font-family:'Inter',system-ui,sans-serif;
  overflow-x:hidden;
}
#bg-canvas{ position:fixed; inset:0; z-index:0; opacity:0.9; }
.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:0.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gradient-text{ background:linear-gradient(90deg, var(--gold), var(--cyan)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.gradient-btn{
  background:linear-gradient(90deg, var(--gold), var(--cyan));
  color:#06070a; font-weight:700;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow:0 8px 30px -8px rgba(1,230,248,0.45);
}
.gradient-btn:hover{ transform:translateY(-2px) scale(1.02); filter:brightness(1.08); box-shadow:0 14px 40px -8px rgba(1,230,248,0.6); }
.gradient-btn:active{ transform:translateY(0) scale(0.98); filter:brightness(0.96); }
.gradient-btn:disabled{ opacity:0.6; cursor:not-allowed; transform:none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--cyan); outline-offset:2px; border-radius:8px;
}
.glass{ background:var(--panel); border:1px solid var(--panel-border); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); }
.glass-card{
  background:var(--panel); border:1px solid var(--panel-border);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  transition:transform .25s ease, border-color .35s ease, box-shadow .35s ease;
  transform-style:preserve-3d; will-change:transform;
}
.glass-card:hover{ border-color:rgba(1,230,248,0.4); box-shadow:0 20px 60px -20px rgba(1,230,248,0.3); }
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible{ opacity:1; transform:translateY(0); }
.stagger > *{ transition-delay:calc(var(--i, 0) * 90ms); }
nav.scrolled{ background:rgba(6,7,10,0.75); border-bottom:1px solid var(--panel-border); }
.step-line{ background:linear-gradient(90deg, var(--gold), var(--cyan)); height:2px; }
.tab-btn.active{ background:linear-gradient(90deg, var(--gold), var(--cyan)); color:#06070a; font-weight:700; }
input, select, textarea{ background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.12); color:#f2f3f5; }
input::placeholder, textarea::placeholder{ color:rgba(255,255,255,0.4); }
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(1,230,248,0.15); }
input.field-error, textarea.field-error{ border-color:#f87171 !important; box-shadow:0 0 0 3px rgba(248,113,113,0.15) !important; }
.error-msg{ color:#f87171; font-size:12px; margin-top:6px; min-height:14px; }
.fab-stack{ position:fixed; bottom:24px; left:24px; z-index:40; display:flex; flex-direction:column; gap:14px; }
.fab{
  width:56px; height:56px; border-radius:9999px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 30px -6px rgba(1,230,248,0.5); cursor:pointer; text-decoration:none;
}
.fab-gradient{ background:linear-gradient(135deg, var(--gold), var(--cyan)); animation:float 3.5s ease-in-out infinite; }
.fab-whatsapp{ background:#25D366; animation:float 3.5s ease-in-out infinite; animation-delay:.3s; }
@keyframes float{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.progress-step{ width:32px; height:32px; border-radius:9999px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; border:1px solid var(--panel-border); background:rgba(255,255,255,0.05); color:rgba(255,255,255,0.5); transition:all .3s ease; }
.progress-step.active{ background:linear-gradient(90deg, var(--gold), var(--cyan)); color:#06070a; border-color:transparent; }
.progress-step.done{ background:rgba(1,230,248,0.15); color:var(--cyan); border-color:rgba(1,230,248,0.4); }
.progress-track{ height:2px; flex:1; background:rgba(255,255,255,0.1); position:relative; overflow:hidden; }
.progress-track > span{ position:absolute; inset:0; background:linear-gradient(90deg, var(--gold), var(--cyan)); transform:scaleX(0); transform-origin:left; transition:transform .4s ease; }
.progress-track.done > span{ transform:scaleX(1); }
.form-step{ display:none; }
.form-step.active{ display:block; animation:stepIn .4s ease; }
@keyframes stepIn{ from{opacity:0; transform:translateX(16px);} to{opacity:1; transform:translateX(0);} }
.faq-item .faq-a{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.faq-item.open .faq-a{ max-height:280px; }
.faq-item .chev{ transition:transform .3s ease; }
.faq-item.open .chev{ transform:rotate(45deg); }
.success-box{ display:none; }
.success-box.show{ display:flex; animation:stepIn .4s ease; }
#mobile-menu{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
#mobile-menu.open{ max-height:min(520px, calc(100vh - 84px)); overflow-y:auto; -webkit-overflow-scrolling:touch; }
.nav-scrim{ display:none; }
.nav-scrim.open{ display:block; position:fixed; inset:0; z-index:20; background:rgba(0,0,0,.45); }
.hamburger span{ transition:transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.count-num{ font-variant-numeric:tabular-nums; }
input[type="range"]{ -webkit-appearance:none; height:6px; border-radius:9999px; background:rgba(255,255,255,0.12); }
input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; width:20px; height:20px; border-radius:9999px; background:linear-gradient(135deg, var(--gold), var(--cyan)); cursor:pointer; box-shadow:0 4px 14px -2px rgba(1,230,248,0.6); }
.banner-error{ display:none; }
.banner-error.show{ display:block; }
.product-option{
  display:flex; flex-direction:column; gap:6px; padding:18px; border-radius:16px;
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.12);
  cursor:pointer; transition:border-color .25s ease, background .25s ease, transform .25s ease;
}
.product-option:hover{ transform:translateY(-2px); border-color:rgba(1,230,248,0.32); }
.product-option.selected{ background:rgba(1,230,248,0.10); border-color:rgba(1,230,248,0.55); }
.product-option input{ position:absolute; opacity:0; pointer-events:none; }
.product-option-title{ color:#fff; font-size:14px; font-weight:700; }
.product-option-meta{ color:rgba(255,255,255,0.52); font-size:12px; line-height:1.5; }
.product-fact-box{
  border:1px solid rgba(222,161,29,0.35); background:rgba(222,161,29,0.08);
  border-radius:16px; padding:18px; color:rgba(255,255,255,0.68); font-size:13px; line-height:1.7;
}
.draft-status-card,.precheck-card{
  border:1px solid rgba(1,230,248,.18); background:rgba(255,255,255,.035);
  border-radius:16px; padding:18px;
}
.draft-status-card{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.draft-status-card[hidden]{ display:none; }
.draft-status-card strong,.draft-status-card span{ display:block; }
.draft-status-card strong{ color:#fff; margin-top:7px; }
.draft-status-card span:not(.draft-pill){ color:rgba(255,255,255,.46); font-size:12px; margin-top:4px; }
.draft-pill{
  display:inline-flex; width:max-content; align-items:center; border-radius:999px; padding:6px 9px;
  border:1px solid rgba(222,161,29,.34); background:rgba(222,161,29,.10);
  color:rgba(255,255,255,.78); font-size:11px; font-weight:800;
}
.precheck-field{ display:grid; gap:8px; color:rgba(255,255,255,.58); font-size:12px; font-weight:700; }
.precheck-field input,.precheck-field select{ width:100%; border-radius:12px; padding:12px 13px; font-size:14px; }
.precheck-result{
  border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.16); border-radius:16px; padding:16px;
}
.precheck-choice{
  display:grid; gap:8px; padding:14px; border-radius:14px; border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.precheck-choice strong{ color:#fff; font-size:14px; }
.precheck-choice span{ color:rgba(255,255,255,.52); font-size:12px; line-height:1.55; }
.precheck-choice button{ justify-self:start; color:var(--cyan); font-weight:800; font-size:12px; }
.precheck-warnings{ margin-top:12px; display:grid; gap:6px; color:#fcd34d; font-size:12px; }
.check-row{
  display:flex; gap:12px; align-items:flex-start; padding:14px; border-radius:14px;
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.10);
  color:rgba(255,255,255,0.72); font-size:13px; line-height:1.5;
}
.check-row input{ margin-top:3px; flex:0 0 auto; accent-color:var(--cyan); }
.section-title{
  color:rgba(255,255,255,0.82); font-weight:700; margin-bottom:18px; padding-top:8px;
  border-top:1px solid rgba(255,255,255,0.10);
}
.download-chip{
  display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px;
  border-radius:9999px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.78); text-align:center; transition:border-color .25s ease, color .25s ease;
}
.download-chip:hover{ border-color:rgba(1,230,248,0.45); color:#fff; }
.client-img{
  width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:16px;
  border:1px solid rgba(255,255,255,0.12);
}
.hero-photo{
  width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:24px;
  border:1px solid rgba(255,255,255,0.12); box-shadow:0 24px 80px -32px rgba(1,230,248,0.45);
}
@media print{
  body{ background:#fff !important; color:#111 !important; }
  nav, footer, #bg-canvas, .grain, .fab-stack, #progress-bar, .step-back, .gradient-btn, .download-chip, #download-application, #print-application{ display:none !important; }
  .glass-card, .glass{ background:#fff !important; border:1px solid #ddd !important; color:#111 !important; box-shadow:none !important; }
  .form-step{ display:none !important; }
  .form-step.active{ display:block !important; }
  .text-white\/70, .text-white\/60, .text-white\/50, .text-white\/40{ color:#333 !important; }
  #review-summary{ font-size:12px; }
}

/* Nav active-link state */
[data-nav-link].active{ color:#fff; }

/* Process-flow step rows (How it works, detailed page) */
.flow-step{ display:flex; gap:20px; align-items:flex-start; padding:18px 0; border-bottom:1px solid rgba(255,255,255,0.08); }
.flow-step:last-of-type{ border-bottom:none; }
.flow-step-num{
  width:36px; height:36px; border-radius:9999px; flex-shrink:0;
  background:linear-gradient(90deg, var(--gold), var(--cyan)); color:#06070a; font-weight:800; font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.flow-step h4{ font-weight:600; margin-bottom:4px; }
.flow-step p{ font-size:14px; color:rgba(255,255,255,0.6); line-height:1.6; margin:0; }

#intro-splash{
  position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 50% 40%, rgba(222,161,29,0.08), transparent 60%), var(--bg);
  transition:opacity .45s ease, visibility .45s ease;
}
#intro-splash.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.intro-ring{
  position:absolute; width:340px; height:340px; border-radius:9999px;
  background:conic-gradient(from 0deg, var(--gold), var(--cyan), var(--gold));
  filter:blur(2px); opacity:0.35;
  animation:introSpin 6s linear infinite;
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
@keyframes introSpin{ to{ transform:rotate(360deg); } }
.intro-content{ position:relative; text-align:center; }
.intro-logo{
  font-size:clamp(2.5rem, 6vw, 4.5rem); font-weight:800; letter-spacing:-0.02em;
  opacity:0; transform:perspective(800px) rotateX(70deg) translateY(40px) scale(0.8);
  animation:introLogoIn .5s cubic-bezier(.2,.8,.2,1) forwards .05s;
}
.intro-tagline{
  margin-top:14px; font-size:.75rem; letter-spacing:.35em; text-transform:uppercase; color:rgba(255,255,255,0.45);
  opacity:0; animation:introFadeUp .4s ease forwards .4s;
}
@keyframes introLogoIn{ to{ opacity:1; transform:perspective(800px) rotateX(0deg) translateY(0) scale(1); } }
@keyframes introFadeUp{ to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){
  .intro-ring, .intro-logo, .intro-tagline{ animation:none !important; opacity:1 !important; transform:none !important; }
}
@media (max-width: 900px){
  #apply{ padding-left:16px; padding-right:16px; overflow-x:hidden; }
  #apply *{ min-width:0; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; }
  #apply .grid{ grid-template-columns:minmax(0, 1fr) !important; }
  #apply > .reveal, #apply form, #apply .glass-card{ width:100%; max-width:calc(100vw - 32px); }
  .glass-card, .glass, .product-option, .check-row, .product-fact-box{ max-width:100%; min-width:0; }
  .inline-flex.glass{ white-space:normal; text-align:left; align-items:flex-start; max-width:100%; }
  .progress-track{ min-width:18px; }
  .progress-step{ width:30px; height:30px; flex:0 0 30px; }
  #apply .glass-card{ width:100%; padding:24px 18px; border-radius:20px; }
  #apply h1{ font-size:clamp(2rem, 9vw, 2.7rem) !important; line-height:1.08 !important; }
  .fab-stack{ bottom:14px; left:14px; gap:10px; }
  .fab{ width:48px; height:48px; }
}

/* --- responsive tables & mobile polish --- */
.table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-wrap table{ min-width:720px; }
.client-img{ width:100%; object-fit:cover; border-radius:1rem; display:block; }
@media (max-width: 900px){
  input, select, textarea{ font-size:16px !important; } /* prevent iOS zoom */
  .table-wrap table{ min-width:640px; }
}
@media (max-width: 640px){
  .glass-card{ border-radius:1rem; }
  .method-btn{ padding:0.9rem 0.5rem; }
}

/* ===== Premium polish layer ===== */

/* Type scale */
h1{ letter-spacing:-0.03em; }
h2{ letter-spacing:-0.02em; }
p{ line-height:1.7; }

/* Section eyebrow label */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--cyan); margin-bottom:14px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:linear-gradient(90deg, var(--gold), var(--cyan)); }

/* Secondary (ghost) button, consistent with gradient-btn */
.ghost-btn{
  border:1px solid rgba(255,255,255,0.16); color:rgba(255,255,255,0.85);
  background:rgba(255,255,255,0.03);
  transition:border-color .25s ease, background .25s ease, transform .25s ease;
}
.ghost-btn:hover{ border-color:rgba(1,230,248,0.5); background:rgba(1,230,248,0.06); color:#fff; transform:translateY(-2px); }
.ghost-btn:active{ transform:translateY(0); }

/* Card lift for linked cards */
a.glass-card:hover{ transform:translateY(-4px); }

/* Table refinement */
.table-wrap tbody tr{ transition:background .2s ease; }
.table-wrap tbody tr:hover{ background:rgba(1,230,248,0.05); }

/* Full-width band section (breaks the floating-card rhythm) */
.band{
  border-top:1px solid rgba(255,255,255,0.08);
  border-bottom:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg, rgba(222,161,29,0.05), rgba(1,230,248,0.04));
}

/* Customer portal bridge shown across public pages */
.portal-bridge-inner{
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:
    linear-gradient(135deg, rgba(1,230,248,.08), rgba(222,161,29,.06)),
    rgba(255,255,255,.035);
  padding:clamp(22px,4vw,42px);
  box-shadow:0 24px 90px -48px rgba(1,230,248,.45);
}
.portal-bridge-copy{ max-width:760px; }
.portal-bridge-copy h2{
  font-size:clamp(1.7rem,3.2vw,2.7rem);
  line-height:1.08;
  font-weight:800;
  margin-bottom:14px;
}
.portal-bridge-copy p:not(.eyebrow){ color:rgba(255,255,255,.58); max-width:680px; }
.portal-bridge-actions{ display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; }
.portal-bridge-primary,.portal-bridge-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 18px;
  border-radius:8px;
  font-size:14px;
  font-weight:800;
}
.portal-bridge-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.portal-bridge-card{
  min-height:150px;
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:16px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(7,9,13,.48);
  color:rgba(255,255,255,.62);
  transition:border-color .2s ease, background .2s ease, transform .2s ease;
}
.portal-bridge-card:hover{
  transform:translateY(-2px);
  border-color:rgba(1,230,248,.38);
  background:rgba(1,230,248,.08);
  color:rgba(255,255,255,.78);
}
.portal-bridge-card .icon{ color:var(--cyan); width:22px; height:22px; }
.portal-bridge-card strong{ color:#fff; font-size:14px; }
.portal-bridge-card span{ font-size:12px; line-height:1.55; }
.portal-bridge-note{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.09);
  color:rgba(255,255,255,.4);
  font-size:12px;
}

/* Hero visual anchor: photo with floating proof cards */
.hero-anchor{ position:relative; }
.hero-float{
  position:absolute; padding:14px 18px; border-radius:16px;
  background:rgba(10,12,16,0.85); border:1px solid rgba(255,255,255,0.14);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  box-shadow:0 18px 50px -18px rgba(0,0,0,0.7);
  font-size:13px; text-align:left; line-height:1.45;
  animation:float 5s ease-in-out infinite;
}
.hero-float .hf-title{ font-weight:700; color:#fff; }
.hero-float .hf-sub{ color:rgba(255,255,255,0.55); font-size:11.5px; }
.hero-float-1{ top:8%; left:-14px; animation-delay:.2s; }
.hero-float-2{ bottom:10%; right:-14px; animation-delay:1.1s; }
.hero-float-3{ bottom:-16px; left:8%; animation-delay:2s; }
@media (max-width: 768px){
  .hero-float{ position:static; animation:none; margin-top:10px; width:100%; }
  .hero-anchor .hero-float-group{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
  .hero-float-3{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .hero-float, .fab-gradient, .fab-whatsapp{ animation:none !important; }
  .reveal{ transition:none; opacity:1; transform:none; }
}

/* Selected-product form chip highlight on apply page */
.download-chip.chip-active{
  border-color:rgba(222,161,29,0.65); color:#fff;
  background:rgba(222,161,29,0.12);
  box-shadow:0 8px 26px -12px rgba(222,161,29,0.5);
}

/* ===== Icon system ===== */
.icon{ width:1.25em; height:1.25em; display:inline-block; vertical-align:-0.22em; flex-shrink:0; }
.fab{ color:#fff; }
.fab .icon{ width:24px; height:24px; vertical-align:middle; }
.fab-gradient{ color:#06070a; }
.icon-badge .icon{ width:20px; height:20px; vertical-align:middle; }
.value-chip{ display:inline-flex; align-items:center; gap:8px; }
.value-chip .icon{ color:var(--cyan); }
.social-icon-row a{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; background:rgba(255,255,255,.06); color:rgba(255,255,255,.7); transition:background .15s ease,color .15s ease; }
.social-icon-row a:hover{ background:rgba(1,230,248,.15); color:#fff; }
.social-icon-row .icon{ width:16px; height:16px; }

/* Final responsive hardening for form-heavy pages */
html, body{ width:100%; max-width:100%; }
main, section, header, footer, nav{ max-width:100vw; }
.glass-card, .glass, .download-chip, .product-option, .check-row, .product-fact-box{ overflow-wrap:anywhere; }
textarea{ resize:vertical; }
select{ text-overflow:ellipsis; }
select{
  background-color:#11151b;
  color:#f4f6f8;
  border-color:rgba(255,255,255,.2);
}
select option{ background:#11151b; color:#f4f6f8; }
select:hover{ border-color:rgba(1,230,248,.45); }

@media (max-width: 768px){
  body{ font-size:15px; }
  #home,
  #apply{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box;
    overflow:hidden;
  }
  #home > .reveal,
  #apply > .reveal{
    width:100% !important;
    max-width:calc(100vw - 32px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  #home > .hero-anchor,
  #apply > .glass-card{ max-width:calc(100vw - 32px) !important; }
  #apply > .glass-card{ margin-left:auto !important; margin-right:auto !important; }
  .portal-bridge{ padding-left:1rem !important; padding-right:1rem !important; }
  .portal-bridge-grid{ grid-template-columns:1fr 1fr; }
  .portal-bridge-card{ min-height:138px; }
  nav .max-w-7xl,
  header,
  section,
  footer .max-w-7xl{ padding-left:1rem !important; padding-right:1rem !important; }
  header{ padding-top:8.5rem !important; padding-bottom:4.5rem !important; }
  h1{ font-size:clamp(1.95rem, 8.2vw, 2.45rem) !important; line-height:1.1 !important; overflow-wrap:break-word; }
  h2{ font-size:clamp(1.75rem, 8vw, 2.4rem) !important; line-height:1.14 !important; }
  header .reveal.inline-flex,
  #apply .reveal .inline-flex{
    display:flex !important;
    width:calc(100vw - 32px) !important;
    max-width:calc(100vw - 32px) !important;
    margin-left:auto;
    margin-right:auto;
    justify-content:center;
    white-space:normal;
  }
  #apply .reveal .inline-flex{ display:block !important; text-align:center; }
  #apply .reveal .inline-flex span{ display:none; }
  header .reveal.flex{ flex-direction:column; align-items:stretch; max-width:20rem; margin-left:auto; margin-right:auto; }
  header .reveal.flex a{ width:100%; text-align:center; }
  .hero-photo{ border-radius:18px; aspect-ratio:4/3; }
  .hero-anchor .hero-float-group{ grid-template-columns:1fr; }
  .grid{ min-width:0; }
  .download-chip{ border-radius:14px; justify-content:flex-start; text-align:left; }
  .draft-status-card{ align-items:stretch; flex-direction:column; }
  .table-wrap{ margin-left:-1rem; margin-right:-1rem; padding-left:1rem; padding-right:1rem; }
  .fab-stack{ display:none; }
}

@media (max-width: 420px){
  #apply h1{ font-size:clamp(1.75rem, 7.5vw, 2.05rem) !important; }
  #apply .inline-flex.glass{ font-size:11px; }
  header h1{ font-size:clamp(1.85rem, 8vw, 2.18rem) !important; }
  #mobile-menu .glass{ border-radius:16px; padding:12px; }
  .portal-bridge-grid{ grid-template-columns:1fr; }
  .portal-bridge-actions{ display:grid; }
  .progress-step{ width:28px; height:28px; flex-basis:28px; font-size:12px; }
  .progress-track{ min-width:10px; }
  #apply .glass-card{ max-width:100%; padding:20px 14px; }
  .product-option, .check-row, .product-fact-box{ padding:14px; }
  input[type="file"]{ font-size:13px !important; }
}

/* Ask ClickAI */
.clickai-panel{
  position:fixed; z-index:55; left:92px; bottom:24px; width:min(360px,calc(100vw - 32px));
  padding:16px; border:1px solid rgba(255,255,255,.14); border-radius:8px;
  background:rgba(10,12,16,.98); box-shadow:0 24px 80px rgba(0,0,0,.55);
  opacity:0; visibility:hidden; transform:translateY(12px); transition:.2s ease;
}
.clickai-panel.open{ opacity:1; visibility:visible; transform:none; }
.clickai-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.clickai-head strong,.clickai-head span{ display:block; }
.clickai-head span{ color:rgba(255,255,255,.42); font-size:11px; margin-top:2px; }
.clickai-head button{ width:34px; height:34px; font-size:23px; color:rgba(255,255,255,.7); }
.clickai-messages{ max-height:230px; overflow-y:auto; display:grid; gap:8px; margin-bottom:12px; }
.clickai-messages p{ margin:0; padding:10px 11px; border-radius:8px; background:rgba(255,255,255,.05); color:rgba(255,255,255,.65); font-size:12px; line-height:1.55; }
.clickai-messages p.user{ background:rgba(1,230,248,.09); color:#fff; margin-left:26px; }
.chat-action-link{ display:inline-flex; margin-top:8px; color:var(--cyan); font-weight:800; }
.clickai-panel form{ display:grid; grid-template-columns:1fr auto; gap:8px; }
.clickai-panel input{ min-width:0; padding:10px 12px; border-radius:8px; font-size:13px; }
.clickai-panel form button{ padding:0 14px; border-radius:8px; font-size:12px; }
.clickai-panel small{ display:block; color:rgba(255,255,255,.3); margin-top:10px; font-size:10px; }
@media(max-width:768px){ .clickai-panel{ left:16px; bottom:16px; } }


/* Failsafe: never let the intro splash trap the website if a script fails. */
#intro-splash{ animation:introAutoHide 1ms linear 2.2s forwards; }
#intro-splash.hide{ animation:none; }
@keyframes introAutoHide{ to{ opacity:0; visibility:hidden; pointer-events:none; } }
