/* ============================================================
   Sumezi — public / marketing chrome
   Shared header, footer and marketing primitives across all
   public SEO pages (Home, Features, Pricing, Docs, …).
   Layers on top of sumezi.css. Prefixed .pub-* to avoid
   collisions with the app + the legacy index one-pager.
   ============================================================ */

.pub-wrap { display: block; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.pub-narrow { display: block; max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ---------- sticky header ---------- */
.pub-nav { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-base); }
.pub-nav.scrolled { border-bottom-color: var(--border); }
.pub-nav .pub-wrap { display: flex; align-items: center; gap: 18px; width: 100%; }
.pub-nav .logo { font-size: 22px; }
.pub-nav nav { display: flex; gap: 4px; margin-left: 22px; }
.pub-nav nav a { padding: 8px 13px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm); font-weight: 550; color: var(--fg-2);
  transition: color var(--dur-fast), background var(--dur-fast); }
.pub-nav nav a:hover { color: var(--fg); background: var(--bg-hover); }
.pub-nav nav a.active { color: var(--fg); background: var(--bg-soft); }
.pub-nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- shared section primitives ---------- */
.pub-section { padding: 92px 0; }
.pub-section.tight { padding: 64px 0; }
.pub-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pub-eyebrow { font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--accent-fg); font-weight: 700; }
.pub-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin-top: 14px; max-width: 18ch; }
.pub-lede { font-size: var(--fs-body-lg); line-height: 1.6; color: var(--fg-2); max-width: 54ch; margin-top: 18px; }

/* page hero (lighter than home hero) */
.pub-pagehero { padding: 80px 0 56px; }
.pub-pagehero .eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg-soft); font-size: var(--fs-caption); font-weight: 550; color: var(--fg-2); margin-bottom: 24px; }
.pub-pagehero .eyebrow-pill .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pub-pagehero h1 { font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; max-width: 16ch; }
.pub-pagehero h1 em { font-style: normal; color: var(--accent); }
.pub-pagehero .lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--fg-2); max-width: 56ch; margin-top: 22px; }
.pub-pagehero.center { text-align: center; }
.pub-pagehero.center h1, .pub-pagehero.center .lede { margin-left: auto; margin-right: auto; }
.pub-cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.pub-pagehero.center .pub-cta-row { justify-content: center; }

/* ---------- footer ---------- */
.pub-foot { border-top: 1px solid var(--border); padding: 72px 0 44px; }
.pub-foot .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 36px; }
.pub-foot .logo { font-size: 22px; margin-bottom: 14px; }
.pub-foot .blurb { color: var(--fg-3); font-size: var(--fs-body-sm); line-height: 1.6; max-width: 32ch; }
.pub-foot h5 { font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.pub-foot a { display: block; color: var(--fg-2); font-size: var(--fs-body-sm); padding: 5px 0; transition: color var(--dur-fast); }
.pub-foot a:hover { color: var(--accent-fg); }
.pub-foot .bot { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--border); color: var(--fg-3); font-size: var(--fs-caption); flex-wrap: wrap; }
.pub-foot .bot .built { font-family: var(--font-mono); letter-spacing: -0.01em; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
img, video, iframe { max-width: 100%; }

@media (max-width: 1180px) {
  html, body { overflow-x: hidden; }
  .pub-wrap, .pub-narrow { padding: 0 26px; }
}
@media (max-width: 980px) {
  .pub-foot .cols { grid-template-columns: 1fr 1fr 1fr; }
  .pub-foot .cols > div:first-child { grid-column: 1 / -1; }
  /* three- and four-up card grids halve on tablet */
  .plans, .catgrid, .vals, .feat-grid { grid-template-columns: 1fr 1fr; }
  .plans > :last-child:nth-child(odd),
  .catgrid > :last-child:nth-child(odd),
  .vals > :last-child:nth-child(odd),
  .feat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .faqlayout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faqnav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .pub-wrap, .pub-narrow { padding: 0 22px; }
  .pub-section { padding: 64px 0; }
  .pub-nav nav { display: none; }
  /* split / two-up feature rows stack; minmax(0,…) stops wide children pushing out */
  .split, .twoup { grid-template-columns: minmax(0, 1fr); }
  .split > *, .twoup > * { min-width: 0; }
  .pvtabs { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 720px) {
  .plans, .catgrid, .vals, .feat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- mobile nav drawer (built by public.js) ---------- */
.pub-mobnav-btn { display: none; }
@media (max-width: 860px) { .pub-mobnav-btn { display: inline-flex; } }
.pub-mobnav-scrim { position: fixed; inset: 0; background: rgba(15,16,18,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pub-mobnav-scrim.show { opacity: 1; pointer-events: auto; }
.pub-mobnav-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(87vw, 330px); background: var(--bg-elevated);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 201; transform: translateX(101%);
  transition: transform .28s var(--ease-out-expo); display: flex; flex-direction: column; padding: 14px 14px 22px; overflow-y: auto; }
.pub-mobnav-sheet.show { transform: none; }
.pub-mobnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 4px 4px 0; }
.pub-mobnav-links { display: flex; flex-direction: column; gap: 2px; }
.pub-mobnav-links a { display: flex; align-items: center; padding: 12px; border-radius: var(--radius-sm); font-size: 15px;
  font-weight: 550; color: var(--fg-2); text-decoration: none; }
.pub-mobnav-links a:hover, .pub-mobnav-links a:active { background: var(--bg-hover); color: var(--fg); }
.pub-mobnav-links a.active { background: var(--accent-soft); color: var(--accent-fg); }
/* Login/Get started keep their normal .btn/.btn--text look (sumezi.css) —
   only override layout here, not color/background, so the visual distinction
   between the primary and text button is preserved. */
.pub-mobnav-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pub-mobnav-actions a { display: flex; align-items: center; justify-content: center; width: 100%; height: 42px; border-radius: var(--radius-sm); }
@media (max-width: 620px) {
  .pub-foot .cols { grid-template-columns: 1fr 1fr; }
  .pub-foot .bot { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .pub-nav { height: 60px; }
  .pub-nav .right .lbl-login { display: none; }
  /* Logo + lang-switch + theme toggle + "Get started" + the hamburger
     together overflow past the viewport at this width — the drawer already
     has both Login and Get started, so drop the topbar CTA here. */
  .pub-nav .right .btn:not(.lbl-login) { display: none; }
}
