/* Pairibl marketing — editorial warm paper system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F5F0E8;
  --bg-deep: #EBE4D8;
  --surface: #FFFCF7;
  --ink: #1A2B3C;
  --muted: #5C6B7A;
  --muted-2: #8A96A3;
  --line: #D9CFC0;
  --accent: #C98F35;          /* clay/amber — CTAs only */
  --accent-ink: #7A5420;
  --teal: #2A9D8F;            /* sparingly, secondary CTA hover only */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 10px;
  --max: 1120px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

/* Staging badge — shown only when html[data-env="uat"] */
.staging-badge {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,252,247,0.92);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
html[data-env="uat"] .staging-badge { display: inline-flex; align-items: center; gap: 6px; }
html[data-env="uat"] .staging-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px; /* keep wordmark clear of the navy ring */
  overflow: visible;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo-mark {
  height: 44px;
  width: auto;
  max-width: none;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}
.nav-logo-word {
  font-family: var(--font-body);
  font-size: 22px; /* prominent next to ~44px rings */
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
}
@media (max-width: 560px) {
  .nav-logo { gap: 10px; }
  .nav-logo-mark { height: 40px; }
  .nav-logo-word { font-size: 20px; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.nav-cta:hover { background: var(--accent) !important; }

/* Hero — asymmetric, type-led */

/* Ghosted interlocking rings — chain-link settle per section */
.hero {
  position: relative;
  overflow: visible;
  z-index: auto;
}
.hero-rings-wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: min(560px, 72vw);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transform: translate3d(4vw, 22vh, 0) rotate(-3deg) scale(1);
  transform-origin: 40% 50%;
  transition: opacity 1.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s;
}
.hero-rings-wrap.is-ready {
  opacity: 0.10;
}
/* Soft lock when a section pose is reached */
.hero-rings-wrap.is-settling {
  transition:
    opacity 1.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-rings {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
/* Independent link motion driven by JS (--ink-* / --clay-*) */
.ring-link {
  transform-box: fill-box;
  transform-origin: center;
  transition: none;
}
.hero-rings-wrap.is-settling .ring-link {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.ring-link-ink {
  transform: translate(var(--ink-x, 0px), var(--ink-y, 0px)) rotate(var(--ink-r, 0deg));
}
.ring-link-clay {
  transform: translate(var(--clay-x, 0px), var(--clay-y, 0px)) rotate(var(--clay-r, 0deg));
}

@media (max-width: 900px) {
  .hero-rings-wrap {
    width: min(380px, 78vw);
  }
  .hero-rings-wrap.is-ready {
    opacity: 0.07;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rings-wrap {
    transition: none !important;
    transform: translate3d(4vw, 22vh, 0) !important;
    opacity: 0.09;
  }
  .ring-link {
    transition: none !important;
    transform: none !important;
  }
}

/* Keep page sections above the fixed rings */
main > *:not(.hero),
.hero > *:not(.hero-rings-wrap),
.nav,
.staging-badge,
.footer {
  position: relative;
  z-index: 1;
}



.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: end;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 550;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(122,84,32,0.25);
}
.btn-primary:hover {
  background: #b87f2c;
  box-shadow: 0 8px 24px rgba(201,143,53,0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--muted-2); background: var(--surface); }
.btn .icon { width: 16px; height: 16px; }

.hero-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 20px 50px rgba(26,43,60,0.06);
}
.hero-aside h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 550;
  margin-bottom: 8px;
}
.hero-aside p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.form-row { display: flex; flex-direction: column; gap: 10px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.form-row input {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,143,53,0.18);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-msg {
  font-size: 14px;
  min-height: 1.2em;
  margin-top: 12px;
  color: var(--muted);
}
.form-msg.is-ok { color: var(--teal); }
.form-msg.is-err { color: #A14B3A; }
.waitlist-count {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}


/* Sections */
section { padding: clamp(64px, 10vw, 104px) clamp(20px, 4vw, 48px); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 20ch;
  margin-bottom: 18px;
}
.section-lede {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ink);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 550;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 0.98rem; }
.step .icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.step .icon-wrap svg { width: 20px; height: 20px; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.feature:hover {
  background: var(--surface);
  border-color: var(--line);
}
.feature .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-deep);
  display: grid; place-items: center;
  color: var(--ink);
}
.feature .icon-wrap svg { width: 20px; height: 20px; }
.feature h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 550;
  margin-bottom: 6px;
}
.feature p { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #F5F0E8;
  border-radius: 20px;
  padding: clamp(36px, 6vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  max-width: 16ch;
}
.cta-band p { color: rgba(245,240,232,0.72); max-width: 36ch; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band .form-row label { color: rgba(245,240,232,0.55); }
.cta-band .form-row input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(245,240,232,0.18);
  color: #fff;
}
.cta-band .form-row input::placeholder { color: rgba(245,240,232,0.4); }
.cta-band .form-msg { color: rgba(245,240,232,0.7); }
.cta-band .form-msg.is-ok { color: #7DCFC4; }
.cta-band .form-msg.is-err { color: #F0B4A8; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 48px) 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-2);
  font-size: 14px;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Fade-in */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero, .steps, .features, .cta-band {
    grid-template-columns: 1fr;
  }
  .hero h1 { max-width: none; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
