/* Balanik v2 — site chrome (nav + footer) for theme-rendered pages: cart, checkout,
   my account, legal pages, product. Scoped to .hn / .ft so the theme's page content (WooCommerce
   forms, Stripe) keeps its own styles. Mirrors hero.css (.hn) and price.css (.ft) from the homepage. */

@font-face { font-family: "General Sans"; font-weight: 400; font-display: swap; src: url("../fonts/general-sans-400.woff2") format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-display: swap; src: url("../fonts/general-sans-500.woff2") format("woff2"); }

.hn, .ft {
  --paper: #FFFFFF; --mist: #EAEDF6; --fog: #6C7693; --ink: #1F1F47; --lilac: #EEEDFE;
  --violet: #5B55E8; --violet-press: #4A43D4;
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-body: 17px; --t-small: 13px; --r-pill: 9999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-soft: 0 3px 16px rgba(73, 46, 107, .14);
  font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased;
  box-sizing: border-box; text-align: left; letter-spacing: normal; text-transform: none;
}
.hn *, .hn *::before, .hn *::after, .ft *, .ft *::before, .ft *::after { box-sizing: border-box; }
.hn a, .ft a { text-decoration: none; }
.hn img, .ft img { display: block; max-width: none; }
.hn :focus-visible, .ft :focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.hn .im-wrap, .ft .im-wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* pill + ghost (same as base.css) */
.hn .im-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 22px;
  border-radius: var(--r-pill); background: var(--violet); color: #fff; border: 0;
  font: 500 var(--t-body)/1 var(--font); white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hn .im-pill > [data-im-price] { margin-left: -4px; }
.hn .im-pill:hover { background: var(--violet-press); color: #fff; transform: translateY(-1px); }
.hn .im-ghost { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--t-body)/1 var(--font); color: var(--violet); white-space: nowrap; }
.hn .im-ghost::after { content: "\203A"; font-size: 1.2em; transition: transform .25s var(--ease); }
.hn .im-ghost:hover::after { transform: translateX(3px); }

/* nav */
.hn {
  position: sticky; top: 0; z-index: 999; margin: 0; padding: 0;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--mist);
}
body.admin-bar .hn { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .hn { top: 46px; } }
.hn__bar { position: relative; display: flex; align-items: center; height: 68px; }
.hn__brand { display: flex; align-items: center; flex: none; border-radius: 8px; }
.hn .hn__lockup { height: 30px; width: auto; }
.hn .hn__mark { display: none; width: 32px; height: 32px; }
.hn__links { display: flex; align-items: center; gap: 32px; margin-left: 56px; }
.hn__links a { color: var(--ink); font: 500 var(--t-body)/1 var(--font); padding: 8px 0; transition: color .25s var(--ease); }
.hn__links a:hover { color: var(--violet); }
.hn__act { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.hn__toggle {
  display: none; place-items: center; width: 44px; height: 44px; margin: 0 -8px 0 0; padding: 0;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); cursor: pointer;
}
.hn__toggle:hover { background: var(--lilac); }
.hn__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--mist); box-shadow: var(--shadow-soft); }
.hn__panel[hidden] { display: none; }
.hn__panel nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.hn__panel a { color: var(--ink); font: 500 var(--t-body)/1 var(--font); padding: 18px 0; border-bottom: 1px solid var(--mist); }
.hn__panel a:last-child { border-bottom: 0; }
@media (max-width: 959px) { .hn__links { display: none; } .hn__toggle { display: grid; } }
@media (max-width: 639px) {
  .hn .im-wrap { padding: 0 16px; }
  .hn .hn__demo { display: none; } /* .hn .im-ghost sets display, so this needs the same weight */
  .hn .im-pill { min-height: 40px; padding: 10px 16px; }
  .hn .hn__lockup { display: none; }
  .hn .hn__mark { display: block; }
  .hn__act { gap: 12px; }
}

/* footer */
.ft { background: #F9F9FB; border-top: 1px solid var(--mist); padding: 48px 0 40px; margin: 0; }
.ft-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.ft-logo { display: inline-block; border-radius: 6px; }
.ft-logo img { height: 32px; width: auto; }
.ft-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ft-links a { font: 500 var(--t-body)/1.4 var(--font); color: var(--ink); }
.ft-links a:hover { color: var(--violet); }
.ft-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--mist); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font: 500 var(--t-small)/1.45 var(--font); color: var(--fog); }
.ft-bottom p, .ft-addr { margin: 0; font-style: normal; color: var(--fog); font-size: var(--t-small); }
.ft-addr a { color: var(--fog); }
@media (max-width: 639px) { .ft .im-wrap { padding: 0 16px; } .ft-links { gap: 12px 20px; } }
