@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #111827;
  --muted: #5f6878;
  --paper: #f3f7ff;
  --white: #ffffff;
  --blue: #1858f5;
  --blue-dark: #0c45d8;
  --sky: #0f9de8;
  --soft-blue: #eaf1ff;
  --line: #dce4f2;
  --success: #18794e;
  --warning: #b56612;
  --danger: #a33636;
  --shadow: 0 26px 80px rgba(22, 64, 148, .13);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lato", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.skip-link { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--ink); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar {
  width: min(1440px, calc(100% - 48px));
  min-height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { width: 194px; height: auto; display: block; flex: 0 0 auto; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill, .queue-button, .install-button { min-height: 40px; border-radius: 999px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: #354052; background: rgba(255,255,255,.76); border: 1px solid var(--line); font-size: 13px; }
.status-pill i { width: 8px; height: 8px; background: #20a66a; border-radius: 50%; }
.status-pill.offline i { background: #d18a22; }
.queue-button { padding: 0 15px; color: var(--blue-dark); background: var(--white); border: 1px solid #bfcdf0; cursor: pointer; }
.queue-button strong { min-width: 22px; height: 22px; margin-left: 5px; display: inline-grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-size: 12px; }
.text-button { padding: 0; color: var(--blue-dark); background: transparent; border: 0; font-weight: 700; cursor: pointer; }

.page-shell {
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100vh - 154px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(620px, 1.18fr);
  align-items: start;
  gap: 22px;
  background: transparent;
}

.intro-panel {
  position: relative;
  min-height: 700px;
  padding: clamp(42px, 5vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  overflow: hidden;
  color: white;
  background-color: #1858f5;
  background-image: url("assets/linked-in-banner.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.intro-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(8, 43, 142, .84) 0%, rgba(24, 88, 245, .71) 56%, rgba(4, 126, 196, .58) 100%);
  pointer-events: none;
}
.intro-panel > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: inherit; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.intro-panel h1 { max-width: 620px; margin: 0; font-size: clamp(38px, 4vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.lede { max-width: 570px; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.65; }
.offer-preview { display: grid; gap: 1px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; overflow: hidden; }
.offer-preview article { padding: 20px; display: grid; grid-template-columns: 32px 1fr; gap: 14px; background: rgba(15,47,145,.32); backdrop-filter: blur(8px); }
.offer-preview article > span { color: #a9dfff; font-size: 11px; font-weight: 800; }
.offer-preview h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.3; }
.offer-preview p { margin: 7px 0 0; color: rgba(255,255,255,.73); font-size: 12.5px; line-height: 1.48; }
.offer-preview p.offer-tagline { margin-top: 0; color: white; font-weight: 800; }
.offer-details { margin-top: 10px; }
.offer-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; color: rgba(255,255,255,.92); border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
.offer-details summary::-webkit-details-marker { display: none; }
.offer-toggle { width: 22px; height: 22px; display: inline-grid; place-items: center; flex: 0 0 auto; color: white; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 17px; line-height: 1; transition: transform .18s ease, background .18s ease; }
.offer-details[open] .offer-toggle { transform: rotate(45deg); background: rgba(255,255,255,.12); }
.offer-details p { margin-top: 10px; }
.offline-note { display: flex; align-items: center; gap: 13px; }
.offline-note svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.offline-note p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.5; }
.offline-note strong { color: white; }

.form-panel { min-width: 0; min-height: 700px; padding: clamp(34px, 5vw, 64px); display: flex; flex-direction: column; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 54px rgba(22,64,148,.09); }
.progress-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.progress-row > div { width: min(300px, 58%); }
.progress-row p { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.progress-track { height: 4px; overflow: hidden; background: #e5ebf5; border-radius: 999px; }
.progress-track span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .3s ease; }
.save-status { margin: 0 !important; text-align: right; }

#intake-form { flex: 1; display: flex; flex-direction: column; }
#form-content { flex: 1; outline: none; }
.step-heading h2 { margin: 0; font-size: clamp(31px, 3.5vw, 46px); font-weight: 520; line-height: 1.08; letter-spacing: -.035em; }
.step-heading > p:last-child { max-width: 650px; margin: 14px 0 0; color: var(--muted); line-height: 1.6; }
.fields { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { min-width: 0; }
.field.full, fieldset.full, .consent-field { grid-column: 1 / -1; }
label, legend { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 750; }
.optional { color: #8992a1; font-weight: 500; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid #cfd9e9;
  border-radius: 10px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { background: white; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24,88,245,.11); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
.field-hint { margin: -2px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.field-error { min-height: 17px; margin: 5px 0 0; color: var(--danger); font-size: 12px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card { position: relative; min-height: 112px; margin: 0; padding: 17px 16px 15px 48px; border: 1px solid #cfd9e9; border-radius: 13px; cursor: pointer; transition: .18s ease; }
.choice-card:hover { border-color: #98addd; transform: translateY(-1px); }
.choice-card:has(input:checked) { color: var(--blue-dark); background: var(--soft-blue); border-color: var(--blue); box-shadow: 0 8px 24px rgba(24,88,245,.09); }
.choice-card input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.choice-dot { position: absolute; top: 18px; left: 17px; width: 20px; height: 20px; border: 1.5px solid #9eacc2; border-radius: 50%; }
.choice-card input:checked + .choice-dot { border: 6px solid var(--blue); background: white; }
.choice-title { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 800; }
.choice-copy { display: block; color: var(--muted); font-size: 12px; font-weight: 450; line-height: 1.45; }
.choice-card:has(input:focus-visible) { outline: 3px solid rgba(24,88,245,.2); outline-offset: 2px; }
.is-hidden { display: none !important; }

.internal-section { grid-column: 1 / -1; margin-top: 6px; border: 1px solid var(--line); border-radius: 13px; }
.internal-section summary { padding: 16px 18px; color: #384358; cursor: pointer; font-size: 13px; font-weight: 800; }
.internal-grid { padding: 5px 18px 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.internal-note { grid-column: 1 / -1; margin: 0; padding: 11px 13px; color: #59657a; background: #f7f9fc; border-radius: 8px; font-size: 12px; line-height: 1.45; }

.review-grid { margin-top: 30px; display: grid; gap: 12px; }
.review-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; }
.review-card header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.review-card h3 { margin: 0; font-size: 14px; }
.review-card button { color: var(--blue-dark); background: none; border: 0; font-size: 12px; font-weight: 750; cursor: pointer; }
.review-card dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.review-card dl div { min-width: 0; }
.review-card dt { color: var(--muted); font-size: 11px; }
.review-card dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.consents { margin-top: 22px; display: grid; gap: 8px; }
.consents .field-error:empty { display: none; }
.check-card { position: relative; margin: 0; padding: 15px 16px 15px 48px; background: #f8faff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-weight: 520; line-height: 1.45; }
.check-card input { position: absolute; top: 16px; left: 16px; width: 19px; height: 19px; min-height: 0; accent-color: var(--blue); }
.consent-meta { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.error-summary { margin: 18px 0 0; padding: 12px 14px; color: #842d2d; background: #fff1f1; border: 1px solid #f2c1c1; border-radius: 9px; font-size: 13px; }
.form-actions { margin-top: 36px; padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.button { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: #34405a; background: white; border-color: #c9d4e8; }
.button[hidden] { display: none; }

.site-footer { width: min(1440px, calc(100% - 48px)); margin: 0 auto; min-height: 84px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #6c7687; font-size: 12px; line-height: 1.45; }
.site-footer p { margin: 0; }
.footer-contact-line { margin: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; color: #4f5e74; font-style: normal; white-space: nowrap; }
.footer-contact-line strong { color: #26334b; font-weight: 800; }
.footer-contact-line > span { color: #a2acbc; }
.footer-contact-line a { color: #4f5e74; text-decoration: none; text-underline-offset: 3px; }
.footer-contact-line a:hover, .footer-contact-line a:focus-visible { color: var(--blue); text-decoration: underline; }
.footer-warning { max-width: 470px; text-align: right; }

dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; background: transparent; border: 0; border-radius: 20px; }
dialog::backdrop { background: rgba(9,20,42,.56); backdrop-filter: blur(5px); }
.dialog-card { padding: clamp(26px, 4vw, 42px); background: white; border-radius: 20px; box-shadow: 0 24px 90px rgba(0,0,0,.25); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-heading h2, .success-card h2 { margin: 0; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.035em; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; background: #f1f4f8; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; }
.dialog-intro, .success-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.record-list { max-height: 330px; margin: 24px 0; display: grid; gap: 9px; overflow: auto; }
.record-item { padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #f7f9fd; border: 1px solid var(--line); border-radius: 10px; }
.record-item strong, .record-item small { display: block; }
.record-item small { margin-top: 4px; color: var(--muted); }
.sync-tag { color: var(--warning); font-size: 11px; font-weight: 800; white-space: nowrap; }
.sync-tag.synced { color: var(--success); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.danger { color: var(--danger); padding: 12px 5px; }
.privacy-copy { margin: 20px 0 0; color: #788193; font-size: 11px; line-height: 1.5; }
.empty-state { padding: 34px 18px; text-align: center; color: var(--muted); background: #f7f9fd; border-radius: 12px; }
.success-card { text-align: center; }
.success-card .dialog-actions { justify-content: center; margin-top: 24px; }
.success-mark { width: 66px; height: 66px; margin: 0 auto 24px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--blue), var(--sky)); border-radius: 50%; font-size: 30px; }

@media (max-width: 1040px) {
  .page-shell { grid-template-columns: 1fr; }
  .intro-panel { min-height: auto; padding: 42px; gap: 34px; }
  .intro-panel h1 { max-width: 800px; font-size: clamp(38px, 6vw, 54px); }
  .offer-preview { grid-template-columns: 1fr 1fr; }
  .offline-note { display: none; }
  .form-panel { min-height: auto; }
}

@media (min-width: 681px) {
  .choice-card { padding-right: 12px; padding-left: 44px; }
  .choice-dot { left: 14px; }
  .choice-title { font-size: 13px; letter-spacing: -.01em; white-space: nowrap; }
}

@media (max-width: 680px) {
  .topbar, .page-shell, footer { width: min(100% - 24px, 1440px); }
  .topbar { min-height: 72px; }
  .brand { width: 156px; }
  .status-pill, .install-button { display: none; }
  .page-shell { gap: 14px; }
  .intro-panel { padding: 31px 24px; border-radius: 20px; }
  .intro-panel h1 { font-size: 40px; }
  .lede { font-size: 15px; }
  .offer-preview { grid-template-columns: 1fr; }
  .form-panel { padding: 28px 22px; border-radius: 20px; box-shadow: 0 12px 34px rgba(22,64,148,.08); }
  .progress-row { margin-bottom: 36px; }
  .fields, .choice-grid, .internal-grid, .review-card dl { grid-template-columns: 1fr; }
  .choice-card { min-height: 96px; }
  .form-actions { position: sticky; bottom: 0; z-index: 4; margin-inline: -22px; padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
  .form-actions .button { flex: 1; }
  .site-footer { min-height: 0; padding: 22px 0; display: grid; gap: 16px; }
  .footer-contact-line { gap: 6px; font-size: 11px; }
  .footer-warning { max-width: none; text-align: left; }
  .dialog-actions .button { width: 100%; }
  .dialog-actions .text-button { width: 100%; }
}

@media (max-width: 480px) {
  .intro-panel h1 { font-size: 34px; }
  .footer-contact-line { gap: 2px; font-size: 8px; letter-spacing: -.02em; }
}

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