/* ══════════════════════════════════════════════════════════════════════
   Law Firm Platform — Marketing Site
   Editorial / letterhead design system: cool paper, serif display type,
   hairline rules, lexpilots-blue accent. Deliberately not a dark-gradient
   SaaS look — brand color comes from the logo (navy → bright blue).
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #10152b;
  --ink-soft:   #454b5e;
  --ink-faint:  #868da3;

  --paper:      #f7f8fb;
  --paper-alt:  #eef1f7;
  --paper-deep: #e2e7f0;

  --line:       #d7dce8;
  --line-soft:  #e8ebf3;

  --brass:      #1e5fd6;
  --brass-deep: #123f9e;
  --brass-tint: #e2ecfd;

  --white:  #ffffff;
  --error:  #b3261e;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,21,43,.06);
  --shadow:    0 8px 30px rgba(16,21,43,.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink-soft); background: var(--paper);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-ink {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paper);
  padding: 14px 28px; border-radius: 2px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  transition: background .15s, transform .1s;
}
.btn-ink:hover { background: #232b47; transform: translateY(-1px); color: var(--paper); }

.btn-line {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--ink); color: var(--ink);
  padding: 13px 28px; border-radius: 2px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  transition: background .15s, color .15s, transform .1s;
}
.btn-line:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600; color: var(--brass-deep);
  border-bottom: 1.5px solid var(--brass);
  padding-bottom: 2px; transition: gap .15s, color .15s;
}
.btn-text:hover { gap: 11px; color: var(--ink); }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.sp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,248,251,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s, border-color .3s;
}
.sp-nav.scrolled { box-shadow: 0 2px 14px rgba(16,21,43,.06); border-color: var(--line); }

.sp-nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 82px; gap: 24px;
}

.sp-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.sp-logo img {
  height: 68px; width: auto; max-width: 280px; object-fit: contain;
}
.sp-logo-mark {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--brass); line-height: 1;
  width: 34px; height: 34px; border: 1.5px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.sp-logo-text {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
}

.sp-navlinks { display: flex; gap: 32px; list-style: none; }
.sp-navlinks a {
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .15s;
}
.sp-navlinks a:hover { color: var(--brass-deep); }

.sp-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); color: var(--ink);
  padding: 9px 20px; border-radius: 2px;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  transition: background .15s, color .15s; white-space: nowrap;
}
.sp-nav-cta:hover { background: var(--ink); color: var(--paper); }
.sp-nav-cta.is-active { background: var(--ink); color: var(--paper); pointer-events: none; }

/* ── Mobile hamburger ── */
.sp-nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px 4px;
  margin-left: 8px;
}
.sp-nav-hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .22s, opacity .18s, width .18s;
}
.sp-nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sp-nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.sp-nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.sp-nav-mobile {
  display: none; flex-direction: column;
  padding: 6px 0 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.sp-nav-mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.sp-nav-mobile ul li a {
  display: block; padding: 13px 32px;
  color: var(--ink-soft); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  transition: color .15s, background .15s;
}
.sp-nav-mobile ul li a:hover { color: var(--brass-deep); background: var(--paper-alt); }
.sp-nav-mobile-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 12px 32px 0; padding: 11px 22px;
  border: 1.5px solid var(--ink); border-radius: 2px;
  color: var(--ink); font-size: .8rem; font-weight: 700;
  align-self: flex-start;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.lf-hero {
  padding: 150px 0 96px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.lf-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 72px; align-items: center;
}
.lf-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 26px;
}
.lf-kicker::before { content: ''; display: block; width: 34px; height: 1.5px; background: var(--brass); }

.lf-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -.01em; margin-bottom: 24px;
}
.lf-hero h1 em { font-style: italic; color: var(--brass-deep); }

.lf-hero-desc {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 480px; margin-bottom: 40px;
}
.lf-hero-btns { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 56px; }

.lf-hero-stats {
  display: flex; gap: 0;
  border-top: 1px solid var(--line);
}
.lf-hero-stat {
  flex: 1; padding: 20px 22px 0 0; border-right: 1px solid var(--line);
}
.lf-hero-stat:last-child { border-right: none; padding-right: 0; }
.lf-hero-stat strong {
  display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em; margin-bottom: 4px;
}
.lf-hero-stat span { font-size: .68rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }

/* ── Hero mark (right column) ─────────────────────────────────────────── */
.lf-hero-visual {
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper-alt);
  padding: 44px 36px;
  position: relative;
}
.lf-hero-mark {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.6rem; color: var(--brass-deep);
  margin: 0 auto 28px;
  background: var(--paper);
}
.lf-hero-visual-title {
  text-align: center; font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
.lf-hero-visual-sub {
  text-align: center; font-size: .8rem; color: var(--ink-faint); margin-bottom: 26px;
}
.lf-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lf-hero-tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 6px 12px; color: var(--ink-soft); background: var(--paper);
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.lf-section { padding: 108px 0; }
.lf-section-alt { background: var(--paper-alt); }

.lf-section-head { margin-bottom: 64px; max-width: 640px; }
.lf-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lf-section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 16px;
}
.lf-section-head.center .lf-section-kicker { justify-content: center; width: 100%; }
.lf-section-kicker::before { content: ''; width: 26px; height: 1.5px; background: var(--brass); }
.lf-section-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.01em;
  line-height: 1.18; margin-bottom: 14px;
}
.lf-section-sub { font-size: .98rem; color: var(--ink-soft); }

/* ── Features: numbered index rows (not icon cards) ──────────────────── */
.lf-index-list {
  columns: 2; column-gap: 56px;
}
.lf-index-row {
  break-inside: avoid; display: flex; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.lf-index-list .lf-index-row:nth-last-child(-n+2) { border-bottom: none; }
.lf-index-num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--line); flex-shrink: 0; width: 44px; line-height: 1;
}
.lf-index-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.lf-index-body p  { font-size: .87rem; color: var(--ink-soft); line-height: 1.6; }

/* ── How it works: flat ledger, no circles/connectors ─────────────────── */
.lf-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.lf-step {
  padding: 22px 26px 0 0; border-top: 2px solid var(--ink); position: relative;
}
.lf-step:not(:last-child) { border-right: 1px solid var(--line); margin-right: 26px; }
.lf-step-num {
  font-family: var(--serif); font-size: .78rem; font-weight: 700;
  color: var(--brass-deep); letter-spacing: .04em; margin-bottom: 14px; display: block;
}
.lf-step h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.lf-step p  { font-size: .83rem; color: var(--ink-soft); line-height: 1.6; }

/* ── Designs: swatch panels (not gradient preview thumbnails) ─────────── */
.lf-designs { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.lf-design-card {
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  padding: 32px 30px; transition: border-color .2s, box-shadow .2s;
}
.lf-design-card:hover { border-color: var(--brass); box-shadow: var(--shadow); }
.lf-design-swatches { display: flex; gap: 8px; margin-bottom: 22px; }
.lf-swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.lf-design-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.lf-design-card p  { font-size: .87rem; color: var(--ink-soft); margin-bottom: 18px; }
.lf-design-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  background: var(--brass-tint); color: var(--brass-deep);
  padding: 5px 11px; border-radius: 2px;
}

/* ── Apply panel (embedded on homepage) ───────────────────────────────── */
.lf-apply-panel {
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  max-width: 760px; margin: 0 auto; padding: 48px 54px;
  box-shadow: var(--shadow);
}

/* ── CTA: signature panel, not a dark full-bleed band ─────────────────── */
.lf-cta { padding: 108px 0; }
.lf-cta-panel {
  max-width: 720px; margin: 0 auto; text-align: center;
  border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass);
  padding: 56px 24px;
}
.lf-cta-panel h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; margin-bottom: 16px;
}
.lf-cta-panel p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 34px; }
.lf-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.lf-cta-address { margin-top: 26px; font-size: .82rem; color: var(--ink-faint); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.sp-footer {
  background: var(--paper); border-top: 1px solid var(--line);
  color: var(--ink-faint); padding: 48px 0 28px;
}
.sp-footer-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 30px; border-bottom: 1px solid var(--line-soft);
}
.sp-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sp-footer-brand img { height: 58px; width: auto; max-width: 260px; object-fit: contain; }
.sp-footer-brand-text { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.sp-footer-address { font-size: .78rem; color: var(--ink-faint); }
.sp-footer-address i { margin-right: 5px; color: var(--brass); }

.sp-footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.sp-footer-links a { font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); transition: color .15s; }
.sp-footer-links a:hover { color: var(--brass-deep); }

.sp-footer-copy { font-size: .76rem; text-align: center; margin-top: 24px; }

/* ── Reveal ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lf-index-list { columns: 1; }
  .lf-steps { grid-template-columns: repeat(2,1fr); row-gap: 34px; }
  .lf-step:nth-child(2) { margin-right: 0; border-right: none; }
  .lf-designs { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .lf-hero-grid { grid-template-columns: 1fr; }
  .lf-hero-visual { order: -1; max-width: 360px; margin: 0 auto 8px; }
}
@media (max-width: 768px) {
  .sp-navlinks { display: none; }
  .sp-nav-cta { display: none; }
  .sp-nav-hamburger { display: flex; }
  .sp-nav-mobile.open { display: flex; }
  .lf-steps { grid-template-columns: 1fr; }
  .lf-step:not(:last-child) { border-right: none; margin-right: 0; }
  .lf-hero-stats { flex-direction: column; gap: 14px; }
  .lf-hero-stat { border-right: none; padding-right: 0; }
  .sp-footer-inner { flex-direction: column; text-align: left; }
  .lf-apply-panel { padding: 32px 22px; }
}

/* ── Toast notifications ───────────────────────────────────────────────── */
#sp-toast-wrap {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.sp-toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border-radius: 4px;
  box-shadow: 0 8px 32px rgba(16,21,43,.16);
  padding: 16px 20px; min-width: 280px; max-width: 380px;
  pointer-events: all;
  animation: sp-toast-in .35s cubic-bezier(.22,1,.36,1);
  border-left: 3px solid var(--brass);
}
.sp-toast.sp-toast-error  { border-left-color: var(--error); }
.sp-toast-icon            { font-size: 1.1rem; margin-top: 1px; color: var(--brass-deep); flex-shrink: 0; }
.sp-toast.sp-toast-error .sp-toast-icon { color: var(--error); }
.sp-toast-body strong     { display: block; font-size: .87rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.sp-toast-body span       { font-size: .81rem; color: var(--ink-soft); line-height: 1.5; }
.sp-toast-close {
  margin-left: auto; background: none; border: none;
  font-size: .85rem; color: var(--ink-faint); cursor: pointer; padding: 0; flex-shrink: 0; line-height: 1;
}
.sp-toast-close:hover { color: var(--ink); }
@keyframes sp-toast-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ══ APPLY PAGE ═══════════════════════════════════════════════════════════ */
.ap-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding: 148px 0 68px;
  text-align: center;
}
.ap-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 22px;
}
.ap-kicker::before, .ap-kicker::after { content: ''; width: 26px; height: 1.5px; background: var(--brass); }
.ap-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15;
  margin: 0 0 18px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.ap-hero-sub {
  font-size: 1.02rem; color: var(--ink-soft);
  max-width: 560px; margin: 0 auto 34px;
}
.ap-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ap-trust-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 8px 16px; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper);
}
.ap-trust-pill i { color: var(--brass-deep); font-size: .75rem; }

.ap-body { padding: 72px 0 88px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 60px; align-items: flex-start; }
@media (max-width: 900px) {
  .ap-grid { grid-template-columns: 1fr; gap: 44px; }
  .ap-info { order: 2; }
  .ap-form-col { order: 1; }
}

.ap-info-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 20px; }
.ap-benefit-list { list-style: none; padding: 0; margin: 0 0 40px; }
.ap-benefit-row {
  display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.ap-benefit-list li:last-child .ap-benefit-row { border-bottom: none; }
.ap-benefit-num {
  font-family: var(--serif); font-weight: 700; color: var(--line); font-size: 1.1rem; width: 28px; flex-shrink: 0;
}
.ap-benefit-row strong { display: block; font-size: .88rem; color: var(--ink); margin-bottom: 2px; }
.ap-benefit-row span { font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }

.ap-timeline-title {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brass-deep); margin: 0 0 18px;
}
.ap-steps { display: flex; flex-direction: column; }
.ap-step { display: flex; gap: 18px; position: relative; }
.ap-step:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; top: 30px; bottom: -6px; width: 1px; background: var(--line);
}
.ap-step-num {
  width: 27px; height: 27px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: .78rem; font-weight: 700; flex-shrink: 0; background: var(--paper);
}
.ap-step-body { padding-bottom: 22px; }
.ap-step-body strong { display: block; font-size: .87rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.ap-step-body span { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }

.ap-note {
  margin-top: 26px; padding: 16px 18px;
  background: var(--paper-alt); border-left: 3px solid var(--brass);
  font-size: .82rem; color: var(--ink-soft); line-height: 1.5;
}
.ap-note i { margin-right: 7px; color: var(--brass-deep); }
.ap-note.ap-note-contact { border-left-color: var(--ink); }
.ap-note.ap-note-contact a { color: var(--brass-deep); font-weight: 700; }

/* Form column */
.apply-form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 48px 52px; box-shadow: var(--shadow);
}
.apply-form-header { margin-bottom: 30px; }
.apply-form-header h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.apply-form-header p { font-size: .82rem; color: var(--ink-faint); margin: 0; }

.apply-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.apply-field-full { grid-column: 1 / -1; }
.apply-label { font-size: .76rem; font-weight: 700; letter-spacing: .02em; display: block; margin-bottom: 7px; color: var(--ink-soft); }
.apply-req { color: var(--error); }
.apply-opt { font-weight: 400; color: var(--ink-faint); }
.apply-input, .apply-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 2px; font-size: .88rem; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
  background: var(--paper); color: var(--ink); box-sizing: border-box;
}
.apply-input:focus, .apply-textarea:focus {
  border-color: var(--brass); background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,95,214,.12);
}
.apply-upload {
  position: relative; border: 1.5px dashed var(--line); border-radius: 2px;
  padding: 22px 14px 18px; background: var(--paper-alt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center; cursor: pointer; min-height: 96px; width: 100%; box-sizing: border-box;
  transition: border-color .18s, background .18s;
}
.apply-upload:hover, .apply-upload.drag-over { border-color: var(--brass); background: var(--brass-tint); }
.apply-upload.has-file { border-color: var(--brass); border-style: solid; background: var(--brass-tint); }
.apply-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.apply-upload-thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 2px; border: 1px solid var(--line); background: var(--white); padding: 4px; display: none; flex-shrink: 0; }
.apply-upload.has-thumb .apply-upload-thumb { display: block; }
.apply-upload.has-thumb .apply-upload-ico   { display: none; }
.apply-upload-ico { font-size: 1.4rem; color: var(--ink-faint); transition: color .15s; }
.apply-upload.has-file:not(.has-thumb) .apply-upload-ico { color: var(--brass-deep); }
.apply-upload-text { font-size: .8rem; font-weight: 600; color: var(--ink-faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.apply-upload.has-file .apply-upload-text { color: var(--ink); }
.apply-upload-sub { font-size: .68rem; color: var(--ink-faint); line-height: 1.2; }
.apply-upload.has-file .apply-upload-sub { display: none; }
.apply-field-error { color: var(--error); font-size: .74rem; margin-top: 4px; }
.apply-field-hint  { color: var(--ink-faint); font-size: .71rem; margin-top: 3px; }
.apply-textarea { resize: vertical; min-height: 90px; }
.apply-submit-wrap { margin-top: 28px; text-align: center; }
.apply-submit-btn {
  background: var(--ink); color: var(--paper);
  padding: 12px 30px; border-radius: 2px;
  font-size: .84rem; font-weight: 700; letter-spacing: .02em;
  border: none; cursor: pointer; transition: background .15s, transform .1s;
  display: inline-block;
}
.apply-submit-btn:hover { background: #232b47; transform: translateY(-1px); }
.apply-submit-hint { margin-top: 12px; font-size: .76rem; color: var(--ink-faint); }
.apply-success-box { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 4px; padding: 40px 32px; text-align: center; }
.apply-success-box .success-icon {
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--brass);
  color: var(--brass-deep); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 18px; background: var(--white);
}
.apply-success-box h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.apply-success-box p  { font-size: .88rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }
@media (max-width: 640px) {
  .apply-form-card  { padding: 30px 22px; }
  .apply-field-grid { grid-template-columns: 1fr; }
  .ap-hero          { padding: 116px 0 48px; }
}

/* ── Apply form captcha ───────────────────────────────────────────────── */
.apply-captcha-group  { margin-bottom: 18px; text-align: left; }
.apply-captcha-row    { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.apply-captcha-canvas { border: 1px solid var(--line); border-radius: 2px; background: var(--paper-alt); display: block; }
.apply-captcha-refresh {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: background .15s, color .15s, transform .2s;
}
.apply-captcha-refresh:hover  { background: var(--paper-alt); color: var(--ink); }
.apply-captcha-refresh:active { transform: rotate(180deg); }
.apply-captcha-input  { font-family: monospace; letter-spacing: .12em; }
.apply-captcha-error  { color: var(--error); font-size: .75rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }

/* ── Error pages ─────────────────────────────────────────────────────── */
.sp-error-icon {
    width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
    background: var(--brass-tint); color: var(--brass);
    display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
}

/* ── .np Domain Cover Letter Tool (free lead-magnet tool) ─────────────── */
.np-tool-wrap { display: flex; gap: 36px; align-items: flex-start; }
.np-tool-form { flex: 0 0 340px; min-width: 0; }
.np-tool-preview { flex: 1; min-width: 0; }

.np-form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 24px;
}
.np-form-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0 0 20px; }

.np-field-group { margin-bottom: 16px; }
.np-label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.np-req { color: var(--brass-deep); }
.np-input {
  width: 100%; box-sizing: border-box; padding: 9px 13px;
  border: 1.5px solid var(--line); border-radius: 2px;
  font-size: .84rem; color: var(--ink); background: var(--white); outline: none;
  transition: border-color .15s; font-family: inherit;
}
.np-input:focus { border-color: var(--brass); }
.np-textarea { min-height: 64px; resize: vertical; }

.np-toggle-wrap { display: flex; border: 1.5px solid var(--brass-tint); border-radius: 2px; overflow: hidden; }
.np-toggle {
  flex: 1; padding: 8px 0; font-size: .8rem; font-weight: 600; border: none;
  background: var(--brass-tint); color: var(--brass-deep); cursor: pointer;
  font-family: inherit; transition: background .13s, color .13s;
}
.np-toggle.on { background: var(--brass); color: var(--white); }

.np-download-btn {
  width: 100%; padding: 11px 0; background: var(--ink); color: var(--white); border: none;
  border-radius: 2px; font-size: .86rem; font-weight: 700; cursor: pointer;
  font-family: inherit; margin-top: 4px; transition: background .13s;
}
.np-download-btn:hover { background: var(--brass-deep); }

.np-letter-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 40px 44px; font-family: Arial, sans-serif; font-size: .88rem; line-height: 1.8;
  color: var(--ink); min-height: 480px;
}
.np-letter-date { text-align: right; color: var(--ink-faint); font-size: .82rem; margin-bottom: 28px; }
.np-letter-body p { margin: 0 0 14px; }
.np-letter-body strong { font-weight: 700; }
.np-letter-body a, .np-letter-body .np-link { color: var(--brass-deep); text-decoration: none; }
.np-letter-body .np-ltr-subject { text-align: center; margin: 18px 0; }

.np-input-error { border-color: var(--error) !important; }
.np-validation-error {
  background: #fdf1f0; border: 1px solid var(--error); color: var(--error);
  border-radius: 2px; padding: 8px 12px; font-size: .78rem; font-weight: 600; margin-bottom: 10px;
}

@media (max-width: 860px) {
  .np-tool-wrap { flex-direction: column; }
  .np-tool-form { flex: none; width: 100%; }
  .np-letter-card { padding: 24px 20px; }
}
