/* ===================================================================
   Praesensio Marketing — styles.css
   Design tokens mirror src/app/globals.css exactly.
   =================================================================== */

:root {
  --green:       #143c30;
  --green-deep:  #0c2a22;
  --green-soft:  #1d4d3e;
  --ivory:       #f4f0e6;
  --ivory-bright:#fbf9f2;
  --ink:         #1a2420;
  --ink-soft:    #4f5a53;
  --brass:       #a9803c;
  --brass-bright:#c79a52;
  --claret:      #7a2f2c;
  --line:        rgba(20,60,48,.16);
  --line-on-green: rgba(244,240,230,.18);
  --shadow:      0 1px 0 rgba(12,42,34,.04), 0 18px 40px -28px rgba(12,42,34,.45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---- Typography ---- */
.fraunces { font-family: "Fraunces", serif; }
.mono     { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }

/* ---- Hairline rule ---- */
.guilloche-rule {
  height: 18px;
  width: 100%;
  display: block;
  opacity: .5;
}

/* ====================================================================
   SITE HEADER / NAV
   ==================================================================== */
.site-header {
  background: var(--green);
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brandblock {
  display: flex;
  align-items: center;
  gap: 16px;
}

.seal-wrap { width: 48px; height: 48px; flex: 0 0 48px; }

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark-name {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1;
  text-decoration: none;
}

.wordmark-name sup {
  font-size: .42em;
  letter-spacing: 0;
  color: var(--brass-bright);
  top: -1em;
}

.wordmark-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,240,230,.55);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Buttons ---- */
.btn {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid currentColor;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.4;
}

.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Ghost (on dark green) */
.btn-ghost {
  color: rgba(244,240,230,.75);
  border-color: rgba(244,240,230,.35);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--ivory-bright);
  background: rgba(244,240,230,.08);
}

/* Primary ivory (on dark green) */
.btn-ivory {
  color: var(--green);
  background: var(--ivory);
  border-color: var(--ivory);
}
.btn-ivory:hover {
  background: var(--ivory-bright);
  border-color: var(--ivory-bright);
}

/* Primary green (on light bg) */
.btn-primary {
  color: var(--ivory);
  background: var(--green);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-soft);
  border-color: var(--green-soft);
}

/* Outline (on light bg) */
.btn-outline {
  color: var(--green);
  background: transparent;
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--ivory);
}

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
  background: var(--green);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  padding-top: 88px;
  padding-bottom: 96px;
  position: relative;
  z-index: 2;
}

.hero-watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  opacity: .045;
  z-index: 1;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--brass-bright);
  opacity: .5;
}

.hero-headline {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--ivory);
  margin: 0 0 16px;
  max-width: 800px;
}

.hero-headline em {
  font-style: italic;
  color: var(--brass-bright);
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: rgba(244,240,230,.78);
  max-width: 600px;
  margin: 0 0 40px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ====================================================================
   SECTION COMMON
   ==================================================================== */
section { padding: 80px 0; }

.section-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::after {
  content: "";
  height: 1px;
  width: 48px;
  background: var(--brass);
  opacity: .5;
}

.section-title {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 680px;
}

.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.65;
  margin: 0 0 48px;
}

/* ====================================================================
   PROBLEM SECTION
   ==================================================================== */
.problem { background: var(--ivory-bright); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.problem-copy { max-width: 540px; }

.problem-pullquote {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.4;
  color: var(--green);
  margin: 0 0 28px;
  padding: 24px 28px;
  border-left: 3px solid var(--brass);
  background: var(--ivory);
}

.problem-pullquote strong {
  font-style: normal;
  font-weight: 600;
}

.risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.risk-diamond {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--claret);
  margin-top: 6px;
}

.risk-item-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.risk-item-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ====================================================================
   HOW IT WORKS
   ==================================================================== */
.how { background: var(--ivory); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--ivory-bright);
}

.step {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}

.step:last-child { border-right: none; }

.step-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--green);
}

.step-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--ivory-bright);
  border: 1px solid var(--line);
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

/* ====================================================================
   FEATURES
   ==================================================================== */
.features { background: var(--green); color: var(--ivory); }

.features .section-eyebrow { color: var(--brass-bright); }
.features .section-eyebrow::after { background: var(--brass-bright); }
.features .section-title { color: var(--ivory); }
.features .section-lead { color: rgba(244,240,230,.72); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-on-green);
}

.feature-card {
  background: rgba(12,42,34,.55);
  padding: 28px 26px 32px;
  border: 1px solid var(--line-on-green);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--brass-bright);
}

.feature-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--ivory);
  margin: 0 0 8px;
}

.feature-desc {
  font-size: 14px;
  color: rgba(244,240,230,.68);
  line-height: 1.6;
  margin: 0;
}

/* ====================================================================
   SECURITY / TRUST
   ==================================================================== */
.trust { background: var(--ivory-bright); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.trust-inner {
  max-width: 860px;
  margin: 0 auto;
}

.trust-inner .section-title { max-width: none; }

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-top: 8px;
}

.trust-item {
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
}

.trust-item:nth-child(2n) { border-right: none; }
.trust-item:nth-last-child(-n+2) { border-bottom: none; }

.trust-diamond {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--brass);
  margin-top: 6px;
}

.trust-item-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.trust-item-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.trust-disclaimer {
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  line-height: 1.55;
  background: var(--ivory);
}

/* ====================================================================
   CTA BAND
   ==================================================================== */
.cta-band {
  background: var(--green-deep);
  color: var(--ivory);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  opacity: .04;
  pointer-events: none;
}

.cta-band .wrap { position: relative; z-index: 2; }

.cta-band-headline {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 46px);
  letter-spacing: .01em;
  color: var(--ivory);
  margin: 0 0 16px;
}

.cta-band-sub {
  font-size: 16px;
  color: rgba(244,240,230,.7);
  margin: 0 0 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-band-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer {
  background: var(--green);
  border-top: 1px solid var(--line-on-green);
}

.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.footer-brand-name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
}

.footer-brand-name sup {
  font-size: .42em;
  color: var(--brass-bright);
  top: -.9em;
}

.footer-seal-sm { width: 32px; height: 32px; }

.footer-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(244,240,230,.48);
  line-height: 1.65;
  margin: 0;
  max-width: 540px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244,240,230,.55);
  text-decoration: none;
  transition: color .15s;
}

.footer-link:hover { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid var(--line-on-green);
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(244,240,230,.35);
  margin: 0;
}

/* ====================================================================
   DIVIDER
   ==================================================================== */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ====================================================================
   ANIMATIONS
   ==================================================================== */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,154,82,.55); }
  70%  { box-shadow: 0 0 0 6px rgba(199,154,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,154,82,0); }
}

@keyframes turn {
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero-watermark { animation: turn 120s linear infinite; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 960px) {
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .step:nth-last-child(2) { border-bottom: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  section { padding: 60px 0; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .hero .wrap { padding-top: 60px; padding-bottom: 72px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .step:nth-child(odd) { border-right: none; }
  .step:last-child { border-bottom: none; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .nav-actions .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-watermark { animation: none !important; }
  .cta-band-watermark { animation: none !important; }
}
