/* ============================================================================
   Integration Hub — public site (landing + legal). Reuses hub.css tokens.
   ========================================================================== */

.site-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(20px, 5vw, 48px); height: 66px;
  background: hsl(var(--background) / 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 15px; }
.site-nav__links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav__links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  color: hsl(var(--muted-foreground)); transition: background .12s, color .12s; }
.site-nav__links a:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
@media (max-width: 640px) { .site-nav__links a.hide-sm { display: none; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* hero */
.hero { text-align: center; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(760px 340px at 50% -8%, hsl(var(--primary-soft)), transparent 70%); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 99px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); font-size: 12.5px; font-weight: 600;
  color: hsl(var(--muted-foreground)); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--success)); }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; max-width: 15ch; margin: 0 auto; }
.hero h1 .grad { background: linear-gradient(120deg, hsl(var(--primary)), hsl(var(--primary-hover))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(15px, 2vw, 18px); color: hsl(var(--muted-foreground)); max-width: 56ch; margin: 20px auto 0; line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.btn--lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--radius); }

/* section */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section__head { text-align: center; max-width: 60ch; margin: 0 auto clamp(32px, 5vw, 52px); }
.section__head .eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: hsl(var(--primary-hover)); }
.section__head h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.02em; margin-top: 10px; }
.section__head p { color: hsl(var(--muted-foreground)); font-size: 15px; margin-top: 12px; line-height: 1.6; }
.section--muted { background: hsl(var(--muted) / 0.5); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.feature__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: hsl(var(--primary-soft)); color: hsl(var(--primary-hover)); }
.feature__ic svg { width: 21px; height: 21px; }
.feature h3 { font-size: 16px; margin-bottom: 7px; }
.feature p { color: hsl(var(--muted-foreground)); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 24px; border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); background: hsl(var(--card)); }
.step__n { counter-increment: s; width: 30px; height: 30px; border-radius: 8px; background: hsl(var(--foreground)); color: hsl(var(--background));
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.step__n::before { content: counter(s); }
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { color: hsl(var(--muted-foreground)); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* sources */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.source { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid hsl(var(--border));
  border-radius: var(--radius); background: hsl(var(--card)); }
.source__ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: hsl(var(--muted)); flex: none; }
.source__ic svg { width: 18px; height: 18px; color: hsl(var(--muted-foreground)); }
.source b { font-size: 14px; display: block; }
.source .badge { margin-top: 3px; }

/* cta band */
.cta-band { text-align: center; background: hsl(var(--foreground)); color: hsl(var(--background)); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 60px) 24px; }
.cta-band h2 { font-size: clamp(22px, 3.4vw, 32px); letter-spacing: -0.02em; }
.cta-band p { opacity: 0.75; margin: 12px auto 24px; max-width: 52ch; font-size: 15px; }
.cta-band .btn--primary { background: hsl(var(--background)); color: hsl(var(--foreground)); }
.cta-band .btn--primary:hover { background: hsl(var(--muted)); }

/* footer */
.site-foot { border-top: 1px solid hsl(var(--border)); padding: clamp(36px, 5vw, 56px) 0 40px; }
.site-foot__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.site-foot__brand { max-width: 320px; }
.site-foot__brand p { color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.site-foot__links { display: flex; gap: 50px; flex-wrap: wrap; }
.site-foot__col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); margin-bottom: 12px; }
.site-foot__col a { display: block; padding: 5px 0; font-size: 13.5px; color: hsl(var(--foreground)); font-weight: 500; }
.site-foot__col a:hover { color: hsl(var(--primary-hover)); }
.site-foot__legal { border-top: 1px solid hsl(var(--border)); padding-top: 22px; font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* prose (legal pages) */
.prose { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 0; }
.prose h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; }
.prose .lead { color: hsl(var(--muted-foreground)); font-size: 15px; margin: 10px 0 30px; }
.prose h2 { font-size: 19px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: hsl(var(--foreground)); font-size: 14.5px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: hsl(var(--primary-hover)); font-weight: 600; }
.prose strong { font-weight: 700; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: hsl(var(--muted)); padding: 2px 6px; border-radius: 5px; }
