/* CopyConnectFX — Krepling-style redesign */
:root {
  --bg: #FBF8F2;
  --bg-alt: #FFFFFF;
  --ink: #131A22;
  --ink-soft: #4A5361;
  --ink-faint: #7A828E;
  --line: #E9E3D7;
  --accent: #F4633A;
  --accent-dark: #D94E27;
  --accent-soft: #FDEDE6;
  --green: #1E7F4F;
  --green-soft: #E7F4EC;
  --navy: #131A22;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: all .18s ease; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #232D39; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px; }
.logo-img { height: 38px; width: auto; }
footer .logo-img { height: 44px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 700;
}
.logo-mark span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .login { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav-cta .btn { padding: 10px 20px; font-size: .92rem; }
.nav-burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green);
  font-size: .85rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; margin-bottom: 28px;
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { max-width: 850px; margin: 0 auto 24px; }
.hero .lead { margin: 0 auto 36px; max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--ink-faint); }

/* Stat strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat b { display: block; font-size: 1.9rem; font-weight: 650; letter-spacing: -0.03em; }
.stat span { font-size: .88rem; color: var(--ink-faint); }

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 16px; display: block;
}
.sec-head { margin-bottom: 52px; }
.sec-head h2 { margin-bottom: 16px; max-width: 720px; }
.sec-head.center h2 { margin-left: auto; margin-right: auto; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; transition: transform .18s ease, box-shadow .18s ease;
}
.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(19,26,34,.06); }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card.feature-lg { padding: 44px; }
.card .tag {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 12px;
  border-radius: 999px; background: var(--green-soft); color: var(--green); margin-bottom: 16px;
}
.card ul { list-style: none; margin-top: 18px; }
.card ul li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-soft); font-size: .95rem; }
.card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--green); font-weight: 700;
}
.card-link { font-weight: 600; color: var(--accent); font-size: .95rem; display: inline-block; margin-top: 18px; }
.card-link:hover { color: var(--accent-dark); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 34px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* Platform strip */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.platforms span {
  border: 1px solid var(--line); background: var(--bg-alt); border-radius: 999px;
  padding: 10px 22px; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
}

/* Copy directions diagram */
.directions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.direction {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 22px; text-align: center; font-weight: 600; letter-spacing: -0.01em;
}
.direction small { display: block; color: #8B95A3; font-weight: 500; font-size: .8rem; margin-top: 6px; }
.direction .arrow { color: var(--accent); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 34px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 16px; border-radius: 999px;
}
.price-card .plan { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.price-card .amount { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.04em; }
.price-card .amount small { font-size: 1rem; color: var(--ink-faint); font-weight: 500; letter-spacing: 0; }
.price-card .desc { color: var(--ink-soft); font-size: .93rem; margin: 10px 0 22px; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card ul li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-soft); font-size: .94rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--green); font-weight: 700; }
.price-card .btn { justify-content: center; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem;
  list-style: none; position: relative; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 680px; }

/* Big CTA */
.big-cta {
  background: var(--navy); border-radius: 28px; padding: 76px 40px; text-align: center; color: #fff;
  margin: 88px auto; max-width: var(--maxw);
}
.big-cta h2 { color: #fff; margin-bottom: 16px; }
.big-cta p { color: #A7AFBB; max-width: 560px; margin: 0 auto 34px; font-size: 1.08rem; }
.big-cta .serif { color: var(--accent); }

/* Footer */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-grid p { color: var(--ink-soft); font-size: .92rem; max-width: 300px; margin-top: 14px; }
.foot-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 16px; }
.foot-grid ul { list-style: none; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid ul a { color: var(--ink-soft); font-size: .95rem; }
.foot-grid ul a:hover { color: var(--ink); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--ink-faint);
}
.foot-disclaimer { font-size: .8rem; color: var(--ink-faint); max-width: 820px; margin-top: 18px; line-height: 1.5; }

/* Page hero (inner pages) */
.page-hero { padding: 84px 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 800px; margin: 0 auto 20px; }
.page-hero .lead { margin: 0 auto; }

/* 3D scroll reveal */
.grid-2, .grid-3, .steps, .directions, .pricing-grid, .stats-inner, .platforms { perspective: 1000px; }
.r3d {
  opacity: 0;
  transform: perspective(900px) rotateX(10deg) translateY(44px) scale(.97);
  transform-origin: center 80%;
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.r3d-in {
  opacity: 1;
  transform: perspective(900px) rotateX(0) translateY(0) scale(1);
}
/* hover tilt handled inline via JS; keep transitions smooth */
.tilt { transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease; transform-style: preserve-3d; }
.tilt:hover { box-shadow: 0 18px 44px rgba(19,26,34,.10); }

/* Watery cursor canvas */
#water-cursor {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999;
}
@media (prefers-reduced-motion: reduce) {
  .r3d { opacity: 1; transform: none; transition: none; }
  #water-cursor { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .directions { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 24px; gap: 18px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-cta .login { display: none; }
  .hero { padding: 64px 0 56px; }
  section.block { padding: 64px 0; }
  .big-cta { margin: 64px 24px; padding: 56px 24px; }
}
