/* Softpins — production styles
   Locked palette: Navy
   Type pairing: Newsreader (display) + IBM Plex Sans (body) + IBM Plex Mono (eyebrow)
*/

:root {
  --navy: #1A4D80;
  --navy-2: #2666B3;
  --light-blue: #6699CC;
  --light-blue-2: #CCE6FF;
  --silver: #E6E6E6;
  --silver-2: #999999;
  --silver-3: #5C656F;
  --paper: #F7F7F7;
  --beige: #E6D9BF;
  --olive: #D9E6CC;
  --pale-yellow: #FFF2CC;
  --deep-teal: #1A6659;
  --deep-teal-2: #268C78;
  --charcoal: #4D4D4D;

  --bg: var(--paper);
  --bg-alt: #FFFFFF;
  --ink: #1F2933;
  --ink-soft: var(--charcoal);
  --ink-muted: #6E7681;
  --rule: #E4E1D9;
  --accent: var(--pale-yellow);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 400; }
h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; }

p { margin: 0; text-wrap: pretty; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--silver-3);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: #133e69; }
.btn-accent { background: var(--pale-yellow); color: var(--navy); border-color: var(--pale-yellow); }
.btn-accent:hover { background: #ffeaa6; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid #c9d6e3; }
.btn-ghost:hover { border-color: var(--navy); }

section { padding: clamp(64px, 9vw, 128px) 0; }
section + section { border-top: 1px solid var(--rule); }

.muted { color: var(--ink-muted); }
.serif { font-family: var(--font-display); }
.mono  { font-family: var(--font-mono); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 247, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(247, 247, 247, 0.94);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 88px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; color: var(--navy); }
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  height: 52px;
  width: auto;
  display: block;
  transform: translateY(5px);
}
.nav__wordmark {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--navy); text-decoration: none; }
.nav__cta { display: flex; }
.nav__hamburger {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  margin: 0 auto;
}
.nav__mobile { display: none; }
.nav__mobile.is-open { display: flex; flex-direction: column; gap: 14px; padding: 18px var(--gutter) 28px; background: var(--bg); border-top: 1px solid var(--rule); }
.nav__mobile a:not(.btn) { color: var(--ink); font-family: var(--font-display); font-size: 22px; }

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============ HERO ============ */
.hero {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(72px, 10vw, 144px);
  background:
    radial-gradient(ellipse at 85% -10%, rgba(102,153,204,0.10), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--rule);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__headline { margin-top: 18px; font-size: clamp(48px, 7vw, 96px); line-height: 0.98; }
.hero__headline em { font-style: italic; color: var(--deep-teal); font-weight: 400; }
.hero__lede {
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  max-width: 56ch;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero__metaLabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--silver-3);
  margin-bottom: 6px;
}
.hero__metaValue { font-family: var(--font-display); font-size: 17px; color: var(--navy); }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: -1; max-width: 460px; margin-bottom: 8px; }
  .hero__meta { grid-template-columns: 1fr; gap: 12px; }
}

.hero__panel { position: relative; display: flex; justify-content: center; }
.hero-panel {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 30px 22px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 48px -28px rgba(26, 77, 128, 0.25), 0 2px 6px -2px rgba(26, 77, 128, 0.06);
  position: relative;
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: -14px -14px auto auto;
  width: 84px;
  height: 84px;
  background: var(--pale-yellow);
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
}
.hero-panel__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.hero-panel__eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-3); margin-bottom: 4px; }
.hero-panel__title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--navy); letter-spacing: -0.01em; line-height: 1.1; }
.hero-panel__sub { margin: 18px 0 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.hero-panel__steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; }
.hero-panel__step { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 14px; padding: 14px 0; position: relative; }
.hero-panel__step + .hero-panel__step { border-top: 1px dashed var(--rule); }
.hero-panel__stepNum { font-size: 12px; color: var(--deep-teal); letter-spacing: 0.18em; font-weight: 500; }
.hero-panel__stepLabel { font-family: var(--font-display); font-size: 19px; color: var(--navy); font-weight: 500; }
.hero-panel__foot { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 14px; }
.hero-panel__option { display: flex; flex-direction: column; gap: 2px; }
.hero-panel__optionLabel { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--silver-3); }
.hero-panel__optionValue { font-family: var(--font-display); color: var(--navy); font-size: 17px; font-style: italic; font-weight: 500; }
.hero-panel__divider { color: var(--silver-2); font-family: var(--font-display); font-size: 28px; font-weight: 300; margin-top: 4px; }

/* ============ SECTION HEAD ============ */
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head__lede { margin-top: 18px; font-size: 18px; color: var(--ink-soft); }

/* ============ SERVICES ============ */
.services { background: var(--bg); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-alt);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 160ms ease;
}
.service-card:hover { background: #FAFAF6; }
.service-card__head { display: flex; align-items: baseline; gap: 18px; }
.service-card__num { font-size: 12px; color: var(--silver-3); letter-spacing: 0.18em; }
.service-card__body { color: var(--ink-soft); max-width: 52ch; }
.service-card__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.service-card__list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); align-items: baseline; }
.service-card__bullet { color: var(--deep-teal); font-family: var(--font-mono); font-size: 12px; }

@media (max-width: 820px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card__list { grid-template-columns: 1fr; }
}

/* ============ EXAMPLE DIAGRAM ============ */
.example { background: var(--bg); }
.example__figure { margin: 0; }
.example__svg { display: block; width: 100%; height: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ PROCESS ============ */
.process { background: var(--navy); color: var(--paper); }
.process h2, .process h3, .process h4 { color: var(--paper); }
.process .eyebrow { color: var(--light-blue-2); }
.process-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step { padding: 0 18px 0 0; position: relative; }
.process-step + .process-step { padding-left: 32px; }
.process-step__rail { display: flex; align-items: center; gap: 14px; height: 32px; margin-bottom: 22px; }
.process-step__num { font-size: 12px; color: var(--light-blue-2); letter-spacing: 0.18em; background: rgba(255,255,255,0.08); padding: 6px 10px; border-radius: 4px; }
.process-step__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--light-blue), rgba(102,153,204,0)); }
.process-step__title { font-size: 22px; margin-bottom: 12px; }
.process-step__body { color: var(--light-blue-2); font-size: 15px; line-height: 1.6; }
.process__foot { margin-top: 64px; text-align: center; }
.process__foot p { color: var(--light-blue-2); }
.process__foot strong { color: var(--pale-yellow); font-weight: 400; font-style: italic; }

@media (max-width: 920px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .process-step + .process-step { padding-left: 0; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============ ABOUT ============ */
.about { background: var(--bg); }
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.about__col h2 { margin-top: 14px; }
.about__col h2 em { color: var(--deep-teal); font-style: italic; font-weight: 400; }
.about__col p { margin-top: 22px; color: var(--ink-soft); max-width: 56ch; }
.principles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 8px;
}
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 22px; border-radius: 8px; }
.principle + .principle { border-top: 1px dashed var(--rule); }
.principle__num { font-size: 11px; color: var(--silver-3); letter-spacing: 0.16em; padding-top: 4px; }
.principle__title { font-family: var(--font-display); font-size: 22px; color: var(--navy); font-weight: 500; margin: 0 0 6px; }
.principle__body { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 820px) { .about__inner { grid-template-columns: 1fr; } }

/* ============ CONTACT ============ */
.contact { background: var(--bg-alt); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.contact__intro p { margin-top: 22px; color: var(--ink-soft); max-width: 48ch; }
.contact__direct {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 22px;
}
.contact__directLabel { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--silver-3); margin-bottom: 4px; }
.contact__directValue { font-family: var(--font-display); font-size: 20px; color: var(--navy); }
a.contact__directValue:hover { text-decoration: underline; }

.contact__form {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.field__req { color: var(--deep-teal); }
.field__input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field__input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,77,128,0.12); }
textarea.field__input { resize: vertical; min-height: 110px; line-height: 1.5; }
.field__input--select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.contact__honeypot { position: absolute; left: -9999px; }
.contact__submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.contact__fine { font-size: 13px; }

@media (max-width: 820px) {
  .contact__inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--light-blue-2);
  padding: clamp(56px, 7vw, 88px) 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(36px, 6vw, 96px);
  padding-bottom: 56px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer__lockup { display: flex; align-items: center; gap: 10px; }
.footer__logo { height: 44px; width: auto; display: block; transform: translateY(4px); }
.footer__wordmark {
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1;
}
.footer__tag { margin-top: 2px; font-size: 12px; letter-spacing: 0.14em; color: var(--light-blue-2); text-transform: uppercase; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__heading { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light-blue); margin-bottom: 16px; }
.footer__cols a { display: block; color: var(--light-blue-2); font-size: 14px; padding: 4px 0; }
.footer__cols a:hover { color: var(--paper); text-decoration: none; }
.footer__legal {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: var(--light-blue);
  letter-spacing: 0.04em;
}
.footer__legal .mono { font-size: 11px; letter-spacing: 0.12em; }

@media (max-width: 820px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__legal { flex-direction: column; gap: 10px; }
}

/* ============ THANK YOU PAGE ============ */
.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.thanks__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--deep-teal);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 500;
  margin: 0 auto 22px;
}
.thanks h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.thanks p { color: var(--ink-soft); max-width: 32rem; margin: 0 auto 28px; }
