/* ─────────────────────────────────────────────────────────────
   PanPay — Direction 2: "Terminal"
   Dark slate canvas, Emerald CTAs, Mint accents.
   Instrument Serif (display) + Inter (UI) + JetBrains Mono.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #020617; /* slate-950 */
  --bg-2: #0b1220; /* card */
  --bg-3: #0f172a; /* nested surface */
  --line: #1e293b; /* slate-800 */
  --line-2: #243042; /* slightly brighter */
  --text: #f8fafc; /* slate-50 */
  --text-2: #94a3b8; /* slate-400 */
  --text-3: #64748b; /* slate-500 */
  --emerald: #064e3b;
  --emerald-2: #065f46;
  --mint: #bbf7d0;
  --mint-dim: #86efac;
  --danger: #f87171;

  --radius: 4px;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--mint);
  color: var(--bg);
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ────────────────── NAV ────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand__tld {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-left: 4px;
}
.nav__links {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14px;
  color: var(--text-2);
}
.nav__links a:hover {
  color: var(--text);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.link-quiet {
  color: var(--text-2);
  font-size: 14px;
}
.link-quiet:hover {
  color: var(--text);
}

/* ────────────────── BUTTONS ────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  font-family: var(--font-sans);
  cursor: pointer;
}
.btn--primary {
  background: var(--emerald);
  border-color: var(--emerald-2);
  color: var(--mint);
}
.btn--primary:hover {
  border-color: var(--mint);
  background: var(--emerald-2);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}
.btn--lg {
  padding: 14px 22px;
  font-size: 15px;
}

/* ────────────────── HERO ────────────────── */
.hero {
  position: relative;
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
  /* Subtle grid backdrop — typographic, not decorative */
  background-image:
    linear-gradient(to right, rgba(30, 41, 59, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.35) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
}
.hero::after {
  /* radial vignette to focus center */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 75%);
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mint);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.eyebrow__sep {
  color: var(--text-3);
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(187, 247, 208, 0.15);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(187, 247, 208, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(187, 247, 208, 0.05);
  }
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.display em {
  color: var(--mint);
  font-style: italic;
}
.display--sm {
  font-size: clamp(40px, 5vw, 64px);
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 0 32px;
}
.lede--sm {
  font-size: 16px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.hero__stats > div {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
}
.hero__stats > div:last-child {
  border-right: 0;
  padding-right: 0;
}
.hero__stats > div:not(:first-child) {
  padding-left: 18px;
}
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.hero__stats .num {
  color: var(--text);
}

/* ────────────────── PRODUCT MOCK ────────────────── */
.mock {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: border-color 0.25s ease;
}
.mock:hover {
  border-color: var(--mint);
}

.mock__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.mock__chrome--alt {
  grid-template-columns: auto auto;
  justify-content: space-between;
}
.mock__dots {
  display: flex;
  gap: 6px;
}
.mock__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.mock__url {
  color: var(--text-2);
  font-size: 11.5px;
  text-align: center;
  letter-spacing: 0.02em;
}
.mock__env {
  font-size: 10px;
  color: var(--mint);
  border: 1px solid var(--emerald-2);
  background: rgba(6, 78, 59, 0.35);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}
.mock__file {
  color: var(--text);
  font-size: 12px;
}
.mock__lang {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.mock__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-right: 1px solid var(--line);
}
.tab--active {
  color: var(--mint);
  background: rgba(6, 78, 59, 0.25);
  border-bottom: 1px solid var(--mint);
  margin-bottom: -1px;
}

.code {
  margin: 0;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre;
  overflow-x: auto;
}
.code--lg {
  font-size: 13px;
  padding: 22px;
}
.c-com {
  color: var(--text-3);
  font-style: italic;
}
.c-key {
  color: var(--mint);
}
.c-str {
  color: #fde68a;
}
.c-num {
  color: #93c5fd;
}
.c-fn {
  color: var(--mint-dim);
}

.mock__divider {
  height: 1px;
  background: var(--line);
}

.mock__row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
.mock__row--last {
  border-bottom: 0;
}
.row__label {
  color: var(--text-3);
  letter-spacing: 0.1em;
  font-size: 10px;
}
.row__id,
.row__val {
  color: var(--text);
}
.row__status {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
}
.row__status--live {
  color: var(--mint);
  border: 1px solid var(--emerald-2);
  background: rgba(6, 78, 59, 0.35);
}
.row__meta {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.mock__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  font-size: 11px;
  color: var(--text-3);
}
.mock__foot code {
  color: var(--mint);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(187, 247, 208, 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(187, 247, 208, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(187, 247, 208, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(187, 247, 208, 0);
  }
}

/* ────────────────── LOGOS ────────────────── */
.logos {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 64px var(--gutter) 0;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.logos__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.logos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--text-2);
}
.logos li:hover {
  color: var(--text);
}

/* ────────────────── SECTIONS ────────────────── */
.section {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}
.section--alt {
  background: linear-gradient(180deg, var(--bg) 0%, #050b1c 100%);
}
.section__head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mint);
  margin-bottom: 24px;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ────────────────── PRODUCT GRID ────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-2);
  transition: background 0.2s ease;
}
.card:last-child {
  border-right: 0;
}
.card:hover {
  background: var(--bg-3);
}
.card__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  margin: 0;
  letter-spacing: -0.01em;
}
.card__body {
  color: var(--text-2);
  margin: 0;
  font-size: 14.5px;
}
.card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.card__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.card__list li:last-child {
  border-bottom: 0;
}
.card__list li > span:first-child {
  color: var(--text);
}
.card__list li > span:last-child {
  color: var(--text-3);
}
.card__cta {
  margin-top: auto;
  font-size: 13px;
  color: var(--mint);
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.card__cta:hover {
  color: var(--text);
}

/* ────────────────── DEVELOPER ────────────────── */
.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.dev__list {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.dev__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  color: var(--text);
  font-size: 14.5px;
}
.bullet {
  color: var(--mint);
  font-family: var(--font-mono);
}

.dev__code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.dev__code:hover {
  border-color: var(--mint);
}

/* ────────────────── COMPLIANCE ────────────────── */
.compliance {
  border-top: 1px solid var(--line);
}
.comp__row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}
.comp__row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--mint);
  transition: width 0.2s ease;
}
.comp__row:hover {
  padding-left: 16px;
  background: var(--bg-2);
}
.comp__row:hover::before {
  width: 4px;
}
.comp__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mint);
}
.comp__val {
  color: var(--text);
  font-size: 15px;
}
.comp__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

/* ────────────────── CTA ────────────────── */
.cta {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: end;
}
.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ────────────────── FOOTER ────────────────── */
.foot {
  padding: 80px 0 32px;
  background: #010410;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.foot__brand .brand {
  margin-bottom: 20px;
}
.foot__addr {
  color: var(--text-2);
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.foot__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin: 0;
}
.foot__col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 500;
}
.foot__col a {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  padding: 4px 0;
}
.foot__col a:hover {
  color: var(--mint);
}
.foot__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-3);
}
.foot__bar .mono {
  font-size: 11px;
}

/* ────────────────── RESPONSIVE ────────────────── */
@media (max-width: 960px) {
  .nav__links {
    display: none;
  }
  .nav__inner {
    grid-template-columns: auto 1fr;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__stats > div:nth-child(2) {
    border-right: 0;
  }
  .hero__stats > div:nth-child(3),
  .hero__stats > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .card:last-child {
    border-bottom: 0;
  }
  .dev-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section {
    padding: 88px 0;
  }
  .cta {
    padding: 88px 0;
  }
  .cta__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
  .logos {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comp__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .comp__row .comp__meta {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .foot__grid {
    grid-template-columns: 1fr;
  }
  .foot__bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .display {
    font-size: 44px;
  }
}

/* ─────────────────────────────────────────────────────────────
   MARKETING ADDITIONS
   - Single-column hero
   - Why / Who grids
   - Doc & legal page layout
   - Contact form
   ───────────────────────────────────────────────────────────── */

.hero__grid--single { grid-template-columns: 1fr; max-width: 920px; }
.hero__grid--single .hero__copy { max-width: 100%; }

.section__sub { margin-top: 24px; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.why__list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.why__h {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.why__p { color: var(--text-2); font-size: 15px; }

/* Who */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.who__card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  transition: background 0.2s ease;
}
.who__card:nth-child(2n) { border-right: 0; }
.who__card:nth-last-child(-n+2) { border-bottom: 0; }
.who__card:hover { background: var(--bg-3); }
.who__card h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.who__card p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ────────────────── DOC / LEGAL PAGES ────────────────── */
.page {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page__head {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mint);
  margin-bottom: 24px;
}
.page__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.page__title em { color: var(--mint); font-style: italic; }
.page__lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0;
}
.page__meta {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text);
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  margin: 28px 0 8px;
  letter-spacing: 0.01em;
}
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--mint); border-bottom: 1px solid var(--emerald-2); }
.prose a:hover { color: var(--text); border-color: var(--mint); }
.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--mint);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.prose .toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 48px;
  background: var(--bg-2);
  list-style: none;
}
.prose .toc li { margin: 4px 0; }
.prose .toc a { border-bottom: 0; color: var(--text-2); font-size: 14px; }
.prose .toc a:hover { color: var(--mint); }
.prose .toc__title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ────────────────── CONTACT ────────────────── */
.contact-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.contact__aside h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.contact__aside p { color: var(--text-2); margin: 0 0 24px; font-size: 15px; }
.contact__chan {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact__chan li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: baseline;
}
.contact__chan dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.contact__chan dd { margin: 0; color: var(--text); font-size: 14.5px; }
.contact__chan a { color: var(--mint); }

.form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 20px;
}
.form__row {
  display: grid;
  gap: 8px;
}
.form__row--two {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__row--two > .form__row { gap: 8px; }
.form label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}
.form input,
.form select,
.form textarea {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s ease;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--text-3); }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--mint);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.form__note { color: var(--text-3); font-size: 12px; max-width: 36ch; }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .who-grid { grid-template-columns: 1fr; }
  .who__card { border-right: 0; }
  .who__card:not(:last-child) { border-bottom: 1px solid var(--line); }
  .who__card:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .form { padding: 24px; }
  .form__row--two { grid-template-columns: 1fr; }
}

/* ────────────────── PILL (hero announcement) ────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  margin-bottom: 32px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.pill:hover {
  border-color: var(--mint);
  color: var(--text);
}
.pill:hover .pill__arrow { transform: translateX(2px); }

.pill__chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  background: var(--mint);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.pill__text { white-space: nowrap; }
.pill__arrow {
  color: var(--text-3);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.hero__stats--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) {
  .hero__stats--3 { grid-template-columns: repeat(3, 1fr); }
  .hero__stats--3 > div:nth-child(2) { border-right: 1px solid var(--line); }
  .hero__stats--3 > div:nth-child(3) { border-top: 0; }
}
@media (max-width: 600px) {
  .pill {
    font-size: 11.5px;
    padding: 5px 12px 5px 5px;
    gap: 10px;
  }
  .pill__text { white-space: normal; }
  .hero__stats--3 { grid-template-columns: 1fr 1fr; }
  .hero__stats--3 > div:nth-child(3) {
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    border-right: 0;
  }
}

/* ────────────────── FOOTER PHONE LINK ────────────────── */
.foot__addr a {
  color: var(--text-2);
  border-bottom: 1px dotted var(--line-2);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.foot__addr a:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

/* ────────────────── CONTACT (info-only) ────────────────── */
.contact-grid--info { align-items: start; }
.contact__channels { display: grid; gap: 32px; }
.contact__cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-2);
  display: grid;
  gap: 20px;
}
.contact__cta p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Footer address labels (Address: / Tel:) */
.foot__addr p {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}
.foot__addr p:last-child { margin-bottom: 0; }
.foot__lbl {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-right: 8px;
}
.foot__lbl::after { content: ":"; }
