/* Shared top chrome (logo lockup, language dropdown, social icons, Log in /
   Create account pill) and footer (tagline + nav) used by every inner page
   (about, pricing, terms, privacy) — one copy instead of four, injected by
   chrome.js into each page's <header id="chrome-header"> / <footer
   id="chrome-footer"> placeholder. Matches aquara.ai's own homepage header
   exactly (fixed 72px height, flat 48/20/16px responsive padding).

   Each page maps its own color tokens onto the --chrome-* names below,
   right after its own :root block, e.g.:
     :root {
       --chrome-text: var(--text);
       --chrome-muted: var(--muted);
       --chrome-muted-strong: var(--muted-strong);
       --chrome-line: var(--line);
       --chrome-accent: var(--accent);
     }
   (terms/privacy map from --card-text/--card-muted/--card-muted-strong/
   --card-line/--success instead.) --body-font is already the same
   variable name on every page, so it's used directly, with no --chrome-
   alias needed. */

.page-header {
  height: 72px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 48px;
}
.top-icons { display: flex; align-items: center; gap: 18px; }
.icon-group { display: flex; align-items: center; gap: 14px; }
/* Padding grows the tap target to WCAG's 24px minimum; the matching
   negative margin cancels it back out so the visual size and the gap
   between icons are unaffected. */
.icon-link { color: var(--chrome-muted-strong); display: flex; align-items: center; padding: 5px; margin: -5px; }
.icon-link:hover { color: var(--chrome-text); }
.icon-link svg { width: 16px; height: 16px; display: block; }

/* Language dropdown: a borderless dark trigger (flag + name + chevron)
   showing the current language, opening a same-style panel with both
   options and a checkmark on the active one. */
.lang-dd { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 0; border-radius: 6px;
  background: #1a1a1a; color: var(--chrome-text); cursor: pointer;
  font-family: var(--body-font); font-size: 12px;
  transition: background 200ms ease;
}
.lang-btn:hover { background: #212121; }
.lang-btn:hover .chev { color: #0a0a0a; }
.lang-btn img { width: 18px; height: 13.5px; border-radius: 2px; display: block; }
.lang-btn .chev { color: var(--chrome-muted); display: flex; }
.lang-btn .chev svg { width: 10px; height: 10px; }
.lang-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 152px;
  background: #1a1a1a;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 20;
}
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none; background: none;
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--chrome-muted);
  cursor: pointer;
  text-align: left;
}
.lang-opt + .lang-opt { border-top: 1px solid var(--chrome-line); }
.lang-opt:hover { background: rgba(255, 255, 255, 0.05); color: var(--chrome-text); }
.lang-opt[aria-current="true"] { color: var(--chrome-text); }
.lang-opt img { width: 18px; height: 13.5px; border-radius: 2px; display: block; }
.lang-opt .name { flex: 1; }
.lang-opt .check { width: 13px; height: 13px; color: var(--chrome-accent); visibility: hidden; flex-shrink: 0; }
.lang-opt[aria-current="true"] .check { visibility: visible; }

/* Logo lockup. */
.lockup {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--chrome-text);
}
.lockup img { width: 20px; height: 20px; display: block; filter: invert(1); }
.lockup .wordmark {
  font-family: "Outfit", var(--body-font);
  font-size: 15px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.lockup:hover { color: var(--chrome-muted); }
.lockup:hover img { opacity: 0.75; }

/* Log in / Create account pill. */
.sep { width: 1px; height: 20px; background: #2A2A2A; margin: 0 4px; }
.auth {
  display: flex; align-items: stretch; height: 40px;
  background: #1a1a1a; border-radius: 5.4px;
  transition: background 0.2s ease;
}
.auth:hover { background: #212121; }
.login {
  display: flex; align-items: center; padding: 0 18px 0 16px;
  color: #B4B4B4; font-size: 13.5px; font-weight: 400;
  white-space: nowrap; transition: color 0.2s ease;
  text-decoration: none;
}
.login:hover { color: #fff; }
.cta {
  display: flex; align-items: center; padding: 0 18px;
  background: #fff; color: #000;
  font-size: 12.6px; font-weight: 500;
  border-radius: 0 5.4px 5.4px 0; white-space: nowrap;
  text-decoration: none;
}
.cta:hover { background: #e8e8e8; }

/* Footer: in-flow rather than the homepage's position:absolute pin — these
   pages' text can run longer than the viewport, so the footer has to sit
   after it, not float over it. Colors/spacing otherwise match. */
.foot {
  flex: 0 0 auto;
  margin-top: 1.75rem;
  padding: 0 48px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tagline {
  margin: 0;
  max-width: 26rem;
  font-size: 13px;
  font-weight: 300;
  -webkit-text-stroke: 0.2px currentColor;
  line-height: 1.6;
  color: #fff;
}
.foot nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  -webkit-text-stroke: 0.2px currentColor;
}
.foot nav a { color: #fff; text-decoration: none; }
.foot nav a:hover { opacity: 0.7; }
.foot nav .div { color: var(--chrome-line); }

@media (max-width: 900px) {
  .icon-group, .sep { display: none; }
  .page-header { padding: 0 20px; }
  .top-icons { gap: 16px; }
  .foot { padding: 16px 20px 24px; flex-direction: column; align-items: flex-start; gap: 10px; border-top: 1px solid var(--chrome-line); }
}
@media (max-width: 520px) {
  .page-header { padding: 0 16px; }
  .top-icons { gap: 8px; }
  .auth { height: 36px; }
  .login { padding: 0 10px; font-size: 12px; }
  .cta { padding: 0 10px; font-size: 11.5px; }
  .lang-btn { gap: 6px; padding: 8px; }
  .lang-btn [data-lang-label] { display: none; }
}
