/* DotLinks operator / letter-desk design system */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,400&display=swap');

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

:root {
  --paper:       #f4f0e8;
  --paper-dark:  #ebe6dc;
  --ink:         #1a1814;
  --ink-muted:   #4a4540;
  --ink-light:   #6b6560;
  --rule:        #d4cfc4;
  --navy:        #1e3a5f;
  --navy-hover:  #152a47;
  --white:       #ffffff;
  --error-bg:    #fef2f2;
  --error-border:#fecaca;
  --error-text:  #991b1b;
  --success-bg:  #f0fdf4;
  --success-border: #bbf7d0;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'IBM Plex Sans', system-ui, sans-serif;
  --max-width: 720px;
  --max-wide: 960px;
  --tap-min: 44px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-home {
  display: block;
}

/* Focus — never outline:none without replacement */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

a {
  color: var(--navy);
}

/* Skip link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

body.page-respond .nav-cta {
  display: none;
}

/* ── Site header / nav ── */
.site-header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap-min);
  gap: 16px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  padding: 10px 0;
  min-height: var(--tap-min);
  justify-content: center;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.wordmark__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4bdb0;
  margin-top: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--navy-hover);
  color: var(--white);
}

/* ── Hero (home) ── */
.hero-home {
  background: var(--ink);
  color: var(--white);
  padding: 64px 24px 72px;
  border-bottom: 3px solid var(--navy);
}

.hero-home__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  text-align: center;
}

.hero-home .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4bdb0;
  margin-bottom: 20px;
}

.hero-home h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-home .lead {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: #e8e4dc;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 28px;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--navy-hover);
  color: var(--white);
}

.btn-primary:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: default;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 20px;
  background: transparent;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  font-size: 0.9rem;
}

.contact-inline a {
  color: #e8e4dc;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}

.contact-inline--compact a {
  min-height: auto;
  padding: 4px 0;
  font-size: 0.88rem;
}

.contact-inline a:hover {
  color: var(--white);
}

.contact-inline .sep {
  color: #8a8478;
}

/* ── Sections (home) ── */
main {
  flex: 1;
}

.section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--rule);
}

.section--alt {
  background: var(--paper-dark);
}

.section__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.section__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--ink);
}

.section__sub {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.step {
  padding-top: 16px;
  border-top: 2px solid var(--navy);
}

.step__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 8px;
}

.step h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Trust points */
.trust-list {
  list-style: none;
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .trust-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.trust-list li {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.trust-list h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.trust-list p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.trust-entity {
  margin-top: 36px;
  padding: 20px 0 4px 20px;
  border-top: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
}

.trust-entity__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.trust-entity__contact {
  font-size: 0.88rem;
}

.trust-entity__contact a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA close */
.cta-close {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}

/* ── Respond page hero ── */
.hero-respond {
  background: var(--ink);
  color: var(--white);
  padding: 40px 24px 48px;
  text-align: center;
  border-bottom: 3px solid var(--navy);
}

.hero-respond .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4bdb0;
  margin-bottom: 16px;
}

.hero-respond h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--white);
}

body.has-letter-context .hero-respond {
  border-bottom-color: #7dd3a8;
}

body.has-letter-context .company-chip {
  background: rgba(125, 211, 168, 0.12);
  border-color: rgba(125, 211, 168, 0.45);
}

.hero-respond .lead {
  color: #e8e4dc;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.company-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.company-chip .chip-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e8e4dc;
  margin-right: 4px;
}

.company-chip .dot {
  width: 8px;
  height: 8px;
  background: #7dd3a8;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Form card (respond) ── */
.main-respond {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.main-respond .hero-respond {
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.main-respond .card {
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 32px 28px;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.card .sub {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  margin-top: 0;
  line-height: 1.55;
}

.form-section {
  margin: 0 0 28px;
  padding: 0 0 24px;
  border: none;
  border-bottom: 1px solid var(--rule);
}

.form-section legend {
  padding: 0;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.label-optional {
  font-weight: 500;
  color: var(--ink-light);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 0.93rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-wrap {
  margin-top: 20px;
}

.submit-btn {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  min-height: var(--tap-min);
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover:not(:disabled) {
  background: var(--navy-hover);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.form-escape {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 12px;
}

.privacy {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* Form errors */
.form-error {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-error.is-visible {
  display: block;
}

.form-error a {
  color: var(--error-text);
  font-weight: 600;
  text-decoration: underline;
}

/* Success */
.success-panel {
  display: none;
  padding: 16px 0 8px;
}

.success-panel.is-visible {
  display: block;
  padding: 16px 0;
  margin-bottom: 8px;
}

.success-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.success-panel p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.success-panel .contact-inline {
  justify-content: flex-start;
  margin-top: 16px;
}

.success-panel .contact-inline a {
  color: var(--navy);
}

.success-panel .btn-primary {
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Two-step form */
.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.form-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.form-step-actions .btn-primary {
  flex: 1;
  min-width: min(100%, 200px);
}

.form-step-actions .btn-secondary-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 20px;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--rule);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.form-step-actions .btn-secondary-step:hover {
  border-color: var(--ink-muted);
  background: var(--paper);
}

.form-step-actions .btn-secondary-step:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-progress {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 20px;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: #c4bdb0;
  text-align: center;
  padding: 20px 24px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-footer a {
  color: #e8e4dc;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 4px;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: #9a9488;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px 18px;
  }

  .site-header__inner {
    padding: 0 16px;
  }

  .nav-cta {
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .hero-home {
    padding: 48px 20px 56px;
  }

  .hero-respond {
    padding: 32px 20px 40px;
  }

  .form-step-actions {
    flex-direction: column;
  }

  .form-step-actions .btn-primary,
  .form-step-actions .btn-secondary-step,
  .form-step-actions .submit-btn {
    width: 100%;
    flex: none;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }
}
