/* Shared site chrome: Apple-style minimal header, footer, nav, tokens. Loaded by every public page. */
@font-face {
  font-family: Inter;
  src: url("../assets/fonts/Inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f5f7;
  --cream: #f5f5f7;
  --paper: #ffffff;
  --pure: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);
  --violet: #7c3aed;
  --blue: #2563eb;
  --teal: #14b8a6;
  --whatsapp: #1f8a4d;
  --grad: linear-gradient(135deg, #c084fc 0%, #6366f1 48%, #22d3ee 100%);
  --terracotta: #1d1d1f;
  --terracotta-bright: #1d1d1f;
  --terracotta-s: #e8e8ed;
  --sage: #1d1d1f;
  --sage-s: #ececee;
  --lavender: #6366f1;
  --lavender-s: #ececfb;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --max: 1080px;
  --nav-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

.wrap { width: min(var(--max), calc(100% - 48px)); max-width: var(--max); margin: 0 auto; padding: 0; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: #000; color: #fff; padding: 8px 12px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header — translucent blur, compact Apple bar */
.site-header {
  position: sticky; top: 0; z-index: 50; height: auto;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--nav-h);
  height: auto;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  letter-spacing: -0.02em; color: var(--ink); flex: none;
}
.brand:hover { color: var(--ink); }
.brand svg, .brand .brand-icon { width: 28px; height: 28px; object-fit: contain; flex: none; border-radius: 7px; }
.brand-icon { width: 28px; height: 28px; object-fit: contain; flex: none; border-radius: 7px; }
.nav-links { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 12px; color: var(--ink); font-weight: 400; opacity: 0.85; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; font-weight: 500; }
.nav-cta {
  display: none; align-items: center; justify-content: center;
  height: 28px; padding: 0 12px;
  border-radius: 980px; background: var(--ink); color: #fff;
  text-decoration: none; font-size: 12px; font-weight: 500; border: 0;
}
.nav-cta:hover { background: #000; color: #fff; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; margin: 0 0 0 auto;
  border: 0; background: none; box-shadow: none; cursor: pointer; flex: none;
  color: var(--ink);
}
.menu-btn:hover, .menu-btn:focus { background: none; box-shadow: none; }
.menu-btn svg { width: 20px; height: 20px; color: var(--ink); }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: rgba(245, 245, 247, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 16px 0 24px; }
.mobile-menu a {
  display: block; padding: 10px 0; color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.mobile-menu [hidden],
.mobile-menu li:has(> [hidden]) { display: none !important; }
.mobile-menu li:last-child a { border: 0; }
.admin-link[hidden] { display: none !important; }
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav .nav-cta { display: inline-flex; }
  .menu-btn { margin-left: 0; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11.5px; }
}

/* Buttons — black and grey pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; min-height: 48px; padding: 0 22px; border-radius: 980px;
  font-size: 17px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  transition: background 0.15s, filter 0.15s, box-shadow 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary, .btn-dark { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: #000; color: #fff; }
.btn-ghost, .btn-soft, .btn-grey { background: #e8e8ed; color: var(--ink); box-shadow: none; }
.btn-ghost:hover, .btn-soft:hover, .btn-grey:hover { background: #dcdcde; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f5f5f7; color: var(--ink); }
.btn-terra { background: var(--ink); color: #fff; }
.btn-terra:hover { background: #000; color: #fff; }
.btn-sm { height: 32px; min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[hidden] { display: none !important; }

/* Account access in the header */
.account-nav .account-link { margin-left: 0; white-space: nowrap; flex-shrink: 0; min-height: 28px; }
.account-nav .menu-btn { flex-shrink: 0; }
.account-actions { display: flex; align-items: center; gap: 4px; margin-left: 0; min-width: 0; }
.account-actions [hidden] { display: none !important; }
.account-actions .account-link,
.account-actions .admin-link {
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; display: inline-flex;
  background: transparent; box-shadow: none; color: var(--ink); opacity: 0.85;
  font-size: 12px; font-weight: 400; height: 28px; min-height: 28px; padding: 0 8px;
}
.account-actions .account-link:hover,
.account-actions .admin-link:hover,
.account-actions .account-link[aria-current="page"],
.account-actions .admin-link[aria-current="page"] { opacity: 1; background: transparent; color: var(--ink); }
.account-actions .admin-link { white-space: nowrap; }
.account-nav { height: auto; min-height: var(--nav-h); flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
@media (max-width: 600px) {
  .account-actions .account-link { max-width: 140px; font-size: 12px; padding: 0 6px; }
}

/* Footer */
.site-footer {
  background: var(--bg); color: var(--faint);
  padding: 48px 0 96px; font-size: 13px;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--ink); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .brand { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer h2 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 12px; color: var(--faint); }
@media (min-width: 960px) {
  .site-footer .legal { padding-right: 200px; }
}
.legal a { color: var(--muted); }

/* Sticky mobile call bar (marketing pages only) */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.mobile-bar .btn { flex: 1; min-height: 44px; height: 44px; padding: 8px 12px; font-size: 15px; }
body.has-mobile-bar { padding-bottom: 72px; }
@media (min-width: 960px) { .mobile-bar { display: none; } body.has-mobile-bar { padding-bottom: 0; } }
body.app-page { padding-bottom: 0; }
