/* Public header/footer: matches index.html and homepageExpanded.css.
   Scoped so document-specific typography and colors cannot change the site chrome. */
@font-face { font-family: APTHeebo; src: url('/fonts/heebo-hebrew-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: APTHeebo; src: url('/fonts/heebo-hebrew-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: APTHeebo; src: url('/fonts/heebo-hebrew-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: APTHeebo; src: url('/fonts/heebo-hebrew-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

.public-site-chrome {
  --ink: #152033;
  --text: #4f6177;
  --line: #e5edf5;
  --green: #39c89a;
  --max: 1120px;
  --wide: 1360px;
  color: var(--text);
  font: 400 16px/1.65 APTHeebo, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.public-site-chrome img { display: block; }
.public-site-chrome a { color: inherit; }
.public-site-chrome :focus-visible { outline: 3px solid #2977d8; outline-offset: 4px; border-radius: 12px; }
.public-site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(229, 237, 245, .9);
  backdrop-filter: blur(18px);
}
.public-site-header .nav {
  width: min(var(--wide), calc(100% - 48px)); min-height: 76px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.public-site-header .brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; text-decoration: none; }
.public-site-header .brand-logo-stack { display: inline-flex; align-items: center; gap: 12px; }
.public-site-header .brand-logo-stack::before {
  content: ''; width: 1px; height: 32px; order: 2;
  background: linear-gradient(180deg, transparent, #d7e3ef, transparent);
}
.public-site-header .brand img { width: 154px; max-height: 50px; object-fit: contain; }
.public-site-header .brand img.product-logo { order: 1; }
.public-site-header .brand img.company-logo { width: 92px; max-height: 42px; order: 3; }
.public-site-header .nav-actions { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.public-site-header .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 11px 20px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.public-site-header .btn:hover { transform: translateY(-2px); }
.public-site-header .btn-primary { color: #fff; background: linear-gradient(90deg, var(--green), #20bed0); box-shadow: 0 14px 30px rgba(32, 190, 208, .22); }
.public-site-header .nav-actions .pricing-link { min-height: 44px; padding: 10px 17px; color: #344054; background: #fff; border: 1px solid #dce5ee; }
.public-site-header .nav-actions .pricing-link:hover { color: #1d5caa; background: #f5f9ff; border-color: #b8d3f2; }
.public-site-header .nav-actions .customer-login { min-height: 44px; padding: 10px 17px; color: #1d5caa; background: #edf5ff; border: 1px solid #cfe2fa; }
.public-site-header .nav-actions .signup-start { min-height: 44px; }

.public-site-footer { padding: 38px 0 30px; border-top: 1px solid var(--line); background: #f7f9fc; }
.public-site-footer .footer-inner {
  width: min(var(--max), calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center;
}
.public-site-footer .footer-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; }
.public-site-footer .footer-logos { display: inline-flex; align-items: center; gap: 14px; margin: 0; }
.public-site-footer .footer-logos::before {
  content: ''; width: 1px; height: 34px; order: 2;
  background: linear-gradient(180deg, transparent, #d7e3ef, transparent);
}
.public-site-footer .footer-brand img { width: 150px; object-fit: contain; }
.public-site-footer .footer-brand .product-logo { order: 3; }
.public-site-footer .footer-brand .company-logo { width: 94px; max-height: 42px; order: 1; }
.public-site-footer .footer-brand-copy { min-width: 0; }
.public-site-footer .footer-tagline { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.35; font-weight: 800; }
.public-site-footer .footer-tagline span { color: var(--green); }
.public-site-footer .copyright { display: block; margin-top: 5px; color: #8390a1; font-size: 13px; font-weight: 600; }
.public-site-footer .copyright-line { display: inline-flex; direction: rtl; flex-direction: row; align-items: baseline; gap: 4px; white-space: nowrap; }
.public-site-footer .copyright-apt { direction: ltr; unicode-bidi: isolate; }
.public-site-footer .legal-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
.public-site-footer .legal-links a { display: inline-flex; color: #66788c; font-size: 13px; font-weight: 700; text-decoration: none; }
.public-site-footer .legal-links a:hover { color: var(--green); }

@media (max-width: 980px) {
  .public-site-header .brand-logo-stack { gap: 9px; }
  .public-site-header .brand-logo-stack::before { height: 28px; }
  .public-site-header .brand img.product-logo { width: 126px; }
  .public-site-header .brand img.company-logo { width: 74px; max-height: 34px; }
  .public-site-footer .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .public-site-header .brand img.company-logo, .public-site-header .brand-logo-stack::before { display: none; }
}
@media (max-width: 680px) {
  .public-site-header .nav {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; width: calc(100% - 24px);
    min-height: 66px; gap: 8px 12px; padding-block: 8px;
  }
  .public-site-header .nav .brand { grid-area: 1 / 1; justify-self: start; }
  .public-site-header .brand-logo-stack { gap: 8px; }
  .public-site-header .brand img.product-logo { width: 106px; }
  .public-site-header .brand img.company-logo { width: 66px; max-height: 31px; }
  .public-site-header .nav-actions { display: contents; }
  .public-site-header .nav-actions .pricing-link { grid-area: 1 / 2; padding: 9px 12px; font-size: 12px; }
  .public-site-header .nav-actions .signup-start { grid-area: 2 / 1; padding: 9px 14px; font-size: 14px; }
  .public-site-header .nav-actions .customer-login { grid-area: 2 / 2; padding: 9px 12px; font-size: 12px; }
  .public-site-footer .footer-inner { width: min(100% - 32px, var(--max)); gap: 18px; }
  .public-site-footer .footer-inner, .public-site-footer .footer-brand { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .public-site-footer .footer-brand { gap: 14px; }
  .public-site-footer .legal-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .public-site-header .btn { transition: none; } }
@media print { .public-site-header, .public-site-footer { display: none; } }
