/* Smarter Inbound — shared design system (tide on ink, TrySmarter family) */
:root {
  --ink: #0b0b0e; --panel: #0e1218; --panel2: #0b0d11; --line: rgba(239,233,221,.12);
  --cream: #efe9dd; --stone: #a29a8c;
  --tide: #7d9fb3; --tide-soft: #9db8c7; --tide-deep: #5d84a0;
  --brass: #d6a63e; --pulse: #63e6a4; --rust: #c96f5f;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(70rem 42rem at 80% -12%, rgba(125,159,179,.09), transparent 58%),
    radial-gradient(60rem 40rem at 8% 108%, rgba(125,159,179,.05), transparent 58%),
    var(--ink);
  color: var(--cream); min-height: 100svh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
}
header, main, footer { position: relative; z-index: 1; }
::selection { background: rgba(125,159,179,.35); }

/* ── Motion ─────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
.r  { animation: rise .8s var(--ease) backwards; }
.r1 { animation-delay: .06s; } .r2 { animation-delay: .14s; } .r3 { animation-delay: .22s; }
.r4 { animation-delay: .32s; } .r5 { animation-delay: .42s; } .r6 { animation-delay: .52s; }
.js .rv { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .rv.inview { opacity: 1; translate: 0 0; }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }

/* ── Header / nav ───────────────────────────────────────────────────── */
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.35rem clamp(1.25rem, 4vw, 3rem); }
.word { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--cream); text-decoration: none; white-space: nowrap; }
.word .slash { color: var(--tide); }
nav.top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
nav.top a {
  font-family: "Space Grotesk", sans-serif; font-size: .82rem; font-weight: 600;
  color: var(--stone); text-decoration: none; padding: .48rem .8rem;
  border: 1px solid transparent; border-radius: .6rem;
  transition: color .25s, border-color .25s, background .25s;
}
nav.top a:hover, nav.top a:focus-visible { color: var(--cream); border-color: rgba(239,233,221,.3); }
nav.top a[aria-current="page"] { color: var(--tide-soft); border-color: rgba(125,159,179,.4); background: rgba(125,159,179,.07); }
nav.top a.cta { color: var(--ink); background: var(--tide); border-color: var(--tide); }
nav.top a.cta:hover { background: var(--tide-soft); border-color: var(--tide-soft); color: var(--ink); }

/* ── Layout / type ──────────────────────────────────────────────────── */
main { max-width: 66rem; margin: 0 auto; padding: clamp(1.6rem, 5vh, 3.6rem) 1.6rem 4rem; }
.kicker {
  font-family: "JetBrains Mono", monospace; font-size: .64rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--tide);
  display: inline-flex; align-items: center; gap: .55rem;
}
.kicker .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--tide); animation: blink 2.2s ease-in-out infinite; }
h1 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.15rem, 5.2vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em;
  margin: .9rem 0 1.1rem; text-wrap: balance; max-width: 20ch;
}
h1 em, h2 em { font-style: normal; color: var(--tide); }
.lede { font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.7; color: rgba(239,233,221,.72); max-width: 44rem; }
.lede b, .sec p b, .srow p b { color: var(--cream); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 0; align-items: center; }
.btn {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .95rem;
  text-decoration: none; padding: .72rem 1.25rem; border-radius: .7rem; display: inline-block;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn.primary { background: var(--tide); color: var(--ink); }
.btn.primary:hover { background: var(--tide-soft); transform: translateY(-1px); }
.btn.ghost { color: var(--cream); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: rgba(239,233,221,.45); transform: translateY(-1px); }

/* Sections */
.sec { margin: clamp(3.4rem, 8vh, 5.5rem) 0 0; }
.sec-lbl { font-family: "JetBrains Mono", monospace; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tide); margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
.sec-lbl::after { content: ""; height: 1px; flex: 1; max-width: 7rem; background: linear-gradient(90deg, rgba(125,159,179,.5), transparent); }
.sec h2 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; line-height: 1.15; margin-bottom: .8rem; text-wrap: balance; max-width: 26ch; }
.sec > p, .sec .body { font-size: .98rem; line-height: 1.75; color: rgba(239,233,221,.7); max-width: 44rem; }
.sec > p + p { margin-top: .8rem; }

/* Breadcrumb */
.crumb { font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.2rem; }
.crumb a { color: var(--stone); text-decoration: none; }
.crumb a:hover { color: var(--cream); }
.crumb .sep { color: var(--tide); margin: 0 .35rem; }

/* ── Figures / diagrams ─────────────────────────────────────────────── */
.fig {
  margin: 1.6rem 0 0; border: 1px solid rgba(125,159,179,.22); border-radius: .95rem;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: 0 0 40px rgba(125,159,179,.06), inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}
.fig svg { display: block; width: 100%; height: auto; }
.fig-pad { padding: clamp(.9rem, 2.5vw, 1.6rem); }
.fig-cap {
  padding: .65rem 1rem .75rem; border-top: 1px solid rgba(239,233,221,.07);
  font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone);
}
.fig-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .62rem .95rem; border-bottom: 1px solid rgba(239,233,221,.08);
  font-family: "JetBrains Mono", monospace; font-size: .72rem; color: var(--tide-soft);
}
.fig-bar .lights { display: inline-flex; gap: .3rem; margin-right: .3rem; }
.fig-bar .lights i { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(239,233,221,.14); }

/* SVG diagram text conventions (inline SVG inherits page fonts/vars) */
.d-lbl  { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--stone); }
.d-lbl2 { font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--tide); }
.d-t    { font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 600; fill: var(--cream); }
.d-ts   { font-family: "Space Grotesk", sans-serif; font-size: 11.5px; font-weight: 600; fill: var(--cream); }
.d-b    { font-family: "Inter", sans-serif; font-size: 10.5px; fill: rgba(239,233,221,.66); }
.d-bs   { font-family: "Inter", sans-serif; font-size: 9.5px; fill: rgba(239,233,221,.55); }
.d-mono { font-family: "JetBrains Mono", monospace; font-size: 10px; fill: rgba(239,233,221,.75); }

/* ── Local-pack mock ────────────────────────────────────────────────── */
.pack { max-width: 40rem; }
.prow { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-bottom: 1px solid rgba(239,233,221,.06); }
.prow:last-of-type { border-bottom: none; }
.prow .rank { font-family: "JetBrains Mono", monospace; font-size: .7rem; color: var(--stone); width: 1.2rem; }
.prow .biz { flex: 1; min-width: 0; }
.prow .biz b { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .95rem; }
.prow .biz span { font-size: .78rem; color: var(--stone); }
.prow .stars { font-size: .72rem; letter-spacing: .1em; color: rgba(239,233,221,.35); white-space: nowrap; }
.prow.you { background: rgba(125,159,179,.09); border-left: 2px solid var(--tide); }
.prow.you .biz b { color: var(--tide-soft); }
.prow.you .stars { color: var(--brass); }
.prow.you .rank { color: var(--tide); }

/* ── Chat mock (AI conversations) ───────────────────────────────────── */
.chat { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1rem, 2.5vw, 1.4rem); }
.msg { max-width: 92%; border-radius: .85rem; padding: .8rem 1rem; font-size: .9rem; line-height: 1.65; }
.msg.user { align-self: flex-end; background: rgba(125,159,179,.14); border: 1px solid rgba(125,159,179,.3); color: var(--cream); }
.msg.ai { align-self: flex-start; background: rgba(255,255,255,.025); border: 1px solid var(--line); color: rgba(239,233,221,.8); }
.msg.ai .who { font-family: "JetBrains Mono", monospace; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--tide); display: block; margin-bottom: .45rem; }
.msg.ai b { color: var(--tide-soft); font-weight: 600; }
.msg.ai .cite { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: .6rem; color: var(--stone); border: 1px solid var(--line); border-radius: 99px; padding: .1rem .5rem; margin: .5rem .3rem 0 0; }

/* ── Service cards grid ─────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.svc {
  border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem 1.35rem 1.4rem;
  text-decoration: none; color: inherit; background: rgba(255,255,255,.015);
  transition: border-color .3s, transform .3s var(--ease), background .3s; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .55rem;
}
.svc::before { content: ""; position: absolute; top: 0; left: 1.25rem; right: 1.25rem; height: 1px; background: linear-gradient(90deg, var(--tide), transparent); opacity: .7; }
.svc:hover { transform: translateY(-4px); border-color: rgba(125,159,179,.5); background: rgba(125,159,179,.05); }
.svc .num { font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: .2em; color: var(--tide); }
.svc h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.06rem; font-weight: 600; }
.svc p { font-size: .86rem; line-height: 1.6; color: var(--stone); flex: 1; }
.svc .go { font-family: "Space Grotesk", sans-serif; font-size: .82rem; font-weight: 600; color: var(--tide-soft); }
.svc:hover .go { color: var(--tide); }
.svc.hot { border-color: rgba(125,159,179,.45); background: rgba(125,159,179,.06); }
.svc .chip { position: absolute; top: .9rem; right: .95rem; font-family: "JetBrains Mono", monospace; font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: var(--tide); border-radius: 99px; padding: .18rem .55rem; }

/* ── Outcome tiles ──────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.tile { border: 1px solid var(--line); border-radius: .95rem; padding: 1.15rem 1.2rem; background: rgba(255,255,255,.015); }
.tile .t-ic { margin-bottom: .7rem; }
.tile h3 { font-family: "Space Grotesk", sans-serif; font-size: .98rem; font-weight: 600; margin-bottom: .35rem; }
.tile p { font-size: .84rem; line-height: 1.6; color: var(--stone); }

/* ── Checklists ─────────────────────────────────────────────────────── */
.check { list-style: none; margin-top: 1.4rem; display: grid; gap: .65rem; max-width: 44rem; }
.check li { display: flex; gap: .8rem; align-items: flex-start; font-size: .93rem; line-height: 1.6; color: rgba(239,233,221,.75); }
.check li b { color: var(--cream); font-weight: 600; }
.check .tick { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; border-radius: .35rem; border: 1px solid rgba(125,159,179,.5); display: grid; place-items: center; color: var(--tide); font-size: .7rem; }
.check.cols { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); column-gap: 1.6rem; max-width: none; }

/* ── Compare (before / after) ───────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.cmp { border-radius: 1rem; padding: 1.25rem 1.3rem; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.cmp .tag { font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .8rem; display: block; }
.cmp.bad .tag { color: var(--rust); }
.cmp.good { border-color: rgba(125,159,179,.4); background: rgba(125,159,179,.05); }
.cmp.good .tag { color: var(--tide); }
.cmp ul { list-style: none; display: grid; gap: .5rem; }
.cmp li { font-size: .87rem; line-height: 1.55; color: rgba(239,233,221,.72); padding-left: 1.1rem; position: relative; }
.cmp li::before { content: "—"; position: absolute; left: 0; color: var(--rust); opacity: .8; }
.cmp.good li::before { content: "+"; color: var(--tide); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { margin-top: 1.4rem; border-top: 1px solid var(--line); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.05rem .2rem; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "JetBrains Mono", monospace; color: var(--tide); font-size: 1rem; transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 .2rem 1.15rem; font-size: .92rem; line-height: 1.7; color: rgba(239,233,221,.68); max-width: 42rem; }

/* ── System link row (cross-service) ────────────────────────────────── */
.sys { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.sys a {
  font-family: "Space Grotesk", sans-serif; font-size: .84rem; font-weight: 600;
  text-decoration: none; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 99px;
  color: var(--stone); transition: color .25s, border-color .25s;
}
.sys a:hover { color: var(--tide-soft); border-color: rgba(125,159,179,.5); }

/* ── Pair / family / CTA band ───────────────────────────────────────── */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.pcard {
  border: 1px solid var(--line); border-radius: 1rem; padding: 1.35rem 1.4rem;
  text-decoration: none; color: inherit; background: rgba(255,255,255,.015);
  transition: border-color .25s, transform .25s; position: relative; overflow: hidden; display: block;
}
.pcard::before { content: ""; position: absolute; top: 0; left: 1.3rem; right: 1.3rem; height: 1px; opacity: .75; }
.pcard.so::before { background: linear-gradient(90deg, var(--brass), transparent); }
.pcard.si::before { background: linear-gradient(90deg, var(--tide), transparent); }
.pcard:hover { transform: translateY(-3px); }
.pcard.so:hover { border-color: rgba(214,166,62,.5); }
.pcard.si:hover { border-color: rgba(125,159,179,.55); }
.pcard .tag2 { font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.pcard h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; margin: .5rem 0 .35rem; }
.pcard.so h3 span { color: var(--brass); }
.pcard.si h3 span { color: var(--tide); }
.pcard p { font-size: .88rem; color: var(--stone); line-height: 1.6; }

.cta-band {
  margin-top: clamp(3.4rem, 8vh, 5.5rem); border: 1px solid rgba(125,159,179,.3); border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(125,159,179,.1), rgba(125,159,179,.02));
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.cta-band h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.4rem, 2.8vw, 1.9rem); letter-spacing: -.015em; margin-bottom: .6rem; text-wrap: balance; }
.cta-band p { font-size: .95rem; line-height: 1.7; color: rgba(239,233,221,.7); max-width: 42rem; }

.family { margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.family .lbl { font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-right: .5rem; }
.family a {
  font-family: "Space Grotesk", sans-serif; font-size: .85rem; font-weight: 600;
  text-decoration: none; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 99px;
  color: var(--stone); transition: color .25s, border-color .25s;
}
.family a.ts:hover { color: var(--cream); border-color: rgba(239,233,221,.45); }
.family a.so:hover { color: var(--brass); border-color: rgba(214,166,62,.5); }
.family a.sd:hover { color: var(--pulse); border-color: rgba(99,230,164,.45); }

footer {
  display: flex; justify-content: center; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: 1.5rem 1rem 1.7rem; margin-top: 1rem;
  font-family: "JetBrains Mono", monospace; font-size: .62rem;
  letter-spacing: .24em; text-transform: uppercase; color: rgba(162,154,140,.7); text-align: center;
}
footer .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--tide); animation: blink 2.6s ease-in-out infinite; }
footer a { color: rgba(162,154,140,.85); text-decoration: none; }
footer a:hover { color: var(--cream); }

/* ── Niche chips ────────────────────────────────────────────────────── */
.niches { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.niches span {
  font-family: "JetBrains Mono", monospace; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,233,221,.6); border: 1px solid var(--line); border-radius: 99px; padding: .35rem .75rem;
}

/* ── Steps (process) ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; margin-top: 1.6rem; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: .95rem; padding: 1.15rem 1.2rem; background: rgba(255,255,255,.015); position: relative; }
.step .s-n { font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .2em; color: var(--tide); display: block; margin-bottom: .55rem; }
.step h3 { font-family: "Space Grotesk", sans-serif; font-size: .98rem; font-weight: 600; margin-bottom: .35rem; }
.step p { font-size: .84rem; line-height: 1.6; color: var(--stone); }

@media (max-width: 760px) {
  .compare, .pair { grid-template-columns: 1fr; }
  nav.top a.hide-m { display: none; }
  header { padding-bottom: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .r, .kicker .dot, footer .dot { animation: none !important; }
  .js .rv { opacity: 1; translate: 0 0; transition: none; }
  .btn, .pcard, .svc { transition: none; }
  html { scroll-behavior: auto; }
}
