/* POA Forms — brand tokens
   Distinct from BlueNotary: not royal blue, not corporate-glossy.
   Palette: ink black + electric lime + warm cream.
   Type: Outfit (display) + Inter (UI/body).
*/

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Default palette — Ink + Lime */
  --ink:        #0E0E0C;
  --ink-soft:   #1A1A18;
  --paper:      #F5F1E8;     /* warm cream — page wash */
  --paper-2:    #ECE6D6;     /* slightly deeper cream — section banding */
  --paper-3:    #E0D8C2;     /* edge of cream */
  --surface:    #FFFFFF;
  --accent:     #C9F36A;     /* electric lime — primary action */
  --accent-ink: #0E0E0C;     /* text on lime */
  --accent-2:   #2D2D29;     /* secondary, against cream */
  --line:       #1A1A18;     /* hairline stroke */
  --line-soft:  rgba(14,14,12,0.12);
  --line-cream: #C7BFA8;
  --muted:      #5C5A52;
  --bn-blue:    #3B40D5;     /* preserved for BN handoff CTA only */

  /* Status */
  --ok:    #2E7D5B;
  --warn:  #B5751A;
  --error: #C0382B;

  /* Type scale (px) */
  --t-display: clamp(48px, 7vw, 88px);
  --t-h1:      clamp(34px, 4.5vw, 56px);
  --t-h2:      clamp(26px, 3vw, 36px);
  --t-h3:      22px;
  --t-h4:      18px;
  --t-body:    16px;
  --t-small:   14px;
  --t-eyebrow: 12px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Spacing — fixed scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 120px;

  /* Shadows — warm-tinted, not pure black */
  --shadow-sm: 0 1px 2px rgba(20,16,8,0.05), 0 2px 4px rgba(20,16,8,0.04);
  --shadow-md: 0 2px 6px rgba(20,16,8,0.06), 0 12px 28px rgba(20,16,8,0.08);
  --shadow-lg: 0 4px 12px rgba(20,16,8,0.08), 0 24px 56px rgba(20,16,8,0.12);
  --shadow-press: inset 0 -3px 0 rgba(0,0,0,0.18);

  /* Container */
  --container: 1240px;

  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

/* Theme variants — toggled via [data-theme] on <html> */
html[data-theme="violet"] {
  --ink:        #1B1733;
  --ink-soft:   #29234A;
  --paper:      #FBF7EE;
  --paper-2:    #F4ECDB;
  --paper-3:    #E8DCC1;
  --line:       #1B1733;
  --line-soft:  rgba(27,23,51,0.12);
  --line-cream: #C9BD9F;
  --accent:     #6B4DFF;     /* violet primary */
  --accent-ink: #FFFFFF;
  --accent-2:   #FFB547;     /* amber secondary */
  --muted:      #5A5470;
}
html[data-theme="terracotta"] {
  --ink:        #1A1A18;
  --paper:      #FFF6EC;
  --paper-2:    #FBE9D2;
  --paper-3:    #F2D7B6;
  --line:       #1A1A18;
  --line-soft:  rgba(26,26,24,0.12);
  --line-cream: #DCC4A0;
  --accent:     #D9572A;
  --accent-ink: #FFFFFF;
  --accent-2:   #1B3A2F;
  --muted:      #6B5A48;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }

/* Type roles */
.display, h1.display {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--t-display);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}
h1, .h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}
h2, .h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h3, .h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
h4, .h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--t-h4);
  line-height: 1.25;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 60ch;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.section {
  padding: var(--s-12) 0;
}
.section.tight { padding: var(--s-10) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--accent-ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn.primary:hover {
  box-shadow: 6px 6px 0 0 var(--ink);
  transform: translate(-1px, -1px);
}
.btn.primary:active {
  box-shadow: 2px 2px 0 0 var(--ink);
  transform: translate(1px, 1px);
}
.btn.large {
  padding: 18px 28px;
  font-size: 17px;
  min-height: 56px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--paper-2); }
.btn.bn {
  background: var(--bn-blue);
  border-color: var(--bn-blue);
  color: #fff;
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn.bn:hover { box-shadow: 6px 6px 0 0 var(--ink); transform: translate(-1px,-1px); }

/* Inputs / selects */
.input, .select {
  appearance: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 14px 16px;
  width: 100%;
  color: var(--ink);
  min-height: 52px;
  transition: box-shadow 120ms ease;
}
.input:focus, .select:focus {
  outline: none;
  box-shadow: 4px 4px 0 0 var(--ink);
  transform: translate(-1px,-1px);
}
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230E0E0C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line-cream);
}
.pill.dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--ink);
}
.pill.solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pill.lime {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--ink);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  position: relative;
}
.card.flat {
  border: 1px solid var(--line-cream);
  background: var(--paper-2);
}
.card.shadowed {
  box-shadow: 6px 6px 0 0 var(--ink);
}
.card.elev {
  box-shadow: var(--shadow-md);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-cream);
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-4) var(--s-6);
  max-width: var(--container);
  margin: 0 auto;
}
.topbar nav {
  display: flex;
  gap: var(--s-7);
  font-size: 14px;
  font-weight: 500;
}
.topbar nav a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.topbar nav a:hover { text-decoration: underline; }
.topbar .actions {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

/* Brand wordmark */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark .seal {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.brand-mark .seal svg { width: 18px; height: 18px; }
.brand-mark .tld {
  color: var(--muted);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-11) 0 var(--s-7);
  margin-top: var(--s-12);
}
.footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-9);
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--paper); text-decoration: none; font-size: 14px; opacity: 0.8; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer .legal {
  border-top: 1px solid rgba(245,241,232,0.15);
  margin-top: var(--s-9);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer .built-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Trust microcopy */
.trust-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; }

/* Subtle cream texture — the page-wash motif */
.cream-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14,14,12,0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Section divider — official-document feeling rule */
.rule {
  height: 1px;
  background: var(--line-cream);
  border: 0;
  margin: 0;
}
.rule.thick { height: 2px; background: var(--ink); }

/* Responsive */
@media (max-width: 880px) {
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .topbar nav { display: none; }
}
@media (max-width: 560px) {
  .footer .grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Print-style document chrome */
.doc-rule {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.doc-rule::before, .doc-rule::after {
  content: ''; flex: 1; height: 1px; background: var(--line-cream);
}

/* Visually hidden */
.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;
}
