/* ============================================
   PinPulse Design System
   Palette: Ivory canvas, ink text, antique gold
   (from brand mark), muted rust as the single
   "pulse" accent — used only for the ECG motif.
   ============================================ */

:root {
  --ivory:      #FBF6EC;
  --ivory-dim:  #F4EDDD;
  --ink:        #211C14;
  --ink-soft:   #4A4238;
  --gold:       #B8862F;
  --gold-deep:  #8A631D;
  --gold-pale:  #E9D6A8;
  --pulse:      #B14B32;
  --line:       rgba(33,28,20,0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--gold-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
}

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

/* ---------- Type scale ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { line-height: 1.65; color: var(--ink-soft); margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 3px rgba(177,75,50,0.15);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,236,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 38px; width: auto; }
.nav-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--pulse);
}
.nav-cta {
  background: var(--ink); color: var(--ivory) !important;
  padding: 10px 20px; border-radius: 999px; font-size: 0.88rem !important;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--gold-deep); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--ivory);
    flex-direction: column; align-items: flex-start;
    padding: 22px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: all .25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(138,99,29,0.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Hero pulse line (signature element) ---------- */
.pulse-line-wrap {
  width: 100%; overflow: hidden;
  line-height: 0;
}
.pulse-svg { width: 100%; height: auto; display: block; }
.pulse-path {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.pulse-dot {
  fill: var(--pulse);
  opacity: 0;
  animation: dotpulse 2.6s ease-out forwards;
}
@keyframes dotpulse {
  0%, 70% { opacity: 0; }
  75% { opacity: 1; }
  100% { opacity: 1; }
}

/* thin divider heartbeat between sections */
.divider {
  width: 100%; height: 34px;
  opacity: 0.55;
}

/* ---------- Sections ---------- */
section { padding: 92px 0; }
section.tight { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

.hero {
  padding: 72px 0 40px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 22px; font-size: 1.18rem; max-width: 480px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; }
.hero-art .pin {
  position: relative;
  background: var(--ink);
  border-radius: 28px;
  aspect-ratio: 1/1.05;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-art .pin img { width: 58%; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4)); }
.hero-art .ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(184,134,47,0.35);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(33,28,20,0.08); }
.card .mark { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-deep); letter-spacing: 0.08em; }
.card h3 { margin-top: 14px; }
.card p { margin-top: 10px; font-size: 0.96rem; }

.stat {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}
.stat .num { font-family: var(--font-mono); font-size: 2rem; color: var(--ink); }
.stat .label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Flow (How it works) ---------- */
.flow { position: relative; }
.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .flow-track { grid-template-columns: 1fr; } }
.flow-node {
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  position: relative;
}
.flow-node .step {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--pulse);
  letter-spacing: 0.08em;
}
.flow-node h3 { margin-top: 10px; font-size: 1.1rem; }
.flow-node p { margin-top: 8px; font-size: 0.92rem; }

/* ---------- Quote / founder block ---------- */
.founder-block {
  background: var(--ink);
  color: var(--ivory);
  border-radius: 26px;
  padding: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.founder-block p { color: rgba(251,246,236,0.78); }
.founder-block .sig { margin-top: 22px; font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-pale); }
@media (max-width: 860px) { .founder-block { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.foot-grid a, .foot-grid p { font-size: 0.9rem; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: var(--ink-soft);
}

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gold-pale); color: var(--gold-deep);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 10px;
}

.pagehead {
  padding: 56px 0 20px;
}
.pagehead .eyebrow { margin-bottom: 16px; }
.pagehead p { max-width: 620px; margin-top: 18px; font-size: 1.08rem; }

.list-check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--ink-soft); }
.list-check li::before {
  content: '✓'; color: var(--gold-deep); font-weight: 700; flex-shrink: 0;
}

.table-clean { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table-clean th, .table-clean td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.table-clean th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }

form.contact-form { display: grid; gap: 16px; max-width: 560px; }
form.contact-form label { font-size: 0.85rem; color: var(--ink-soft); display: block; margin-bottom: 6px; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ivory-dim);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
}
form.contact-form input:focus, form.contact-form textarea:focus { border-color: var(--gold); outline: none; }
