/* Retaja Capital — LA Grand Expo landing page
   Mobile-first: visitors arrive by scanning a QR code at the booth.
   Same brand as the main site: navy suit, red tie, Inter, high contrast (7:1+). */

:root {
  --navy-900: #0B1C36; --navy-800: #12284A; --navy-600: #2A4670; --navy-100: #E8EDF4;
  --red-600: #A6192E; --red-700: #861325;
  --ink: #16181D; --slate: #4A5565; --line: #D9DEE6; --paper: #F6F7F9; --white: #FFFFFF;
  --silver: #A9B0BA; --black: #0D0F12; --ok: #1F6B45;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px; --ease: cubic-bezier(.2, .7, .2, 1);
  --herring-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 18L18 0M0 9L9 0M9 18L18 9M18 0L36 18M18 9L27 18M27 0L36 9' stroke='%23FFFFFF' stroke-opacity='.05' fill='none'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.top { background: var(--white); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 2px; background: var(--navy-900); color: var(--white); font-weight: 700; font-size: 24px; }
.logo__word { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.logo__word strong { font-size: 18px; letter-spacing: .12em; color: var(--navy-900); }
.logo__word small { font-size: 9px; font-weight: 600; letter-spacing: .36em; color: var(--slate); }
.top__call { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--navy-900); border-radius: var(--radius); font-size: 15px; font-weight: 700; color: var(--navy-900); transition: background .2s, color .2s; }
.top__call svg { width: 16px; height: 16px; fill: currentColor; }
.top__call:hover { background: var(--navy-900); color: var(--white); }
.event { background: var(--navy-900) var(--herring-white); border-top: 3px solid var(--red-600); color: var(--white); }
.event__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.event__badge { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.event__date { font-size: 14px; font-weight: 600; color: var(--white); }

/* ---------- Intro ---------- */
.main { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.hello { display: flex; flex-direction: column; gap: 10px; animation: rise .6s var(--ease) both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-700); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red-600); }
.hello h1 { font-size: 40px; line-height: 44px; letter-spacing: -.02em; color: var(--navy-900); }
.lead { font-size: 17px; line-height: 26px; color: var(--slate); }

/* ---------- Panels ---------- */
.panel { background: var(--white); border-radius: 6px; border: 1px solid var(--line); padding: 24px 20px; box-shadow: 0 18px 40px -32px rgba(11,28,54,.45); animation: rise .6s var(--ease) .1s both; }
.panel--quick { border-top: 4px solid var(--red-600); }
.panel__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.panel__tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--navy-900); padding: 4px 8px; border-radius: 2px; }
.panel h2 { font-size: 24px; line-height: 30px; letter-spacing: -.01em; color: var(--navy-900); }
.panel__head p { font-size: 15px; line-height: 22px; color: var(--slate); }

.or { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Fields ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.grid > .field:nth-of-type(n+3) { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.grid .field { margin-bottom: 0; }
.field > span { font-size: 14px; font-weight: 600; color: var(--navy-900); }
.field > span b { color: var(--red-700); }
.field > span em { font-style: normal; font-weight: 500; color: var(--slate); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom */ color: var(--ink);
  background: var(--white); border: 1.5px solid #C3CAD5; border-radius: var(--radius); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #6B7280; opacity: 1; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42,70,112,.2); }
.field.is-bad input { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(166,25,46,.14); }

.more { margin: 18px 0 4px; border-top: 1px solid var(--line); }
.more summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 16px 28px 16px 0; position: relative; }
.more summary::-webkit-details-marker { display: none; }
.more summary span { font-size: 17px; font-weight: 700; color: var(--navy-900); }
.more summary small { font-size: 13px; color: var(--slate); }
.more summary::after { content: ""; position: absolute; right: 4px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--navy-900); border-bottom: 2px solid var(--navy-900); transform: rotate(45deg); transition: transform .3s var(--ease); }
.more[open] summary::after { transform: rotate(-135deg); top: 28px; }
.more__body { padding-bottom: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px;
  border: 1.5px solid #C3CAD5; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--navy-900);
  background: var(--white); cursor: pointer; user-select: none; transition: background .2s, border-color .2s, color .2s;
}
.chip span::before { content: "+"; font-weight: 700; color: var(--slate); }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.chip input:checked + span::before { content: "✓"; color: var(--white); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(42,70,112,.3); }
.small-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--red-700); text-decoration: underline; text-underline-offset: 3px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 16px; font-size: 13px; line-height: 19px; color: var(--slate); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--red-600); }
.consent.is-bad span { color: var(--red-700); font-weight: 600; }
.error { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--red-700); }
.hint { margin-top: 12px; font-size: 13px; line-height: 19px; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 22px; border: 0; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; letter-spacing: .01em; cursor: pointer; text-align: center;
  transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn--block { width: 100%; }
.btn--primary { background: var(--red-600); color: var(--white); }
.btn--primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transition: transform .7s var(--ease); }
.btn--primary:hover { background: var(--red-700); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(166,25,46,.7); }
.btn--primary:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn--ghost { background: var(--white); color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn--ghost:hover { background: var(--navy-100); }
.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--navy-600); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; }

/* ---------- Second screen ---------- */
.next { display: flex; flex-direction: column; gap: 14px; outline: 0; animation: rise .5s var(--ease) both; }
.next h2 { font-size: 26px; }
.next__q { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--navy-900); }
.next__check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); position: relative; animation: pop .5s var(--ease) both; }
.next__check::after { content: ""; position: absolute; left: 20px; top: 14px; width: 12px; height: 22px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sched { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); animation: rise .45s var(--ease) both; }
.sched__label { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--navy-900); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span, .seg button { display: grid; place-items: center; min-height: 46px; border-radius: 4px; font-size: 15px; font-weight: 600; color: var(--navy-900); cursor: pointer; border: 0; background: transparent; width: 100%; transition: background .2s, color .2s; }
.seg input:checked + span, .seg button[aria-selected="true"] { background: var(--navy-900); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--navy-600); }
.sched .btn { margin-top: 8px; }
.next__done { font-size: 16px; line-height: 24px; color: var(--ink); padding: 14px 16px; background: var(--navy-100); border-left: 3px solid var(--navy-900); border-radius: 2px; }

/* ---------- SMS backup ---------- */
.sms { background: var(--navy-900) var(--herring-white); color: var(--white); border-radius: 6px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.sms h2 { font-size: 19px; }
.sms p { font-size: 15px; line-height: 22px; color: rgba(255,255,255,.88); }
.sms p a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sms .btn--dark { background: var(--white); color: var(--navy-900); margin-top: 4px; }
.sms .btn--dark:hover { background: var(--navy-100); }

/* ---------- Pictures + graphics ---------- */
.show { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.show__photo { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-100); }
.show__photo img { width: 100%; height: 100%; object-fit: cover; }
.show__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 20px; font-weight: 700; color: var(--white); background: linear-gradient(transparent, rgba(11,28,54,.92)); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stats li { background: var(--white); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stats strong { font-size: 20px; line-height: 26px; color: var(--navy-900); letter-spacing: -.01em; }
.stats span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.loans h2 { font-size: 22px; color: var(--navy-900); margin-bottom: 12px; }
.loans__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loans article { background: var(--white); border-top: 3px solid var(--navy-900); padding: 14px; border-radius: 0 0 4px 4px; }
.loans h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 4px; }
.loans p { font-size: 14px; line-height: 20px; color: var(--slate); }
.greg { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.greg__mono { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--white); font-weight: 700; }
.greg strong { display: block; font-size: 18px; color: var(--navy-900); }
.greg small { display: block; font-size: 12px; color: var(--slate); margin: 2px 0 8px; }
.greg p { font-size: 16px; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.greg a { font-size: 14px; font-weight: 600; color: var(--red-700); }

.foot { background: var(--black); color: var(--silver); padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot a { display: inline-block; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.foot p { font-size: 12px; line-height: 18px; }

/* ---------- Quick-connect window ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(11,28,54,.6); backdrop-filter: blur(2px); animation: fade .25s both; }
.modal[hidden] { display: none; }
.modal__box .next__check { margin-bottom: 4px; }
.modal__box { position: relative; width: 100%; max-width: 480px; background: var(--white); border-radius: 12px 12px 0 0; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: sheet .4s var(--ease) both; }
.modal__step { display: flex; flex-direction: column; gap: 12px; }
.modal__step[hidden] { display: none; }
.modal h2 { font-size: 22px; color: var(--navy-900); padding-right: 40px; }
.modal p { font-size: 15px; line-height: 22px; color: var(--slate); }
.modal .field { margin-bottom: 0; }
.modal .small-link { align-self: center; margin-top: 0; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.modal__close::before, .modal__close::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; background: var(--navy-900); }
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
body.modal-open { overflow: hidden; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .panel { padding: 32px; }
  .hello h1 { font-size: 52px; line-height: 56px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .loans__grid { grid-template-columns: repeat(4, 1fr); }
  .modal { align-items: center; }
  .modal__box { border-radius: 10px; padding: 32px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .grid .field { grid-column: 1 / -1; }
  .choice { grid-template-columns: 1fr; }
  .event__inner { flex-direction: column; align-items: flex-start; gap: 2px; }
  .top__call span { display: none; }
}
