/* ==========================================================================
   ExactMark — Wealth managers & family offices
   Dark forest and champagne. Manrope headings at restrained weights,
   Inter body. Wide margins, hairline champagne rules, no iconography.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #0d1a14;
  --surface: #12241c;
  --surface-2: #172c22;
  --text: #edf3ee;
  --muted: #9fb3a7;
  --line: #23392e;
  --accent: #d9c69a;
  --accent-soft: rgba(217, 198, 154, .14);
  --hair: rgba(217, 198, 154, .3);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", var(--font-body);
  --radius: 4px;
  --wrap: 1080px;
  --gutter: 32px;
  --section-y: 112px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 3px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; color: var(--text); }
h1 { font-size: clamp(38px, 4.4vw, 66px); }
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  padding: 10px 14px; background: var(--accent); color: var(--bg);
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.section-head { max-width: 620px; margin-bottom: 64px; }

/* Hairline champagne rules between sections */
main > section + section { border-top: 1px solid var(--hair); }

/* 3. Buttons and links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius);
  background: var(--accent); color: var(--bg);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s ease;
}
.btn:hover { background: #e9dbb8; text-decoration: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.text-link { font-weight: 500; border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.text-link:hover { text-decoration: none; border-bottom-color: var(--accent); }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 26, 20, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 32px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* 5. Hero ------------------------------------------------------------------ */
.hero { padding: 112px 0 128px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 88px; align-items: center; }
.hero h1 { max-width: 15ch; }
.lede { margin-top: 28px; font-size: 17px; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.trust-line { display: flex; flex-wrap: wrap; margin-top: 30px; font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.trust-line span + span::before { content: "\00b7"; margin: 0 12px; color: var(--accent); }

/* 5a. Statement and recipient sheets illustration */
.hero-visual { position: relative; padding: 0 0 228px 56px; }
.stack { position: relative; max-width: 400px; margin-left: auto; }
.sheet {
  position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  animation: fan .9s cubic-bezier(.2, .7, .2, 1) both;
}
/* Recipient labels sit in the strip of each sheet left visible below the statement */
.sheet span {
  position: absolute; left: 14px; bottom: 2px;
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
  color: var(--accent);
}
.sheet-1 { --dx: -18px; --dy: 18px; translate: var(--dx) var(--dy); animation-delay: .15s; }
.sheet-2 { --dx: -36px; --dy: 36px; translate: var(--dx) var(--dy); opacity: .9; animation-delay: .25s; }
.sheet-3 { --dx: -54px; --dy: 54px; translate: var(--dx) var(--dy); opacity: .8; animation-delay: .35s; }

.statement {
  position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 22px 24px 18px; box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.st-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.st-title {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: var(--text);
}
.st-tag {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.st-client { margin: 20px 0 14px; display: grid; gap: 8px; }
.sk { display: block; height: 8px; border-radius: 2px; background: var(--line); }
.sk-name { width: 58%; }
.sk-ref { width: 34%; height: 6px; }
.alloc li {
  display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.alloc i { position: relative; display: block; height: 2px; background: var(--line); }
.alloc b {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent); transform-origin: left;
  animation: draw 1s .5s cubic-bezier(.2, .7, .2, 1) both;
}
.alloc li:nth-child(1) b { width: 58%; }
.alloc li:nth-child(2) b { width: 27%; animation-delay: .6s; }
.alloc li:nth-child(3) b { width: 15%; animation-delay: .7s; }
.alloc em {
  font-style: normal; font-family: var(--font-head); font-weight: 600;
  color: var(--text); min-width: 36px; text-align: right;
}
.st-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--hair);
  font-size: 12px; font-weight: 600; color: var(--text);
}
.sk-total { width: 86px; height: 10px; background: var(--accent-soft); }
.st-foot {
  display: flex; justify-content: space-between;
  margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted); letter-spacing: .02em;
}
.st-foot span:last-child { color: var(--text); }

.match-card {
  position: absolute; right: -28px; bottom: -212px; z-index: 1; width: 232px;
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 14px 16px 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  animation: rise .8s .7s cubic-bezier(.2, .7, .2, 1) both;
}
.match-label {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.match-kicker { margin-top: 8px; font-size: 11px; color: var(--muted); }
.match-source {
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  color: var(--text);
}
.match-score { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.match-score .num {
  font-family: var(--font-head); font-size: 34px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1; color: var(--accent);
}
.score-label { font-size: 11px; color: var(--muted); }
.match-ranked { margin-top: 12px; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.match-ranked li {
  display: grid; grid-template-columns: 56px 1fr 34px; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted);
}
.match-ranked b {
  font-family: var(--font-head); font-weight: 600;
  color: var(--text); text-align: right;
}
.match-ranked i { display: block; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.match-ranked i::after { content: ""; position: absolute; inset: 0; background: var(--accent); }
.match-ranked li:nth-child(1) i::after { width: 90%; }
.match-ranked li:nth-child(2) i::after { width: 14%; opacity: .6; }
.match-ranked li:nth-child(3) i::after { width: 7%; opacity: .4; }

@keyframes fan { from { translate: 0 0; opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* 6. Value strip ----------------------------------------------------------- */
.value-strip { padding: 56px 0; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-grid li { padding: 0 40px; border-left: 1px solid var(--hair); display: grid; gap: 8px; align-content: start; }
.value-grid li:first-child { border-left: 0; padding-left: 0; }
.value-grid li:last-child { padding-right: 0; }
.value-grid strong { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.4; }
.value-grid span { font-size: 14px; color: var(--muted); }

/* 7. Problem → solution ---------------------------------------------------- */
.problem { padding: var(--section-y) 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.two-col .col + .col { border-left: 1px solid var(--hair); padding-left: 80px; }
.two-col h2 { max-width: 16ch; }
.two-col p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 16.5px; }
.two-col p:not(.eyebrow):first-of-type { margin-top: 26px; }

/* 8. How it works ---------------------------------------------------------- */
.how { padding: var(--section-y) 0; background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps li { border-top: 1px solid var(--hair); padding-top: 24px; }
.step-num { display: block; font-family: var(--font-head); font-weight: 500; font-size: 13px; letter-spacing: .16em; color: var(--accent); }
.steps h3 { margin-top: 18px; }
.steps p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }

/* 9. Capabilities ---------------------------------------------------------- */
.capabilities { padding: var(--section-y) 0; }
.cap-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.cap-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.cap-num {
  font-family: var(--font-head); font-weight: 500; font-size: 13px; letter-spacing: .14em;
  color: var(--accent); padding-top: 5px;
}
.cap-list h3 { font-size: 18px; }
.cap-list p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* 10. FAQ ------------------------------------------------------------------ */
.faq { padding: var(--section-y) 0; background: var(--surface); }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; }
.faq-list dt {
  font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.35;
  padding-top: 16px; border-top: 1px solid var(--hair);
}
.faq-list dd { margin-top: 12px; font-size: 16px; color: var(--muted); }

/* 11. Final CTA band (hairline border, no fill) ---------------------------- */
.cta-band { padding: var(--section-y) 0; }
.cta-box {
  max-width: 880px; margin-inline: auto;
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 80px 48px; text-align: center;
}
.cta-box h2 { max-width: 18ch; margin-inline: auto; }
.cta-box p { margin: 18px auto 0; max-width: 50ch; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* 12. Footer --------------------------------------------------------------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.tagline { color: var(--muted); font-size: 14px; letter-spacing: .01em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 940px) {
  :root { --section-y: 80px; --gutter: 24px; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero h1 { max-width: 18ch; }
  /* Explicit width: auto margins alone would shrink this grid item to fit-content */
  .hero-visual { width: min(100%, 460px); margin-inline: auto; padding: 0 0 228px 56px; }
  .value-grid { grid-template-columns: 1fr; gap: 28px; }
  .value-grid li, .value-grid li:first-child { border-left: 0; padding: 0; }
  .value-grid li + li { border-top: 1px solid var(--hair); padding-top: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 56px; }
  .two-col .col + .col { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 56px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .cap-list { grid-template-columns: 1fr 1fr; gap: 44px 40px; }
  .faq-list { grid-template-columns: 1fr; gap: 36px; }
  .section-head { margin-bottom: 48px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { gap: 16px; height: 64px; }
  .site-nav { display: none; }
  .btn-sm { margin-left: auto; }
  .hero { padding: 56px 0 64px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .lede { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 0; width: 100%; }
  .stack { max-width: none; }
  .sheet { display: none; }
  .statement { box-shadow: none; }
  .match-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
  .cap-list { grid-template-columns: 1fr; gap: 36px; }
  .cta-box { padding: 56px 24px; }
  .cta-actions .btn { width: 100%; }
  .footer-nav { margin-left: 0; }
}

/* 14. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
