/*
 * app-cta.css — sticky app-handoff header + CTA styling (W-02 / W-15).
 * Hand-authored (NOT a Webflow export). Kept in a separate file so a future Webflow re-export of
 * index.html only loses the <link> tag (re-add per agent_lessons.md), not these rules.
 *
 * Uses the site's own design tokens (defined on :root in css/newsnook.webflow.css) so the header
 * matches the rest of the site: --background / --container / --drop-shadow surfaces, --font-primary
 * (orange) brand color, --highlight hover, Nunito (--primary), uppercase pill buttons.
 */

:root {
  --nn-appbar-h: 64px;
}

/* Push page content below the fixed header. Loaded after the Webflow CSS, so this wins. */
.page-wrapper {
  padding-top: var(--nn-appbar-h);
}

.nn-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nn-appbar-h);
  display: flex;
  align-items: center;
  background-color: var(--background);
  box-shadow: 0 10px 30px 4px rgba(0, 0, 0, 0.65);
}

.nn-appbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

/* Primary NewsNook logo (inline SVG, fill=currentColor → brand orange). */
.nn-appbar-logo {
  display: inline-flex;
  align-items: center;
  color: var(--font-primary);
  text-decoration: none;
}
.nn-appbar-logo svg {
  height: 26px;
  width: auto;
  display: block;
}

.nn-appbar-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Match the site's .button-wrapper: Nunito 700, uppercase, letter-spaced, pill, hover → highlight. */
.nn-btn {
  font-family: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.65rem 1.25rem;
  border-radius: 10rem;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nn-btn-primary {
  background-color: var(--drop-shadow);
  color: var(--secondary-font);
}

.nn-btn-secondary {
  background-color: transparent;
  color: var(--secondary-font);
  box-shadow: inset 0 0 0 1px var(--drop-shadow);
}

/* Chevron icon on the primary CTA, matching the page's .right-arrow-icon (always brand orange). */
.nn-btn-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  color: var(--font-primary);
}
.nn-btn-icon svg {
  height: 0.7em;
  width: auto;
  display: block;
}

.nn-btn:hover {
  background-color: var(--highlight);
  color: var(--font-primary);
  box-shadow: none;
}

.nn-btn:focus-visible,
.nn-appbar-logo:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

@media (max-width: 479px) {
  :root {
    --nn-appbar-h: 56px;
  }
  .nn-appbar-inner {
    padding: 0 1rem;
  }
  .nn-appbar-logo svg {
    height: 22px;
  }
  .nn-btn {
    padding: 0.55rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.08rem;
  }
}
